microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.13k stars 29.27k forks source link

Omisharp fails to load : System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0 #201048

Closed BilalTN closed 10 months ago

BilalTN commented 10 months ago

Type: Bug

With .Net framework solution omnisharp fails to load with this error :

OmniSharp server started. Path: c:\Users\XXXXX.vscode\extensions\ms-dotnettools.csharp-2.14.8-win32-x64.omnisharp\1.39.10\OmniSharp.exe PID: 908

    Starting OmniSharp on Windows 6.2.9200.0 (x64)
    Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
    Using the 'dotnet' on the PATH.
    DotNetPath set to dotnet
    Located 1 MSBuild instance(s)
        1: Visual Studio Enterprise 2022 17.8.34322.80 17.8.3 - "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin"
    Registered MSBuild instance: Visual Studio Enterprise 2022 17.8.34322.80 17.8.3 - "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin"

[STDERR] System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. Le fichier spécifié est introuvable. File name: 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr typeInstArgs, Int32 typeInstCount, IntPtr methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)

VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz (4 x 2594)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software| |Load (avg)|undefined| |Memory (System)|16.00GB (6.06GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (73) Extension|Author (truncated)|Version ---|---|--- calculate|aca|2.1.0 vscode-sql-formatter|adp|1.4.4 jslint|ajh|1.2.1 Bookmarks|ale|13.4.2 orclapex-autocomplete|apn|0.0.3 devmate|Aut|1.0.1 sqlformatter|bre|0.0.7 polymer-snippets|chi|1.0.1 vscode-sql-beautify|cla|0.3.23 codealignment-vscode|cpm|2.0.19 csharpier-vscode|csh|1.5.1 meld-diff|dan|1.4.1 vscode-eslint|dba|2.4.2 githistory|don|0.6.20 xml|Dot|2.5.1 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|14.6.1 vsc-material-theme|Equ|34.3.1 vsc-material-theme-icons|equ|3.3.1 prettier-vscode|esb|10.1.0 fakesharper|fak|1.0.0 vscode-solution-explorer|fer|0.8.5 dotnet-test-explorer|for|0.7.8 gitlab-workflow|Git|3.93.1 gc-excelviewer|Gra|4.2.58 sqltools-oracle-driver|hur|0.1.14 compareit|in4|0.0.2 vscode-react-typescript|inf|1.3.1 vscode-edit-csv|jan|0.8.3 webcomponent-generator|jer|1.1.0 shortcut-menu-bar|jer|3.0.4 svg|joc|1.5.3 language-polymer|jon|1.1.0 roslynator|jos|4.7.0 compare-helper|kee|1.1.1 select-highlight-minimap|mde|0.1.0 rainbow-csv|mec|3.9.0 git-graph|mhu|1.30.0 file-downloader|min|1.0.13 vscode-oracle-format|mp|0.1.5 vscode-devskim|MS-|1.0.27 csharp|ms-|2.14.8 vscode-dotnet-runtime|ms-|2.0.0 vscode-kubernetes-tools|ms-|1.3.15 powershell|ms-|2023.8.0 vscode-typescript-next|ms-|5.4.20231215 vscode-react-native|msj|1.12.2 sqltools|mtx|0.28.1 vscode-json-editor|nic|0.3.0 svg-font-previewer|nko|2.1.4 oracledevtools|Ora|21.7.1 vscode-react-refactor|pla|1.1.3 polymer-ide|pol|0.6.0 resxpress|Pra|5.6.0 vscode-xml|red|0.26.1 vscode-yaml|red|1.14.0 csharp-snippet-productivity|ric|1.3.0 LiveServer|rit|5.7.9 inline-math|Ros|0.0.11 partial-diff|ryu|1.4.3 mathpad|sag|0.0.2 aspnet-helper|sch|0.6.4 markdown-preview-enhanced|shd|0.8.11 sonarlint-vscode|Son|4.1.0 rewrap|stk|1.16.3 vscode-styled-components|sty|1.7.8 helm-intellisense|Tim|0.14.3 errorlens|use|3.15.0 flashpost|VAS|1.1.49 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.2.30 plsql-language|xyz|1.8.2 markdown-all-in-one|yzh|3.5.1
vscodenpa commented 10 months ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!