Skip to content
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

Impossible to continue using F# Interactive (FSI) if you miss-escape a string #4802

Closed
abelbraaksma opened this issue Apr 29, 2018 · 3 comments

Comments

@abelbraaksma
Copy link
Contributor

abelbraaksma commented Apr 29, 2018

Try something like the following line in F# Interactive (System must be open):

 Uri.IsWellFormedUriString ("c:\", UriKind.Absolute);;

Repro steps

See above.

Expected behavior

Somehow being able to continue using F# Interactive, with Ctrl-C, or typing more ";;" or more enters.

Actual behavior

I didn't quite find a way to continue. This is probably expected behavior (the string is unfinished), but it would be nice to have a way to cancel your current input, whatever it is (one alternative is to reset the FSI, but that will loose your history and opens).

Known workarounds

Find a way to close the quote. In this case, once I realized the error after not understanding the blank lines I got after hitting enter, I typed the " (double quote char) and I got my console back.

@dsyme
Copy link
Contributor

dsyme commented May 1, 2018

You have to send-to-interactive just the " character.

I do agree this should be improved.

@abelbraaksma
Copy link
Contributor Author

Yes, but since there's no syntax highlighting, this is more baffling than it should be

@cartermp
Copy link
Contributor

This is actually a duplicate of #830, which is tagged as a bug. Let's try to re-tag that issue appropriately if we think of it as a bug or feature improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants