Skip to content

Conversation

@abonie
Copy link
Member

@abonie abonie commented May 10, 2023

Fixes: #8003

If argument is of type System.Reflection.Pointer, it will be unboxed and cast to nativeint for pretty printing

@abonie abonie changed the title Fix in FsiValuePrinter Fix pretty print error for pointer type May 10, 2023
@abonie abonie force-pushed the print_pointer_error_fix branch 4 times, most recently from c2ddc16 to d34ebe4 Compare May 15, 2023 15:09
@abonie abonie marked this pull request as ready for review May 15, 2023 15:30
@abonie abonie requested a review from a team as a code owner May 15, 2023 15:30
@abonie abonie force-pushed the print_pointer_error_fix branch from d34ebe4 to 2d14f3f Compare May 16, 2023 10:28
@abonie
Copy link
Member Author

abonie commented May 16, 2023

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@0101
Copy link
Contributor

0101 commented May 16, 2023

Could we maybe add some test?

@abonie
Copy link
Member Author

abonie commented May 16, 2023

@0101 I have been looking into that today, actually not clear how to test this, but I will look some more

@T-Gro
Copy link
Member

T-Gro commented May 17, 2023

Take a look at fsharp\tests\FSharp.Compiler.ComponentTests\Scripting\Interactive.fs for inspiration - would it reproduce there?

@abonie abonie force-pushed the print_pointer_error_fix branch from 2d14f3f to e12abb1 Compare May 18, 2023 16:08
abonie added 2 commits May 18, 2023 18:09
Special-case for System.Reflection.Pointer
Modifies test framework to add stdout to `runFsi`
@abonie abonie force-pushed the print_pointer_error_fix branch from e12abb1 to 4ed7e48 Compare May 18, 2023 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Exception raised during pretty printing

5 participants