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

Cant connect to server #31

Open
ajunx8 opened this issue Jan 24, 2025 · 0 comments
Open

Cant connect to server #31

ajunx8 opened this issue Jan 24, 2025 · 0 comments

Comments

@ajunx8
Copy link

ajunx8 commented Jan 24, 2025

RuboCop Output:

[client] Starting language server: bundle exec rubocop --lsp
[Info  - 13:15:33] Connection to server got closed. Server will restart.
[client] Language server initialization failed: Error: Pending response rejected since connection got disposed
[Error - 13:15:33] RuboCop client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 


Not sure why.


rubocop -V
1.69.2 (using Parser 3.3.6.0, rubocop-ast 1.37.0, analyzing as Ruby 3.3, running on ruby 3.3.1) +server [arm64-darwin23]
  - rubocop-rspec 3.3.0

Some Extension Logs:

2025-01-24 13:15:32.429 [info] ExtensionService#_doActivateExtension rubocop.vscode-rubocop, startup: true, activationEvent: 'workspaceContains:Gemfile.lock'
2025-01-24 13:15:32.500 [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
2025-01-24 13:15:32.532 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
2025-01-24 13:15:32.564 [info] ExtensionService#_doActivateExtension vscode.configuration-editing, startup: false, activationEvent: 'onLanguage:jsonc'
2025-01-24 13:15:32.570 [info] ExtensionService#_doActivateExtension vscode.json-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2025-01-24 13:15:32.595 [info] ExtensionService#_doActivateExtension vscode.typescript-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2025-01-24 13:15:32.703 [info] ExtensionService#_doActivateExtension Shopify.ruby-lsp, startup: true, activationEvent: 'workspaceContains:Gemfile.lock'
2025-01-24 13:15:34.767 [error] Error: Pending response rejected since connection got disposed
	at Object.dispose (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:29:4460)
	at Object.dispose (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:22316)
	at ud.handleConnectionClosed (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:12275)
	at ud.handleConnectionClosed (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:26537)
	at t (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:11956)
	at Ka.invoke (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:2:14330)
	at Jr.fire (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:2:15098)
	at Wt (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:3:6455)
	at Ka.invoke (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:2:14330)
	at Jr.fire (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:2:15098)
	at Ns.fireClose (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:2:17353)
	at Socket.<anonymous> (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:2:18883)
	at Socket.emit (node:events:530:35)
	at Pipe.<anonymous> (node:net:343:12)
2025-01-24 13:15:34.767 [error] Error: Client is not running and can't be stopped. It's current state is: starting
	at ud.shutdown (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:8615)
	at ud.stop (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:8194)
	at ud.stop (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:26147)
	at ud.doInitialize (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:7732)
	at async ud.start (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:4599)
	at async pd (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:41:5652)
	at async vT (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:41:7739)
	at async K0.n (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:4447)
	at async K0.m (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:4410)
	at async K0.l (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:3866)
2025-01-24 13:15:35.062 [error] Error: Client is not running and can't be stopped. It's current state is: starting
	at ud.shutdown (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:8615)
	at ud.stop (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:8194)
	at ud.stop (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:26147)
	at ud.doInitialize (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:7732)
	at async ud.start (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:4599)
2025-01-24 13:15:35.330 [error] Error: Client is not running and can't be stopped. It's current state is: starting
	at ud.shutdown (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:8615)
	at ud.stop (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:8194)
	at ud.stop (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:26147)
	at ud.doInitialize (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:7732)
	at async ud.start (/Users/username/.vscode/extensions/rubocop.vscode-rubocop-0.7.0/out/extension.js:39:4599)

I'm using rails too
I initially used rubymine IDE and wanted to test vscode and its features/extensions such as this one

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

1 participant