tools
tools copied to clipboard
π VSCode extension keeps crashing
Environment information
CLI:
Version: 10.0.1
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
ROME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm-256color"
Rome Configuration:
Status: unset
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: aarch64
OS: macos
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
βrome_cli::commands::daemon::Running Server{pid=67152}
ββ48ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ57ms INFO rome_lsp::server Starting Rome Language Server...
ββ58ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ58ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
ββ59ms ERROR rome_service::configuration Could not find the file configuration at "/Users/joshpike/Projects/aquipa/rome.json"
ββ59ms ERROR rome_service::configuration Reason: Os { code: 2, kind: NotFound, message: "No such file or directory" }
βββrome_lsp::session::update_workspace_settings{}
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
βββrome_js_parser::parse::parse{file_id=FileId(1)}
βββ
ββ3895ms WARN tower_lsp::service::pending client asked to cancel request 1, but no such pending request exists, ignoring
ββ11558ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
ββ116548ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ116550ms INFO rome_lsp::server Starting Rome Language Server...
ββ116550ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ116550ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
ββ116550ms ERROR rome_service::configuration Could not find the file configuration at "/Users/joshpike/Projects/aquipa/rome.json"
ββ116550ms ERROR rome_service::configuration Reason: Os { code: 2, kind: NotFound, message: "No such file or directory" }
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
βββrome_lsp::session::update_workspace_settings{}
βββ
ββ128375ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
βrome_cli::commands::daemon::Running Server{pid=67418}
ββ50ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ189ms INFO rome_lsp::server Starting Rome Language Server...
ββ190ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ190ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
ββ190ms ERROR rome_service::configuration Could not find the file configuration at "/Users/joshpike/Projects/aquipa/rome.json"
ββ190ms ERROR rome_service::configuration Reason: Os { code: 2, kind: NotFound, message: "No such file or directory" }
βββrome_lsp::session::update_workspace_settings{}
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
ββ212ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
ββ3603ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
ββ3686ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ3687ms INFO rome_lsp::server Starting Rome Language Server...
ββ3688ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ3688ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
ββ3688ms ERROR rome_service::configuration Could not find the file configuration at "/Users/joshpike/Projects/aquipa/rome.json"
ββ3688ms ERROR rome_service::configuration Reason: Os { code: 2, kind: NotFound, message: "No such file or directory" }
βββrome_lsp::session::update_workspace_settings{}
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
ββ3784ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
ββ4410ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
ββ4471ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ4474ms INFO rome_lsp::server Starting Rome Language Server...
ββ4474ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ4474ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
ββ4474ms ERROR rome_service::configuration Could not find the file configuration at "/Users/joshpike/Projects/aquipa/rome.json"
ββ4474ms ERROR rome_service::configuration Reason: Os { code: 2, kind: NotFound, message: "No such file or directory" }
βββrome_lsp::session::update_workspace_settings{}
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
ββ4559ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
ββ7455ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
ββ7515ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ7518ms INFO rome_lsp::server Starting Rome Language Server...
ββ7518ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ7518ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
ββ7518ms ERROR rome_service::configuration Could not find the file configuration at "/Users/joshpike/Projects/aquipa/rome.json"
ββ7518ms ERROR rome_service::configuration Reason: Os { code: 2, kind: NotFound, message: "No such file or directory" }
βββrome_lsp::session::update_workspace_settings{}
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
ββ7588ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
ββ9120ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
ββ244338ms INFO rome_lsp::server Starting Rome Language Server...
ββ301405ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ301406ms INFO rome_lsp::server Starting Rome Language Server...
ββ301407ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ301407ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
βββrome_fs::fs::os::OsFile::read_to_string{}
βββ
ββ301407ms INFO rome_lsp::session Configuration found, and it is valid!
βββrome_lsp::session::update_workspace_settings{}
β βββrome_service::workspace::server::update_settings{params=UpdateSettingsParams { configuration: Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None } }}
β β βββrome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None }}
β β βββ
β βββ
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
ββ301746ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
βββrome_fs::fs::os::OsFile::read_to_string{}
βββ
ββ301746ms INFO rome_lsp::session Configuration found, and it is valid!
βββrome_lsp::session::update_workspace_settings{}
β βββrome_service::workspace::server::update_settings{params=UpdateSettingsParams { configuration: Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None } }}
β β βββrome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None }}
β β βββ
β βββ
βββ
ββ305618ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
βrome_cli::commands::daemon::Running Server{pid=67601}
ββ50ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ170ms INFO rome_lsp::server Starting Rome Language Server...
ββ171ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ171ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
βββrome_fs::fs::os::OsFile::read_to_string{}
βββ
ββ171ms INFO rome_lsp::session Configuration found, and it is valid!
βββrome_lsp::session::update_workspace_settings{}
β βββrome_service::workspace::server::update_settings{params=UpdateSettingsParams { configuration: Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None } }}
β β βββrome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None }}
β β βββ
β βββ
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
ββ193ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
ββ1127ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
ββ1188ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ1190ms INFO rome_lsp::server Starting Rome Language Server...
ββ1190ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ1190ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
βββrome_fs::fs::os::OsFile::read_to_string{}
βββ
ββ1190ms INFO rome_lsp::session Configuration found, and it is valid!
βββrome_lsp::session::update_workspace_settings{}
β βββrome_service::workspace::server::update_settings{params=UpdateSettingsParams { configuration: Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None } }}
β β βββrome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None }}
β β βββ
β βββ
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
ββ1292ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
ββ4815ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
ββ4877ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ4878ms INFO rome_lsp::server Starting Rome Language Server...
ββ4878ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ4878ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
βββrome_fs::fs::os::OsFile::read_to_string{}
βββ
ββ4878ms INFO rome_lsp::session Configuration found, and it is valid!
βββrome_lsp::session::update_workspace_settings{}
β βββrome_service::workspace::server::update_settings{params=UpdateSettingsParams { configuration: Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None } }}
β β βββrome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None }}
β β βββ
β βββ
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
ββ4971ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
ββ5389ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
ββ5451ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ5453ms INFO rome_lsp::server Starting Rome Language Server...
ββ5454ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ5454ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/joshpike/Projects/aquipa/rome.json"
βββrome_fs::fs::os::OsFile::read_to_string{}
βββ
ββ5454ms INFO rome_lsp::session Configuration found, and it is valid!
βββrome_lsp::session::update_workspace_settings{}
β βββrome_service::workspace::server::update_settings{params=UpdateSettingsParams { configuration: Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None } }}
β β βββrome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: None, linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: None, complexity: None, correctness: None, nursery: None, security: None, style: None }), ignore: None }), javascript: None }}
β β βββ
β βββ
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
ββ5532ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
ββ5852ms WARN rome_lsp::handlers::analysis unknown code action kind CodeActionKind("source.fixAll.eslint") requested
ββ11646ms INFO rome_lsp::server Starting Rome Language Server...
ββ11647ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ43726ms INFO rome_lsp::server Starting Rome Language Server...
ββ43726ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
### What happened?
add simple Rome.json per the 'getting started' guide
try to use vscode extension on project
### Expected result
rome to not crash
### Code of Conduct
- [X] I agree to follow Rome's Code of Conduct
Unfortunately the logs don't really contain anything useful about the crash, and I could not reproduce the issue on Rome 10.0.1, with v0.18.1 of the extension and the following configuration file:
{
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
}
}
Would you be able to share a minimal project that exhibits the issue ?
Yes, endless crash

