ionide / ionide-vscode-fsharp

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

Getting message "Could not find 'dotnet'" after installation the Ionide plugin for VSCode #1949

Open DmitryVil opened 1 year ago

DmitryVil commented 1 year ago

Describe the bug

Impossible to run any .fsx file because of Ionide error appears

Steps to reproduce

  1. Install .NET 6.0 SDK (v6.0.415) - Windows x64 Installer! by link: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.415-windows-x64-installer
  2. Install plugin Ionide for F# version v7.15.0 for VSCODE
  3. Open any f# file with the extension .fsx
  4. Try to run this file

Expected behavior

Possibility to run .fsx files in VSCode

Screenshots

image

Machine info

baronfel commented 1 year ago

If you open the VSCode developer tools (there's a command for this in the command palette) and scroll to the top, some of the first details should be about how we locate dotnet and the matching FSAC binary. Here's what this looks like for me:

image

For you I would expect to have more logging about probing for dotnet and stuff. Can you provide this?

DmitryVil commented 1 year ago

log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-dotnettools.dotnet-interactive-vscode' wants API proposal 'languageConfigurationAutoClosingPairs' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension 'github.copilot-chat' wants API proposal 'terminalContextMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. log.ts:441 ERR Extension 'ms-vscode.remote-server' appears in product.json but enables LESS API proposals than the extension wants. package.json (LOSES): resolvers, tunnelFactory product.json (WINS): resolvers, tunnels, contribViewsWelcome log.ts:421 INFO [Ionide.Ionide-fsharp]: Command fsharp.explorer.renameFile already registered by Ionide for F# (Ionide.Ionide-fsharp) console.ts:137 [Extension Host] Looking for parseable documents... log.ts:421 INFO [perf] Render performance baseline is 136ms log.ts:441 ERR [Extension Host] (node:23464) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use Code --trace-deprecation ... to show where the warning was created) console.ts:137 [Extension Host] (node:23464) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use Code --trace-deprecation ... to show where the warning was created) $ @ console.ts:137 console.ts:137 [Extension Host] Found no documents notificationsAlerts.ts:42 Could not find 'dotnet' c @ notificationsAlerts.ts:42 console.ts:137 [Extension Host] Initializing tunnel extension TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.fsharp. Old grammar file: file:///c%3A/Users/Dmitry/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/fsharp/syntaxes/fsharp.tmLanguage.json. New grammar file: file:///c%3A/Users/Dmitry/.vscode/extensions/ionide.ionide-fsharp-7.15.0/syntaxes/fsharp.json register @ TMScopeRegistry.ts:46 TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.yaml. Old grammar file: file:///c%3A/Users/Dmitry/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json. New grammar file: file:///c%3A/Users/Dmitry/.vscode/extensions/redhat.vscode-yaml-1.14.0/syntaxes/yaml.tmLanguage.json register @ TMScopeRegistry.ts:46 TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.fsharp. Old grammar file: file:///c%3A/Users/Dmitry/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/fsharp/syntaxes/fsharp.tmLanguage.json. New grammar file: file:///c%3A/Users/Dmitry/.vscode/extensions/ionide.ionide-fsharp-7.15.0/syntaxes/fsharp.json register @ TMScopeRegistry.ts:46 TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.yaml. Old grammar file: file:///c%3A/Users/Dmitry/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json. New grammar file: file:///c%3A/Users/Dmitry/.vscode/extensions/redhat.vscode-yaml-1.14.0/syntaxes/yaml.tmLanguage.json register @ TMScopeRegistry.ts:46 log.ts:441 ERR [Extension Host] [LanguageService] Error starting F# language server: %% Error: Could not find 'dotnet' at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Core\LanguageService.js:996:23 at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Core\LanguageService.js:995:60 at v.n (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:6205) at v.m (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:6168) at v.l (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:5625) console.ts:137 [Extension Host] [LanguageService] Error starting F# language server: % Error: Could not find 'dotnet' at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Core\LanguageService.js:996:23 at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Core\LanguageService.js:995:60 at v.n (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:6205) at v.m (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:6168) at v.l (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:5625) $ @ console.ts:137 log.ts:441 ERR [Extension Host] [Main] Error activating FSAC: Error: Could not find 'dotnet' console.ts:137 [Extension Host] [Main] Error activating FSAC: Error: Could not find 'dotnet' $ @ console.ts:137 console.ts:137 [Extension Host] [Main] Activating features console.ts:137 [Extension Host] [LineLensRenderer-LineLens] Activating console.ts:137 [Extension Host] [LineLensRenderer-LineLens] Config Changed event console.ts:137 [Extension Host] [LineLensRenderer-LineLens] Installing console.ts:137 [Extension Host] [LineLensRenderer-LineLens] Installed console.ts:137 [Extension Host] [Debugger] registering debug provider console.ts:137 [Extension Host] [GitIgnore] gitignore path: c:\Users\Dmitry\Documents\F# coding\Beginning.gitignore console.ts:137 [Extension Host] [GitIgnore] Error accessing gitignore file Error: ENOENT: no such file or directory, open 'c:\Users\Dmitry\Documents\F# coding\Beginning.gitignore' at Object.openSync (node:fs:603:3) at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:1869) at Object.readFileSync (node:fs:471:35) at Object.t.readFileSync (node:electron/js2c/asar_bundle:2:9212) at checkGitignore (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Gitignore.js:54:51) at generator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Gitignore.js:79:28) at Object.then (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\Fable.Promise.3.2.0\Promise.fs.js:173:24) at hr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\Fable.Promise.3.2.0\Promise.fs.js:208:14) at checkForPatternsAndPromptUser (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Gitignore.js:78:12) at activationFn (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Gitignore.js:156:9) at tryActivate (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fsharp.js:67:20) at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fsharp.js:160:9 at v.n (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:6205) at v.m (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:6168) at v.l (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:5625) { errno: -4058, syscall: 'open', code: 'ENOENT', path: 'c:\Users\Dmitry\Documents\F# coding\Beginning\.gitignore' } console.ts:137 [Extension Host] [LineLensRenderer-PipelineHints] Activating console.ts:137 [Extension Host] [LineLensRenderer-PipelineHints] Config Changed event console.ts:137 [Extension Host] [LineLensRenderer-PipelineHints] Installing console.ts:137 [Extension Host] [LineLensRenderer-PipelineHints] Installed console.ts:137 [Extension Host] [TestExplorer] Extension Storage c:\Users\Dmitry\AppData\Roaming\Code\User\workspaceStorage\812cc409453d3fe0f1b43ff86901aefc\Ionide.Ionide-fsharp console.ts:137 [Extension Host] [InlayHints] Activating F# inlay hints log.ts:441 ERR [Extension Host] [Main] Error loading projects: TypeError: Cannot read properties of null (reading 'Found') console.ts:137 [Extension Host] [Main] Error loading projects: TypeError: Cannot read properties of null (reading 'Found') $ @ console.ts:137 log.ts:441 ERR source: Error: source at Operators_NullArg (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\FSharp.Core.js:39:11) at Sr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:302:9) at openf (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:27) at Enumerator_generateWhileSome (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:213:22) at wr.f (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:354:24) at wr.GetEnumerator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:53:18) at c (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:85:18) at Sr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:310:12) at openf (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:27) at Enumerator_generateWhileSome (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:213:22) at wr.f (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:354:24) at wr.GetEnumerator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:53:18) at c (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:85:18) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:189:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at compute (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:377:36) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:251:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at compute (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:48) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:251:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at Object.from (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:94:32) at Function.from () at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Fsi.js:292:27 at H.provideInlayHints (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:56138) localProcessExtensionHost.ts:281 Extension Host localProcessExtensionHost.ts:282 [Main] Activating features [LineLensRenderer-LineLens] Config Changed event [LineLensRenderer-LineLens] Installing [LineLensRenderer-LineLens] Installed [GitIgnore] gitignore path: c:\Users\Dmitry\Documents\F# coding\Beginning.gitignore [GitIgnore] Error accessing gitignore file Error: ENOENT: no such file or directory, open 'c:\Users\Dmitry\Documents\F# coding\Beginning.gitignore' at Object.openSync (node:fs:603:3) at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:1869) at Object.readFileSync (node:fs:471:35) at Object.t.readFileSync (node:electron/js2c/asar_bundle:2:9212) at checkGitignore (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Gitignore.js:54:51) at generator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Gitignore.js:79:28) at Object.then (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\Fable.Promise.3.2.0\Promise.fs.js:173:24) at hr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\Fable.Promise.3.2.0\Promise.fs.js:208:14) at checkForPatternsAndPromptUser (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Gitignore.js:78:12) at activationFn (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Gitignore.js:156:9) at tryActivate (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fsharp.js:67:20) at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fsharp.js:160:9 at v.n (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:6205) at v.m (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:6168) at v.l (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:5625) { errno: -4058, syscall: 'open', code: 'ENOENT', path: 'c:\Users\Dmitry\Documents\F# coding\Beginning\.gitignore' } [LineLensRenderer-PipelineHints] Config Changed event [LineLensRenderer-PipelineHints] Installing [LineLensRenderer-PipelineHints] Installed [TestExplorer] Extension Storage c:\Users\Dmitry\AppData\Roaming\Code\User\workspaceStorage\812cc409453d3fe0f1b43ff86901aefc\Ionide.Ionide-fsharp

log.ts:441 ERR source: Error: source at Operators_NullArg (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\FSharp.Core.js:39:11) at Sr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:302:9) at openf (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:27) at Enumerator_generateWhileSome (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:213:22) at wr.f (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:354:24) at wr.GetEnumerator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:53:18) at c (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:85:18) at Sr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:310:12) at openf (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:27) at Enumerator_generateWhileSome (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:213:22) at wr.f (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:354:24) at wr.GetEnumerator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:53:18) at c (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:85:18) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:189:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at compute (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:377:36) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:251:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at compute (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:48) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:251:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at Object.from (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:94:32) at Function.from () at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Fsi.js:292:27 at H.provideInlayHints (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:56138) 2notificationsAlerts.ts:42 Could not find 'dotnet' c @ notificationsAlerts.ts:42 notificationsAlerts.ts:40 Error: Could not find 'dotnet' at n.h (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:84630) c @ notificationsAlerts.ts:40 webviewElement.ts:512 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing. mountTo @ webviewElement.ts:512 log.ts:441 ERR source: Error: source at Operators_NullArg (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\FSharp.Core.js:39:11) at Sr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:302:9) at openf (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:27) at Enumerator_generateWhileSome (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:213:22) at wr.f (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:354:24) at wr.GetEnumerator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:53:18) at c (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:85:18) at Sr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:310:12) at openf (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:27) at Enumerator_generateWhileSome (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:213:22) at wr.f (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:354:24) at wr.GetEnumerator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:53:18) at c (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:85:18) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:189:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at compute (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:377:36) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:251:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at compute (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:48) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:251:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at Object.from (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:94:32) at Function.from () at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Fsi.js:292:27 at H.provideInlayHints (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:56138) log.ts:431 WARN Settings pattern "application.*" doesn't match any settings log.ts:441 ERR source: Error: source at Operators_NullArg (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\FSharp.Core.js:39:11) at Sr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:302:9) at openf (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:27) at Enumerator_generateWhileSome (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:213:22) at wr.f (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:354:24) at wr.GetEnumerator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:53:18) at c (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:85:18) at Sr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:310:12) at openf (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:27) at Enumerator_generateWhileSome (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:213:22) at wr.f (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:354:24) at wr.GetEnumerator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:53:18) at c (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:85:18) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:189:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at compute (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:377:36) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:251:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at compute (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:48) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:251:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at Object.from (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:94:32) at Function.from () at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Fsi.js:292:27 at H.provideInlayHints (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:56138) log.ts:441 ERR source: Error: source at Operators_NullArg (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\FSharp.Core.js:39:11) at Sr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:302:9) at openf (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:27) at Enumerator_generateWhileSome (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:213:22) at wr.f (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:354:24) at wr.GetEnumerator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:53:18) at c (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:85:18) at Sr (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:310:12) at openf (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:27) at Enumerator_generateWhileSome (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:213:22) at wr.f (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:354:24) at wr.GetEnumerator (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:53:18) at c (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:85:18) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:189:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at compute (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:377:36) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:251:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at compute (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:842:48) at br.next (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:251:32) at br.System.Collections.IEnumerator.MoveNext (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Seq.js:85:18) at Object.from (c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\fable_modules\fable-library.4.2.2\Util.js:94:32) at Function.from () at c:\Users\Dmitry.vscode\extensions\ionide.ionide-fsharp-7.15.0\webpack:\out\Components\Fsi.js:292:27 at H.provideInlayHints (c:\Users\Dmitry\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:56138)

baronfel commented 1 year ago

@DmitryVil can you click the 'more details' button in the error pop up and provide the content it shows?

DmitryVil commented 1 year ago

@baronfel, Sorry, I don't see 'more details' button. Where it is located?

baronfel commented 1 year ago

In the screenshot you uploaded to this issue it's the blue button on the bottom-right of the pop-up. Do you still see that on your local VSCode notifications?

DmitryVil commented 1 year ago

Please: cannot open C:%5CUsers%5CDmitry%5CAppData%5CLocal%5CTemp%5Cionide_dotnet_not_found_details_3429882319.md. Detail: Unable to resolve resource C:%5CUsers%5CDmitry%5CAppData%5CLocal%5CTemp%5Cionide_dotnet_not_found_details_3429882319.md

baronfel commented 1 year ago

If you fix the slashes, does that path exist and have data?

DmitryVil commented 1 year ago

@baronfel, yes, it exists and contains data:

Could not find dotnet in the path.

Consider:

baronfel commented 1 year ago

And you do in fact have dotnet installed an on your PATH? You can open a terminal and successfully run dotnet --info?

DmitryVil commented 1 year ago

yes: C:\Users\Dmitry>dotnet --info .NET SDK: Version: 7.0.402 Commit: 791db8e2d8

Runtime Environment: OS Name: Windows OS Version: 10.0.22621 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\7.0.402\

Host: Version: 7.0.12 Architecture: x64 Commit: 4a824ef37c

.NET SDKs installed: 2.1.200 [C:\Program Files\dotnet\sdk] 6.0.415 [C:\Program Files\dotnet\sdk] 7.0.400 [C:\Program Files\dotnet\sdk] 7.0.402 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 6.0.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.21 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.23 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables: Not set

global.json file: Not found

Learn more: https://aka.ms/dotnet/info

Download .NET: https://aka.ms/dotnet/download

baronfel commented 1 year ago

do you have FSharp.dotnetRoot set anywhere in your config? if so you should remove it, because you have an otherwise-correct dotnet install.

DmitryVil commented 1 year ago

@baronfel, I didn't set any config especially. It is a default-like installation. How I can check if FSharp.dotnetRoot exists anywhere?

MangelMaxime commented 1 year ago

@DmitryVil

You check by looking in your VSCode preference.

  1. Ctrl+P > Open Setting (UI)
  2. Search for dotnetroot
  3. If you have (Modifier ...) it means you have it set at the indicated place

Example:

CleanShot 2023-10-19 at 22 24 25@2x

DmitryVil commented 1 year ago
image

@baronfel, @MangelMaxime, I have only default values. Nothing has been changed. Looks like a bug

baronfel commented 1 year ago

You seeing this error means you've hit this code path.

This Environment.tryGetTool call calls cmd /C where dotnet to try and discover dotnet binaries on your PATH. Here's an example of the output for me:

>cmd /C where dotnet
C:\Program Files\dotnet\dotnet.exe
C:\Program Files (x86)\dotnet\dotnet.exe

The code then takes the first entry and uses it for the path to dotnet. Can you see what the outputs of this call are for you?

DmitryVil commented 1 year ago

@baronfel, @MangelMaxime

image
MangelMaxime commented 11 months ago

Not sure why, I received an notification for this issue.

In any case, @DmitryVil do you still have this problem?

Also, did you run the where dotnet command from inside VSCode or an external terminal?