Skip to content

Instantly share code, notes, and snippets.

@Awesomerly
Created January 23, 2024 16:23
Show Gist options
  • Select an option

  • Save Awesomerly/9e4eb89ab9b97254eb67fa310376d6ba to your computer and use it in GitHub Desktop.

Select an option

Save Awesomerly/9e4eb89ab9b97254eb67fa310376d6ba to your computer and use it in GitHub Desktop.
biome format log
biome_cli::commands::daemon::Running Server{pid=29269}
├─0ms INFO biome_cli::service::unix Trying to connect to socket /home/awe/.cache/biome/biome-socket-1.5.3
├─0ms INFO biome_cli::service::unix Remove socket folder /home/awe/.cache/biome/biome-socket-1.5.3
├─┐biome_lsp::server::initialize{capabilities=ClientCapabilities { workspace: Some(WorkspaceClientCapabilities { apply_edit: Some(true), workspace_edit: Some(WorkspaceEditClientCapabilities { document_changes: Some(true), resource_operations: Some([Create, Rename, Delete]), failure_handling: Some(Abort), normalizes_line_endings: Some(false), change_annotation_support: None }), did_change_configuration: Some(DynamicRegistrationClientCapabilities { dynamic_registration: Some(false) }), did_change_watched_files: Some(DidChangeWatchedFilesClientCapabilities { dynamic_registration: Some(true), relative_pattern_support: Some(false) }), symbol: Some(WorkspaceSymbolClientCapabilities { dynamic_registration: Some(false), symbol_kind: None, tag_support: None, resolve_support: None }), execute_command: Some(DynamicRegistrationClientCapabilities { dynamic_registration: Some(false) }), workspace_folders: Some(true), configuration: Some(true), semantic_tokens: None, code_lens: None, file_operations: None, inline_value: None, inlay_hint: Some(InlayHintWorkspaceClientCapabilities { refresh_support: Some(false) }) }), text_document: Some(TextDocumentClientCapabilities { synchronization: None, completion: Some(CompletionClientCapabilities { dynamic_registration: None, completion_item: Some(CompletionItemCapability { snippet_support: Some(true), commit_characters_support: None, documentation_format: None, deprecated_support: Some(true), preselect_support: None, tag_support: Some(TagSupport { value_set: [Deprecated] }), insert_replace_support: Some(true), resolve_support: Some(CompletionItemCapabilityResolveSupport { properties: ["documentation", "detail", "additionalTextEdits"] }), insert_text_mode_support: None, label_details_support: None }), completion_item_kind: Some(CompletionItemKindCapability { value_set: None }), context_support: None, insert_text_mode: None, completion_list: None }), hover: Some(HoverClientCapabilities { dynamic_registration: None, content_format: Some([Markdown]) }), signature_help: Some(SignatureHelpClientCapabilities { dynamic_registration: None, signature_information: Some(SignatureInformationSettings { documentation_format: Some([Markdown]), parameter_information: Some(ParameterInformationSettings { label_offset_support: Some(true) }), active_parameter_support: Some(true) }), context_support: None }), references: None, document_highlight: None, document_symbol: None, formatting: None, range_formatting: None, on_type_formatting: None, declaration: None, definition: None, type_definition: None, implementation: None, code_action: Some(CodeActionClientCapabilities { dynamic_registration: None, code_action_literal_support: Some(CodeActionLiteralSupport { code_action_kind: CodeActionKindLiteralSupport { value_set: ["", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports"] } }), is_preferred_support: Some(true), disabled_support: Some(true), data_support: Some(true), resolve_support: Some(CodeActionCapabilityResolveSupport { properties: ["edit", "command"] }), honors_change_annotations: None }), code_lens: None, document_link: None, color_provider: None, rename: Some(RenameClientCapabilities { dynamic_registration: Some(false), prepare_support: Some(true), prepare_support_default_behavior: None, honors_change_annotations: Some(false) }), publish_diagnostics: Some(PublishDiagnosticsClientCapabilities { related_information: None, tag_support: None, version_support: Some(true), code_description_support: None, data_support: None }), folding_range: None, selection_range: None, linked_editing_range: None, call_hierarchy: None, semantic_tokens: None, moniker: None, type_hierarchy: None, inline_value: None, inlay_hint: Some(InlayHintClientCapabilities { dynamic_registration: Some(false), resolve_support: None }) }), window: Some(WindowClientCapabilities { work_done_progress: Some(true), show_message: None, show_document: None }), general: Some(GeneralClientCapabilities { regular_expressions: None, markdown: None, stale_request_support: None, position_encodings: Some([PositionEncodingKind("utf-8"), PositionEncodingKind("utf-32"), PositionEncodingKind("utf-16")]) }), experimental: None }, client_info=ClientInfo { name: "helix", version: Some("23.10 (f6021dd0)") }, root_path="/home/awe", workspace_folders=[]}
│ ├─0ms INFO biome_lsp::server Starting Biome Language Server...
│ ├─0ms WARN biome_lsp::server The Biome Server was initialized with the deprecated `root_path` parameter: this is not supported, use `root_uri` instead
│ ├─0ms WARN biome_lsp::server The Biome Server was initialized with the `workspace_folders` parameter: this is unsupported at the moment, use `root_uri` instead
├─┘
├─┐biome_lsp::server::initialized{params=InitializedParams}
│ ├─0ms INFO biome_lsp::server Attempting to load the configuration from 'biome.json' file
│ ├─┐biome_lsp::session::load_extension_settings{}
│ ├─┐biome_lsp::session::load_workspace_settings{}
│ │ ├─┐biome_fs::fs::os::OsFileSystem::open_with_options{path="/home/awe/biome.json", options=OpenOptions { read: true, write: false, truncate: false, create: false, create_new: false }}
│ │ ├─┘
│ │ ├─┐biome_fs::fs::os::OsFileSystem::open_with_options{path="/home/biome.json", options=OpenOptions { read: true, write: false, truncate: false, create: false, create_new: false }}
│ │ ├─┘
│ │ ├─┐biome_fs::fs::os::OsFileSystem::open_with_options{path="/biome.json", options=OpenOptions { read: true, write: false, truncate: false, create: false, create_new: false }}
│ │ ├─┘
│ │ ├─0ms ERROR biome_fs::fs Could not read the file from "/biome.json", reason:
│ │ │ No such file or directory (os error 2)
│ │ ├─┐biome_fs::fs::os::OsFileSystem::open_with_options{path="/home/awe/rome.json", options=OpenOptions { read: true, write: false, truncate: false, create: false, create_new: false }}
│ │ ├─┘
│ │ ├─┐biome_fs::fs::os::OsFileSystem::open_with_options{path="/home/rome.json", options=OpenOptions { read: true, write: false, truncate: false, create: false, create_new: false }}
│ │ ├─┘
│ │ ├─┐biome_fs::fs::os::OsFileSystem::open_with_options{path="/rome.json", options=OpenOptions { read: true, write: false, truncate: false, create: false, create_new: false }}
│ │ ├─┘
│ │ ├─0ms ERROR biome_fs::fs Could not read the file from "/rome.json", reason:
│ │ │ No such file or directory (os error 2)
│ │ ├─0ms INFO biome_lsp::session Loaded workspace setting
│ │ ├─0ms DEBUG biome_lsp::session Configuration {
│ │ │ schema: None,
│ │ │ vcs: None,
│ │ │ files: None,
│ │ │ formatter: None,
│ │ │ organize_imports: Some(
│ │ │ OrganizeImports {
│ │ │ enabled: Some(
│ │ │ true,
│ │ │ ),
│ │ │ ignore: None,
│ │ │ include: None,
│ │ │ },
│ │ │ ),
│ │ │ linter: Some(
│ │ │ LinterConfiguration {
│ │ │ enabled: Some(
│ │ │ true,
│ │ │ ),
│ │ │ rules: Some(
│ │ │ Rules {
│ │ │ recommended: Some(
│ │ │ true,
│ │ │ ),
│ │ │ all: None,
│ │ │ a11y: None,
│ │ │ complexity: None,
│ │ │ correctness: None,
│ │ │ nursery: None,
│ │ │ performance: None,
│ │ │ security: None,
│ │ │ style: None,
│ │ │ suspicious: None,
│ │ │ },
│ │ │ ),
│ │ │ ignore: None,
│ │ │ include: None,
│ │ │ },
│ │ │ ),
│ │ │ javascript: None,
│ │ │ json: None,
│ │ │ css: None,
│ │ │ extends: None,
│ │ │ overrides: None,
│ │ │ }
│ │ ├─┐biome_service::workspace::server::update_settings{params=UpdateSettingsParams { configuration: Configuration { schema: None, vcs: None, files: None, formatter: None, organize_imports: Some(OrganizeImports { enabled: Some(true), ignore: None, include: None }), linter: Some(LinterConfiguration { enabled: Some(true), rules: Some(Rules { recommended: Some(true), all: None, a11y: None, complexity: None, correctness: None, nursery: None, performance: None, security: None, style: None, suspicious: None }), ignore: None, include: None }), javascript: None, json: None, css: None, extends: None, overrides: None }, vcs_base_path: None, gitignore_matches: [], working_directory: Some("/home/awe") }}
│ │ ├─┘
│ ├─┘
├─┐biome_lsp::handlers::text_document::did_open{params=DidOpenTextDocumentParams { text_document: TextDocumentItem { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/awe/src/projects/steam-friend-correlator/src/utils.ts", query: None, fragment: None }, language_id: "typescript", version: 0, text: "import type { z } from 'zod';\n\nexport class ValidationError extends Error {\n code: string;\n\n constructor(code: string, message: string) {\n super(message);\n this.code = code;\n }\n}\n\nexport const isEmpty = (obj: object | Record<string, never>) => {\n return Object.keys(obj).length === 0;\n};\n\n// Thanks Matt Pocok!!!\n// https://www.youtube.com/watch?v=dLPgQRbVquo\nexport async function zodFetch<TData>(\n url: string | URL,\n schema: z.Schema<TData>\n): Promise<TData> {\n return fetch(url)\n .then((res) => res.json())\n .then((res) => {\n return schema.parse(res);\n })\n .catch((err) => {\n if (err instanceof SyntaxError) {\n throw new ValidationError('parse_failure', 'JSON Body could not be parsed');\n } else {\n throw err;\n }\n });\n}\n" } }}
│ ├─┐biome_lsp::session::update_diagnostics{url=file:///home/awe/src/projects/steam-friend-correlator/src/utils.ts}
│ │ ├─0ms DEBUG biome_service::workspace::server File capabilities: TypeScript RomePath { path: "/home/awe/src/projects/steam-friend-correlator/src/utils.ts" }
│ │ ├─0ms DEBUG biome_service::workspace The file has the following feature sets:
│ │ │ {OrganizeImports: Supported, Lint: Supported, Format: Supported}
│ │ ├─┐biome_service::workspace::server::pull_diagnostics{params=PullDiagnosticsParams { path: RomePath { path: "/home/awe/src/projects/steam-friend-correlator/src/utils.ts" }, categories: RuleCategories(SYNTAX | LINT | ACTION), max_diagnostics: 18446744073709551615 }}
│ │ │ ├─0ms DEBUG biome_service::workspace::server File capabilities: TypeScript RomePath { path: "/home/awe/src/projects/steam-friend-correlator/src/utils.ts" }
│ │ │ ├─┐biome_js_parser::parse::parse{}
│ │ │ ├─┘
│ │ │ ├─0ms DEBUG biome_service::workspace::server File capabilities: TypeScript RomePath { path: "/home/awe/src/projects/steam-friend-correlator/src/utils.ts" }
│ │ │ ├─┐biome_service::workspace::server::Pulling diagnostics{categories=RuleCategories(SYNTAX | LINT | ACTION)}
│ │ │ │ ├─┐biome_service::file_handlers::javascript::Linting JavaScript file{path=RomePath { path: "/home/awe/src/projects/steam-friend-correlator/src/utils.ts" }, language=TypeScript}
│ │ │ │ │ ├─0ms INFO biome_service::file_handlers::javascript Analyze file /home/awe/src/projects/steam-friend-correlator/src/utils.ts
│ │ │ │ │ ├─1ms DEBUG biome_rowan::ast::batch pushing change...
│ │ │ │ │ ├─1ms DEBUG biome_rowan::ast::batch pushing change...
│ │ │ │ │ ├─1ms DEBUG biome_rowan::ast::batch changes [CommitChange { parent_depth: 12, parent: Some([email protected]), parent_range: Some((607, 781)), new_node_slot: 2, new_node: Some(Node([email protected])) }]
│ │ │ │ ├─┘
│ │ │ ├─┘
│ │ │ ├─2ms INFO biome_service::workspace::server Pulled 1 diagnostic(s)
│ │ ├─┘
│ ├─┘
├─┘
│ │ ├─3ms INFO biome_lsp::session Loaded client configuration: Null
│ │ ├─4ms ERROR biome_lsp::session Couldn't set client configuration: invalid type: null, expected struct WorkspaceSettings
│ ├─┘
│ ├─4ms INFO biome_lsp::session Unregister capabilities "workspace/didChangeConfiguration, textDocument/rangeFormatting, textDocument/onTypeFormatting, textDocument/rename, textDocument/formatting, workspace/didChangeWatchedFiles"
│ ├─5ms INFO biome_lsp::session Register capabilities "textDocument/rangeFormatting, textDocument/onTypeFormatting, textDocument/formatting"
│ ├─┐biome_lsp::session::update_diagnostics{url=file:///home/awe/src/projects/steam-friend-correlator/src/utils.ts}
│ │ ├─┐biome_service::workspace::server::pull_diagnostics{params=PullDiagnosticsParams { path: RomePath { path: "/home/awe/src/projects/steam-friend-correlator/src/utils.ts" }, categories: RuleCategories(SYNTAX | LINT | ACTION), max_diagnostics: 18446744073709551615 }}
│ │ │ ├─0ms DEBUG biome_service::workspace::server File capabilities: TypeScript RomePath { path: "/home/awe/src/projects/steam-friend-correlator/src/utils.ts" }
│ │ │ ├─┐biome_service::workspace::server::Pulling diagnostics{categories=RuleCategories(SYNTAX | LINT | ACTION)}
│ │ │ │ ├─┐biome_service::file_handlers::javascript::Linting JavaScript file{path=RomePath { path: "/home/awe/src/projects/steam-friend-correlator/src/utils.ts" }, language=TypeScript}
│ │ │ │ │ ├─0ms INFO biome_service::file_handlers::javascript Analyze file /home/awe/src/projects/steam-friend-correlator/src/utils.ts
│ │ │ │ │ ├─0ms DEBUG biome_rowan::ast::batch pushing change...
│ │ │ │ │ ├─0ms DEBUG biome_rowan::ast::batch pushing change...
│ │ │ │ │ ├─0ms DEBUG biome_rowan::ast::batch changes [CommitChange { parent_depth: 12, parent: Some([email protected]), parent_range: Some((607, 781)), new_node_slot: 2, new_node: Some(Node([email protected])) }]
│ │ │ │ ├─┘
│ │ │ ├─┘
│ │ │ ├─1ms INFO biome_service::workspace::server Pulled 1 diagnostic(s)
│ │ ├─┘
│ ├─┘
├─┘
├─┐biome_lsp::server::initialize{capabilities=ClientCapabilities { workspace: None, text_document: None, window: None, general: None, experimental: None }, client_info=ClientInfo { name: "biome_service", version: Some("1.5.3") }}
│ ├─0ms INFO biome_lsp::server Starting Biome Language Server...
├─┘
├─┐biome_lsp::server::biome/rage{params=RageParams}
├─┘
@Awesomerly
Copy link
Author

for the record not having a biome.json has no impact on any of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment