16:54:14.645 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:54:14.645 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:54:14.645 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:54:14.645 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:54:14.645 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:54:14.645 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:54:14.645 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{15bc5154-ea21-44b6-bb50-cc472f7d421c}", "jsonrpc": "2.0" } 16:54:14.645 Client { "id": "{24ae4b40-6fb7-4b08-8773-6647f42aafab}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:14.835 Client { "id": "{50ddd673-e682-40ba-9530-5eb1530a13c1}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:14.907 Client { "id": "{3c89f3bf-496c-483a-8bf2-55fce25339d0}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 0, "line": 0 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:19.964 Client { "id": "{67ab2a8e-f32a-4523-b54a-a541bdf6ee88}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:54:19.969 Server { "id": "{67ab2a8e-f32a-4523-b54a-a541bdf6ee88}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:54:19.970 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:54:19.971 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:54:19.971 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "use super::{buffer::*, format::*, object::*, policy::*, types::*, universion::*, vao_args::*};\nuse crate::uses::*;\n\n#[derive(Default)]\npub struct Vao {\n\to: Object,\n\td: Dummy,\n}\nimpl Vao {\n\tpub fn new() -> Self {\n\t\tSelf { o: Def(), d: Dummy }\n\t}\n\tpub fn obj(&self) -> u32 {\n\t\tself.o.obj\n\t}\n\tpub fn Bind(&mut self) -> VaoBinding {\n\t\tVaoBinding::new(self)\n\t}\n\tpub fn BindIdxs(&mut self, o: &IdxArr) {\n\t\tGLCheck!(glVaoElementBuffer(self.obj(), o.obj));\n\t\tdebug_assert!({\n\t\t\t*Index::crossbindcheck_map().entry(self.obj()).or_default() = vec![o.obj];\n\t\t\ttrue\n\t\t});\n\t}\n\tpub fn AttribFmt(&mut self, o: &AttrArr, args: impl AttrFmtArgs) {\n\t\tlet (idx, size, norm, stride, offset) = args.get();\n\t\tASSERT!(size > 0 && size < 5, \"Attribute size({size}) isn't valid\");\n\t\tlet t_size = u32(type_size!(A));\n\t\tGLCheck!(glVertexAttribFormat(self.obj(), o.obj, idx, size, A::TYPE, to_glbool(norm), stride, offset, t_size));\n\t\tdebug_assert!({\n\t\t\tlet attrs = Attribute::crossbindcheck_map().entry(self.obj()).or_default();\n\t\t\tif attrs.len() < usize(idx + 1) {\n\t\t\t\tattrs.resize(usize(idx + 1), u32::MAX);\n\t\t\t}\n\t\t\tattrs[usize(idx)] = o.obj;\n\t\t\ttrue\n\t\t});\n\t}\n}\nimpl Drop for Vao {\n\tfn drop(&mut self) {\n\t\tdebug_assert!({\n\t\t\tIndex::crossbindcheck_map().remove(&self.o.obj);\n\t\t\tAttribute::crossbindcheck_map().remove(&self.o.obj);\n\t\t\ttrue\n\t\t})\n\t}\n}\n\npub struct VaoBinding<'l, I> {\n\t_b: Binding<'l, VertArrObj>,\n\td: Dummy,\n}\nimpl VaoBinding<'_, I> {\n\tpub fn new(o: &mut Vao) -> Self {\n\t\tlet _b = Binding::new(&mut o.o);\n\t\tSelf { _b, d: Dummy }\n\t}\n\tpub fn Draw(&self, args: impl DrawArgs) {\n\t\tIndex::checkcrossbinds(VertArrObj::bound_obj());\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tGLCheck!(gl::DrawElements(mode, num, I::TYPE, (offset * type_size!(I)) as *const GLvoid));\n\t}\n\tpub fn DrawUnindexed(&self, args: impl DrawArgs) {\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tGLCheck!(gl::DrawArrays(mode, i32(offset), num));\n\t}\n\tpub fn DrawInstanced(&self, n: T, args: impl DrawArgs)\n\twhere\n\t\ti32: Cast,\n\t{\n\t\tIndex::checkcrossbinds(VertArrObj::bound_obj());\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tlet offset = (offset * type_size!(I)) as *const GLvoid;\n\t\tGLCheck!(gl::DrawElementsInstanced(mode, num, I::TYPE, offset, i32(n)));\n\t}\n}\n\n#[allow(unused_imports)]\nuse super::state::*;\n", "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs", "version": 0 } } } 16:54:19.971 Client { "id": "{19a56f1d-3970-424d-8f73-5119fc58cf6f}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:19.971 Client { "jsonrpc": "2.0", "method": "$/cancelRequest", "params": { "id": "{3c89f3bf-496c-483a-8bf2-55fce25339d0}" } } 16:54:19.971 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:54:19.971 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:54:19.971 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:54:19.971 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:54:19.971 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:54:19.971 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:54:19.971 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:54:19.971 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{19a56f1d-3970-424d-8f73-5119fc58cf6f}", "jsonrpc": "2.0" } 16:54:19.971 Client { "id": "{7d067d64-694e-458c-9047-7b048cbecef3}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:20.160 Client { "id": "{60d17387-a032-4130-be08-ce5cbcf24490}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:20.210 Client { "id": "{4f5d3b35-52b8-4643-8ff5-ffd9bb359305}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 7, "line": 16 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:25.110 Client { "id": "{d68360a2-8847-4ea4-a6ed-7e7ebbb6d8aa}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:54:25.116 Server { "id": "{d68360a2-8847-4ea4-a6ed-7e7ebbb6d8aa}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:54:25.116 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:54:25.117 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:54:25.117 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "use super::{buffer::*, format::*, object::*, policy::*, types::*, universion::*, vao_args::*};\nuse crate::uses::*;\n\n#[derive(Default)]\npub struct Vao {\n\to: Object,\n\td: Dummy,\n}\nimpl Vao {\n\tpub fn new() -> Self {\n\t\tSelf { o: Def(), d: Dummy }\n\t}\n\tpub fn obj(&self) -> u32 {\n\t\tself.o.obj\n\t}\n\tpub fn Bind(&mut self) -> VaoBinding {\n\t\tVaoBinding::new(self)\n\t}\n\tpub fn BindIdxs(&mut self, o: &IdxArr) {\n\t\tGLCheck!(glVaoElementBuffer(self.obj(), o.obj));\n\t\tdebug_assert!({\n\t\t\t*Index::crossbindcheck_map().entry(self.obj()).or_default() = vec![o.obj];\n\t\t\ttrue\n\t\t});\n\t}\n\tpub fn AttribFmt(&mut self, o: &AttrArr, args: impl AttrFmtArgs) {\n\t\tlet (idx, size, norm, stride, offset) = args.get();\n\t\tASSERT!(size > 0 && size < 5, \"Attribute size({size}) isn't valid\");\n\t\tlet t_size = u32(type_size!(A));\n\t\tGLCheck!(glVertexAttribFormat(self.obj(), o.obj, idx, size, A::TYPE, to_glbool(norm), stride, offset, t_size));\n\t\tdebug_assert!({\n\t\t\tlet attrs = Attribute::crossbindcheck_map().entry(self.obj()).or_default();\n\t\t\tif attrs.len() < usize(idx + 1) {\n\t\t\t\tattrs.resize(usize(idx + 1), u32::MAX);\n\t\t\t}\n\t\t\tattrs[usize(idx)] = o.obj;\n\t\t\ttrue\n\t\t});\n\t}\n}\nimpl Drop for Vao {\n\tfn drop(&mut self) {\n\t\tdebug_assert!({\n\t\t\tIndex::crossbindcheck_map().remove(&self.o.obj);\n\t\t\tAttribute::crossbindcheck_map().remove(&self.o.obj);\n\t\t\ttrue\n\t\t})\n\t}\n}\n\npub struct VaoBinding<'l, I> {\n\t_b: Binding<'l, VertArrObj>,\n\td: Dummy,\n}\nimpl VaoBinding<'_, I> {\n\tpub fn new(o: &mut Vao) -> Self {\n\t\tlet _b = Binding::new(&mut o.o);\n\t\tSelf { _b, d: Dummy }\n\t}\n\tpub fn Draw(&self, args: impl DrawArgs) {\n\t\tIndex::checkcrossbinds(VertArrObj::bound_obj());\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tGLCheck!(gl::DrawElements(mode, num, I::TYPE, (offset * type_size!(I)) as *const GLvoid));\n\t}\n\tpub fn DrawUnindexed(&self, args: impl DrawArgs) {\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tGLCheck!(gl::DrawArrays(mode, i32(offset), num));\n\t}\n\tpub fn DrawInstanced(&self, n: T, args: impl DrawArgs)\n\twhere\n\t\ti32: Cast,\n\t{\n\t\tIndex::checkcrossbinds(VertArrObj::bound_obj());\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tlet offset = (offset * type_size!(I)) as *const GLvoid;\n\t\tGLCheck!(gl::DrawElementsInstanced(mode, num, I::TYPE, offset, i32(n)));\n\t}\n}\n\n#[allow(unused_imports)]\nuse super::state::*;\n", "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs", "version": 0 } } } 16:54:25.118 Client { "id": "{2c226dc4-106f-4143-95db-225c3a17a13e}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:25.118 Client { "jsonrpc": "2.0", "method": "$/cancelRequest", "params": { "id": "{4f5d3b35-52b8-4643-8ff5-ffd9bb359305}" } } 16:54:25.119 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:54:25.119 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:54:25.119 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:54:25.119 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:54:25.119 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:54:25.119 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:54:25.119 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:54:25.119 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{2c226dc4-106f-4143-95db-225c3a17a13e}", "jsonrpc": "2.0" } 16:54:25.120 Client { "id": "{d26b8f9d-223f-4925-ab30-b4c2215927c9}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:25.326 Client { "id": "{2be24324-5b2c-40fc-b7fe-da1a32ef5e92}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:25.380 Client { "id": "{d70dcf56-b80b-46de-9266-415234b383d6}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 7, "line": 16 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:30.759 Client { "id": "{0282a010-5300-451e-b487-64e22f2ddee7}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:54:30.766 Server { "id": "{0282a010-5300-451e-b487-64e22f2ddee7}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:54:30.766 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:54:30.767 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:54:30.767 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "use super::{buffer::*, format::*, object::*, policy::*, types::*, universion::*, vao_args::*};\nuse crate::uses::*;\n\n#[derive(Default)]\npub struct Vao {\n\to: Object,\n\td: Dummy,\n}\nimpl Vao {\n\tpub fn new() -> Self {\n\t\tSelf { o: Def(), d: Dummy }\n\t}\n\tpub fn obj(&self) -> u32 {\n\t\tself.o.obj\n\t}\n\tpub fn Bind(&mut self) -> VaoBinding {\n\t\tVaoBinding::new(self)\n\t}\n\tpub fn BindIdxs(&mut self, o: &IdxArr) {\n\t\tGLCheck!(glVaoElementBuffer(self.obj(), o.obj));\n\t\tdebug_assert!({\n\t\t\t*Index::crossbindcheck_map().entry(self.obj()).or_default() = vec![o.obj];\n\t\t\ttrue\n\t\t});\n\t}\n\tpub fn AttribFmt(&mut self, o: &AttrArr, args: impl AttrFmtArgs) {\n\t\tlet (idx, size, norm, stride, offset) = args.get();\n\t\tASSERT!(size > 0 && size < 5, \"Attribute size({size}) isn't valid\");\n\t\tlet t_size = u32(type_size!(A));\n\t\tGLCheck!(glVertexAttribFormat(self.obj(), o.obj, idx, size, A::TYPE, to_glbool(norm), stride, offset, t_size));\n\t\tdebug_assert!({\n\t\t\tlet attrs = Attribute::crossbindcheck_map().entry(self.obj()).or_default();\n\t\t\tif attrs.len() < usize(idx + 1) {\n\t\t\t\tattrs.resize(usize(idx + 1), u32::MAX);\n\t\t\t}\n\t\t\tattrs[usize(idx)] = o.obj;\n\t\t\ttrue\n\t\t});\n\t}\n}\nimpl Drop for Vao {\n\tfn drop(&mut self) {\n\t\tdebug_assert!({\n\t\t\tIndex::crossbindcheck_map().remove(&self.o.obj);\n\t\t\tAttribute::crossbindcheck_map().remove(&self.o.obj);\n\t\t\ttrue\n\t\t})\n\t}\n}\n\npub struct VaoBinding<'l, I> {\n\t_b: Binding<'l, VertArrObj>,\n\td: Dummy,\n}\nimpl VaoBinding<'_, I> {\n\tpub fn new(o: &mut Vao) -> Self {\n\t\tlet _b = Binding::new(&mut o.o);\n\t\tSelf { _b, d: Dummy }\n\t}\n\tpub fn Draw(&self, args: impl DrawArgs) {\n\t\tIndex::checkcrossbinds(VertArrObj::bound_obj());\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tGLCheck!(gl::DrawElements(mode, num, I::TYPE, (offset * type_size!(I)) as *const GLvoid));\n\t}\n\tpub fn DrawUnindexed(&self, args: impl DrawArgs) {\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tGLCheck!(gl::DrawArrays(mode, i32(offset), num));\n\t}\n\tpub fn DrawInstanced(&self, n: T, args: impl DrawArgs)\n\twhere\n\t\ti32: Cast,\n\t{\n\t\tIndex::checkcrossbinds(VertArrObj::bound_obj());\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tlet offset = (offset * type_size!(I)) as *const GLvoid;\n\t\tGLCheck!(gl::DrawElementsInstanced(mode, num, I::TYPE, offset, i32(n)));\n\t}\n}\n\n#[allow(unused_imports)]\nuse super::state::*;\n", "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs", "version": 0 } } } 16:54:30.767 Client { "id": "{623f04a3-f477-4c81-bea2-1cdda85dee07}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:30.767 Client { "jsonrpc": "2.0", "method": "$/cancelRequest", "params": { "id": "{d70dcf56-b80b-46de-9266-415234b383d6}" } } 16:54:30.769 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:54:30.769 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:54:30.769 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:54:30.769 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:54:30.769 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:54:30.769 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:54:30.769 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:54:30.769 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{623f04a3-f477-4c81-bea2-1cdda85dee07}", "jsonrpc": "2.0" } 16:54:30.769 Client { "id": "{bb00bbbd-ef33-4c50-8944-1b88c3ae9051}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:30.961 Client { "id": "{bc9f78b6-1cfc-43dd-a441-365ffacd4108}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:31.005 Client { "id": "{e37dfcab-199c-49fc-9629-f1a8f7b8f115}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 7, "line": 16 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:35.962 Client { "id": "{2169133c-d5f1-4058-9104-6235a2af4298}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:54:35.968 Server { "id": "{2169133c-d5f1-4058-9104-6235a2af4298}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:54:35.968 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:54:35.969 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:54:35.969 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "use super::{buffer::*, format::*, object::*, policy::*, types::*, universion::*, vao_args::*};\nuse crate::uses::*;\n\n#[derive(Default)]\npub struct Vao {\n\to: Object,\n\td: Dummy,\n}\nimpl Vao {\n\tpub fn new() -> Self {\n\t\tSelf { o: Def(), d: Dummy }\n\t}\n\tpub fn obj(&self) -> u32 {\n\t\tself.o.obj\n\t}\n\tpub fn Bind(&mut self) -> VaoBinding {\n\t\tVaoBinding::new(self)\n\t}\n\tpub fn BindIdxs(&mut self, o: &IdxArr) {\n\t\tGLCheck!(glVaoElementBuffer(self.obj(), o.obj));\n\t\tdebug_assert!({\n\t\t\t*Index::crossbindcheck_map().entry(self.obj()).or_default() = vec![o.obj];\n\t\t\ttrue\n\t\t});\n\t}\n\tpub fn AttribFmt(&mut self, o: &AttrArr, args: impl AttrFmtArgs) {\n\t\tlet (idx, size, norm, stride, offset) = args.get();\n\t\tASSERT!(size > 0 && size < 5, \"Attribute size({size}) isn't valid\");\n\t\tlet t_size = u32(type_size!(A));\n\t\tGLCheck!(glVertexAttribFormat(self.obj(), o.obj, idx, size, A::TYPE, to_glbool(norm), stride, offset, t_size));\n\t\tdebug_assert!({\n\t\t\tlet attrs = Attribute::crossbindcheck_map().entry(self.obj()).or_default();\n\t\t\tif attrs.len() < usize(idx + 1) {\n\t\t\t\tattrs.resize(usize(idx + 1), u32::MAX);\n\t\t\t}\n\t\t\tattrs[usize(idx)] = o.obj;\n\t\t\ttrue\n\t\t});\n\t}\n}\nimpl Drop for Vao {\n\tfn drop(&mut self) {\n\t\tdebug_assert!({\n\t\t\tIndex::crossbindcheck_map().remove(&self.o.obj);\n\t\t\tAttribute::crossbindcheck_map().remove(&self.o.obj);\n\t\t\ttrue\n\t\t})\n\t}\n}\n\npub struct VaoBinding<'l, I> {\n\t_b: Binding<'l, VertArrObj>,\n\td: Dummy,\n}\nimpl VaoBinding<'_, I> {\n\tpub fn new(o: &mut Vao) -> Self {\n\t\tlet _b = Binding::new(&mut o.o);\n\t\tSelf { _b, d: Dummy }\n\t}\n\tpub fn Draw(&self, args: impl DrawArgs) {\n\t\tIndex::checkcrossbinds(VertArrObj::bound_obj());\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tGLCheck!(gl::DrawElements(mode, num, I::TYPE, (offset * type_size!(I)) as *const GLvoid));\n\t}\n\tpub fn DrawUnindexed(&self, args: impl DrawArgs) {\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tGLCheck!(gl::DrawArrays(mode, i32(offset), num));\n\t}\n\tpub fn DrawInstanced(&self, n: T, args: impl DrawArgs)\n\twhere\n\t\ti32: Cast,\n\t{\n\t\tIndex::checkcrossbinds(VertArrObj::bound_obj());\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tlet offset = (offset * type_size!(I)) as *const GLvoid;\n\t\tGLCheck!(gl::DrawElementsInstanced(mode, num, I::TYPE, offset, i32(n)));\n\t}\n}\n\n#[allow(unused_imports)]\nuse super::state::*;\n", "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs", "version": 0 } } } 16:54:35.969 Client { "id": "{d3cc2d28-c5bc-48aa-808a-30dc3818e2a5}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:35.969 Client { "jsonrpc": "2.0", "method": "$/cancelRequest", "params": { "id": "{e37dfcab-199c-49fc-9629-f1a8f7b8f115}" } } 16:54:35.971 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:54:35.971 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:54:35.971 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:54:35.971 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:54:35.971 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:54:35.971 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:54:35.971 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:54:35.971 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{d3cc2d28-c5bc-48aa-808a-30dc3818e2a5}", "jsonrpc": "2.0" } 16:54:35.971 Client { "id": "{984b13d3-850e-4503-a404-4dbce01b06c1}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:36.160 Client { "id": "{f3275251-fe66-440a-a500-895502a76573}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:36.210 Client { "id": "{b7a3f574-da96-44ae-b3b5-60400a663c3b}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 7, "line": 16 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:41.113 Client { "id": "{693bbab1-81c3-4ee5-a16e-38f13e433429}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:54:41.118 Server { "id": "{693bbab1-81c3-4ee5-a16e-38f13e433429}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:54:41.118 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:54:41.119 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:54:41.119 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "use super::{buffer::*, format::*, object::*, policy::*, types::*, universion::*, vao_args::*};\nuse crate::uses::*;\n\n#[derive(Default)]\npub struct Vao {\n\to: Object,\n\td: Dummy,\n}\nimpl Vao {\n\tpub fn new() -> Self {\n\t\tSelf { o: Def(), d: Dummy }\n\t}\n\tpub fn obj(&self) -> u32 {\n\t\tself.o.obj\n\t}\n\tpub fn Bind(&mut self) -> VaoBinding {\n\t\tVaoBinding::new(self)\n\t}\n\tpub fn BindIdxs(&mut self, o: &IdxArr) {\n\t\tGLCheck!(glVaoElementBuffer(self.obj(), o.obj));\n\t\tdebug_assert!({\n\t\t\t*Index::crossbindcheck_map().entry(self.obj()).or_default() = vec![o.obj];\n\t\t\ttrue\n\t\t});\n\t}\n\tpub fn AttribFmt(&mut self, o: &AttrArr, args: impl AttrFmtArgs) {\n\t\tlet (idx, size, norm, stride, offset) = args.get();\n\t\tASSERT!(size > 0 && size < 5, \"Attribute size({size}) isn't valid\");\n\t\tlet t_size = u32(type_size!(A));\n\t\tGLCheck!(glVertexAttribFormat(self.obj(), o.obj, idx, size, A::TYPE, to_glbool(norm), stride, offset, t_size));\n\t\tdebug_assert!({\n\t\t\tlet attrs = Attribute::crossbindcheck_map().entry(self.obj()).or_default();\n\t\t\tif attrs.len() < usize(idx + 1) {\n\t\t\t\tattrs.resize(usize(idx + 1), u32::MAX);\n\t\t\t}\n\t\t\tattrs[usize(idx)] = o.obj;\n\t\t\ttrue\n\t\t});\n\t}\n}\nimpl Drop for Vao {\n\tfn drop(&mut self) {\n\t\tdebug_assert!({\n\t\t\tIndex::crossbindcheck_map().remove(&self.o.obj);\n\t\t\tAttribute::crossbindcheck_map().remove(&self.o.obj);\n\t\t\ttrue\n\t\t})\n\t}\n}\n\npub struct VaoBinding<'l, I> {\n\t_b: Binding<'l, VertArrObj>,\n\td: Dummy,\n}\nimpl VaoBinding<'_, I> {\n\tpub fn new(o: &mut Vao) -> Self {\n\t\tlet _b = Binding::new(&mut o.o);\n\t\tSelf { _b, d: Dummy }\n\t}\n\tpub fn Draw(&self, args: impl DrawArgs) {\n\t\tIndex::checkcrossbinds(VertArrObj::bound_obj());\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tGLCheck!(gl::DrawElements(mode, num, I::TYPE, (offset * type_size!(I)) as *const GLvoid));\n\t}\n\tpub fn DrawUnindexed(&self, args: impl DrawArgs) {\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tGLCheck!(gl::DrawArrays(mode, i32(offset), num));\n\t}\n\tpub fn DrawInstanced(&self, n: T, args: impl DrawArgs)\n\twhere\n\t\ti32: Cast,\n\t{\n\t\tIndex::checkcrossbinds(VertArrObj::bound_obj());\n\t\tAttribute::checkcrossbinds(VertArrObj::bound_obj());\n\t\tlet (num, offset, mode) = args.get();\n\t\tlet offset = (offset * type_size!(I)) as *const GLvoid;\n\t\tGLCheck!(gl::DrawElementsInstanced(mode, num, I::TYPE, offset, i32(n)));\n\t}\n}\n\n#[allow(unused_imports)]\nuse super::state::*;\n", "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs", "version": 0 } } } 16:54:41.119 Client { "id": "{3a700b7c-25ed-4aca-b1ad-3e4ce2ffe0ec}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:41.120 Client { "jsonrpc": "2.0", "method": "$/cancelRequest", "params": { "id": "{b7a3f574-da96-44ae-b3b5-60400a663c3b}" } } 16:54:41.121 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:54:41.121 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:54:41.121 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:54:41.121 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:54:41.121 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:54:41.121 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:54:41.121 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:54:41.122 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{3a700b7c-25ed-4aca-b1ad-3e4ce2ffe0ec}", "jsonrpc": "2.0" } 16:54:41.122 Client { "id": "{ede4d1e7-f718-45b6-a2e6-9c69e73127cf}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:41.329 Client { "id": "{7b4c4079-daaf-41c4-b8d6-7d25512ed137}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:54:41.382 Client { "id": "{c5fbd1a0-1d30-4e16-b81a-2dd2c80b93b2}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 7, "line": 16 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/opengl/buffer/vao.rs" } } } 16:57:49.876 Client { "id": "{137ff139-8898-4410-9807-e3c59e018c4a}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:57:49.884 Server { "id": "{137ff139-8898-4410-9807-e3c59e018c4a}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:57:49.884 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:57:49.885 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:57:49.885 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "pub use s::*;\n\n#[cfg(feature = \"rng\")]\nmod s {\n\tuse rand::SeedableRng;\n\n\tpub use rand::distributions::{Distribution, Uniform as uni_dist};\n\tpub use rand::seq::SliceRandom;\n\tpub use rand::Rng as prelude_rng;\n\tpub use rand_xorshift::XorShiftRng as Rng;\n\tpub use simdnoise::NoiseBuilder as noise;\n\n\tpub mod rng {\n\t\tuse super::*;\n\t\tpub fn new() -> Rng {\n\t\t\tRng::from_rng(rand::thread_rng()).unwrap()\n\t\t}\n\t\tpub fn seeded(s: u64) -> Rng {\n\t\t\tRng::seed_from_u64(s)\n\t\t}\n\t}\n}\n#[cfg(not(feature = \"rng\"))]\nmod s {}\n", "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs", "version": 0 } } } 16:57:49.885 Client { "id": "{b9b4b21f-caf6-4dc2-a286-9ea0a073e343}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:57:49.888 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:57:49.888 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:57:49.888 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:57:49.888 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:57:49.888 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:57:49.888 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:57:49.888 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:57:49.888 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{b9b4b21f-caf6-4dc2-a286-9ea0a073e343}", "jsonrpc": "2.0" } 16:57:49.888 Client { "id": "{4d1c90e0-3efa-4495-99c0-f3eb62eebbf3}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:57:50.096 Client { "id": "{97af1097-97d7-4626-a031-14107788445f}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:57:50.148 Client { "id": "{87143bcd-4707-40b2-8563-123ea1318d25}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 0, "line": 0 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:57:55.035 Client { "id": "{6174fa7c-1328-4477-b241-92b3b3bd3c6d}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:57:55.044 Server { "id": "{6174fa7c-1328-4477-b241-92b3b3bd3c6d}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:57:55.044 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:57:55.045 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:57:55.045 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "pub use s::*;\n\n#[cfg(feature = \"rng\")]\nmod s {\n\tuse rand::SeedableRng;\n\n\tpub use rand::distributions::{Distribution, Uniform as uni_dist};\n\tpub use rand::seq::SliceRandom;\n\tpub use rand::Rng as prelude_rng;\n\tpub use rand_xorshift::XorShiftRng as Rng;\n\tpub use simdnoise::NoiseBuilder as noise;\n\n\tpub mod rng {\n\t\tuse super::*;\n\t\tpub fn new() -> Rng {\n\t\t\tRng::from_rng(rand::thread_rng()).unwrap()\n\t\t}\n\t\tpub fn seeded(s: u64) -> Rng {\n\t\t\tRng::seed_from_u64(s)\n\t\t}\n\t}\n}\n#[cfg(not(feature = \"rng\"))]\nmod s {}\n", "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs", "version": 0 } } } 16:57:55.045 Client { "id": "{bc57e7a0-9197-4bcd-bd6e-774a3cb0f708}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:57:55.045 Client { "jsonrpc": "2.0", "method": "$/cancelRequest", "params": { "id": "{87143bcd-4707-40b2-8563-123ea1318d25}" } } 16:57:55.048 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:57:55.048 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:57:55.048 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:57:55.048 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:57:55.048 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:57:55.048 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:57:55.048 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:57:55.048 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{bc57e7a0-9197-4bcd-bd6e-774a3cb0f708}", "jsonrpc": "2.0" } 16:57:55.048 Client { "id": "{ec15efc4-a68c-4bd5-b855-9d5f6f27aab9}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:57:55.235 Client { "id": "{e3cb7c03-4d1f-4e66-9772-da407d64b330}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:57:55.284 Client { "id": "{8b1b3dc8-e1fc-42fb-a2a9-ae712e13c168}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 0, "line": 0 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:00.190 Client { "id": "{77cc7b0f-de51-493b-b84f-0ee41b373839}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:58:00.199 Server { "id": "{77cc7b0f-de51-493b-b84f-0ee41b373839}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:58:00.199 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:58:00.200 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:58:00.200 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "pub use s::*;\n\n#[cfg(feature = \"rng\")]\nmod s {\n\tuse rand::SeedableRng;\n\n\tpub use rand::distributions::{Distribution, Uniform as uni_dist};\n\tpub use rand::seq::SliceRandom;\n\tpub use rand::Rng as prelude_rng;\n\tpub use rand_xorshift::XorShiftRng as Rng;\n\tpub use simdnoise::NoiseBuilder as noise;\n\n\tpub mod rng {\n\t\tuse super::*;\n\t\tpub fn new() -> Rng {\n\t\t\tRng::from_rng(rand::thread_rng()).unwrap()\n\t\t}\n\t\tpub fn seeded(s: u64) -> Rng {\n\t\t\tRng::seed_from_u64(s)\n\t\t}\n\t}\n}\n#[cfg(not(feature = \"rng\"))]\nmod s {}\n", "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs", "version": 0 } } } 16:58:00.200 Client { "id": "{c4acb9dc-7f1a-48e7-a2de-3f98741010ad}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:00.200 Client { "jsonrpc": "2.0", "method": "$/cancelRequest", "params": { "id": "{8b1b3dc8-e1fc-42fb-a2a9-ae712e13c168}" } } 16:58:00.203 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:58:00.203 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:58:00.203 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:58:00.203 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:58:00.203 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:58:00.203 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:58:00.203 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:58:00.203 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{c4acb9dc-7f1a-48e7-a2de-3f98741010ad}", "jsonrpc": "2.0" } 16:58:00.203 Client { "id": "{b2e91f71-1c6d-45fc-a243-f1197ed335c9}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:00.389 Client { "id": "{caec36c1-1778-499a-a698-c78dd0c9d3b8}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:00.460 Client { "id": "{41a49658-21f4-450a-84e9-c93492e88661}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 0, "line": 0 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:05.853 Client { "id": "{502ed3a1-030d-4e43-b481-740b760666de}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:58:05.864 Server { "id": "{502ed3a1-030d-4e43-b481-740b760666de}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:58:05.864 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:58:05.865 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:58:05.865 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "pub use s::*;\n\n#[cfg(feature = \"rng\")]\nmod s {\n\tuse rand::SeedableRng;\n\n\tpub use rand::distributions::{Distribution, Uniform as uni_dist};\n\tpub use rand::seq::SliceRandom;\n\tpub use rand::Rng as prelude_rng;\n\tpub use rand_xorshift::XorShiftRng as Rng;\n\tpub use simdnoise::NoiseBuilder as noise;\n\n\tpub mod rng {\n\t\tuse super::*;\n\t\tpub fn new() -> Rng {\n\t\t\tRng::from_rng(rand::thread_rng()).unwrap()\n\t\t}\n\t\tpub fn seeded(s: u64) -> Rng {\n\t\t\tRng::seed_from_u64(s)\n\t\t}\n\t}\n}\n#[cfg(not(feature = \"rng\"))]\nmod s {}\n", "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs", "version": 0 } } } 16:58:05.865 Client { "id": "{8fec1037-309c-4e86-98cc-438b637dd16b}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:05.865 Client { "jsonrpc": "2.0", "method": "$/cancelRequest", "params": { "id": "{41a49658-21f4-450a-84e9-c93492e88661}" } } 16:58:05.866 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:58:05.866 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:58:05.866 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:58:05.866 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:58:05.866 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:58:05.866 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:58:05.866 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:58:05.869 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{8fec1037-309c-4e86-98cc-438b637dd16b}", "jsonrpc": "2.0" } 16:58:05.869 Client { "id": "{99ed70cc-e6fd-4dfa-b5f9-b97a7ae29e2b}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:06.075 Client { "id": "{d5d5625e-aa28-4a08-91dc-a6c53c8aff1d}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:06.127 Client { "id": "{b87a8d2d-6430-4189-bdd5-b68e1e8a6583}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 0, "line": 0 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:11.005 Client { "id": "{838006dd-1b8a-4c84-8943-a7b242dc62d1}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:58:11.015 Server { "id": "{838006dd-1b8a-4c84-8943-a7b242dc62d1}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:58:11.015 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:58:11.016 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:58:11.016 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "pub use s::*;\n\n#[cfg(feature = \"rng\")]\nmod s {\n\tuse rand::SeedableRng;\n\n\tpub use rand::distributions::{Distribution, Uniform as uni_dist};\n\tpub use rand::seq::SliceRandom;\n\tpub use rand::Rng as prelude_rng;\n\tpub use rand_xorshift::XorShiftRng as Rng;\n\tpub use simdnoise::NoiseBuilder as noise;\n\n\tpub mod rng {\n\t\tuse super::*;\n\t\tpub fn new() -> Rng {\n\t\t\tRng::from_rng(rand::thread_rng()).unwrap()\n\t\t}\n\t\tpub fn seeded(s: u64) -> Rng {\n\t\t\tRng::seed_from_u64(s)\n\t\t}\n\t}\n}\n#[cfg(not(feature = \"rng\"))]\nmod s {}\n", "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs", "version": 0 } } } 16:58:11.016 Client { "id": "{318893cd-1cd9-4908-9efe-528750b20698}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:11.016 Client { "jsonrpc": "2.0", "method": "$/cancelRequest", "params": { "id": "{b87a8d2d-6430-4189-bdd5-b68e1e8a6583}" } } 16:58:11.017 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:58:11.017 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:58:11.017 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:58:11.017 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:58:11.017 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:58:11.017 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:58:11.017 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:58:11.020 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{318893cd-1cd9-4908-9efe-528750b20698}", "jsonrpc": "2.0" } 16:58:11.021 Client { "id": "{76067375-6d7c-4959-9c76-d9ba1d0a02dc}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:11.206 Client { "id": "{ee16aff0-6ad9-4847-a630-b63acae8e224}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:11.254 Client { "id": "{3015e974-c781-4db4-8fa8-e13120031abb}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 0, "line": 0 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:16.176 Client { "id": "{122a9c70-f9f3-49eb-b994-70bdf7af804e}", "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": "8.0.0-rc1" }, "initializationOptions": { }, "processId": 16905, "rootUri": "file:///_/code/rust", "trace": "off", "workspaceFolders": [ { "name": "py", "uri": "file:///_/code/py" }, { "name": "rust", "uri": "file:///_/code/rust" } ] } } 16:58:16.186 Server { "id": "{122a9c70-f9f3-49eb-b994-70bdf7af804e}", "jsonrpc": "2.0", "result": { "capabilities": { "callHierarchyProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "completionProvider": { "triggerCharacters": [ ":", ".", "'", "(" ] }, "declarationProvider": true, "definitionProvider": true, "documentFormattingProvider": true, "documentHighlightProvider": true, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{" ] }, "documentRangeFormattingProvider": false, "documentSymbolProvider": 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 }, "foldingRangeProvider": true, "hoverProvider": true, "implementationProvider": true, "inlayHintProvider": { "resolveProvider": true }, "referencesProvider": true, "renameProvider": { "prepareProvider": true }, "selectionRangeProvider": true, "semanticTokensProvider": { "full": { "delta": true }, "legend": { "tokenModifiers": [ "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" ], "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ] }, "range": true }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "textDocumentSync": { "change": 2, "openClose": true, "save": { } }, "typeDefinitionProvider": true, "workspace": { "fileOperations": { "willRename": { "filters": [ { "pattern": { "glob": "**/*.rs", "matches": "file" }, "scheme": "file" }, { "pattern": { "glob": "**", "matches": "folder" }, "scheme": "file" } ] } } }, "workspaceSymbolProvider": true }, "serverInfo": { "name": "rust-analyzer", "version": "0.0.0" } } } 16:58:16.186 Client { "jsonrpc": "2.0", "method": "initialized", "params": { } } 16:58:16.187 Client { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": "" } } 16:58:16.187 Client { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "textDocument": { "languageId": "rust", "text": "pub use s::*;\n\n#[cfg(feature = \"rng\")]\nmod s {\n\tuse rand::SeedableRng;\n\n\tpub use rand::distributions::{Distribution, Uniform as uni_dist};\n\tpub use rand::seq::SliceRandom;\n\tpub use rand::Rng as prelude_rng;\n\tpub use rand_xorshift::XorShiftRng as Rng;\n\tpub use simdnoise::NoiseBuilder as noise;\n\n\tpub mod rng {\n\t\tuse super::*;\n\t\tpub fn new() -> Rng {\n\t\t\tRng::from_rng(rand::thread_rng()).unwrap()\n\t\t}\n\t\tpub fn seeded(s: u64) -> Rng {\n\t\t\tRng::seed_from_u64(s)\n\t\t}\n\t}\n}\n#[cfg(not(feature = \"rng\"))]\nmod s {}\n", "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs", "version": 0 } } } 16:58:16.187 Client { "id": "{67ce2801-e20b-414c-8293-f74387ca17ea}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:16.187 Client { "jsonrpc": "2.0", "method": "$/cancelRequest", "params": { "id": "{3015e974-c781-4db4-8fa8-e13120031abb}" } } 16:58:16.190 Server { "id": 0, "jsonrpc": "2.0", "method": "client/registerCapability", "params": { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ], "includeText": false } } ] } } 16:58:16.191 Client { "id": 0, "jsonrpc": "2.0", "result": null } 16:58:16.191 Server { "id": 1, "jsonrpc": "2.0", "method": "workspace/configuration", "params": { "items": [ { "section": "rust-analyzer" } ] } } 16:58:16.191 Client { "error": { "code": -32601 }, "id": 1, "jsonrpc": "2.0" } 16:58:16.191 Server { "id": 2, "jsonrpc": "2.0", "method": "window/workDoneProgress/create", "params": { "token": "rustAnalyzer/Fetching" } } 16:58:16.191 Client { "id": 2, "jsonrpc": "2.0", "result": null } 16:58:16.191 Server { "jsonrpc": "2.0", "method": "$/progress", "params": { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching" } } } 16:58:16.191 Server { "error": { "code": -32801, "message": "waiting for cargo metadata or cargo check" }, "id": "{67ce2801-e20b-414c-8293-f74387ca17ea}", "jsonrpc": "2.0" } 16:58:16.191 Client { "id": "{180e1cff-98ab-4383-821e-9af55c770225}", "jsonrpc": "2.0", "method": "textDocument/semanticTokens/full", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:16.376 Client { "id": "{737a1f09-525e-4d96-ad30-bcd8b968687e}", "jsonrpc": "2.0", "method": "textDocument/documentSymbol", "params": { "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } } 16:58:16.449 Client { "id": "{7a0d1c10-a162-4428-9040-180c3d01bc6a}", "jsonrpc": "2.0", "method": "textDocument/documentHighlight", "params": { "position": { "character": 0, "line": 0 }, "textDocument": { "uri": "file:///_/code/rust/toolbox/lib/policies/rand.rs" } } }