syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.67k stars 4.89k forks source link

Having issues running csharp layer #16612

Open Vanderscycle opened 4 days ago

Vanderscycle commented 4 days ago

Description :octocat:

Csharp layer not functioning properly

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: unable to start the omnisharp server :( I get the answer omnisharp: server has been terminated I have omnisharp installed

Expected behaviour: :heart: :smile: the omnisharp server starts and I am able to have intellisense

System Info :computer:

Backtrace :paw_prints:

Warning (emacs): csharp-mode is part of Emacs as of Emacs 29 - please delete this package.

Other

I really enjoy spacemacs btw

alexey0308 commented 4 days ago

hi @Vanderscycle, have you checked the buffer with the lsp stderr and the lsp-log?

Vanderscycle commented 3 days ago

Hmmm... seems that nixos is getting on my way again

Omnisharp logs

[10:29:41] starting server on project root "/home/henri/Documents/-reponame-"
[10:29:41] Using server binary on /home/henri/.emacs.d/.cache/omnisharp/server/v1.37.13/run
[10:29:41] <-- Received an unknown server packet: ((ServerMessageParseError . "The server sent an unknown json message. Inspect the omnisharp-server process buffer to view recent messages from the server. Set `omnisharp-debug' to t and inspect the *omnisharp-debug* buffer for this error specifically.") (Message . "Could not start dynamically linked executable: /home/henri/.emacs.d/.cache/omnisharp/server/v1.37.13/bin/mono"))
[10:29:41] <-- Received an unknown server packet: ((ServerMessageParseError . "The server sent an unknown json message. Inspect the omnisharp-server process buffer to view recent messages from the server. Set `omnisharp-debug' to t and inspect the *omnisharp-debug* buffer for this error specifically.") (Message . "NixOS cannot run dynamically linked executables intended for generic"))
[10:29:41] <-- Received an unknown server packet: ((ServerMessageParseError . "The server sent an unknown json message. Inspect the omnisharp-server process buffer to view recent messages from the server. Set `omnisharp-debug' to t and inspect the *omnisharp-debug* buffer for this error specifically.") (Message . "linux environments out of the box. For more information, see:"))
[10:29:41] <-- Received an unknown server packet: ((ServerMessageParseError . "The server sent an unknown json message. Inspect the omnisharp-server process buffer to view recent messages from the server. Set `omnisharp-debug' to t and inspect the *omnisharp-debug* buffer for this error specifically.") (Message . "https://nix.dev/permalink/stub-ld"))

lsp-logs


OmniSharp.MSBuild.ProjectManager: Loading project: /home/henri/Documents/houseOperto/nova/src/Common.Tests/Common.Tests.csproj | 
OmniSharp.MSBuild.ProjectLoader: Package AWSSDK.S3, version 3.7.404.3 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. | 
OmniSharp.MSBuild.ProjectManager: Failed to load project file '/home/henri/Documents/houseOperto/nova/src/Common.Tests/Common.Tests.csproj'. | 
OmniSharp.Extensions.LanguageServer.Server.LspServerOutputFilter: Tried to send request or notification before initialization was completed and will be sent later OutgoingNotification { Method = o#/msbuildprojectdiagnostics, Params = {
  "FileName": "/home/henri/Documents/houseOperto/nova/src/Common.Tests/Common.Tests.csproj",
  "Warnings": [],
  "Errors": [
    {
      "LogLevel": "Error",
      "FileName": "/nix/store/xbnpbibdqy8rivl28g613nh9vlpq0jrg-dotnet-sdk-8.0.401/sdk/8.0.401/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets",
      "Text": "Package AWSSDK.S3, version 3.7.404.3 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.",
      "StartLine": 266,
      "StartColumn": 5,
      "EndLine": 0,
      "EndColumn": 0
    }
  ]
}, TraceParent = , TraceState =  } | @Request='OutgoingNotification { Method = o#/msbuildprojectdiagnostics, Params = {
  "FileName": "/home/henri/Documents/houseOperto/nova/src/Common.Tests/Common.Tests.csproj",
  "Warnings": [],
  "Errors": [
    {
      "LogLevel": "Error",
      "FileName": "/nix/store/xbnpbibdqy8rivl28g613nh9vlpq0jrg-dotnet-sdk-8.0.401/sdk/8.0.401/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets",
      "Text": "Package AWSSDK.S3, version 3.7.404.3 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.",
      "StartLine": 266,
      "StartColumn": 5,
      "EndLine": 0,
      "EndColumn": 0
    }
  ]
}, TraceParent = , TraceState =  }'