Is there any output shown when you click on Go to output
. If so, can you share it with us?
Iβm incredibly busyβ¦ is there some sort of telemetry that could assist in this?
After updating to 0.19.0, VSC shows:
Enforce to have the onClick mouse event with the onKeyUp, the onKeyDown, or the onKeyPress keyboard event.rome(lint/a11y/useKeyWithClickEvents)
even with "useKeyWithClickEvents": "off"
After updating to 0.20.0, the message stays the same, but trying to restart LSP server results in continuous crashing.
Current rome.json config:
{
"formatter": {
"indentStyle": "tab",
"lineWidth": 110
},
"linter": {
"enabled": true,
"rules": {
"correctness": {
"recommended": true,
"noDelete": "off"
},
"style": {
"recommended": true,
"useBlockStatements": "off",
"noImplicitBoolean": "off"
},
"a11y": {
"recommended": true,
"useKeyWithClickEvents": "off"
}
}
}
}
Rome output (0.20.0) :
[cli-stdout] data 62
[cli] exit 0
Connecting to "/var/folders/mj/_0y6l9912494g98yxq26_3xr0000gn/T/rome-socket-" ...
[Info - 17:04:41] Server initialized with PID: 4485
[cli-stdout] data 62
[cli-stderr] end
[cli] exit 0
[cli-stderr] close
[cli-stdout] end
Connecting to "/var/folders/mj/_0y6l9912494g98yxq26_3xr0000gn/T/rome-socket-" ...
[cli] close 0
[cli-stdout] close
[Error - 17:04:45] Rome client: couldn't create connection to server.
Error: connect ECONNREFUSED /var/folders/mj/_0y6l9912494g98yxq26_3xr0000gn/T/rome-socket-
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16)
[Error - 17:04:45] Restarting client failed
Error: connect ECONNREFUSED /var/folders/mj/_0y6l9912494g98yxq26_3xr0000gn/T/rome-socket-
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16)
[cli-stderr] end
[cli-stdout] end
[cli-stdout] close
[cli] close 0
[cli-stderr] close
Rollback to 0.18.1 works fine.
not having this issue anymore. closing
in other news, I've decided to move my whole development team to Rome! I'm fed up with eslint being the memory hog it is, and confident the Rome team are onto something that will finally bring native performance to linting and formatting. Good luck guys and I'll contribute however I can!
I should add the caveat that we're only using the Rome linter for now, as the formatter does not have any visibility on html in angular decorators (like in screenshot). So we will stick with Prettier until that is a feature (which I've opened an issue about):