Skip to content

Instantly share code, notes, and snippets.

@DimanNe
Last active January 22, 2023 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DimanNe/bfeaa04e3de22bdd18ab1683227c418f to your computer and use it in GitHub Desktop.
Save DimanNe/bfeaa04e3de22bdd18ab1683227c418f to your computer and use it in GitHub Desktop.
[INFO rust_analyzer] server version 1.66.1 (90743e7 2023-01-10) will start
[DEBUG lsp_server::msg] < {"id":"{712d7cfd-17db-4e8d-9cdf-4ae71c43b15d}","jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["*"]}}},"completion":{"completionItem":{"commitCharacterSupport":true,"snippetSupport":true},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"dynamicRegistration":true},"definition":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"hierarchicalDocumentSymbolSupport":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"formatting":{"dynamicRegistration":true},"hover":{"contentFormat":["markdown","plaintext"],"dynamicRegistration":true},"implementation":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"semanticTokens":{"dynamicRegistration":true,"formats":["relative"],"requests":{"full":{"delta":true}},"tokenModifiers":["declaration","definition"],"tokenTypes":["type","class","enumMember","typeParameter","parameter","variable","function","macro","keyword","comment","string","number","operator"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown","plaintext"]}},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":false},"typeDefinition":{"dynamicRegistration":true}},"window":{"workDoneProgress":true},"workspace":{"applyEdit":true,"configuration":true,"didChangeConfiguration":{"dynamicRegistration":true},"executeCommand":{"dynamicRegistration":true},"semanticTokens":{"refreshSupport":true},"workspaceFolders":true}},"clientInfo":{"name":"Qt Creator","version":"9.0.1"},"initializationOptions":{"linkedProjects":["/home/dimanne/devel/raspberrypi/thermo_rust/thermo/Cargo.toml"]},"processId":1,"rootUri":null,"trace":"off","workspaceFolders":null}}
[INFO rust_analyzer] InitializeParams: {"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["*"]}}},"completion":{"completionItem":{"commitCharacterSupport":true,"snippetSupport":true},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"dynamicRegistration":true},"definition":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"hierarchicalDocumentSymbolSupport":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"formatting":{"dynamicRegistration":true},"hover":{"contentFormat":["markdown","plaintext"],"dynamicRegistration":true},"implementation":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"semanticTokens":{"dynamicRegistration":true,"formats":["relative"],"requests":{"full":{"delta":true}},"tokenModifiers":["declaration","definition"],"tokenTypes":["type","class","enumMember","typeParameter","parameter","variable","function","macro","keyword","comment","string","number","operator"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown","plaintext"]}},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":false},"typeDefinition":{"dynamicRegistration":true}},"window":{"workDoneProgress":true},"workspace":{"applyEdit":true,"configuration":true,"didChangeConfiguration":{"dynamicRegistration":true},"executeCommand":{"dynamicRegistration":true},"semanticTokens":{"refreshSupport":true},"workspaceFolders":true}},"clientInfo":{"name":"Qt Creator","version":"9.0.1"},"initializationOptions":{"linkedProjects":["/home/dimanne/devel/raspberrypi/thermo_rust/thermo/Cargo.toml"]},"processId":1,"rootUri":null,"trace":"off","workspaceFolders":null}
[INFO rust_analyzer::config] updating config from JSON: {
"linkedProjects": [
"/home/dimanne/devel/raspberrypi/thermo_rust/thermo/Cargo.toml"
]
}
[DEBUG rust_analyzer::config] deserialized config data: ConfigData {
assist_expressionFillDefault: Todo,
cachePriming_enable: true,
cachePriming_numThreads: 0,
cargo_autoreload: true,
cargo_buildScripts_enable: true,
cargo_buildScripts_invocationLocation: Workspace,
cargo_buildScripts_invocationStrategy: PerWorkspace,
cargo_buildScripts_overrideCommand: None,
cargo_buildScripts_useRustcWrapper: true,
cargo_extraEnv: {},
cargo_features: Selected(
[],
),
cargo_noDefaultFeatures: false,
cargo_sysroot: Some(
"discover",
),
cargo_target: None,
cargo_unsetTest: [
"core",
],
checkOnSave_allTargets: true,
checkOnSave_command: "check",
checkOnSave_enable: true,
checkOnSave_extraArgs: [],
checkOnSave_extraEnv: {},
checkOnSave_features: None,
checkOnSave_invocationLocation: Workspace,
checkOnSave_invocationStrategy: PerWorkspace,
checkOnSave_noDefaultFeatures: None,
checkOnSave_overrideCommand: None,
checkOnSave_target: None,
completion_autoimport_enable: true,
completion_autoself_enable: true,
completion_callable_snippets: FillArguments,
completion_postfix_enable: true,
completion_privateEditable_enable: false,
completion_snippets_custom: {
"Arc::new": SnippetDef {
prefix: [],
postfix: [
"arc",
],
description: Some(
"Put the expression into an `Arc`",
),
body: [
"Arc::new(${receiver})",
],
requires: [
"std::sync::Arc",
],
scope: Expr,
},
"Rc::new": SnippetDef {
prefix: [],
postfix: [
"rc",
],
description: Some(
"Put the expression into an `Rc`",
),
body: [
"Rc::new(${receiver})",
],
requires: [
"std::rc::Rc",
],
scope: Expr,
},
"Box::pin": SnippetDef {
prefix: [],
postfix: [
"pinbox",
],
description: Some(
"Put the expression into a pinned `Box`",
),
body: [
"Box::pin(${receiver})",
],
requires: [
"std::boxed::Box",
],
scope: Expr,
},
"Err": SnippetDef {
prefix: [],
postfix: [
"err",
],
description: Some(
"Wrap the expression in a `Result::Err`",
),
body: [
"Err(${receiver})",
],
requires: [],
scope: Expr,
},
"Some": SnippetDef {
prefix: [],
postfix: [
"some",
],
description: Some(
"Wrap the expression in an `Option::Some`",
),
body: [
"Some(${receiver})",
],
requires: [],
scope: Expr,
},
"Ok": SnippetDef {
prefix: [],
postfix: [
"ok",
],
description: Some(
"Wrap the expression in a `Result::Ok`",
),
body: [
"Ok(${receiver})",
],
requires: [],
scope: Expr,
},
},
diagnostics_disabled: {},
diagnostics_enable: true,
diagnostics_experimental_enable: false,
diagnostics_remapPrefix: {},
diagnostics_warningsAsHint: [],
diagnostics_warningsAsInfo: [],
files_excludeDirs: [],
files_watcher: Client,
highlightRelated_breakPoints_enable: true,
highlightRelated_exitPoints_enable: true,
highlightRelated_references_enable: true,
highlightRelated_yieldPoints_enable: true,
hover_actions_debug_enable: true,
hover_actions_enable: true,
hover_actions_gotoTypeDef_enable: true,
hover_actions_implementations_enable: true,
hover_actions_references_enable: false,
hover_actions_run_enable: true,
hover_documentation_enable: true,
hover_documentation_keywords_enable: true,
hover_links_enable: true,
imports_granularity_enforce: false,
imports_granularity_group: Crate,
imports_group_enable: true,
imports_merge_glob: true,
imports_prefer_no_std: false,
imports_prefix: Plain,
inlayHints_bindingModeHints_enable: false,
inlayHints_chainingHints_enable: true,
inlayHints_closingBraceHints_enable: true,
inlayHints_closingBraceHints_minLines: 25,
inlayHints_closureReturnTypeHints_enable: Never,
inlayHints_lifetimeElisionHints_enable: Never,
inlayHints_lifetimeElisionHints_useParameterNames: false,
inlayHints_maxLength: Some(
25,
),
inlayHints_parameterHints_enable: true,
inlayHints_reborrowHints_enable: Never,
inlayHints_renderColons: true,
inlayHints_typeHints_enable: true,
inlayHints_typeHints_hideClosureInitialization: false,
inlayHints_typeHints_hideNamedConstructor: false,
joinLines_joinAssignments: true,
joinLines_joinElseIf: true,
joinLines_removeTrailingComma: true,
joinLines_unwrapTrivialBlock: true,
lens_debug_enable: true,
lens_enable: true,
lens_forceCustomCommands: true,
lens_implementations_enable: true,
lens_location: AboveName,
lens_references_adt_enable: false,
lens_references_enumVariant_enable: false,
lens_references_method_enable: false,
lens_references_trait_enable: false,
lens_run_enable: true,
linkedProjects: [
Manifest(
"/home/dimanne/devel/raspberrypi/thermo_rust/thermo/Cargo.toml",
),
],
lru_capacity: None,
notifications_cargoTomlNotFound: true,
procMacro_attributes_enable: true,
procMacro_enable: true,
procMacro_ignored: {},
procMacro_server: None,
references_excludeImports: false,
runnables_command: None,
runnables_extraArgs: [],
rustc_source: None,
rustfmt_extraArgs: [],
rustfmt_overrideCommand: None,
rustfmt_rangeFormatting_enable: false,
semanticHighlighting_doc_comment_inject_enable: true,
semanticHighlighting_operator_enable: true,
semanticHighlighting_operator_specialization_enable: false,
semanticHighlighting_punctuation_enable: false,
semanticHighlighting_punctuation_separate_macro_bang: false,
semanticHighlighting_punctuation_specialization_enable: false,
semanticHighlighting_strings_enable: true,
signatureInfo_detail: Full,
signatureInfo_documentation_enable: true,
typing_autoClosingAngleBrackets_enable: false,
workspace_symbol_search_kind: OnlyTypes,
workspace_symbol_search_limit: 128,
workspace_symbol_search_scope: Workspace,
}
[INFO rust_analyzer::caps] No `additionalTextEdits` completion resolve capability was found in the client capabilities, autoimport completion is disabled
[DEBUG lsp_server::msg] > {"jsonrpc":"2.0","id":"{712d7cfd-17db-4e8d-9cdf-4ae71c43b15d}","result":{"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"selectionRangeProvider":true,"hoverProvider":true,"completionProvider":{"triggerCharacters":[":",".","'","("],"completionItem":{"labelDetailsSupport":false}},"signatureHelpProvider":{"triggerCharacters":["(",",","<"]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"codeActionProvider":{"codeActionKinds":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite"],"resolveProvider":true},"codeLensProvider":{"resolveProvider":true},"documentFormattingProvider":true,"documentRangeFormattingProvider":false,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"=","moreTriggerCharacter":[".",">","{"]},"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"declarationProvider":true,"workspace":{"fileOperations":{"willRename":{"filters":[{"scheme":"file","pattern":{"glob":"**/*.rs","matches":"file"}},{"scheme":"file","pattern":{"glob":"**","matches":"folder"}}]}}},"callHierarchyProvider":true,"semanticTokensProvider":{"legend":{"tokenTypes":["comment","decorator","enumMember","enum","function","interface","keyword","macro","method","namespace","number","operator","parameter","property","string","struct","typeParameter","variable","angle","arithmetic","attribute","attributeBracket","bitwise","boolean","brace","bracket","builtinAttribute","builtinType","character","colon","comma","comparison","constParameter","derive","deriveHelper","dot","escapeSequence","formatSpecifier","generic","label","lifetime","logical","macroBang","parenthesis","punctuation","selfKeyword","selfTypeKeyword","semicolon","typeAlias","toolModule","union","unresolvedReference"],"tokenModifiers":["documentation","declaration","static","defaultLibrary","async","attribute","callable","constant","consuming","controlFlow","crateRoot","injected","intraDocLink","library","mutable","public","reference","trait","unsafe"]},"range":true,"full":{"delta":true}},"inlayHintProvider":{"resolveProvider":true},"experimental":{"externalDocs":true,"hoverRange":true,"joinLines":true,"matchingBrace":true,"moveItem":true,"onEnter":true,"openCargoToml":true,"parentModule":true,"runnables":{"kinds":["cargo"]},"ssr":true,"workspaceSymbolScopeKindFiltering":true}},"serverInfo":{"name":"rust-analyzer","version":"1.66.1 (90743e7 2023-01-10)"}}}
[DEBUG lsp_server::msg] < {"jsonrpc":"2.0","method":"initialized","params":{}}
[DEBUG lsp_server::msg] < {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":""}}
[INFO rust_analyzer] Client 'Qt Creator' 9.0.1
[INFO rust_analyzer::main_loop] initial config: Config {
discovered_projects: None,
caps: ClientCapabilities {
workspace: Some(
WorkspaceClientCapabilities {
apply_edit: Some(
true,
),
workspace_edit: None,
did_change_configuration: Some(
DynamicRegistrationClientCapabilities {
dynamic_registration: Some(
true,
),
},
),
did_change_watched_files: None,
symbol: None,
execute_command: Some(
DynamicRegistrationClientCapabilities {
dynamic_registration: Some(
true,
),
},
),
workspace_folders: Some(
true,
),
configuration: Some(
true,
),
semantic_tokens: Some(
SemanticTokensWorkspaceClientCapabilities {
refresh_support: Some(
true,
),
},
),
code_lens: None,
file_operations: None,
inlay_hint: None,
},
),
text_document: Some(
TextDocumentClientCapabilities {
synchronization: Some(
TextDocumentSyncClientCapabilities {
dynamic_registration: Some(
true,
),
will_save: Some(
true,
),
will_save_wait_until: Some(
false,
),
did_save: Some(
true,
),
},
),
completion: Some(
CompletionClientCapabilities {
dynamic_registration: Some(
true,
),
completion_item: Some(
CompletionItemCapability {
snippet_support: Some(
true,
),
commit_characters_support: None,
documentation_format: None,
deprecated_support: None,
preselect_support: None,
tag_support: None,
insert_replace_support: None,
resolve_support: None,
insert_text_mode_support: None,
label_details_support: None,
},
),
completion_item_kind: Some(
CompletionItemKindCapability {
value_set: Some(
[
Text,
Method,
Function,
Constructor,
Field,
Variable,
Class,
Interface,
Module,
Property,
Unit,
Value,
Enum,
Keyword,
Snippet,
Color,
File,
Reference,
Folder,
EnumMember,
Constant,
Struct,
Event,
Operator,
TypeParameter,
],
),
},
),
context_support: None,
insert_text_mode: None,
},
),
hover: Some(
HoverClientCapabilities {
dynamic_registration: Some(
true,
),
content_format: Some(
[
Markdown,
PlainText,
],
),
},
),
signature_help: Some(
SignatureHelpClientCapabilities {
dynamic_registration: Some(
true,
),
signature_information: Some(
SignatureInformationSettings {
documentation_format: Some(
[
Markdown,
PlainText,
],
),
parameter_information: None,
active_parameter_support: Some(
true,
),
},
),
context_support: None,
},
),
references: Some(
DynamicRegistrationClientCapabilities {
dynamic_registration: Some(
true,
),
},
),
document_highlight: Some(
DynamicRegistrationClientCapabilities {
dynamic_registration: Some(
true,
),
},
),
document_symbol: Some(
DocumentSymbolClientCapabilities {
dynamic_registration: None,
symbol_kind: Some(
SymbolKindCapability {
value_set: Some(
[
File,
Module,
Namespace,
Package,
Class,
Method,
Property,
Field,
Constructor,
Enum,
Interface,
Function,
Variable,
Constant,
String,
Number,
Boolean,
Array,
Object,
Key,
Null,
EnumMember,
Struct,
Event,
Operator,
TypeParameter,
],
),
},
),
hierarchical_document_symbol_support: Some(
true,
),
tag_support: None,
},
),
formatting: Some(
DynamicRegistrationClientCapabilities {
dynamic_registration: Some(
true,
),
},
),
range_formatting: Some(
DynamicRegistrationClientCapabilities {
dynamic_registration: Some(
true,
),
},
),
on_type_formatting: Some(
DynamicRegistrationClientCapabilities {
dynamic_registration: Some(
true,
),
},
),
declaration: None,
definition: Some(
GotoCapability {
dynamic_registration: Some(
true,
),
link_support: None,
},
),
type_definition: Some(
GotoCapability {
dynamic_registration: Some(
true,
),
link_support: None,
},
),
implementation: Some(
GotoCapability {
dynamic_registration: Some(
true,
),
link_support: None,
},
),
code_action: Some(
CodeActionClientCapabilities {
dynamic_registration: None,
code_action_literal_support: Some(
CodeActionLiteralSupport {
code_action_kind: CodeActionKindLiteralSupport {
value_set: [
"*",
],
},
},
),
is_preferred_support: None,
disabled_support: None,
data_support: None,
resolve_support: None,
honors_change_annotations: None,
},
),
code_lens: None,
document_link: None,
color_provider: None,
rename: Some(
RenameClientCapabilities {
dynamic_registration: Some(
true,
),
prepare_support: Some(
true,
),
prepare_support_default_behavior: None,
honors_change_annotations: None,
},
),
publish_diagnostics: None,
folding_range: None,
selection_range: None,
linked_editing_range: None,
call_hierarchy: None,
semantic_tokens: Some(
SemanticTokensClientCapabilities {
dynamic_registration: Some(
true,
),
requests: SemanticTokensClientCapabilitiesRequests {
range: None,
full: Some(
Delta {
delta: Some(
true,
),
},
),
},
token_types: [
SemanticTokenType(
"type",
),
SemanticTokenType(
"class",
),
SemanticTokenType(
"enumMember",
),
SemanticTokenType(
"typeParameter",
),
SemanticTokenType(
"parameter",
),
SemanticTokenType(
"variable",
),
SemanticTokenType(
"function",
),
SemanticTokenType(
"macro",
),
SemanticTokenType(
"keyword",
),
SemanticTokenType(
"comment",
),
SemanticTokenType(
"string",
),
SemanticTokenType(
"number",
),
SemanticTokenType(
"operator",
),
],
token_modifiers: [
SemanticTokenModifier(
"declaration",
),
SemanticTokenModifier(
"definition",
),
],
formats: [
TokenFormat(
"relative",
),
],
overlapping_token_support: None,
multiline_token_support: None,
server_cancel_support: None,
augments_syntax_tokens: None,
},
),
moniker: None,
inlay_hint: None,
},
),
window: Some(
WindowClientCapabilities {
work_done_progress: Some(
true,
),
show_message: None,
show_document: None,
},
),
general: None,
offset_encoding: None,
experimental: None,
},
root_path: AbsPathBuf(
"/home/dimanne",
),
data: ConfigData {
assist_expressionFillDefault: Todo,
cachePriming_enable: true,
cachePriming_numThreads: 0,
cargo_autoreload: true,
cargo_buildScripts_enable: true,
cargo_buildScripts_invocationLocation: Workspace,
cargo_buildScripts_invocationStrategy: PerWorkspace,
cargo_buildScripts_overrideCommand: None,
cargo_buildScripts_useRustcWrapper: true,
cargo_extraEnv: {},
cargo_features: Selected(
[],
),
cargo_noDefaultFeatures: false,
cargo_sysroot: Some(
"discover",
),
cargo_target: None,
cargo_unsetTest: [
"core",
],
checkOnSave_allTargets: true,
checkOnSave_command: "check",
checkOnSave_enable: true,
checkOnSave_extraArgs: [],
checkOnSave_extraEnv: {},
checkOnSave_features: None,
checkOnSave_invocationLocation: Workspace,
checkOnSave_invocationStrategy: PerWorkspace,
checkOnSave_noDefaultFeatures: None,
checkOnSave_overrideCommand: None,
checkOnSave_target: None,
completion_autoimport_enable: true,
completion_autoself_enable: true,
completion_callable_snippets: FillArguments,
completion_postfix_enable: true,
completion_privateEditable_enable: false,
completion_snippets_custom: {
"Arc::new": SnippetDef {
prefix: [],
postfix: [
"arc",
],
description: Some(
"Put the expression into an `Arc`",
),
body: [
"Arc::new(${receiver})",
],
requires: [
"std::sync::Arc",
],
scope: Expr,
},
"Rc::new": SnippetDef {
prefix: [],
postfix: [
"rc",
],
description: Some(
"Put the expression into an `Rc`",
),
body: [
"Rc::new(${receiver})",
],
requires: [
"std::rc::Rc",
],
scope: Expr,
},
"Box::pin": SnippetDef {
prefix: [],
postfix: [
"pinbox",
],
description: Some(
"Put the expression into a pinned `Box`",
),
body: [
"Box::pin(${receiver})",
],
requires: [
"std::boxed::Box",
],
scope: Expr,
},
"Err": SnippetDef {
prefix: [],
postfix: [
"err",
],
description: Some(
"Wrap the expression in a `Result::Err`",
),
body: [
"Err(${receiver})",
],
requires: [],
scope: Expr,
},
"Some": SnippetDef {
prefix: [],
postfix: [
"some",
],
description: Some(
"Wrap the expression in an `Option::Some`",
),
body: [
"Some(${receiver})",
],
requires: [],
scope: Expr,
},
"Ok": SnippetDef {
prefix: [],
postfix: [
"ok",
],
description: Some(
"Wrap the expression in a `Result::Ok`",
),
body: [
"Ok(${receiver})",
],
requires: [],
scope: Expr,
},
},
diagnostics_disabled: {},
diagnostics_enable: true,
diagnostics_experimental_enable: false,
diagnostics_remapPrefix: {},
diagnostics_warningsAsHint: [],
diagnostics_warningsAsInfo: [],
files_excludeDirs: [],
files_watcher: Client,
highlightRelated_breakPoints_enable: true,
highlightRelated_exitPoints_enable: true,
highlightRelated_references_enable: true,
highlightRelated_yieldPoints_enable: true,
hover_actions_debug_enable: true,
hover_actions_enable: true,
hover_actions_gotoTypeDef_enable: true,
hover_actions_implementations_enable: true,
hover_actions_references_enable: false,
hover_actions_run_enable: true,
hover_documentation_enable: true,
hover_documentation_keywords_enable: true,
hover_links_enable: true,
imports_granularity_enforce: false,
imports_granularity_group: Crate,
imports_group_enable: true,
imports_merge_glob: true,
imports_prefer_no_std: false,
imports_prefix: Plain,
inlayHints_bindingModeHints_enable: false,
inlayHints_chainingHints_enable: true,
inlayHints_closingBraceHints_enable: true,
inlayHints_closingBraceHints_minLines: 25,
inlayHints_closureReturnTypeHints_enable: Never,
inlayHints_lifetimeElisionHints_enable: Never,
inlayHints_lifetimeElisionHints_useParameterNames: false,
inlayHints_maxLength: Some(
25,
),
inlayHints_parameterHints_enable: true,
inlayHints_reborrowHints_enable: Never,
inlayHints_renderColons: true,
inlayHints_typeHints_enable: true,
inlayHints_typeHints_hideClosureInitialization: false,
inlayHints_typeHints_hideNamedConstructor: false,
joinLines_joinAssignments: true,
joinLines_joinElseIf: true,
joinLines_removeTrailingComma: true,
joinLines_unwrapTrivialBlock: true,
lens_debug_enable: true,
lens_enable: true,
lens_forceCustomCommands: true,
lens_implementations_enable: true,
lens_location: AboveName,
lens_references_adt_enable: false,
lens_references_enumVariant_enable: false,
lens_references_method_enable: false,
lens_references_trait_enable: false,
lens_run_enable: true,
linkedProjects: [
Manifest(
"/home/dimanne/devel/raspberrypi/thermo_rust/thermo/Cargo.toml",
),
],
lru_capacity: None,
notifications_cargoTomlNotFound: true,
procMacro_attributes_enable: true,
procMacro_enable: true,
procMacro_ignored: {},
procMacro_server: None,
references_excludeImports: false,
runnables_command: None,
runnables_extraArgs: [],
rustc_source: None,
rustfmt_extraArgs: [],
rustfmt_overrideCommand: None,
rustfmt_rangeFormatting_enable: false,
semanticHighlighting_doc_comment_inject_enable: true,
semanticHighlighting_operator_enable: true,
semanticHighlighting_operator_specialization_enable: false,
semanticHighlighting_punctuation_enable: false,
semanticHighlighting_punctuation_separate_macro_bang: false,
semanticHighlighting_punctuation_specialization_enable: false,
semanticHighlighting_strings_enable: true,
signatureInfo_detail: Full,
signatureInfo_documentation_enable: true,
typing_autoClosingAngleBrackets_enable: false,
workspace_symbol_search_kind: OnlyTypes,
workspace_symbol_search_limit: 128,
workspace_symbol_search_scope: Workspace,
},
detached_files: [],
snippets: [
Snippet {
postfix_triggers: [
"arc",
],
prefix_triggers: [],
scope: Expr,
description: Some(
"Put the expression into an `Arc`",
),
snippet: "Arc::new(${receiver})",
requires: [
GreenNode {
kind: SyntaxKind(
217,
),
text_len: 14,
n_children: 3,
},
],
},
Snippet {
postfix_triggers: [
"rc",
],
prefix_triggers: [],
scope: Expr,
description: Some(
"Put the expression into an `Rc`",
),
snippet: "Rc::new(${receiver})",
requires: [
GreenNode {
kind: SyntaxKind(
217,
),
text_len: 11,
n_children: 3,
},
],
},
Snippet {
postfix_triggers: [
"pinbox",
],
prefix_triggers: [],
scope: Expr,
description: Some(
"Put the expression into a pinned `Box`",
),
snippet: "Box::pin(${receiver})",
requires: [
GreenNode {
kind: SyntaxKind(
217,
),
text_len: 15,
n_children: 3,
},
],
},
Snippet {
postfix_triggers: [
"err",
],
prefix_triggers: [],
scope: Expr,
description: Some(
"Wrap the expression in a `Result::Err`",
),
snippet: "Err(${receiver})",
requires: [],
},
Snippet {
postfix_triggers: [
"some",
],
prefix_triggers: [],
scope: Expr,
description: Some(
"Wrap the expression in an `Option::Some`",
),
snippet: "Some(${receiver})",
requires: [],
},
Snippet {
postfix_triggers: [
"ok",
],
prefix_triggers: [],
scope: Expr,
description: Some(
"Wrap the expression in a `Result::Ok`",
),
snippet: "Ok(${receiver})",
requires: [],
},
],
}
[DEBUG salsa::input] CrateGraphQuery(()) = CrateGraph { arena: {} } (Durability(2))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R2
[DEBUG salsa::input] LocalRootsQuery(()) = {} (Durability(2))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R3
[DEBUG salsa::input] LibraryRootsQuery(()) = {} (Durability(2))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R4
[DEBUG salsa::input] EnableProcAttrMacrosQuery(()) = false (Durability(0))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R5
[DEBUG salsa::lru] green_zone = 0..12
[DEBUG salsa::lru] yellow_zone = 12..37
[DEBUG salsa::lru] red_zone = 37..128
[DEBUG salsa::lru] green_zone = 0..12
[DEBUG salsa::lru] yellow_zone = 12..37
[DEBUG salsa::lru] red_zone = 37..128
[DEBUG salsa::lru] green_zone = 0..12
[DEBUG salsa::lru] yellow_zone = 12..37
[DEBUG salsa::lru] red_zone = 37..128
[DEBUG salsa] unwind_if_cancelled: current_revision=R5, pending_revision=R5
[DEBUG salsa::input] EnableProcAttrMacrosQuery(()) = true (Durability(0))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R6
[INFO rust_analyzer::reload] will fetch workspaces cause=startup
[DEBUG lsp_server::msg] > {"jsonrpc":"2.0","id":0,"method":"client/registerCapability","params":{"registrations":[{"id":"textDocument/didSave","method":"textDocument/didSave","registerOptions":{"includeText":false,"documentSelector":[{"pattern":"**/*.rs"},{"pattern":"**/Cargo.toml"},{"pattern":"**/Cargo.lock"}]}}]}}
[DEBUG lsp_server::msg] < {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"rust","text":"use anyhow::{anyhow, Result};\nuse clap::Parser;\nuse crossbeam_channel as channel;\nuse stdext::function_name;\n\nfn set_ctrl_channel() -> Result<channel::Receiver<()>> {\n let (sender, receiver) = channel::bounded(100);\n match ctrlc::set_handler(move || {\n let _ = sender.send(());\n }) {\n Ok(_) => Ok(receiver),\n Err(ref why) => Err(anyhow!(\"Failed to {}: {:?}\", function_name!(), why)),\n }\n}\n\n#[derive(clap::Parser)]\nstruct Cli {\n /// Path of the private key for Google Function\n #[arg(long = \"gf/private_key_path\")]\n gf_private_key_path: std::path::PathBuf,\n\n /// Service Account Email\n #[arg(long = \"gf/account_email\")]\n gf_account_email: String,\n\n /// Google Function Http end-point\n #[arg(long = \"gf/http_end_point\")]\n gf_http_end_point: String,\n\n /// If true we will not publish any data to Google Cloud\n #[arg(long)]\n #[arg(default_value_t = false)]\n dry_run: bool,\n}\n\nfn main() -> Result<()> {\n let cli = Cli::parse();\n\n let ctrl_c_events = set_ctrl_channel()?;\n\n let sensors_info = std::collections::HashMap::from([\n (\n String::from(\"BottomTube\"),\n // std::path::PathBuf::from(\"/sys/bus/w1/devices/28-000005eac50a/w1_slave\"),\n std::path::PathBuf::from(\"/home/dimanne/bott.txt\"),\n ),\n (\n String::from(\"Ambient\"),\n // std::path::PathBuf::from(\"/sys/bus/w1/devices/28-000005eaddc2/w1_slave\"),\n std::path::PathBuf::from(\"/home/dimanne/amb.txt\"),\n ),\n ]);\n\n let sink = Box::new(thermo::sink::StdOutSink);\n\n let mut sensors_poller =\n thermo::sensors_poller::SensorsPoller::new(sink, ctrl_c_events, sensors_info);\n sensors_poller.run();\n\n Ok(())\n}\n","uri":"file:///home/dimanne/devel/raspberrypi/thermo_rust/thermo/src/main.rs","version":0}}}
[DEBUG rust_analyzer::main_loop] Instant { tv_sec: 94465, tv_nsec: 206163722 } handle_event(Notification(Notification { method: "workspace/didChangeConfiguration", params: Object {"settings": String("")} }))
[DEBUG rust_analyzer::main_loop] Instant { tv_sec: 94465, tv_nsec: 206191335 } handle_event(FetchWorkspace(Begin))
[DEBUG lsp_server::msg] > {"jsonrpc":"2.0","id":1,"method":"workspace/configuration","params":{"items":[{"section":"rust-analyzer"}]}}
[DEBUG lsp_server::msg] > {"jsonrpc":"2.0","id":2,"method":"window/workDoneProgress/create","params":{"token":"rustAnalyzer/Fetching"}}
[DEBUG lsp_server::msg] > {"jsonrpc":"2.0","method":"$/progress","params":{"token":"rustAnalyzer/Fetching","value":{"kind":"begin","title":"Fetching","cancellable":false}}}
[DEBUG rust_analyzer::main_loop] Instant { tv_sec: 94465, tv_nsec: 206209799 } handle_event(Notification { method: "textDocument/didOpen" })
[DEBUG lsp_server::msg] < {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":"{a68ea452-b70e-4534-955b-e90a9737cbea}"}}
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R7
[DEBUG salsa::input] LocalRootsQuery(()) = {} (Durability(2))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R8
[DEBUG salsa::input] LibraryRootsQuery(()) = {SourceRootId(0)} (Durability(2))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R9
[DEBUG salsa::input] FileSourceRootQuery(FileId(0)) = SourceRootId(0) (Durability(2))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R10
[DEBUG salsa::input] SourceRootQuery(SourceRootId(0)) = SourceRoot { is_library: true, file_set: FileSet { n_files: 1 } } (Durability(2))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R11
[DEBUG salsa] unwind_if_cancelled: current_revision=R11, pending_revision=R11
[DEBUG salsa] unwind_if_cancelled: current_revision=R11, pending_revision=R11
[DEBUG salsa::input] FileTextQuery(FileId(0)) = "use anyhow::{anyhow, Result};\nuse clap::Parser;\nuse crossbeam_channel as channel;\nuse stdext::function_name;\n\nfn set_ctrl_channel() -> Result<channel::Receiver<()>> {\n let (sender, receiver) = channel::bounded(100);\n match ctrlc::set_handler(move || {\n let _ = sender.send(());\n }) {\n Ok(_) => Ok(receiver),\n Err(ref why) => Err(anyhow!(\"Failed to {}: {:?}\", function_name!(), why)),\n }\n}\n\n#[derive(clap::Parser)]\nstruct Cli {\n /// Path of the private key for Google Function\n #[arg(long = \"gf/private_key_path\")]\n gf_private_key_path: std::path::PathBuf,\n\n /// Service Account Email\n #[arg(long = \"gf/account_email\")]\n gf_account_email: String,\n\n /// Google Function Http end-point\n #[arg(long = \"gf/http_end_point\")]\n gf_http_end_point: String,\n\n /// If true we will not publish any data to Google Cloud\n #[arg(long)]\n #[arg(default_value_t = false)]\n dry_run: bool,\n}\n\nfn main() -> Result<()> {\n let cli = Cli::parse();\n\n let ctrl_c_events = set_ctrl_channel()?;\n\n let sensors_info = std::collections::HashMap::from([\n (\n String::from(\"BottomTube\"),\n // std::path::PathBuf::from(\"/sys/bus/w1/devices/28-000005eac50a/w1_slave\"),\n std::path::PathBuf::from(\"/home/dimanne/bott.txt\"),\n ),\n (\n String::from(\"Ambient\"),\n // std::path::PathBuf::from(\"/sys/bus/w1/devices/28-000005eaddc2/w1_slave\"),\n std::path::PathBuf::from(\"/home/dimanne/amb.txt\"),\n ),\n ]);\n\n let sink = Box::new(thermo::sink::StdOutSink);\n\n let mut sensors_poller =\n thermo::sensors_poller::SensorsPoller::new(sink, ctrl_c_events, sensors_info);\n sensors_poller.run();\n\n Ok(())\n}\n" (Durability(2))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R12
[DEBUG rust_analyzer::main_loop] Instant { tv_sec: 94465, tv_nsec: 206319807 } handle_event(Notification(Notification { method: "$/cancelRequest", params: Object {"id": String("{a68ea452-b70e-4534-955b-e90a9737cbea}")} }))
[DEBUG lsp_server::msg] < {"id":"{8ad8ea46-ef75-4272-8789-ad02f49ffe70}","jsonrpc":"2.0","method":"textDocument/semanticTokens/full","params":{"textDocument":{"uri":"file:///home/dimanne/devel/raspberrypi/thermo_rust/thermo/src/main.rs"}}}
[DEBUG rust_analyzer::main_loop] Instant { tv_sec: 94465, tv_nsec: 206350575 } handle_event(Request(Request { id: RequestId(String("{8ad8ea46-ef75-4272-8789-ad02f49ffe70}")), method: "textDocument/semanticTokens/full", params: Object {"textDocument": Object {"uri": String("file:///home/dimanne/devel/raspberrypi/thermo_rust/thermo/src/main.rs")}} }))
[DEBUG rust_analyzer::global_state] handled textDocument/semanticTokens/full - ("{8ad8ea46-ef75-4272-8789-ad02f49ffe70}") in 8.29µs
[DEBUG lsp_server::msg] > {"jsonrpc":"2.0","id":"{8ad8ea46-ef75-4272-8789-ad02f49ffe70}","error":{"code":-32801,"message":"waiting for cargo metadata or cargo check"}}
[DEBUG lsp_server::msg] < {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":"{d3dd0eba-7d90-4126-9683-3dff8851f1af}"}}
[DEBUG rust_analyzer::main_loop] Instant { tv_sec: 94465, tv_nsec: 206432210 } handle_event(Notification(Notification { method: "$/cancelRequest", params: Object {"id": String("{d3dd0eba-7d90-4126-9683-3dff8851f1af}")} }))
[DEBUG lsp_server::msg] < {"id":0,"jsonrpc":"2.0","result":null}
[DEBUG lsp_server::msg] < {"error":{"code":-32601},"id":1,"jsonrpc":"2.0"}
[DEBUG rust_analyzer::main_loop] Instant { tv_sec: 94465, tv_nsec: 206785878 } handle_event(Response(Response { id: RequestId(I32(0)), result: None, error: None }))
[DEBUG salsa::runtime] increment_revision()
[DEBUG salsa::runtime] increment_revision: incremented to R13
[DEBUG project_model::cargo_workspace] Discovering cargo config target by "cargo" "-Z" "unstable-options" "config" "get" "build.target"
[DEBUG project_model::cargo_workspace] Discovering host platform by "rustc" "-vV"
[DEBUG project_model::sysroot] discovering sysroot for /home/dimanne/devel/raspberrypi/thermo_rust/thermo
[DEBUG project_model::sysroot] Discovering sysroot by "rustc" "--print" "sysroot"
[DEBUG project_model::sysroot] checking sysroot library: /home/dimanne/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library
[INFO project_model::workspace] Using sysroot src_root=/home/dimanne/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library root=/home/dimanne/.rustup/toolchains/stable-x86_64-unknown-linux-gnu
[DEBUG project_model::rustc_cfg] rustc cfgs found: [Ok("debug_assertions"), Ok("panic=unwind"), Ok("target_abi="), Ok("target_arch=x86_64"), Ok("target_endian=little"), Ok("target_env=gnu"), Ok("target_family=unix"), Ok("target_feature=fxsr"), Ok("target_feature=llvm14-builtins-abi"), Ok("target_feature=sse"), Ok("target_feature=sse2"), Ok("target_has_atomic=16"), Ok("target_has_atomic=32"), Ok("target_has_atomic=64"), Ok("target_has_atomic=8"), Ok("target_has_atomic=ptr"), Ok("target_has_atomic_equal_alignment=16"), Ok("target_has_atomic_equal_alignment=32"), Ok("target_has_atomic_equal_alignment=64"), Ok("target_has_atomic_equal_alignment=8"), Ok("target_has_atomic_equal_alignment=ptr"), Ok("target_has_atomic_load_store=16"), Ok("target_has_atomic_load_store=32"), Ok("target_has_atomic_load_store=64"), Ok("target_has_atomic_load_store=8"), Ok("target_has_atomic_load_store=ptr"), Ok("target_os=linux"), Ok("target_pointer_width=64"), Ok("target_thread_local"), Ok("target_vendor=unknown"), Ok("unix")]
[INFO rust_analyzer::reload] did fetch workspaces [Ok(Cargo { root: Some("thermo_rust"), n_packages: 111, sysroot: true, n_rustc_compiler_crates: 0, n_rustc_cfg: 44, n_cfg_overrides: 1, toolchain: Some(Version { major: 1, minor: 66, patch: 1 }) })]
[ERROR rust_analyzer] Unexpected error: client exited without proper shutdown sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment