New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add line inforamtion for fsi #300
Comments
I'm not exactly clear on what you're asking for, could you provide some more detail or an example of what the desired output would look like? I think I know what you want but I don't think appending |
If I send |
We won't go with. Since moving FSI to terminal integration we don't have any way to filter / control what's displayed in terminal. This means that any additional directive is adding lot of noise to output displayed in terminal (what's clearly visible in case of other directives we're automatically adding). Thanks for suggestion anyway! :-) |
@Krzysztof-Cieslak what's the issue here exactly? It's not clear from your (very old) comment. |
@Tyriar, F# interactive supports set of directives that can be sent to it to improve error reporting, especially in editor context - such as We currently do that only partially - sending What we’d need here is an API that would write text to Terminal process but this text wouldn’t be displayed in Terminal panel. I think we’ve discussed it on some other issue already and conclusion was that this is not really possible with current terminal architect (at least back when I asked similar question) |
@Tyriar, also to be clear - this is small quality-of-life thing, I don’t believe it is a huge problem for Ionide users. There is always someone who will complain about some small thing as if it was the “sever issue” that makes thing unusable |
@Krzysztof-Cieslak I have to strongly disagree that this isn't a severe issue. Not being able to see the line number in the stack trace makes debugging exceptions a nightmare. That would already be true working in a fully built program, and it's doubly complicated in REPL, since you aren't typically working with debugger already attached. |
@Krzysztof-Cieslak yeah I don't think this is possible by design of how terminals work in general isn't it? When you run As an aside, I'm currently working through an issue that would let you take much more control over this sort of thing by having the extension own the process (microsoft/vscode#70978, we're still figuring out exact naming and it's proposed atm). You would need to handle a lot more yourself if you did this though as you would own creating the process/pty (node-pty is not stable vscode API), but then they're your pipes to do with as you wish if you want to suppress output. This is the mechanism that live share uses to do terminal multiplexing (technically they're still on the previous terminal renderer proposal which is now deprecated in favor of virtual processes). |
With an additional
#line Selection.linePosition - 1
the error information in the fsi would be better readable.
see: compiler-directives
The text was updated successfully, but these errors were encountered: