ionide / ionide-vscode-fsharp

VS Code plugin for F# development
http://ionide.io
MIT License
865 stars 279 forks source link

Error on cracking projects and load code lense #1799

Closed JohnnyFasching closed 2 years ago

JohnnyFasching commented 2 years ago

Describe the bug

Code lens and auto complete not working when loading F# projects

Failed to build xxx.fsproj: Object reference not set to an instance of an object.
   at ProjectCracker.parseProjectAssets(FileInfo projectAssetsJson) in /Users/george/Documents/fsharp-language-server/src/ProjectCracker/ProjectCracker.fs:line 197
   at ProjectCracker.crack(FileInfo fsproj) in /Users/george/Documents/fsharp-language-server/src/ProjectCracker/ProjectCracker.fs:line 559

xxx.fsproj: 
  ProjectFileName: "xxx"
  SourceFiles: [||]
  ReferencedProjects: []
  OtherOptions: [|"--noframework"|]
  LoadTime: 27/10/2022 09:31:23
  ExtraProjectInfo: <null>
  IsIncompleteTypeCheckEnvironment: false
  OriginalLoadReferences: []
  ExtraProjectInfo: <null>
  Stamp: <null>
  UnresolvedReferences: <null>
  UseScriptResolutionRules: false

Failed to create code lens because project options failed to load: [{ range = { start = { line = 0
                       character = 0 }
             end = { line = 0
                     character = 1 } }
   severity = Some Error
   code = None
   source = None
   message =
            "No .fsproj or .fsx file references c:\xxx\xxx.fs" }]

Machine info

TheAngryByrd commented 2 years ago

👋 Hey there. That error is for another project over at https://github.com/fsprojects/fsharp-language-server.