[Bug] dotnet build command incorrectly prepended with sudo on Windows
Resolved 💬 2 comments Opened Jan 17, 2026 by FingerlessGlov3s Closed Jan 17, 2026
Bug Description
When I'm developing a .NET application, when it does dotnet build command, sometimes it tries to run it with sudo. sudo isn't available on windows, and it's also not required to build a dotnet application, there's no requirement to elevate the command.
I'm a little confused to why it keeps doing this, but it's done this in different chat contexts, both with and without plugins enabled.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.9
- Feedback ID: 2b3121a8-600b-48c1-ae6d-6083774ee02f
Errors
[{"error":"Error: LSP server plugin:csharp-lsp:csharp-ls failed to start: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n at start (B:/~BUN/root/claude.exe:1639:22101)\n at async E (B:/~BUN/root/claude.exe:1639:24557)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T00:51:29.352Z"},{"error":"Error: LSP server plugin:lua-lsp:lua failed to start: ENOENT: no such file or directory, uv_spawn 'lua-language-server'\n at start (B:/~BUN/root/claude.exe:1639:22101)\n at async E (B:/~BUN/root/claude.exe:1639:24557)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T00:51:29.352Z"},{"error":"Error: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n at spawn (unknown)\n at spawn (node:child_process:679:35)\n at spawn (node:child_process:14:39)\n at start (B:/~BUN/root/claude.exe:1639:20642)\n at start (B:/~BUN/root/claude.exe:1639:22155)\n at E (B:/~BUN/root/claude.exe:1639:24557)\n at E (B:/~BUN/root/claude.exe:1639:25533)\n at L (B:/~BUN/root/claude.exe:1639:32337)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T00:51:29.352Z"},{"error":"Error: ENOENT: no such file or directory, uv_spawn 'lua-language-server'\n at spawn (unknown)\n at spawn (node:child_process:679:35)\n at spawn (node:child_process:14:39)\n at start (B:/~BUN/root/claude.exe:1639:20642)\n at start (B:/~BUN/root/claude.exe:1639:22155)\n at E (B:/~BUN/root/claude.exe:1639:24557)\n at E (B:/~BUN/root/claude.exe:1639:25533)\n at L (B:/~BUN/root/claude.exe:1639:32337)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T00:51:29.352Z"},{"error":"Error: Failed to start LSP server plugin:csharp-lsp:csharp-ls: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n at <anonymous> (B:/~BUN/root/claude.exe:1639:32360)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T00:51:29.352Z"},{"error":"Error: Failed to start LSP server plugin:lua-lsp:lua: ENOENT: no such file or directory, uv_spawn 'lua-language-server'\n at <anonymous> (B:/~BUN/root/claude.exe:1639:32360)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T00:51:29.352Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