Closed n73s closed 1 year ago
I could reproduce this issue. The log rome rage
shows is here. The log said tower_lsp failed encoding response.
ββ385415ms INFO rome_lsp::server Starting Rome Language Server...
βrome_cli::commands::daemon::Running Server{pid=13245}
ββ50ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
ββ53ms INFO rome_lsp::server Starting Rome Language Server...
ββ54ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
ββ54ms INFO rome_service::configuration Attempting to load the configuration file at path "/Users/nissy-dev/code/github.com/n73s/rome-vscode-crash-by-inputting-jp/rome.json"
βββrome_fs::fs::os::OsFile::read_to_string{}
βββ
ββ54ms INFO rome_lsp::session Configuration found, and it is valid!
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
βββ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)}
βββ
βββrome_js_parser::parse::parse{file_id=FileId(0)}
βββ
ββ1081ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
This might have been fixed by https://github.com/rome/tools/pull/1907
@n73s you could try installing the latest pre-release version of the extension and check it's actually fixed.
@ematipico I've tried "v0.19.20221125"(re-install the extension, stop the Rome Server process, and reload VS Code window), but the issue still remains.
@leops You may want to look a this
I can't reproduce the issue on version 0.19.20221125
of the extension if it is using its bundled instance of the language server (displayed as Rome 10.0.1-nightly.b7eb6fd
in the status bar). However recent versions of the extension will pick up their version of Rome from the workspace, so after running npm install
the version being used by the extension becomes Rome 10.0.1
as specified in the package.json
of the provided project, and as this version predates the fix it does reproduce the issue.
Thanks all.
https://github.com/n73s/rome-vscode-crash-by-inputting-jp/tree/issue-fixed
After upgrading to 10.0.1-nightly.00f5dfe
, no crash.
Environment information
What happened?
https://github.com/n73s/rome-vscode-crash-by-inputting-jp
Visit this repository.
Expected result
No crashes.
Code of Conduct