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

False errors appear in source file after editing it #342

Closed
skalinets opened this issue Jan 20, 2017 · 8 comments
Closed

False errors appear in source file after editing it #342

skalinets opened this issue Jan 20, 2017 · 8 comments
Labels
bug language services Problems related to language services - FSAC or FCS

Comments

@skalinets
Copy link

skalinets commented Jan 20, 2017

After editing of fs file it gets highlighted with errors, but still compiles.

Steps

  1. Open vscode.
  2. Create new expecto project using Ionide, build it
  3. Open Tests.fs
    • Note that no errors are highlighted
  4. Change open Expecto to open Expect
    • Errors appear (as expected)
  5. Revert your change.
    • Errors are still there. Autocompletion is broken.

Screen

image

Logs

ionide-error.log.txt

Versions

VS CODE 1.8.1
Ionide-fsharp 2.19.5

@Krzysztof-Cieslak
Copy link
Member

[14:19:35 DEBUG] RES (002) <- {project} in 898 ms: Kind={"error"}
Data="Expecting element 'root' from namespace ''.. Encountered 'None'  with name '', namespace ''. "

Looks like there is some problem with fsproj file, can you post it too.

@skalinets
Copy link
Author

@skalinets
Copy link
Author

But the project was generated by Ionide / forge. I did not touch anything there.

@Krzysztof-Cieslak
Copy link
Member

Yeah, I can't see anything suspicious there.

In %USERPROFILE%\.vscode\extensions\Ionide.Ionide-fsharp-2.19.5\bin there should be FSharp.Compiler.Service.ProjectCrackerTool.exe

Try to run FSharp.Compiler.Service.ProjectCrackerTool.exe --text <path_to>/<my_project>.fsproj true

@Krzysztof-Cieslak Krzysztof-Cieslak added bug language services Problems related to language services - FSAC or FCS labels Jan 20, 2017
@skalinets
Copy link
Author

C:\Users\admin\.vscode\extensions\Ionide.Ionide-fsharp-2.19.5\bin> .\FSharp.Compiler.Service.ProjectCrackerTool.exe --text C:\Users\admin\work\fst\exptests\exptests.fsproj
{ProjectFile = "";
 Options = [||];
 ReferencedProjectOptions = [||];
 LogOutput = "At least two arguments required.";}
C:\Users\admin\.vscode\extensions\Ionide.Ionide-fsharp-2.19.5\bin> .\FSharp.Compiler.Service.ProjectCrackerTool.exe --text C:\Users\admin\work\fst\exptests\exptests.fsproj true

Process is terminated due to StackOverflowException.

@Krzysztof-Cieslak
Copy link
Member

You have VS2017 RC installed by any chance? I guess it's duplicate of #291

@skalinets
Copy link
Author

yes, I do have it installed.
Regarding duplicate -- #291 refers to fsharp/fsharp-compiler-docs#672 that in turn gets reproduced when project filename contains dots. Mine does not.

I just checked my VS2017 and it seems have new update 15.0.26014.0 --> 15.0.26020.0. Will give it a chance :)

@skalinets
Copy link
Author

OK, I uninstalled VS2017 and issue has gone. I think this issue can be closed as a duplicate of #291. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug language services Problems related to language services - FSAC or FCS
Projects
None yet
Development

No branches or pull requests

2 participants