{{ message }}

# FSAC Runtime = netcore does not work with fsx#948

Closed
opened this issue Oct 20, 2018 · 20 comments
Closed

# FSAC Runtime = netcore does not work with fsx#948

opened this issue Oct 20, 2018 · 20 comments
Labels

### isaacabraham commented Oct 20, 2018

 Switching to netcore for FSAC Runtime (as suggested by Ionide) does not work - I get no intellisense, no tooltips etc.. F# Language Service says stuff like the following: [19:55:49 ERROR] Cannot execute lint, File 'c:\Users\Isaac\Source\Repos\fsharp-demo\FSharpDemo\Scripts\foo.fsx' not parsed [19:55:49 ERROR] Cannot execute unusedOpens, File 'c:\Users\Isaac\Source\Repos\fsharp-demo\FSharpDemo\Scripts\foo.fsx' not parsed [19:55:49 ERROR] Cannot execute unusedDeclarations, File 'c:\Users\Isaac\Source\Repos\fsharp-demo\FSharpDemo\Scripts\foo.fsx' not parsed [19:55:49 ERROR] Cannot execute simplifiedNames, File 'c:\Users\Isaac\Source\Repos\fsharp-demo\FSharpDemo\Scripts\foo.fsx' not parsed  Anything I need to do e.g. specific version of netcore? The text was updated successfully, but these errors were encountered:

### Krzysztof-Cieslak commented Oct 20, 2018

 Since I can see .fsx file - it's probably duplicate of #656. Please check, if it's working fine with any project, clearing cache / removing obj may be required

mentioned this issue Oct 22, 2018

### melston commented Oct 23, 2018

 I am having the same problem. What is meant by "clearing cache"? I tried removing the obj directory of my projects but that had no impact.

### dougferg commented Oct 24, 2018

 I tried clearing the cache (by pressing CTRL + SHIFT + P and then typing F#: Clear Cache) in VSCode . I've experienced the problem with old/new projects on different computers as well as new single file fsx files. Clearing the cache didn't affect anything.

### dburriss commented Nov 11, 2018

 Ran into this with fsx files. I ended up uninstalling VS Code and deleting %userprofile%\AppData\Roaming\Code and %userprofile%\.vscode I was experiencing this with net and netcore. Clear cache didnt help. 2 things that happened around the time it stopped working. I was switching between .net and core in the workspace settings and I updated VS.

### da9l commented Nov 12, 2018

 Uninstalling vscode per @dburriss suggestion worked well for me now. I decided to stay on "FSharp.fsacRuntime": "net" tho. I'm guessing that this problem maybe is related with #938 and #949.

### jannesiera commented Aug 9, 2019

 I've encountered a similar issue. While using an anonymous record in a dependency project, I was unable to put any breakpoints. Refactoring away from anon records fixed the issue. I couldn't figure out what was going on until I found the issue reported here.

### thomastay commented Aug 20, 2019 • edited

 I'm having the same issue with .NET core. I'm running on Linux (Ubuntu 18.04), Ionide 4.0.6 Repro steps: Create a fresh folder, create a main.fsx file Populate that fsx file with information. Open it in code Relevant logs in the Fsharp debug output: [LSP] Notify - Workspace (WorkspaceLoad true) [LSP call] TextDocumentDidOpen - workspace ready [LSP] Notify - Canceled (InfoRes "Request cancelled (exn was System.ComponentModel.Win32Exception (2): No such file or directory at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at Dotnet.ProjInfo.Workspace.Utils.runProcess(FSharpFunc2 log, String workingDir, String exePath, String args) at Dotnet.ProjInfo.Inspect.msbuild[a](MSBuildExePath msbuildExe, FSharpFunc2 run, String project, FSharpList1 args) at Dotnet.ProjInfo.Inspect.getProjectInfo[a,b,c](FSharpFunc2 log, FSharpFunc2 msbuildExec, FSharpFunc2 getArgs, FSharpList1 additionalArgs, String projPath) at Dotnet.ProjInfo.Workspace.NETFrameworkInfoProvider.getInstalledNETVersions(MSBuildExePath msbuildHost) at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue() at Dotnet.ProjInfo.Workspace.NetFWInfo.LatestVersion() at .\$CompilerServiceInterface.GetProjectOptionsFromScript@462.Invoke(Unit unitVar) in /Users/chris/Programming/ionide-vscode-fsharp/paket-files/github.com/fsharp/FsAutoComplete/src/FsAutoComplete.Core/CompilerServiceInterface.fs:line 462 at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation1 ctxt, TResult result1, FSharpFunc2 part2) at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc2 firstAction)) 

### thomastay commented Aug 20, 2019

 @enricosada how do I change my PATH to point to msbuild? I cannot open from VS command prompt as I'm running on linux. I don't even know where msbuild is on my linux box... is that the dotnet executable?

### markvincze commented Sep 18, 2019

 Hey @thomastay, I'm having the exact same issue, both with .net and .netcore, I'm on Windows 10. Have you found a solution for this since then? (If I open an actual project with an fsproj, then it works without any issues.)

### mastoj commented Dec 1, 2019

 I also struggle with netcore, but it does work when I changed it to net. Any idea of what I can do? How can I help debug this?

### baronfel commented Dec 1, 2019

 @mastoj did you set the useSdkScripts setting to true as well? And are you on .net core 3.0.100 at minimum?

### mastoj commented Dec 1, 2019

 @baronfel thanks, that solved it for me.

mentioned this issue Dec 8, 2019