rome / tools

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

πŸ› The vscode extension lsp crashes all the time #3844

Closed bazo closed 1 year ago

bazo commented 1 year ago

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:               loaded
  Formatter disabled:   false
  Linter disabled:      false

Workspace:
  Open Documents:       0

Discovering running Rome servers...

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

i 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

Other Active Server Workspaces:

Workspace:
  Open Documents:       5
  Client Name:          Visual Studio Code
  Client Version:       1.73.1

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_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_lsp::handlers::formatting::format{params=DocumentFormattingParams { text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "monorepo/apps/web/pages/api/accounts.ts", query: None, fragment: None } }, options: FormattingOptions { tab_size: 4, insert_spaces: false, properties: {}, trim_trailing_whitespace: None, insert_final_newline: None, trim_final_newlines: None }, work_done_progress_params: WorkDoneProgressParams { work_done_token: None } }}
β”‚ β”œβ”€0ms DEBUG rome_lsp::handlers::formatting Formatting...
β”‚ β”œβ”€β”rome_service::file_handlers::javascript::format{rome_path=RomePath { path: "monorepo/apps/web/pages/api/accounts.ts", id: FileId(3) }, settings=SettingsHandle { inner: WorkspaceSettings { formatter: FormatSettings { enabled: true, format_with_errors: false, indent_style: Some(Tab), line_width: Some(LineWidth(100)), ignored_files: Matcher { patterns: [Pattern { original: "*.js", tokens: [AnySequence, Char('.'), Char('j'), Char('s')], is_recursive: false }, Pattern { original: ".yarn", tokens: [Char('.'), Char('y'), Char('a'), Char('r'), Char('n')], is_recursive: false }, Pattern { original: ".husky", tokens: [Char('.'), Char('h'), Char('u'), Char('s'), Char('k'), Char('y')], is_recursive: false }, Pattern { original: "pnp", tokens: [Char('p'), Char('n'), Char('p')], is_recursive: false }, Pattern { original: "./apps/admin/.next", tokens: [Char('.'), Char('/'), Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('d'), Char('m'), Char('i'), Char('n'), Char('/'), Char('.'), Char('n'), Char('e'), Char('x'), Char('t')], is_recursive: false }, Pattern { original: "./apps/app/.cache", tokens: [Char('.'), Char('/'), Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('p'), Char('p'), Char('/'), Char('.'), Char('c'), Char('a'), Char('c'), Char('h'), Char('e')], is_recursive: false }, Pattern { original: "./apps/app/public/build", tokens: [Char('.'), Char('/'), Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('p'), Char('p'), Char('/'), Char('p'), Char('u'), Char('b'), Char('l'), Char('i'), Char('c'), Char('/'), Char('b'), Char('u'), Char('i'), Char('l'), Char('d')], is_recursive: false }, Pattern { original: "node_modules", tokens: [Char('n'), Char('o'), Char('d'), Char('e'), Char('_'), Char('m'), Char('o'), Char('d'), Char('u'), Char('l'), Char('e'), Char('s')], is_recursive: false }], options: MatchOptions { case_sensitive: true, require_literal_separator: false, require_literal_leading_dot: false }, already_ignored: RwLock { data: {"monorepo/apps/api/src/types/index.ts": false, "monorepo/apps/web/pages/api/accounts.ts": false}, poisoned: false, .. } } }, linter: LinterSettings { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignored_files: Matcher { patterns: [Pattern { original: "*.js", tokens: [AnySequence, Char('.'), Char('j'), Char('s')], is_recursive: false }, Pattern { original: ".yarn", tokens: [Char('.'), Char('y'), Char('a'), Char('r'), Char('n')], is_recursive: false }, Pattern { original: ".husky", tokens: [Char('.'), Char('h'), Char('u'), Char('s'), Char('k'), Char('y')], is_recursive: false }, Pattern { original: "pnp", tokens: [Char('p'), Char('n'), Char('p')], is_recursive: false }, Pattern { original: "apps/admin/.next", tokens: [Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('d'), Char('m'), Char('i'), Char('n'), Char('/'), Char('.'), Char('n'), Char('e'), Char('x'), Char('t')], is_recursive: false }, Pattern { original: "./apps/app/.cache", tokens: [Char('.'), Char('/'), Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('p'), Char('p'), Char('/'), Char('.'), Char('c'), Char('a'), Char('c'), Char('h'), Char('e')], is_recursive: false }, Pattern { original: "./apps/app/public/build", tokens: [Char('.'), Char('/'), Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('p'), Char('p'), Char('/'), Char('p'), Char('u'), Char('b'), Char('l'), Char('i'), Char('c'), Char('/'), Char('b'), Char('u'), Char('i'), Char('l'), Char('d')], is_recursive: false }, Pattern { original: "node_modules", tokens: [Char('n'), Char('o'), Char('d'), Char('e'), Char('_'), Char('m'), Char('o'), Char('d'), Char('u'), Char('l'), Char('e'), Char('s')], is_recursive: false }], options: MatchOptions { case_sensitive: true, require_literal_separator: false, require_literal_leading_dot: false }, already_ignored: RwLock { data: {"monorepo/apps/web/libs/initAuth.ts": false, "monorepo/apps/web/pages/auth/login.tsx": false, "monorepo/apps/web/pages/api/cldr/plurals.ts": false, "monorepo/apps/api/src/db/index.ts": false, "monorepo/apps/api/src/api/cldr.ts": false, "monorepo/apps/web/libs/http.ts": false, "monorepo/apps/web/pages/api/login.ts": false, "monorepo/apps/web/pages/api/cldr/langs.ts": false, "monorepo/apps/api/src/api/createAccount.ts": false, "monorepo/apps/web/pages/api/accounts.ts": false, "monorepo/apps/api/src/types/index.ts": false, "monorepo/apps/web/pages/auth/signin.tsx": false, "monorepo/apps/web/types/index.ts": false, "monorepo/apps/admin/libs/index.ts": false}, poisoned: false, .. } } }, languages: LanguagesSettings { javascript: LanguageSettings { format: JsFormatSettings { quote_style: None, quote_properties: None, trailing_comma: None }, linter: JsLinterSettings { globals: [] }, globals: None } }, files: FilesSettings { max_size: 1048576 } } }}
β”‚ β”‚ β”œβ”€0ms DEBUG rome_service::file_handlers::javascript Format with the following options: 
β”‚ β”‚ β”‚ Indent style: Tab
β”‚ β”‚ β”‚ Line width: 100
β”‚ β”‚ β”‚ Quote style: Double Quotes
β”‚ β”‚ β”‚ Quote properties: As needed
β”‚ β”‚ β”‚ Trailing comma: All
β”‚ β”‚ β”‚ 
β”‚ β”‚ β”œβ”€β”rome_formatter::printer::Printer::print{}
β”‚ β”‚ β”œβ”€β”˜
β”‚ β”œβ”€β”˜
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€80146051ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€80219482ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
β”œβ”€80233321ms INFO tower_lsp::service::layers shutdown request received, shutting down
β”œβ”€80233341ms INFO tower_lsp::service::layers exit notification received, stopping
β”œβ”€80233364ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
β”œβ”€80235642ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
β”œβ”€80235674ms INFO rome_lsp::server Starting Rome Language Server...
β”œβ”€80235771ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
β”œβ”€80235771ms INFO rome_service::configuration Attempting to load the configuration file at path "monorepo/rome.json"
β”œβ”€β”rome_fs::fs::os::OsFile::read_to_string{}
β”œβ”€β”˜
β”œβ”€80235772ms 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: Some(FormatterConfiguration { enabled: true, format_with_errors: false, indent_style: Tab, indent_size: 4, line_width: LineWidth(100), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "./apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), javascript: None } }}
β”‚ β”‚ β”œβ”€β”rome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: Some(FormatterConfiguration { enabled: true, format_with_errors: false, indent_style: Tab, indent_size: 4, line_width: LineWidth(100), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "./apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), javascript: None }}
β”‚ β”‚ β”œβ”€β”˜
β”‚ β”œβ”€β”˜
β”œβ”€β”˜
β”œβ”€80236622ms WARN tower_lsp::service::pending client asked to cancel request 2, but no such pending request exists, ignoring
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(1)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(1)}
β”œβ”€β”˜
β”œβ”€80249690ms WARN tower_lsp::service::pending client asked to cancel request 6, but no such pending request exists, ignoring
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€80852113ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_lsp::handlers::formatting::format{params=DocumentFormattingParams { text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "monorepo/apps/web/pages/api/accounts.ts", query: None, fragment: None } }, options: FormattingOptions { tab_size: 4, insert_spaces: false, properties: {}, trim_trailing_whitespace: None, insert_final_newline: None, trim_final_newlines: None }, work_done_progress_params: WorkDoneProgressParams { work_done_token: None } }}
β”‚ β”œβ”€0ms DEBUG rome_lsp::handlers::formatting Formatting...
β”‚ β”œβ”€β”rome_service::file_handlers::javascript::format{rome_path=RomePath { path: "monorepo/apps/web/pages/api/accounts.ts", id: FileId(0) }, settings=SettingsHandle { inner: WorkspaceSettings { formatter: FormatSettings { enabled: true, format_with_errors: false, indent_style: Some(Tab), line_width: Some(LineWidth(100)), ignored_files: Matcher { patterns: [Pattern { original: "*.js", tokens: [AnySequence, Char('.'), Char('j'), Char('s')], is_recursive: false }, Pattern { original: ".yarn", tokens: [Char('.'), Char('y'), Char('a'), Char('r'), Char('n')], is_recursive: false }, Pattern { original: ".husky", tokens: [Char('.'), Char('h'), Char('u'), Char('s'), Char('k'), Char('y')], is_recursive: false }, Pattern { original: "pnp", tokens: [Char('p'), Char('n'), Char('p')], is_recursive: false }, Pattern { original: "./apps/admin/.next", tokens: [Char('.'), Char('/'), Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('d'), Char('m'), Char('i'), Char('n'), Char('/'), Char('.'), Char('n'), Char('e'), Char('x'), Char('t')], is_recursive: false }, Pattern { original: "./apps/app/.cache", tokens: [Char('.'), Char('/'), Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('p'), Char('p'), Char('/'), Char('.'), Char('c'), Char('a'), Char('c'), Char('h'), Char('e')], is_recursive: false }, Pattern { original: "./apps/app/public/build", tokens: [Char('.'), Char('/'), Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('p'), Char('p'), Char('/'), Char('p'), Char('u'), Char('b'), Char('l'), Char('i'), Char('c'), Char('/'), Char('b'), Char('u'), Char('i'), Char('l'), Char('d')], is_recursive: false }, Pattern { original: "node_modules", tokens: [Char('n'), Char('o'), Char('d'), Char('e'), Char('_'), Char('m'), Char('o'), Char('d'), Char('u'), Char('l'), Char('e'), Char('s')], is_recursive: false }], options: MatchOptions { case_sensitive: true, require_literal_separator: false, require_literal_leading_dot: false }, already_ignored: RwLock { data: {"monorepo/apps/web/pages/api/accounts.ts": false}, poisoned: false, .. } } }, linter: LinterSettings { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignored_files: Matcher { patterns: [Pattern { original: "*.js", tokens: [AnySequence, Char('.'), Char('j'), Char('s')], is_recursive: false }, Pattern { original: ".yarn", tokens: [Char('.'), Char('y'), Char('a'), Char('r'), Char('n')], is_recursive: false }, Pattern { original: ".husky", tokens: [Char('.'), Char('h'), Char('u'), Char('s'), Char('k'), Char('y')], is_recursive: false }, Pattern { original: "pnp", tokens: [Char('p'), Char('n'), Char('p')], is_recursive: false }, Pattern { original: "apps/admin/.next", tokens: [Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('d'), Char('m'), Char('i'), Char('n'), Char('/'), Char('.'), Char('n'), Char('e'), Char('x'), Char('t')], is_recursive: false }, Pattern { original: "./apps/app/.cache", tokens: [Char('.'), Char('/'), Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('p'), Char('p'), Char('/'), Char('.'), Char('c'), Char('a'), Char('c'), Char('h'), Char('e')], is_recursive: false }, Pattern { original: "./apps/app/public/build", tokens: [Char('.'), Char('/'), Char('a'), Char('p'), Char('p'), Char('s'), Char('/'), Char('a'), Char('p'), Char('p'), Char('/'), Char('p'), Char('u'), Char('b'), Char('l'), Char('i'), Char('c'), Char('/'), Char('b'), Char('u'), Char('i'), Char('l'), Char('d')], is_recursive: false }, Pattern { original: "node_modules", tokens: [Char('n'), Char('o'), Char('d'), Char('e'), Char('_'), Char('m'), Char('o'), Char('d'), Char('u'), Char('l'), Char('e'), Char('s')], is_recursive: false }], options: MatchOptions { case_sensitive: true, require_literal_separator: false, require_literal_leading_dot: false }, already_ignored: RwLock { data: {"monorepo/packages/database/client/index.d.ts": false, "monorepo/apps/web/pages/api/accounts.ts": false}, poisoned: false, .. } } }, languages: LanguagesSettings { javascript: LanguageSettings { format: JsFormatSettings { quote_style: None, quote_properties: None, trailing_comma: None }, linter: JsLinterSettings { globals: [] }, globals: None } }, files: FilesSettings { max_size: 1048576 } } }}
β”‚ β”‚ β”œβ”€0ms DEBUG rome_service::file_handlers::javascript Format with the following options: 
β”‚ β”‚ β”‚ Indent style: Tab
β”‚ β”‚ β”‚ Line width: 100
β”‚ β”‚ β”‚ Quote style: Double Quotes
β”‚ β”‚ β”‚ Quote properties: As needed
β”‚ β”‚ β”‚ Trailing comma: All
β”‚ β”‚ β”‚ 
β”‚ β”‚ β”œβ”€β”rome_formatter::printer::Printer::print{}
β”‚ β”‚ β”œβ”€β”˜
β”‚ β”œβ”€β”˜
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€80945313ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€81005542ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€81150596ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€81155811ms WARN tower_lsp Got a textDocument/didSave notification, but it is not implemented
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(2)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(3)}
β”œβ”€β”˜
β”œβ”€81314047ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
β”œβ”€81314054ms INFO rome_lsp::server Starting Rome Language Server...
β”œβ”€81314054ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
β”œβ”€81314055ms INFO rome_service::configuration Attempting to load the configuration file at path "monorepo/rome.json"
β”œβ”€β”rome_fs::fs::os::OsFile::read_to_string{}
β”œβ”€β”˜
β”œβ”€81314055ms 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: Some(FormatterConfiguration { enabled: true, format_with_errors: false, indent_style: Tab, indent_size: 4, line_width: LineWidth(100), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "./apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), javascript: None } }}
β”‚ β”‚ β”œβ”€β”rome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: Some(FormatterConfiguration { enabled: true, format_with_errors: false, indent_style: Tab, indent_size: 4, line_width: LineWidth(100), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "./apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), javascript: None }}
β”‚ β”‚ β”œβ”€β”˜
β”‚ β”œβ”€β”˜
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(1)}
β”œβ”€β”˜
β”œβ”€81314064ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
β”œβ”€81314065ms INFO rome_lsp::server Starting Rome Language Server...
β”œβ”€81314065ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
β”œβ”€81314065ms INFO rome_service::configuration Attempting to load the configuration file at path "monorepo/rome.json"
β”œβ”€β”rome_fs::fs::os::OsFile::read_to_string{}
β”œβ”€β”˜
β”œβ”€81314065ms INFO rome_lsp::session Configuration found, and it is valid!
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(0)}
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(1)}
β”œβ”€β”˜
β”œβ”€β”rome_lsp::session::update_workspace_settings{}
β”‚ β”œβ”€β”rome_service::workspace::server::update_settings{params=UpdateSettingsParams { configuration: Configuration { files: None, formatter: Some(FormatterConfiguration { enabled: true, format_with_errors: false, indent_style: Tab, indent_size: 4, line_width: LineWidth(100), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "./apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), javascript: None } }}
β”‚ β”‚ β”œβ”€β”rome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: Some(FormatterConfiguration { enabled: true, format_with_errors: false, indent_style: Tab, indent_size: 4, line_width: LineWidth(100), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "./apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), javascript: None }}
β”‚ β”‚ β”œβ”€β”˜
β”‚ β”œβ”€β”˜
β”œβ”€β”˜
β”œβ”€81314075ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
β”œβ”€81314076ms INFO rome_lsp::server Starting Rome Language Server...
β”œβ”€81314076ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
β”œβ”€81314076ms INFO rome_service::configuration Attempting to load the configuration file at path "monorepo/rome.json"
β”œβ”€β”rome_fs::fs::os::OsFile::read_to_string{}
β”œβ”€β”˜
β”œβ”€81314076ms 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: Some(FormatterConfiguration { enabled: true, format_with_errors: false, indent_style: Tab, indent_size: 4, line_width: LineWidth(100), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "./apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), javascript: None } }}
β”‚ β”‚ β”œβ”€β”rome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: Some(FormatterConfiguration { enabled: true, format_with_errors: false, indent_style: Tab, indent_size: 4, line_width: LineWidth(100), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "./apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), javascript: None }}
β”‚ β”‚ β”œβ”€β”˜
β”‚ β”œβ”€β”˜
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(1)}
β”œβ”€β”˜
β”œβ”€81314089ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Socket is not connected (os error 57)
β”œβ”€81314090ms INFO rome_lsp::server Starting Rome Language Server...
β”œβ”€81314090ms INFO rome_lsp::server Attempting to load the configuration from 'rome.json' file
β”œβ”€81314090ms INFO rome_service::configuration Attempting to load the configuration file at path "monorepo/rome.json"
β”œβ”€β”rome_fs::fs::os::OsFile::read_to_string{}
β”œβ”€β”˜
β”œβ”€81314090ms 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: Some(FormatterConfiguration { enabled: true, format_with_errors: false, indent_style: Tab, indent_size: 4, line_width: LineWidth(100), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "./apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), javascript: None } }}
β”‚ β”‚ β”œβ”€β”rome_service::settings::merge_with_configuration{configuration=Configuration { files: None, formatter: Some(FormatterConfiguration { enabled: true, format_with_errors: false, indent_style: Tab, indent_size: 4, line_width: LineWidth(100), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "./apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), linter: Some(LinterConfiguration { enabled: true, rules: Some(Rules { recommended: Some(true), a11y: Some(A11y { recommended: Some(false), rules: {} }), complexity: Some(Complexity { recommended: Some(true), rules: {} }), correctness: Some(Correctness { recommended: Some(true), rules: {} }), nursery: Some(Nursery { recommended: Some(true), rules: {} }), security: Some(Security { recommended: Some(true), rules: {"noDangerouslySetInnerHtml": Plain(Warn)} }), style: Some(Style { recommended: Some(true), rules: {} }) }), ignore: Some({"*.js", ".yarn", ".husky", "pnp", "apps/admin/.next", "./apps/app/.cache", "./apps/app/public/build", "node_modules"}) }), javascript: None }}
β”‚ β”‚ β”œβ”€β”˜
β”‚ β”œβ”€β”˜
β”œβ”€β”˜
β”œβ”€β”rome_js_parser::parse::parse{file_id=FileId(1)}
β”œβ”€β”˜
β”œβ”€81417534ms INFO rome_lsp::server Starting Rome Language Server...
β”œβ”€81457027ms INFO rome_lsp::server Starting Rome Language Server...

What happened?

code like usual have some invalid code, like some parts commented, or copy paste from somewhere with missing braces etc vscode will show notification that the language server crashed 5 times in 3 minutes this happens continuously edit: happens consistently when braces are wrong, after deleting closing brace in if, the server immediately crashes

Expected result

no crashes after code is corrected formatting should work as usual

Code of Conduct

ematipico commented 1 year ago

It seems that the logs don't give enough information, unfortunately. Any chance that you can share the code that you think triggers the issue? A reproduction repository would be excellent!

MichaReiser commented 1 year ago

This may be fixed by #3740 (at least, the LSP shouldn't crash and instead print a message to the log)

MichaReiser commented 1 year ago

@bazo We released a new preview of Rome today. Can you try it and let us know if you're still experiencing the problem?

github-actions[bot] commented 1 year ago

πŸ‘‹ @rome/staff please triage this issue by adding one of the following labels: S-Bug: confirmed, S-Planned , S-Wishlist or umbrella

ematipico commented 1 year ago

I am going to close this, assuming that it's been fixed. I suggest opening a new issue for people who arrive here and experience the same issue.