-
Notifications
You must be signed in to change notification settings - Fork 153
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
ReferencedProjects empty OtherOptions #326
Comments
if the
if we run FSAC in .NET, than .NET is installed, so is safe to use it. Probably is better to use the real path found by FSAC euristic, not just
yes, seems the load of the project failed. so should fail in FSAC too. like this is a false positive |
@enricosada any idea what’s happening here? Is that a problem in dotnet-proj-info? |
Closing. the msbuild used now is always the latest, not the one in PATH and will work if is not in PATH |
Moving from ionide/ionide-vscode-fsharp#924 (comment) to make it easier to troubleshoot:
Finally time to debug this a bit (holidays). I set up a debug version of FsAutoComplete and printed the project options in full for a working version of my code, and then a non working version, and diffed the output.
When the issue occurs, it appears that the FSharpProjectOptions that FsAutoComplete provides is not populating the 'OtherOptions' field.
On a working project this field should contain the framework references and some other info for FSC:
On a project that causes the error on this issue, we get this instead:
I think commands should recompile projects on the fly (then cache them) that have missing references, something like this:
It also seems that this might need updating to use
dotnet msbuild
instead ofmsbuild
:@enricosada am I on the right track here, I am trying to use:
Dotnet.ProjInfo.Inspect.getProjectInfo
with the above msbuildPath, but it returns a strange error that suggests something with path concatenation is going odd:I will keep trying to debug this soon. My next step is to update the version of dotnet-proj-info that is used in FsAutoComplete (currently its 0.11.0 I think).
The text was updated successfully, but these errors were encountered: