ionide-vscode-fsharp
ionide-vscode-fsharp copied to clipboard
Ionide showing "Project not restored" in the bottom of a freshly started SAFE stack template
Ionide showing "Project not restored" in the bottom of a freshly started SAFE stack template. It seems like types are showing correctly. Also, I couldn't use (Ctrl + click)/Go To Definition on certain library functions like Bulma.hero
for example, should I open another bug for this?
Here's the latest logs in the F# output tab in case it's helpful:
[00:34:07.049 ERR] [LSP Server] HandleClientMessage - Error {"Code": -32601, "Message": "Method not found", "Data": null, "$type": "Error"} when handling notification {"Version": "2.0", "Method": "$/cancelRequest", "Params": {"Value": [[[]]], "$type": "Some"}, "$type": "Notification"}
[00:34:08.295 ERR] [LSP Server] HandleClientMessage - Error {"Code": -32601, "Message": "Method not found", "Data": null, "$type": "Error"} when handling notification {"Version": "2.0", "Method": "$/cancelRequest", "Params": {"Value": [[[]]], "$type": "Some"}, "$type": "Notification"}
[00:34:08.296 ERR] [LSP Server] HandleClientMessage - Error {"Code": -32601, "Message": "Method not found", "Data": null, "$type": "Error"} when handling notification {"Version": "2.0", "Method": "$/cancelRequest", "Params": {"Value": [[[]]], "$type": "Some"}, "$type": "Notification"}
[00:34:08.296 ERR] [LSP Server] HandleClientMessage - Error {"Code": -32601, "Message": "Method not found", "Data": null, "$type": "Error"} when handling notification {"Version": "2.0", "Method": "$/cancelRequest", "Params": {"Value": [[[]]], "$type": "Some"}, "$type": "Notification"}
[00:34:14.263 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [], "$type": "CodeActionContext"} at {"Start": {"Line": 29, "Character": 16, "DebuggerDisplay": "(29,16)", "$type": "Position"}, "End": {"Line": 29, "Character": 16, "DebuggerDisplay": "(29,16)", "$type": "Position"}, "DebuggerDisplay": "(29,16)-(29,16)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found"]
[00:34:14.264 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [], "$type": "CodeActionContext"} at {"Start": {"Line": 29, "Character": 16, "DebuggerDisplay": "(29,16)", "$type": "Position"}, "End": {"Line": 29, "Character": 16, "DebuggerDisplay": "(29,16)", "$type": "Position"}, "DebuggerDisplay": "(29,16)-(29,16)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found"]
[00:34:14.885 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [], "$type": "CodeActionContext"} at {"Start": {"Line": 29, "Character": 16, "DebuggerDisplay": "(29,16)", "$type": "Position"}, "End": {"Line": 29, "Character": 16, "DebuggerDisplay": "(29,16)", "$type": "Position"}, "DebuggerDisplay": "(29,16)-(29,16)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found"]
[00:35:09.902 WRN] [ParseAndCheckResults] Got a declresult of C:/projects/Fable.Remoting/Fable.Remoting.ClientV2/Remoting.fs (11,8--11,17) IsSynthetic=false that doesn't exist
[00:35:09.912 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [], "$type": "CodeActionContext"} at {"Start": {"Line": 0, "Character": 0, "DebuggerDisplay": "(0,0)", "$type": "Position"}, "End": {"Line": 0, "Character": 0, "DebuggerDisplay": "(0,0)", "$type": "Position"}, "DebuggerDisplay": "(0,0)-(0,0)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found", "Couldn't find symbolUse at (1, 6) in file c:/Users/sharno/projects/mockingbird/src/Client/Index.fs"]
[Error - 12:35:09 AM] Request textDocument/definition failed.
Message: NoInformation
Code: -32603
[00:35:10.063 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [], "$type": "CodeActionContext"} at {"Start": {"Line": 29, "Character": 16, "DebuggerDisplay": "(29,16)", "$type": "Position"}, "End": {"Line": 29, "Character": 16, "DebuggerDisplay": "(29,16)", "$type": "Position"}, "DebuggerDisplay": "(29,16)-(29,16)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found"]
[00:35:34.653 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [{"Range": {"Start": {"Line": 77, "Character": 43, "DebuggerDisplay": "(77,43)", "$type": "Position"}, "End": {"Line": 77, "Character": 74, "DebuggerDisplay": "(77,74)", "$type": "Position"}, "DebuggerDisplay": "(77,43)-(77,74)", "$type": "Range"}, "Severity": {"Value": "Information", "$type": "Some"}, "Code": {"Value": "FL0035", "$type": "Some"}, "CodeDescription": {"Value": {"Href": {"Value": "http://fsprojects.github.io/FSharpLint/how-tos/rules/FL0035.html", "$type": "Some"}, "$type": "CodeDescription"}, "$type": "Some"}, "Source": "F# Linter", "Message": "Lambda may be able to be replaced with composition. e.g. `fun x -> x |> isValid |> not` could be replaced with `isValid >> not`.", "RelatedInformation": null, "Tags": null, "Data": null, "DebuggerDisplay": "[Information] ((77,43)-(77,74)) Lambda may be able to be replaced with composition. e.g. `fun x -> x |> isValid |> not` could be replaced with `isValid >> not`. (FL0035)", "$type": "Diagnostic"}], "$type": "CodeActionContext"} at {"Start": {"Line": 77, "Character": 43, "DebuggerDisplay": "(77,43)", "$type": "Position"}, "End": {"Line": 77, "Character": 74, "DebuggerDisplay": "(77,74)", "$type": "Position"}, "DebuggerDisplay": "(77,43)-(77,74)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found", "Couldn't find symbolUse at (78, 46) in file c:/Users/sharno/projects/mockingbird/src/Client/Index.fs"]
[00:35:38.076 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [{"Range": {"Start": {"Line": 77, "Character": 43, "DebuggerDisplay": "(77,43)", "$type": "Position"}, "End": {"Line": 77, "Character": 74, "DebuggerDisplay": "(77,74)", "$type": "Position"}, "DebuggerDisplay": "(77,43)-(77,74)", "$type": "Range"}, "Severity": {"Value": "Information", "$type": "Some"}, "Code": {"Value": "FL0035", "$type": "Some"}, "CodeDescription": {"Value": {"Href": {"Value": "http://fsprojects.github.io/FSharpLint/how-tos/rules/FL0035.html", "$type": "Some"}, "$type": "CodeDescription"}, "$type": "Some"}, "Source": "F# Linter", "Message": "Lambda may be able to be replaced with composition. e.g. `fun x -> x |> isValid |> not` could be replaced with `isValid >> not`.", "RelatedInformation": null, "Tags": null, "Data": null, "DebuggerDisplay": "[Information] ((77,43)-(77,74)) Lambda may be able to be replaced with composition. e.g. `fun x -> x |> isValid |> not` could be replaced with `isValid >> not`. (FL0035)", "$type": "Diagnostic"}], "$type": "CodeActionContext"} at {"Start": {"Line": 77, "Character": 43, "DebuggerDisplay": "(77,43)", "$type": "Position"}, "End": {"Line": 77, "Character": 74, "DebuggerDisplay": "(77,74)", "$type": "Position"}, "DebuggerDisplay": "(77,43)-(77,74)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found", "Couldn't find symbolUse at (78, 46) in file c:/Users/sharno/projects/mockingbird/src/Client/Index.fs"]
[00:36:04.144 WRN] [ParseAndCheckResults] Got a declresult of C:/projects/Feliz/Feliz/Properties.fs (1056,25--1056,33) IsSynthetic=false that doesn't exist
[Error - 12:36:04 AM] Request textDocument/definition failed.
Message: NoInformation
Code: -32603
[00:36:13.613 WRN] [ParseAndCheckResults] Got a declresult of C:/Dzoukr/Personal/dzoukr/Feliz.Bulma/src/Feliz.Bulma/Bulma.fs (1,16--1,21) IsSynthetic=false that doesn't exist
[Error - 12:36:13 AM] Request textDocument/definition failed.
Message: NoInformation
Code: -32603
[00:36:16.463 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [], "$type": "CodeActionContext"} at {"Start": {"Line": 77, "Character": 40, "DebuggerDisplay": "(77,40)", "$type": "Position"}, "End": {"Line": 77, "Character": 40, "DebuggerDisplay": "(77,40)", "$type": "Position"}, "DebuggerDisplay": "(77,40)-(77,40)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found"]
[Error - 12:36:19 AM] Request textDocument/documentHighlight failed.
Message: No symbol information found
Code: -32603
[00:36:19.661 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [{"Range": {"Start": {"Line": 77, "Character": 43, "DebuggerDisplay": "(77,43)", "$type": "Position"}, "End": {"Line": 77, "Character": 74, "DebuggerDisplay": "(77,74)", "$type": "Position"}, "DebuggerDisplay": "(77,43)-(77,74)", "$type": "Range"}, "Severity": {"Value": "Information", "$type": "Some"}, "Code": {"Value": "FL0035", "$type": "Some"}, "CodeDescription": {"Value": {"Href": {"Value": "http://fsprojects.github.io/FSharpLint/how-tos/rules/FL0035.html", "$type": "Some"}, "$type": "CodeDescription"}, "$type": "Some"}, "Source": "F# Linter", "Message": "Lambda may be able to be replaced with composition. e.g. `fun x -> x |> isValid |> not` could be replaced with `isValid >> not`.", "RelatedInformation": null, "Tags": null, "Data": null, "DebuggerDisplay": "[Information] ((77,43)-(77,74)) Lambda may be able to be replaced with composition. e.g. `fun x -> x |> isValid |> not` could be replaced with `isValid >> not`. (FL0035)", "$type": "Diagnostic"}], "$type": "CodeActionContext"} at {"Start": {"Line": 77, "Character": 50, "DebuggerDisplay": "(77,50)", "$type": "Position"}, "End": {"Line": 77, "Character": 50, "DebuggerDisplay": "(77,50)", "$type": "Position"}, "DebuggerDisplay": "(77,50)-(77,50)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found", "Couldn't find symbolUse at (78, 51) in file c:/Users/sharno/projects/mockingbird/src/Client/Index.fs"]
[00:36:20.430 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [], "$type": "CodeActionContext"} at {"Start": {"Line": 81, "Character": 33, "DebuggerDisplay": "(81,33)", "$type": "Position"}, "End": {"Line": 81, "Character": 33, "DebuggerDisplay": "(81,33)", "$type": "Position"}, "DebuggerDisplay": "(81,33)-(81,33)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found", "Couldn't find long ident at (82,33) in file c:/Users/sharno/projects/mockingbird/src/Client/Index.fs"]
[00:36:26.897 ERR] [LSP Server] HandleClientMessage - Error {"Code": -32601, "Message": "Method not found", "Data": null, "$type": "Error"} when handling notification {"Version": "2.0", "Method": "$/cancelRequest", "Params": {"Value": [[[]]], "$type": "Some"}, "$type": "Notification"}
[00:36:26.898 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/App.fs with {"Diagnostics": [], "$type": "CodeActionContext"} at {"Start": {"Line": 18, "Character": 11, "DebuggerDisplay": "(18,11)", "$type": "Position"}, "End": {"Line": 18, "Character": 14, "DebuggerDisplay": "(18,14)", "$type": "Position"}, "DebuggerDisplay": "(18,11)-(18,14)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found"]
[00:36:28.250 ERR] [LSP Server] HandleClientMessage - Error {"Code": -32601, "Message": "Method not found", "Data": null, "$type": "Error"} when handling notification {"Version": "2.0", "Method": "$/cancelRequest", "Params": {"Value": [[[]]], "$type": "Some"}, "$type": "Notification"}
[00:36:28.261 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [], "$type": "CodeActionContext"} at {"Start": {"Line": 0, "Character": 0, "DebuggerDisplay": "(0,0)", "$type": "Position"}, "End": {"Line": 0, "Character": 0, "DebuggerDisplay": "(0,0)", "$type": "Position"}, "DebuggerDisplay": "(0,0)-(0,0)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found", "Couldn't find symbolUse at (1, 6) in file c:/Users/sharno/projects/mockingbird/src/Client/Index.fs"]
[00:36:28.474 WRN] [LSP] Errors while processing code action request for file:///c%3A/Users/sharno/projects/mockingbird/src/Client/Index.fs with {"Diagnostics": [], "$type": "CodeActionContext"} at {"Start": {"Line": 81, "Character": 33, "DebuggerDisplay": "(81,33)", "$type": "Position"}, "End": {"Line": 81, "Character": 33, "DebuggerDisplay": "(81,33)", "$type": "Position"}, "DebuggerDisplay": "(81,33)-(81,33)", "$type": "Range"}: ["No deref found at that pos", "no typeof expr found", "Couldn't find long ident at (82,33) in file c:/Users/sharno/projects/mockingbird/src/Client/Index.fs"]
Hey @sharno :wave:,
Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our OpenCollective and consider backing us.
https://opencollective.com/ionide
PS.: We offer
backer
support for all backers. Don't forget to addbacker
label when you start backing us :smile:
I get these types of errors, especially [LSP] Errors while processing code action request for file:///
for most of the larger projects I work with. It seems to me there is some kind of sensitivity in ionide to some unknown state a solution might end up in if it is (large|
I have reproduced the error in a repository with a default SAFE template installation. Please try to open this in your code environment and report if you can reproduce it. If you can't it's likely that a broken vscode/ionide/paket/sdk installation could cause this.
https://github.com/da9l/safeIonideBugRepro
btw, I'm a backer so please tag this issue with backer.
@sharno I'm thinking it would be appropriate to rename this issue since it is a more general problem. It's not only with the SAFE template one gets these problems.
Seems that https://github.com/ionide/ionide-vscode-fsharp/issues/1599 is a duplicate of this one. Though I have this error in every project, even hello world one.
@sharno I am not using SAFE stack template, but I always have the same issue whenever I install new or restore packages using paket and the "package references" folder seems empty. A quick fix of this is just run "dotnet restore" command in solution and all the projects getting restored and all packages just being populates in package references folder.
@sharno I am not using SAFE stack template, but I always have the same issue whenever I install new or restore packages using paket and the "package references" folder seems empty. A quick fix of this is just run "dotnet restore" command in solution and all the projects getting restored and all packages just being populates in package references folder. Please refer #1459.