turbo icon indicating copy to clipboard operation
turbo copied to clipboard

[Turborepo LSP] Fails to connect and start language server

Open brambora69123 opened this issue 10 months ago • 2 comments

Verify canary release

  • [x] I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

N/A

Which canary version will you have in your reproduction?

2.3.5-canary.2

Enviroment information

CLI:
   Version: 2.3.5-canary.2
   Path to executable: C:\projects\Nova\node_modules\turbo-windows-64\bin\turbo.exe
   Daemon status: Not running
   Package manager: bun

Platform:
   Architecture: x86_64
   Operating system: windows
   WSL: false
   Available memory (MB): 16923
   Available CPU cores: 16

Environment:
   CI: None
   Terminal (TERM): unknown
   Terminal program (TERM_PROGRAM): vscode
   Terminal program version (TERM_PROGRAM_VERSION): 1.96.4
   Shell (SHELL): unknown
   stdin: false

Expected behavior

it should work just fine

Actual behavior

it errors and in the log theres this:

[Info - 4:13:30 PM] root uri: C:\Users\Nicolas\AppData\Local\Temp\turbod\ef87d3d532a00fab\turbod.sock [Error - 4:13:32 PM] failed to connect to daemon: unable to connect to daemon after 3 retries [Error - 4:13:32 PM] Server initialization failed. Message: Internal error Code: -32603 [Error - 4:13:32 PM] Turborepo Language Server client: couldn't create connection to server. Message: Internal error Code: -32603 [Error - 4:13:32 PM] Restarting server failed Message: Internal error Code: -32603 [Error - 4:13:34 PM] Server process exited with code 1. [Error - 4:13:34 PM] The Turborepo Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

To Reproduce

  1. install the turborepo lsp extension
  2. attempt to use it

Additional context

No response

brambora69123 avatar Feb 01 '25 15:02 brambora69123

I encountered the same problem when I open my vscode, have there been any updates on this issue?

[Info  - 10:39:23] root uri: /var/folders/xx/1ml3j06s2d509wnbwnrdw09h0000gn/T/turbod/c22c8a96aace55d0/turbod.sock
[Error - 10:39:30] failed to connect to daemon: timeout while watching directory: deadline has elapsed
[Error - 10:39:30] Server initialization failed.
  Message: Internal error
  Code: -32603 
[Error - 10:39:30] Turborepo Language Server client: couldn't create connection to server.
  Message: Internal error
  Code: -32603 

PerryFinn avatar Mar 05 '25 02:03 PerryFinn

I just added Turborepo to my monorepo and encountered this when installing the VSCode extension. I am using a local installation of turbo.

ValentinGurkov avatar Mar 21 '25 09:03 ValentinGurkov