Workspace initialization isn't working correctly
After adding --state-directory FSAC is back online!
However, there're a few problems for the session:
- It doesn't resolve symbols across files.
- IncrementalBuild_TypeCheck does not enumerate all files, only some
- Files are typechecked with ProjectId=Null
Here's the trace for my session: trace.log
Environment: neovim, coc-fsharp
I just implemented fsharp/workspacePeek and fsharp/workspaceLoad support for coc-fsharp, and the initialization problem persists.
If I disable semantic highlighting:
- IncrementalBuild_TypeCheck enumerates all files
- Can go to
open moduledirectives. - Still cannot resolve symbols across files, 0 References.
- Files are typechecked with ProjectId=Null
- Deleting symbolCache does not work around
This is happening to me too yatli. zero refs when it's clear there are some.
@Krzysztof-Cieslak @baronfel @cannorin @kjnilsson
Sorry to tag spam you guys here, but I've been fighting this for quite a while, like.. a couple of months Ive really given it my all, and I have had absolutely no luck.
no matter what I do my workspace and projects will not get recognized, and this breaks all codelens stuff but also goto definition across files..
anyone have any ideas?
what SDK version(s) are you on? Are you using the graph MSBuild mode?
Thank you so much for responding, @baronfel !!
I don't know how to use the graph mode, or really what that entails.
I've purged all my sdk's except for what comes installed with VS 2019 and 2022 preview which are 5.0.412 and 7.0.100-rc.1.22431.12
it seems to be that the SDK has a problem finding the system.runtime, but I'm not sure how that works, or how i would point it in the right direction.
Here is what I get in the lsp log, which i tried to format a little for more readability, hope that helps a little! lol.
[START][2022-09-22 10:01:10] LSP logging initiated
[WARN][2022-09-22 10:01:10] ...lsp\handlers.lua:113
"The language server copilot triggers a registerCapability handler despite dynamicRegistration set to false.
Report upstream, this warning is harmless"
[ERROR][2022-09-22 10:01:20] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD"
"stderr" '[10:01:20.957 INF] [LSP] Initialize Request
{
"ProcessId": {
"Value": 24048,
"$type": "Some"
},
"ClientInfo": {
"Value": {
"Name": "Neovim",
"Version": {
"Value": "0.8.0",
"$type": "Some"
},
"$type": "ClientInfo"
},
"$type": "Some"
},
"RootPath": {
"Value": "C:\\\\Users\\\\Will.ehrendreich\\\\source\\\\repos\\\\Intellidraft\\\\Intellidraft",
"$type": "Some"
},
"RootUri": {
"Value": "file:///C:/Users/Will.ehrendreich/source/repos/Intellidraft/Intellidraft",
"$type": "Some"
},
"InitializationOptions": {
"Value": [
[
[]
]
],
"$type": "Some"
},
"Capabilities": {
"Value": {
"Workspace": {
"Value": {
"ApplyEdit": {
"Value": true,
"$type": "Some"
},
"WorkspaceEdit": {
"Value": {
"DocumentChanges": null,
"ResourceOperations": {
"Value": [
{
"$type": "Rename"
},
{
"$type": "Create"
},
{
"$type": "Delete"
}
],
"$type": "Some"
},
"FailureHandling": null,
"NormalizesLineEndings": null,
"ChangeAnnotationSupport": null,
"$type": "WorkspaceEditCapabilities"
},
"$type": "Some"
},
"DidChangeConfiguration": null,
"DidChangeWatchedFiles": null,
"Symbol": {
"Value": {
"DynamicRegistration": {
"Value": false,
"$type": "Some"
},
"SymbolKind": {
"Value": {
"ValueSet": {
"Value": null,
"$type": "Some"
},
"$type": "SymbolKindCapabilities"
},
"$type": "Some"
},
"$type": "SymbolCapabilities"
},
"$type": "Some"
},
"SemanticTokens": null,
"InlayHint": null,
"CodeLens": null,
"$type": "WorkspaceClientCapabilities"
},
"$type": "Some"
},
"TextDocument": {
"Value": {
"Synchronization": {
"Value": {
"DynamicRegistration": {
"Value": false,
"$type": "Some"
},
"WillSave": {
"Value": false,
"$type": "Some"
},
"WillSaveWaitUntil": {
"Value": false,
"$type": "Some"
},
"DidSave": {
"Value": true,
"$type": "Some"
},
"$type": "SynchronizationCapabilities"
},
"$type": "Some"
},
"PublishDiagnostics": {
"RelatedInformation": {
"Value": true,
"$type": "Some"
},
"TagSupport": {
"Value": {
"ValueSet": [
"Unnecessary",
"2"
],
"$type": "DiagnosticTagSupport"
},
"$type": "Some"
},
"$type": "PublishDiagnosticsCapabilities"
},
"Completion": {
"Value": {
"DynamicRegistration": {
"Value": false,
"$type": "Some"
},
"CompletionItem": {
"Value": {
"SnippetSupport": {
"Value": null,
"$type": "Some"
},
"CommitCharactersSupport": {
"Value": null,
"$type": "Some"
},
"DocumentationFormat": {
"Value": null,
"$type": "Some"
},
"$type": "CompletionItemCapabilities"
},
"$type": "Some"
},
"CompletionItemKind": {
"Value": {
"ValueSet": {
"Value": null,
"$type": "Some"
},
"$type": "CompletionItemKindCapabilities"
},
"$type": "Some"
},
"ContextSupport": {
"Value": false,
"$type": "Some"
},
"$type": "CompletionCapabilities"
},
"$type": "Some"
},
"Hover": {
"Value": {
"DynamicRegistration": {
"Value": false,
"$type": "Some"
},
"ContentFormat": {
"Value": [
"markdown",
"plaintext"
],
"$type": "Some"
},
"$type": "HoverCapabilities"
},
"$type": "Some"
},
"SignatureHelp": {
"Value": {
"DynamicRegistration": {
"Value": false,
"$type": "Some"
},
"SignatureInformation": {
"Value": {
"DocumentationFormat": {
"Value": null,
"$type": "Some"
},
"$type": "SignatureInformationCapabilities"
},
"$type": "Some"
},
"$type": "SignatureHelpCapabilities"
},
"$type": "Some"
},
"References": {
"Value": {
"DynamicRegistration": {
"Value": false,
"$type": "Some"
},
"$type": "DynamicCapabilities"
},
"$type": "Some"
},
"DocumentHighlight": {
"Value": {
"DynamicRegistration": {
"Value": false,
"$type": "Some"
},
"$type": "DynamicCapabilities"
},
"$type": "Some"
},
"DocumentSymbol": {
"Value": {
"DynamicRegistration": {
"Value": false,
"$type": "Some"
},
"SymbolKind": {
"Value": {
"ValueSet": {
"Value": null,
"$type": "Some"
},
"$type": "SymbolKindCapabilities"
},
"$type": "Some"
},
"HierarchicalDocumentSymbolSupport": {
"Value": true,
"$type": "Some"
},
"$type": "DocumentSymbolCapabilities"
},
"$type": "Some"
},
"Formatting": null,
"RangeFormatting": null,
"OnTypeFormatting": null,
"Definition": {
"Value": {
"DynamicRegistration": null,
"$type": "DynamicCapabilities"
},
"$type": "Some"
},
"CodeAction": {
"Value": {
"DynamicRegistration": {
"Value": false,
"$type": "Some"
},
"CodeActionLiteralSupport": {
"Value": {
"CodeActionKind": {
"ValueSet": null,
"$type": "CodeActionClientCapabilityLiteralSupportCodeActionKind"
},
"$type": "CodeActionClientCapabilityLiteralSupport"
},
"$type": "Some"
},
"IsPreferredSupport": {
"Value": true,
"$type": "Some"
},
"DisabledSupport": null,
"DataSupport": {
"Value": true,
"$type": "Some"
},
"ResolveSupport": {
"Value": {
"Properties": [
null
],
"$type": "CodeActionClientCapabilityResolveSupport"
},
"$type": "Some"
},
"HonorsChangeAnnotations": null,
"$type": "CodeActionClientCapabilities"
},
"$type": "Some"
},
"CodeLens": null,
"DocumentLink": null,
"Rename": {
"Value": {
"DynamicRegistration": {
"Value": false,
"$type": "Some"
},
"PrepareSupport": {
"Value": true,
"$type": "Some"
},
"HonorsChangeAnnotations": null,
"$type": "RenameClientCapabilities"
},
"$type": "Some"
},
"FoldingRange": null,
"SelectionRange": null,
"SemanticTokens": null,
"InlayHint": null,
"$type": "TextDocumentClientCapabilities"
},
"$type": "Some"
},
"Experimental": null,
"$type": "ClientCapabilities"
},
"$type": "Some"
},
"trace": {
"Value": "off",
"$type": "Some"
},
"WorkspaceFolders": {
"Value": [
{
"Uri": "file:///C:/Users/Will.ehrendreich/source/repos/Intellidraft/Intellidraft",
"Name": "C:/Users/Will.ehrendreich/source/repos/Intellidraft/Intellidraft",
"$type": "WorkspaceFolder"
}
],
"$type": "Some"
},
"$type": "InitializeParams"
}
\r\n'
[ERROR][2022-09-22 10:01:21] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
"[10:01:21.008 INF] [Analyzers] Analyzers disabled\r\n"
[ERROR][2022-09-22 10:01:21] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
"[10:01:21.192 INF] [CheckerEvents]
Script typecheck dependencies changed, purging expired script options\r\n"
[ERROR][2022-09-22 10:01:21] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
"[10:01:21.192 INF] [CheckerEvents]
Script typecheck dependencies changed, purged 0 expired script options\r\n"
[ERROR][2022-09-22 10:01:21] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
"'[10:01:21.263 INF] [LSP]
Choosing from interesting items [
{
"Item": {
"Directory": "C:\\\\Users\\\\Will.ehrendreich\\\\source\\\\repos\\\\Intellidraft\\\\Intellidraft",
"Fsprojs": [
"C:\\\\Users\\\\Will.ehrendreich\\\\source\\\\repos\\\\Intellidraft\\\\Intellidraft\\\\Intellidraft.fsproj"
],
"$type": "WorkspacePeekFoundDirectory"
},
"$type": "Directory"
}
]\r\n'"
[ERROR][2022-09-22 10:01:21] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
"[10:01:21.266 INF] [Commands]
Workspace loading started
'[\"C:\\\\Users\\\\Will.ehrendreich\\\\source\\\\repos\\\\Intellidraft\\\\Intellidraft\\\\Intellidraft.fsproj\"]'\r\n"
[ERROR][2022-09-22 10:01:21] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
"[10:01:21.286 INF] [LSP] Initialized request\r\n"
[ERROR][2022-09-22 10:01:21] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr" "[10:01:21.318 INF] [LSP]
TextDocumentDidOpen Request: c:\\Users\\Will.ehrendreich\\source\\repos\\Intellidraft\\Intellidraft\\RoundTankHeads.fs\r\n"
[ERROR][2022-09-22 10:01:21] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
"'[10:01:21.371 INF] [LSP]
Workspace Notify {"finished": false, "$type": "WorkspaceLoad"}\r\n'"
[ERROR][2022-09-22 10:01:21] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
'[10:01:21.390 INF] [LSP] Workspace Notify
{"projectFileName":
"C:\\\\Users\\\\Will.ehrendreich\\\\source\\\\repos\\\\Intellidraft\\\\Intellidraft\\\\Intellidraft.fsproj", "$type": "ProjectLoading"}\r\n'
[ERROR][2022-09-22 10:01:22] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
"[10:01:22.676 INF] [LSP]
Workspace Notify
{
"projectFileName": "C://Users//Will.ehrendreich//source//repos//Intellidraft//Intellidraft//Intellidraft.fsproj",
"errorDetails": {
"projFile": "C://Users//Will.ehrendreich//source//repos//Intellidraft//Intellidraft//Intellidraft.fsproj",
"Item2":
"SDK Resolver Failure: The SDK resolver Microsoft.DotNet.MSBuildWorkloadSdkResolver
failed while attempting to resolve the SDK Microsoft.NET.Sdk.
Exception: System.IO.FileNotFoundException: Could not load file or assembly
'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
The system cannot find the file specified.File name:
'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.WorkloadSdkResolver.Resolve
(SdkReference sdkReference,
SdkResolverContext resolverContext,
SdkResultFactory factory)
at Microsoft.Build.BackEnd.SdkResolution.SdkResolverService.TryResolveSdkUsingSpecifiedResolvers
(IList`1 resolvers,
Int32 submissionId,
SdkReference sdk,
LoggingContext loggingContext,
ElementLocation sdkReferenceLocation,
String solutionPath,
String projectPath,
Boolean interactive,
Boolean isRunningInVisualStudio,
SdkResult& sdkResult)
C: //Users//Will.ehrendreich//source//repos//Intellidraft//Intellidraft//Intellidraft.fsproj",
"$type": "GenericError"},
"$type": "ProjectError"}
[ERROR][2022-09-22 10:01:22] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
"[10:01:22.683 INF] [LSP]
Workspace Notify
{"finished": true, "$type": "WorkspaceLoad"}
\r\n'"
[ERROR][2022-09-22 10:01:22] ...\vim\lsp\rpc.lua:734 "rpc"
"C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr"
"[10:01:22.685 INF] [Commands]
Workspace loading finished\r\n"
So part of your problem might be because we don't support 7.0.100 yet, and we dropped support for running on 5.0 a long while ago. I would suggest using a 6.0 stable SDK for now, until we release 7.0 support.
@WillEhrendreich 0.57.2 (just released) supports 7.0.1xx SDKs (including prereleases). Can you update to it and try again? Note that the 5.0 SDK and runtime is out of support from Microsoft, and the maintainers here on this repo certainly aren't going to be support it either.
hey, I can try that too, for sure, though i got the sdk portion of it working correctly by throwing a global.json in the dir with the my sln pointing to a stable 6 version..
now, for some reason, I cannot get diagnostics at all or signature type info in codelenses and refs to work with regular fs files.. BUT fsx actually works .. though sometimes i have to do :call fsharp#initialize()
very confusing..
OK, I updated to fsautocomplete v 57.2, and i got rid of the global.json, its rolling forward to sdk v 7.0.100-rc.1.22431.12
Here's the complaint I'm getting within lsp.log
[ERROR][2022-09-25 13:22:17] ...\vim\lsp\rpc.lua:734 "rpc" "C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD" "stderr" "[13:22:17.513 INF] [Checker] ParseAndCheckFileInProject - \"c:\\Users\\Will.ehrendreich\\source\\repos\\Intellidraft\\Intellidraft\\Main.fs\" completed with errors: [{\"Range\": {\"File\": \"unknown\", \"Start\": {\"Line\": 0, \"Column\": 0, \"$type\": \"Pos\"}, \"End\": {\"Line\": 0, \"Column\": 0, \"$type\": \"Pos\"}, \"$type\": \"Rng\"}, \"Severity\": {\"$type\": \"Error\"}, \"Message\": \"internal error: One or more errors occurred. (Assembly: The system type 'System.Array' was required but no referenced system DLL contained this type, full path: System.Array)\", \"Subcategory\": \"parameter\", \"ErrorNumber\": 193, \"ErrorNumberPrefix\": \"FS\", \"ErrorNumberText\": \"FS0193\", \"Start\": {\"Line\": 0, \"Column\": 0, \"$type\": \"Pos\"}, \"End\": {\"Line\": 0, \"Column\": 0, \"$type\": \"Pos\"}, \"StartLine\": 0, \"EndLine\": 0, \"StartColumn\": 0, \"EndColumn\": 0, \"FileName\": \"unknown\", \"$type\": \"FSharpDiagnostic\"}]\r\n[13:22:17.513 INF] [LSP] PositionHandler - Cached typecheck results not yet available for c:\\Users\\Will.ehrendreich\\source\\repos\\Intellidraft\\Intellidraft\\\Main.fs\r\n"
yeah, Jimmy and I have been seeing this off and on as well (though not new in 0.57.2). It seems to be related to (at least in my case) the project system loading the rc2 bits. I'm digging into this right now, actually.
I don't know what the rc2 bits are, but God bless you for looking into it. haha. this is stopping me from being able to use both Neovim AND VSCode for fsharp dev effectively.
For whatever reason codelens now is not remaining unresolved, it resolves to whatever it can guess might be there, but it's not giving types correctly.
If diagnostics get initiated, which takes a very long time to show if it does actually happen, then it red-squiggles literally everything that isn't in the immediate file, including system stuff like linq, nevermind what's supposed to be referenced in the proj files or in the sln in general.
also, in the lsp log I'm no longer getting the complaint about system.array, so.. perhaps it's something you did? or something to do with the sdk's ?
It's all voodoo, I tell you, voodoo.
Anyway, I really appreciate the fact that you're taking time to help the community out, you're likely unbelievably busy and you're maintaining this because you actually care about the tooling for everyone and that means a lot.
ok I discovered something fishy,
my app is targeting net48,
and when the project is being loaded, it gives this error: {the heading text for emphasis.. }
[ERROR][2022-09-27 13:56:14] ...\vim\lsp\rpc.lua:734
"rpc" "C:/.local/share/nvim-data/mason/bin/fsautocomplete.CMD"
"stderr"
"[13:56:14.421 INF] [LSP] Workspace Notify
{\"projectFileName\":
\"C:/Users/Will.ehrendreich/source/repos/Intellidraft/Intellidraft/Intellidraft.fsproj\",
\"errorDetails\": {\"projFile\":
\"C:/Users/Will.ehrendreich/source/repos/Intellidraft/Intellidraft/Intellidraft.fsproj\",
\"Item2\": \"Build started.Project "Intellidraft.fsproj"
(_GenerateCompileDependencyCache;_ComputeNonExistentFileProperty;CoreCompile
target(s)):Target "_GenerateCompileDependencyCache" skipped, due to
false condition; ('$(DesignTimeBuild)' != 'true' and '$(BuildingProject)' ==
'true') was evaluated as ('true' != 'true' and 'false' == 'true').Target
"_ComputeNonExistentFileProperty" skipped, due to false condition;
(('$(BuildingInsideVisualStudio)' == 'true') and ('$(BuildingOutOfProcess)' !=
'true') and (('$(BuildingProject)' == 'false') or
('$(UseHostCompilerIfAvailable)' == 'true'))) was evaluated as (('' == 'true')
and ('' != 'true') and (('false' == 'false') or ('' == 'true'))).Target
"_ComputeNonExistentFileProperty" skipped, due to false condition;
(('$(BuildingInsideVisualStudio)' == 'true') and ('$(BuildingOutOfProcess)' !=
'true') and (('$(BuildingProject)' == 'false') or
('$(UseHostCompilerIfAvailable)' == 'true'))) was evaluated as (('' == 'true')
and ('' != 'true') and (('false' == 'false') or ('' == 'true'))).Target
"AdjustDefaultPlatformTargetForNetFrameworkExeWithNoNativeCopyLocalItems"
skipped, due to false condition; ('$(_UsingDefaultPlatformTarget)' == 'true'
and '$(_UsingDefaultRuntimeIdentifier)' == 'true')
was evaluated as ('true' == 'true' and '' ==
'true').Target "GenerateTargetPlatformDefineConstants" skipped, due
to false condition; ( '$(DisableImplicitFrameworkDefines)' != 'true' and
'$(TargetPlatformIdentifier)' != '' and '$(TargetFrameworkIdentifier)' ==
'.NETCoreApp' and
$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), 5.0)) ) was
evaluated as ( '' != 'true' and 'Windows' != '' and 'Unsupported' ==
'.NETCoreApp' and False ).Target
"GenerateNETCompatibleDefineConstants" skipped, due to false condition; (
'$(DisableImplicitFrameworkDefines)' != 'true' and
('$(TargetFrameworkIdentifier)' == '.NETCoreApp' or
'$(TargetFrameworkIdentifier)' == '.NETFramework' or
'$(TargetFrameworkIdentifier)' == '.NETStandard')) was evaluated as ( '' !=
'true' and ('Unsupported' == '.NETCoreApp' or 'Unsupported' == '.NETFramework'
or 'Unsupported' == '.NETStandard')).Target
"GeneratePlatformCompatibleDefineConstants" skipped, due to false
condition; ( '$(DisableImplicitFrameworkDefines)' != 'true' and
'$(TargetPlatformIdentifier)' != '' and '$(TargetFrameworkIdentifier)' ==
'.NETCoreApp' and
$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), 5.0)) ) was
evaluated as ( '' != 'true' and 'Windows' != '' and 'Unsupported' ==
'.NETCoreApp' and False ).Target "AddImplicitDefineConstants" in
file "C:/Program
Files/dotnet/sdk/7.0.100-rc.1.22431.12/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.BeforeCommon.targets"
from project
"C:/Users/Will.ehrendreich/source/repos/Intellidraft/Intellidraft/Intellidraft.fsproj"
(target "CoreCompile" depends on it):Done building target
"AddImplicitDefineConstants" in project
"Intellidraft.fsproj".Target "_SetPathMapFromSourceRoots"
skipped, due to false condition; ('$(DeterministicSourcePaths)' == 'true') was
evaluated as ('' == 'true').Target "CheckForDuplicateItems" in file
"C:/Program
Files/dotnet/sdk/7.0.100-rc.1.22431.12/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets"
from project
"C:/Users/Will.ehrendreich/source/repos/Intellidraft/Intellidraft/Intellidraft.fsproj"
(target "CoreCompile" depends on it):Using
"CheckForDuplicateItems" task from assembly "C:/Program
Files/dotnet/sdk/7.0.100-rc.1.22431.12/Sdks/Microsoft.NET.Sdk/targets/../tools/net7.0/Microsoft.NET.Build.Tasks.dll".Task
"CheckForDuplicateItems"Done executing task
"CheckForDuplicateItems".Task
"CheckForDuplicateItems"Done executing task
"CheckForDuplicateItems".Task
"CheckForDuplicateItems"Done executing task
"CheckForDuplicateItems".Done building target
"CheckForDuplicateItems" in project
"Intellidraft.fsproj".Target
"_CheckForUnsupportedTargetFramework" in file "C:/Program
Files/dotnet/sdk/7.0.100-rc.1.22431.12/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets"
from project
"C:/Users/Will.ehrendreich/source/repos/Intellidraft/Intellidraft/Intellidraft.fsproj"
(target "GetFrameworkPaths" depends on it):Using
"NETSdkError" task from assembly "C:/Program
Files/dotnet/sdk/7.0.100-rc.1.22431.12/Sdks/Microsoft.NET.Sdk/targets/../tools/net7.0/Microsoft.NET.Build.Tasks.dll".Task
"NETSdkError"
The TargetFramework value 'v4.8' was not recognized.
It may be misspelled. If not, then the TargetFrameworkIdentifier and/or
TargetFrameworkVersion properties must be specified explicitly.Done
executing task "NETSdkError"
-- FAILED.Done building target
"_CheckForUnsupportedTargetFramework" in project
"Intellidraft.fsproj" -- FAILED.Done building project
"Intellidraft.fsproj" -- FAILED.Build FAILED.\", \"$type\":
\"GenericError\"}, \"$type\": \"ProjectError\"}\r\n"
My .fsproj file has
<TargetFramework>net48</TargetFramework>
nowhere in any of my project files is the string "v4.8"
except..
ok.. nevermind.. i had a bad hint path trying to go to system.dynamic that DID have "v4.8" in it. ..
Well.. now im back to having it.. properly.. freeze up and freak out based on the system.Array reference issue that is going on.
Why was it succeeding building the code lenses (at least within the same file while the project had a bad hintpath), but now that it's cleared up, typehecking and diagnostics fails entirely, but it "succesfully" loads all the projects?
Well, it's certainly coming from when Service_ParseAndCheckFileInProject is being called.
I'm going to leave that log just in case it helps.. who knows.
uninstalled vs2022 preview, and therefore got rid of all 7 Sdk's. That has gotten rid of the issue where complains about system.array, however, it's treating every one of my .fs files like they're fsproj.. it actually just seems to be throwing .fsproj on the end and calling it a project file .. unlike how @yatli was getting null for the projectid, im getting myFilename.fs.fsproj which of course cannot reference anything else because it's not a proj file.
here's an example from a cleaned up log.
'[09:24:40.474 INF] [Compiler] Started Service_ParseAndCheckFileInProject: c:/Users/Will.ehrendreich/source/repos/Intellidraft/Intellidraft/Main.fs_ProjectId=c:/Users/Will.ehrendreich/source/repos/Intellidraft/Intellidraft/Main.fs.fsproj '
THAT is only for my .netframework 4.8 solution
for my .net6 project, it works better, through repeatedly suggesting it reload workspace, i can get it to recognize other things existing, but I do get the projectid = null thing at first.
hope any of this ends up helping.