-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
dotnet fsi crashes with long lines #82
Comments
Actually, it appears to be readline-related. The better workaround, now, seems to be to add this line to one's
I'd argue that with a workaround this simple, it is a good idea to add this as a default configuration. If agreed, I'm happy to raise a PR for the change. |
Additional complications here: ionide/FsAutoComplete#1210 In short, FSAC sends these parameters (from Some conversation in the linked issue will likely have implications on what Ionide-vim does. |
I will be raising a PR for FSAC soon. That will have knock-on implications for Ionide-vim. I'll create a congruent PR here as well. In brief, the plan is to have two parameters which replace and obsolete the current |
I have raised the PR for FSAC and have tested a local change for Ionide-vim to align with that. PR: ionide/FsAutoComplete#1299 With this, the existing
We need to append everything from both of those to the |
@cannorin , would you like me to raise a PR for the changes to support this now, or would you prefer to wait for the release of FSAC that has these changes? I'm happy to follow your preference. |
@greggyb As I understand it, there is no good workaround right now since passing |
All right. I'll sit on the PR until then. In the meantime, if anyone is having issues with this, an easy workaround for the current version of both FSAC and Ionide-vim is to have the following two lines in your .vimrc or init.vim:
This is because, right now and in the near-to-mid-term future, FSAC does nothing about the interpreter. They want to enhance it to manage a hosted interpreter in the future. For now, and even after the PR for FSAC lands into a release, the interactive options will be ignored. You can identify shared vs interactive-only commands here: https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options |
FSAC dropped a patch release with this change that is live now. I'll raise a PR for this. There are three parameters that will eventually become two:
Users should use ( I intend to
|
Implements ionide#82
Removing the default for `fsi_extra_parameters` causes an error when concatenating command line args for the interpreter. Wrap in a conditional check for existence. Add a warning message to migrate to the new parameters Implements ionide#82
@greggyb Thank you! |
Describe the bug
Bug is reported on the fsharp repo. Crosslinking here for visibility and also a workaround.
If you have the
dotnet fsi
terminal open in multiple windows in vim, it seems to behave as if it is the widest one. In the short term, to work around this bug, I am launching my fsi window, then I am opening a new tab:tabnew
and in that new tab, switching to the fsi terminal buffer. That gives the terminal maximum width. Then I:tabn
back to my "real" work, where I have 2 vertical splits, one for each of my source file and my fsi terminal.I don't know if it's worth baking such a workaround into ionide-vim, especially if they fix the interpreter quickly. But I think the workaround is worth sharing here.
If you would prefer not to have this hanging out as an issue, feel free to close it. If desired, I can write a PR for README only that describes this behavior.
The text was updated successfully, but these errors were encountered: