-
Notifications
You must be signed in to change notification settings - Fork 156
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
Malformed json being produced when doc comment has quotes. #62
Comments
Thanks for reporting. It seems the issue is due to the unescaped quotes |
Something is going wrong with the unicode "smart quotes" in the docstring: https://github.com/fsprojects/FSharp.Data.SqlClient/blob/master/src/SqlClient/SqlCommandProvider.fs#L68 Are you running on Windows? This works fine on Linux, so perhaps the default encoding is at fault. |
Yes this was on windows 8.1 machine I noticed it on. Is there something I can do to change the default encoding to see if that fixes it? |
There actually isn't a way without recompiling FsAutoComplete. If you could try setting the encoding to UTF8 that would be great. Just add |
Setting the console InputEncoding to UTF8 didn't fix it but when I tried setting the OutputEncoding to UTF8, that seems to work. |
This should be fixed by #70, although emacs fsharp-mode will need to be updated to use the new release. |
I keep getting a malformed json error with the following code snippet when I put the cursor at SqlCommandProvider. Once the error happens, fsharp-mode becomes useless as the status window is out of control. Not sure if this is an FsAutoComplete issue or a Newtonsoft issue as to which is outputting the malformed json so posting here until I can dig deeper.
from Messages buffer
from fsharp-complete buffer:
The text was updated successfully, but these errors were encountered: