Skip to content
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

Having issues running csharp layer #16612

Open
Vanderscycle opened this issue Oct 8, 2024 · 2 comments
Open

Having issues running csharp layer #16612

Vanderscycle opened this issue Oct 8, 2024 · 2 comments

Comments

@Vanderscycle
Copy link

Vanderscycle commented Oct 8, 2024

Description :octocat:

Csharp layer not functioning properly

Reproduction guide 🪲

  • Start Emacs
  • open csharp file
  • start the omnisharp server

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

Expected behaviour: ❤️ 😄
the omnisharp server starts and I am able to have intellisense

System Info 💻

  • OS: nixos
  • Emacs: 29.4
  • Spacemacs: 0.999.0
  • Spacemacs branch: develop (rev. 2fce156)
  • Graphic display: t
  • Running in daemon: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(emacs-lisp helm
            (ibuffer :variables ibuffer-group-buffers-by 'projects)
            multiple-cursors
            (auto-completion :variables auto-completion-minimum-prefix-length 1 auto-completion-idle-delay 0.05 auto-completion-enable-snippets-in-popup t auto-completion-enable-help-tooltip t auto-completion-return-key-behavior 'complete spacemacs-default-company-backends
                             '(company-files company-capf))
            (erc :variables erc-server-list
                 '(("irc.libera.chat" :port "6697" :ssl t :nick "vancycles" :password "/run/current-system/sw/bin/gpg2")))
            (chinese :variables chinese-enable-fcitx t)
            spotify better-defaults version-control git
            (treemacs :variables treemacs-use-all-the-icons-theme t treemacs-use-git-mode 'deferred)
            markdown
            (org :variables org-enable-roam-protocol t org-enable-roam-ui t org-enable-roam-support t)
            (spell-checking :variables spell-checking-enable-by-default nil enable-flyspell-auto-completion t)
            (syntax-checking :variables syntax-checking-enable-by-default t)
            (shell-scripts :variables shell-scripts-format-on-save t)
            (shell :variables shell-default-height 30 shell-default-position 'bottom)
            prettier
            (nixos :variables nixos-format-on-save t)
            (lsp :variables lsp-lens-enable t lsp-enable-snippet t lsp-ui-doc-position 'at-point lsp-ui-doc-show-with-cursor t lsp-ui-doc-include-signature t)
            html react svelte node
            (sql :variables sql-capitalize-keywords t)
            ruby
            (java
             (java-backend . lsp))
            csharp kotlin
            (groovy :variables groovy-backend 'lsp)
            (javascript :variables node-add-modules-path t)
            (typescript :variables typescript-fmt-tool 'prettier typescript-linter 'eslint typescript-fmt-on-save t)
            (json :variables json-fmt-on-save t json-fmt-tool 'prettier)
            (yaml :variables yaml-enable-lsp t)
            toml
            (terraform :variables terraform-auto-format-on-save t)
            docker kubernetes
            (python :variables python-test-runner 'pytest python-formatter 'black python-format-on-save t python-sort-imports-on-save t)
            (go :variables go-tab-width 4 godoc-at-point-function 'godoc-gogetdoc go-format-before-save t go-use-golangci-lint t)
            themes-megapack emoji colors xkcd
            (unicode-fonts :variables unicode-fonts-enable-ligatures t))
  • System configuration features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB

Backtrace 🐾

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

####Other
I really enjoy spacemacs btw

@alexey0308
Copy link

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

@Vanderscycle
Copy link
Author

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 =  }'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants