rome / tools

Unified developer tools for JavaScript, TypeScript, and the web
https://docs.rome.tools/
MIT License
23.75k stars 660 forks source link

🐛 RangeError: Port should be >= 0 and < 65536. `VSCode` #3933

Closed hyoretsu closed 1 year ago

hyoretsu commented 1 year ago

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

├─12046136ms INFO rome_lsp::server Starting Rome Language Server...
├─12057532ms INFO rome_lsp::server Starting Rome Language Server...

What happened?

When I stay too much time in a workspace with Rome (in this case, hibernated my PC) or close it and come back again, I receive the following error:

Rome client: couldn't create connection to server.
RangeError: Port should be >= 0 and < 65536. Received .

Expected result

It shouldn't throw that error.

Code of Conduct

leops commented 1 year ago

This should have been fixed with #3957, or at least the extension should now print a more detailed error report for what went wrong