Last active
June 26, 2020 09:03
-
-
Save runiq/4e7ebdcba6406ded170db0805be564ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####### | |
LanguageClient 0.1.157 4b35f5d6859ab3d42546192cbede9add59a7435a | |
####### | |
10:01:27 DEBUG unnamed src/language_client.rs:78 state: null ==> {"apply_completion_additional_text_edits":true,"auto_start":true,"capabilities":{"rust":{"capabilities":{"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]},"codeLensProvider":{"resolveProvider":true},"completionProvider":{"triggerCharacters":[":","."]},"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"=","moreTriggerCharacter":[".",">"]},"documentSymbolProvider":true,"foldingRangeProvider":true,"hoverProvider":true,"implementationProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"documentProvider":true,"legend":{"tokenModifiers":["documentation","declaration","definition","static","abstract","deprecated","readonly","constant","controlFlow","mutable","unsafe"],"tokenTypes":["comment","keyword","string","number","regexp","operator","namespace","type","struct","class","interface","enum","typeParameter","function","member","property","macro","variable","parameter","label","attribute","builtinType","enumMember","lifetime","typeAlias","union","unresolvedReference","formatSpecifier"]},"rangeProvider":true},"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":{"change":2,"openClose":true,"save":{}},"typeDefinitionProvider":true,"workspaceSymbolProvider":true}}},"change_throttle":{"nanos":500000000,"secs":0},"code_lens":{"/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs":[{"command":{"arguments":[{"args":["run","--package","seddate","--bin","seddate"],"bin":"cargo","cwd":"/home/ajaam/Projekte/Play/Rust/seddate","env":{"RUST_BACKTRACE":"short"},"extraArgs":[],"label":"run seddate","range":{"end":{"character":1,"line":52},"start":{"character":0,"line":49}}}],"command":"rust-analyzer.runSingle","title":"Run"},"range":{"end":{"character":1,"line":52},"start":{"character":0,"line":49}}},{"command":{"arguments":[{"args":["build","--package","seddate","--bin","seddate"],"bin":"cargo","cwd":"/home/ajaam/Projekte/Play/Rust/seddate","env":{"RUST_BACKTRACE":"short"},"extraArgs":[],"label":"run seddate","range":{"end":{"character":1,"line":52},"start":{"character":0,"line":49}}}],"command":"rust-analyzer.debugSingle","title":"Debug"},"range":{"end":{"character":1,"line":52},"start":{"character":0,"line":49}}},{"command":{"arguments":["file:///home/ajaam/Projekte/Play/Rust/seddate/src/main.rs",{"character":0,"line":3},[]],"command":"rust-analyzer.showReferences","title":"0 implementations"},"range":{"end":{"character":1,"line":9},"start":{"character":0,"line":3}}},{"command":{"arguments":["file:///home/ajaam/Projekte/Play/Rust/seddate/src/main.rs",{"character":0,"line":32},[{"range":{"end":{"character":1,"line":47},"start":{"character":0,"line":34}},"uri":"file:///home/ajaam/Projekte/Play/Rust/seddate/src/main.rs"}]],"command":"rust-analyzer.showReferences","title":"1 implementation"},"range":{"end":{"character":42,"line":32},"start":{"character":0,"line":32}}}]},"completion_prefer_text_edit":true,"diagnostics":{},"diagnostics_display":{"1":{"name":"Error","signText":"∙","signTexthl":"ALEErrorSign","texthl":"ALEError","virtualTexthl":"Error"},"2":{"name":"Warning","signText":"∙","signTexthl":"ALEWarningSign","texthl":"ALEWarning","virtualTexthl":"Todo"},"3":{"name":"Information","signText":"∙","signTexthl":"ALEInfoSign","texthl":"ALEInfo","virtualTexthl":"Todo"},"4":{"name":"Hint","signText":"∙","signTexthl":"ALEHintSign","texthl":"ALEInfo","virtualTexthl":"Todo"}},"diagnostics_enable":true,"diagnostics_list":"Quickfix","diagnostics_max_severity":4,"diagnostics_signs_max":null,"document_highlight_display":{"1":{"name":"Text","texthl":"SpellCap"},"2":{"name":"Read","texthl":"SpellLocal"},"3":{"name":"Write","texthl":"SpellRare"}},"document_highlight_source":null,"echo_project_root":false,"hide_virtual_texts_on_insert":false,"highlight_match_ids":[],"highlight_source":null,"highlights":{},"highlights_placed":{},"hover_preview":"Auto","is_nvim":true,"last_cursor_line":0,"last_line_diagnostic":" ","load_settings":true,"logger":{"level":"DEBUG","path":"/home/ajaam/lcn.log"},"namespace_ids":{"LanguageClient_VirtualText":3},"preferred_markup_kind":["markdown","plaintext"],"registrations":[],"root_markers":null,"roots":{"rust":"/home/ajaam/Projekte/Play/Rust/seddate"},"selection_ui":"Funcref","selection_ui_auto_open":false,"semantic_highlight_maps":{},"semantic_highlights":{},"semantic_scope_separator":":","semantic_scope_to_hl_group_table":{},"semantic_scopes":{},"server_commands":{"javascript":["npx","javascript-typescript-stdio"],"rust":["rust-analyzer"],"typescript":["npx","javascript-typescript-stdio"]},"server_stderr":null,"settings_path":[".vim/settings.json"],"signs":{},"stashed_code_action_actions":[],"text_documents":{"/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs":{"languageId":"rust","text":"use structopt::StructOpt;\nuse time::{Duration, PrimitiveDateTime};\n\n#[derive(StructOpt)]\nstruct Args {\n #[structopt(parse(from_str = parse_soundrecord))]\n initial: PrimitiveDateTime,\n #[structopt(parse(from_str = parse_dur))]\n additional: Duration,\n}\n\nfn parse_soundrecord(input: &str) -> PrimitiveDateTime {\n PrimitiveDateTime::parse(input, \"SoundRecord-%Y-%m-%d-%H-%M-%S\").unwrap()\n}\n\nfn parse_dur(input: &str) -> Duration {\n let mut units = input.split('-').rev();\n // Seconds\n let mut duration = 0;\n if let Some(seconds) = units.next() {\n duration += seconds.parse::<i64>().unwrap();\n };\n // Minutes\n if let Some(minutes) = units.next() {\n duration += minutes.parse::<i64>().unwrap() * 60;\n };\n if let Some(hours) = units.next() {\n duration += hours.parse::<i64>().unwrap() * 3600;\n };\n Duration::seconds(duration)\n}\n\nstruct SoundRecordTime(PrimitiveDateTime);\n\nimpl std::fmt::Display for SoundRecordTime {\n fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {\n write!(\n f,\n \"SoundRecord-{}-{:02}-{:02}-{:02}-{:02}-{:02}\",\n self.0.year(),\n self.0.month(),\n self.0.day(),\n self.0.hour(),\n self.0.minute(),\n self.0.second()\n )\n }\n}\n\nfn main() {\n let args = Args::from_args();\n println!(\"{}\", SoundRecordTime(args.initial + args.additional));\n}\n","uri":"file:///home/ajaam/Projekte/Play/Rust/seddate/src/main.rs","version":0}},"text_documents_metadata":{},"trace":"off","use_virtual_text":"All","user_handlers":{},"wait_output_timeout":{"nanos":0,"secs":10},"window_log_message_level":2} | |
10:01:27 INFO unnamed src/language_server_protocol.rs:2847 End languageClient/setLoggingLevel | |
10:01:27 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","result":null,"id":2} | |
10:01:28 INFO reader-None src/rpcclient.rs:183 <= None {"id": 3, "jsonrpc": "2.0", "method": "LanguageClient/handleCodeLensAction", "params": {"bufnr": 1, "character": 0, "languageId": "rust", "line": 49, "filename": "/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs"}} | |
10:01:28 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["LSP#position()"],"id":12} | |
10:01:28 INFO reader-None src/rpcclient.rs:183 <= None {"id": 12, "jsonrpc": "2.0", "result": {"character": 0, "line": 49}} | |
10:01:28 DEBUG unnamed src/language_client.rs:78 state.stashed_code_action_actions: [] ==> [{"command":{"arguments":[{"args":["run","--package","seddate","--bin","seddate"],"bin":"cargo","cwd":"/home/ajaam/Projekte/Play/Rust/seddate","env":{"RUST_BACKTRACE":"short"},"extraArgs":[],"label":"run seddate","range":{"end":{"character":1,"line":52},"start":{"character":0,"line":49}}}],"command":"rust-analyzer.runSingle","title":"Run"},"kind":"rust-analyzer.runSingle","title":"Run"},{"command":{"arguments":[{"args":["build","--package","seddate","--bin","seddate"],"bin":"cargo","cwd":"/home/ajaam/Projekte/Play/Rust/seddate","env":{"RUST_BACKTRACE":"short"},"extraArgs":[],"label":"run seddate","range":{"end":{"character":1,"line":52},"start":{"character":0,"line":49}}}],"command":"rust-analyzer.debugSingle","title":"Debug"},"kind":"rust-analyzer.debugSingle","title":"Debug"}] | |
10:01:28 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["getcwd()"],"id":13} | |
10:01:28 INFO reader-None src/rpcclient.rs:183 <= None {"id": 13, "jsonrpc": "2.0", "result": "/home/ajaam/Projekte/Play/Rust/seddate"} | |
10:01:28 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"s:selectionUI_funcref","params":[["rust-analyzer.runSingle: Run","rust-analyzer.debugSingle: Debug"],"LanguageClient_FZFSinkCommand"]} | |
10:01:28 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","result":null,"id":3} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"method": "LanguageClient_FZFSinkCommand", "jsonrpc": "2.0", "params": {"bufnr": 1, "languageId": "rust", "selection": "rust-analyzer.runSingle: Run"}} | |
10:01:29 INFO unnamed src/language_server_protocol.rs:3417 Begin LanguageClient_FZFSinkCommand | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["exists(':terminal')"],"id":14} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 14, "jsonrpc": "2.0", "result": 2} | |
10:01:29 ERROR unnamed src/rpchandler.rs:45 Error handling message: invalid type: string "--package", expected a sequence | |
Message: {"jsonrpc":"2.0","method":"LanguageClient_FZFSinkCommand","params":{"bufnr":1,"languageId":"rust","selection":"rust-analyzer.runSingle: Run"}} | |
Error: invalid type: string "--package", expected a sequence | |
10:01:29 INFO reader-Some("rust") src/rpcclient.rs:183 <= Some("rust") {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/ajaam/Projekte/Play/Rust/seddate/src/main.rs"}} | |
10:01:29 INFO unnamed src/language_server_protocol.rs:2298 Begin textDocument/publishDiagnostics | |
10:01:29 DEBUG unnamed src/language_client.rs:78 state.diagnostics./home/ajaam/Projekte/Play/Rust/seddate/src/main.rs: null ==> [] | |
10:01:29 INFO unnamed src/vim.rs:210 Begin setqflist | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"setqflist","params":[[],"r"]} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"setqflist","params":[[],"a",{"title":"[LC]: diagnostics"}]} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["bufnr('/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs')"],"id":15} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 15, "jsonrpc": "2.0", "result": 1} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"setbufvar","params":["/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs","LanguageClient_statusLineDiagnosticsCounts",{"E":0,"H":0,"I":0,"W":0}]} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["LSP#filename()"],"id":16} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 16, "jsonrpc": "2.0", "result": "/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs"} | |
10:01:29 DEBUG unnamed src/language_client.rs:78 state.highlights./home/ajaam/Projekte/Play/Rust/seddate/src/main.rs: null ==> [] | |
10:01:29 INFO unnamed src/language_server_protocol.rs:3045 Begin languageClient/handleCursorMoved | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["LSP#filename()"],"id":17} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 17, "jsonrpc": "2.0", "result": "/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs"} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"getbufvar","params":["/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs","&filetype"],"id":18} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 18, "jsonrpc": "2.0", "result": "rust"} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["LSP#position()"],"id":19} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 19, "jsonrpc": "2.0", "result": {"character": 0, "line": 49}} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"s:EchoEllipsis","params":[""]} | |
10:01:29 DEBUG unnamed src/language_client.rs:78 state.last_line_diagnostic: " " ==> "" | |
10:01:29 DEBUG unnamed src/language_client.rs:78 state.last_cursor_line: 0 ==> 49 | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["LSP#viewport()"],"id":20} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 20, "jsonrpc": "2.0", "result": {"end": 53, "start": 0}} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"s:set_signs","params":["/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs",[],[]],"id":21} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 21, "jsonrpc": "2.0", "result": 0} | |
10:01:29 DEBUG unnamed src/language_client.rs:78 state.signs./home/ajaam/Projekte/Play/Rust/seddate/src/main.rs: null ==> {} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"nvim_buf_add_highlight","params":[0,0,"Error",1,1,1],"id":22} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 22, "jsonrpc": "2.0", "result": 4} | |
10:01:29 DEBUG unnamed src/language_client.rs:78 state.highlight_source: null ==> 4 | |
10:01:29 DEBUG unnamed src/language_client.rs:78 state.highlights_placed./home/ajaam/Projekte/Play/Rust/seddate/src/main.rs: null ==> [] | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"nvim_buf_clear_highlight","params":[0,4,0,53]} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"s:AddHighlights","params":[4,[]]} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["LSP#filename()"],"id":23} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 23, "jsonrpc": "2.0", "result": "/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs"} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["LSP#viewport()"],"id":24} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 24, "jsonrpc": "2.0", "result": {"end": 53, "start": 0}} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["bufnr('/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs')"],"id":25} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 25, "jsonrpc": "2.0", "result": 1} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"mode","params":[],"id":26} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 26, "jsonrpc": "2.0", "result": "n"} | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"s:set_virtual_texts","params":[1,3,0,53,[{"hl_group":"Comment","line":49,"text":"Run | Debug"},{"hl_group":"Comment","line":3,"text":"0 implementations"},{"hl_group":"Comment","line":32,"text":"1 implementation"}]],"id":27} | |
10:01:29 INFO reader-None src/rpcclient.rs:183 <= None {"id": 27, "jsonrpc": "2.0", "result": 0} | |
10:01:29 INFO unnamed src/language_server_protocol.rs:3196 End languageClient/handleCursorMoved | |
10:01:29 INFO unnamed src/language_server_protocol.rs:2410 End textDocument/publishDiagnostics | |
10:01:29 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"s:ExecuteAutocmd","params":["LanguageClientDiagnosticsChanged"]} | |
10:01:31 INFO reader-None src/rpcclient.rs:183 <= None {"method": "exit", "jsonrpc": "2.0", "params": {"bufnr": 1, "languageId": "rust"}} | |
10:01:31 INFO unnamed src/language_server_protocol.rs:2783 Begin exit | |
10:01:31 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"eval","params":["LSP#filename()"],"id":28} | |
10:01:31 INFO reader-None src/rpcclient.rs:183 <= None {"id": 28, "jsonrpc": "2.0", "result": "/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs"} | |
10:01:31 INFO unnamed src/language_server_protocol.rs:983 Begin cleanup | |
10:01:31 INFO writer-Some("rust") src/rpcclient.rs:229 => Some("rust") {"jsonrpc":"2.0","method":"exit","params":null} | |
10:01:31 INFO reader-None src/rpcclient.rs:216 reader-None terminated | |
10:01:31 INFO unnamed src/language_server_protocol.rs:3045 Begin languageClient/handleCursorMoved | |
10:01:31 ERROR unnamed src/language_server_protocol.rs:2799 Error: sending on a disconnected channel | |
10:01:31 INFO unnamed src/language_server_protocol.rs:2801 End exit | |
10:01:31 INFO writer-None src/rpcclient.rs:229 => None {"jsonrpc":"2.0","method":"setbufvar","params":["/home/ajaam/Projekte/Play/Rust/seddate/src/main.rs","LanguageClient_isServerRunning",0]} | |
10:01:31 ERROR writer-None src/rpcclient.rs:58 Thread writer-None exited with error: Broken pipe (os error 32) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"command": { | |
"arguments": [ | |
{ | |
"args": [ | |
"run", | |
"--package", | |
"seddate", | |
"--bin", | |
"seddate" | |
], | |
"bin": "cargo", | |
"cwd": "/home/ajaam/Projekte/Play/Rust/seddate", | |
"env": { | |
"RUST_BACKTRACE": "short" | |
}, | |
"extraArgs": [], | |
"label": "run seddate", | |
"range": { | |
"end": { | |
"character": 1, | |
"line": 52 | |
}, | |
"start": { | |
"character": 0, | |
"line": 49 | |
} | |
} | |
} | |
], | |
"command": "rust-analyzer.runSingle", | |
"title": "Run" | |
}, | |
"kind": "rust-analyzer.runSingle", | |
"title": "Run" | |
}, | |
{ | |
"command": { | |
"arguments": [ | |
{ | |
"args": [ | |
"build", | |
"--package", | |
"seddate", | |
"--bin", | |
"seddate" | |
], | |
"bin": "cargo", | |
"cwd": "/home/ajaam/Projekte/Play/Rust/seddate", | |
"env": { | |
"RUST_BACKTRACE": "short" | |
}, | |
"extraArgs": [], | |
"label": "run seddate", | |
"range": { | |
"end": { | |
"character": 1, | |
"line": 52 | |
}, | |
"start": { | |
"character": 0, | |
"line": 49 | |
} | |
} | |
} | |
], | |
"command": "rust-analyzer.debugSingle", | |
"title": "Debug" | |
}, | |
"kind": "rust-analyzer.debugSingle", | |
"title": "Debug" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment