Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

🐛 "Rome client: couldn't create connection to server" error when starting VSCode with Rome extension installed #3920

Closed
1 task done
mcmxcdev opened this issue Dec 2, 2022 · 0 comments · Fixed by #3957
Labels
S-To triage Status: user report of a possible bug that needs to be triaged

Comments

@mcmxcdev
Copy link

mcmxcdev commented Dec 2, 2022

Environment information

CLI:
  Version:              10.0.1
  Color support:        true

Platform:
  CPU Architecture:     x86_64
  OS:                   linux

Environment:
  ROME_LOG_DIR:         unset
  NO_COLOR:             unset
  TERM:                 "xterm-256color"

Rome Configuration:
  Status:               loaded
  Formatter disabled:   false
  Linter disabled:      false

Workspace:
  Open Documents:       0

Discovering running Rome servers...

Running Rome Server: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

ℹ The client isn't connected to any server but rage discovered this running Rome server.

Server:
  Version:              10.0.1
  Name:                 rome_lsp
  CPU Architecture:     x86_64
  OS:                   linux

Workspace:
  Open Documents:       0

Rome Server Log:

⚠ Please review the content of the log file before sharing it publicly as it may contain sensitive information:
  * Path names that may reveal your name, a project name, or the name of your employer.
  * Source code

What happened?

It randomly happens that the VSCode extension runs into the following error:

[Error - 12:19:39 PM] Rome client: couldn't create connection to server.
RangeError: Port should be >= 0 and < 65536. Received .
	at new NodeError (node:internal/errors:371:5)
	at validatePort (node:internal/validators:217:11)
	at lookupAndConnect (node:net:1013:5)
	at Socket.connect (node:net:989:5)
	at connect (node:net:203:17)
	at createMessageTransports (/home/markus/.vscode/extensions/rome.rome-0.18.1-linux-x64/out/main.js:18289:41)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async LanguageClient2.createConnection (/home/markus/.vscode/extensions/rome.rome-0.18.1-linux-x64/out/main.js:15294:28)
	at async LanguageClient2.start (/home/markus/.vscode/extensions/rome.rome-0.18.1-linux-x64/out/main.js:14892:30)

Expected result

Rome client doesn't crash

Code of Conduct

  • I agree to follow Rome's Code of Conduct
@mcmxcdev mcmxcdev added the S-To triage Status: user report of a possible bug that needs to be triaged label Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S-To triage Status: user report of a possible bug that needs to be triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant