-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
Description
OS Version: Windows Server 20919 - CentOS 7.9
VSCode Version: 1.55.1
Puppet Extension Version: 1.2.0
PDK Version: 2.1.0
What You Are Seeing?
Hover throws an error. Intellisense isn't working either.
[2021-04-13 14:47:12.689] [exthost] [error] TypeError: Cannot read property 'kind' of null
at asHoverContent (/home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/node_modules/vscode-languageclient/lib/protocolConverter.js:101:27)
at asHover (/home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/node_modules/vscode-languageclient/lib/protocolConverter.js:134:31)
I'm on Windows Server with vscode connected to a linux server hosting the files via Remote.SSH.
What is Expected?
Tooltips on hover. Intellisense working.
How Did You Get This To Happen? (Steps to Reproduce)
Using the extension via Remote.SSH.
Output Log
This is my debug log:
I, [2021-04-13T14:46:59.906026 #17879] INFO -- : Language Server is v1.1.0
D, [2021-04-13T14:46:59.907894 #17879] DEBUG -- : Loading gems...
I, [2021-04-13T14:47:01.514525 #17879] INFO -- : Using Puppet v7.5.0
I, [2021-04-13T14:47:01.516585 #17879] INFO -- : Using Facter v4.0.52
D, [2021-04-13T14:47:01.518339 #17879] DEBUG -- : Detected additional puppet settings ["--environment", "windows", "--modulepath", "/home/mhj/environments"]
I, [2021-04-13T14:47:01.557278 #17879] INFO -- : Initializing settings...
I, [2021-04-13T14:47:01.559332 #17879] INFO -- : Starting RPC Server...
D, [2021-04-13T14:47:01.560622 #17879] DEBUG -- : Using STDIO Server
D, [2021-04-13T14:47:01.563230 #17879] DEBUG -- : STDIOSRV: Starting STDIO server...
D, [2021-04-13T14:47:01.565083 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":17782,"rootPath":"/home/mhj/environments/windows","rootUri":"file:///home/mhj/environments/windows","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":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]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":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]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}}},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":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]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"documentLink":{"dynamicRegistration":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true}}},"trace":"off","workspaceFolders":[{"uri":"file:///home/mhj/environments/windows","name":"windows"}]}}
---
D, [2021-04-13T14:47:01.566627 #17879] DEBUG -- : Received initialize method
I, [2021-04-13T14:47:01.568251 #17879] INFO -- : Loading Default Data via aggregate (Async)...
D, [2021-04-13T14:47:01.569976 #17879] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "/home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "default_aggregate", "--puppet-version=7.5.0", "--puppet-settings=--environment,windows,--modulepath,/home/mhj/environments"]
D, [2021-04-13T14:47:01.570066 #17879] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "/home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "facts", "--puppet-version=7.5.0", "--puppet-settings=--environment,windows,--modulepath,/home/mhj/environments"]
I, [2021-04-13T14:47:01.570108 #17879] INFO -- : Loading static data (Async)...
I, [2021-04-13T14:47:01.570237 #17879] INFO -- : Loading Workspace Data via aggregate (Async)...
D, [2021-04-13T14:47:01.573545 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":0,"result":{"capabilities":{"textDocumentSync":1,"hoverProvider":true,"completionProvider":{"resolveProvider":true,"triggerCharacters":[">","$","[","="]},"definitionProvider":true,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]}}}}
---
D, [2021-04-13T14:47:01.573673 #17879] DEBUG -- : Importing static data file /home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-aggregate.json...
D, [2021-04-13T14:47:01.575299 #17879] DEBUG -- : Importing static data file /home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-boltlib.json...
D, [2021-04-13T14:47:01.578136 #17879] DEBUG -- : Importing static data file /home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-canary.json...
D, [2021-04-13T14:47:01.578336 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","method":"initialized","params":{}}
---
I, [2021-04-13T14:47:01.579935 #17879] INFO -- : Client has received initialization
D, [2021-04-13T14:47:01.580137 #17879] DEBUG -- : Importing static data file /home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-ctrl.json...
I, [2021-04-13T14:47:01.581422 #17879] INFO -- : Attempting to dynamically register the workspace/didChangeConfiguration method with id 709f6d70-b5bb-448e-92a7-318d71be6b0c
D, [2021-04-13T14:47:01.581623 #17879] DEBUG -- : Importing static data file /home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-dir.json...
D, [2021-04-13T14:47:01.582959 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":0,"method":"client/registerCapability","params":{"registrations":[{"method":"workspace/didChangeConfiguration","id":"709f6d70-b5bb-448e-92a7-318d71be6b0c","registerOptions":{}}]}}
---
D, [2021-04-13T14:47:01.583090 #17879] DEBUG -- : Importing static data file /home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-file.json...
D, [2021-04-13T14:47:01.585616 #17879] DEBUG -- : Importing static data file /home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-out.json...
D, [2021-04-13T14:47:01.585776 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///home/mhj/environments/windows/modules/sqlhosting/manifests/host.pp","languageId":"puppet","version":1,"text":"# lint:ignore:140chars lint:ignore:double_quoted_strings\n# Class: sqlhosting::host\n# Configuration of sqlhosting host\n#\nclass sqlhosting::host (\n String $sql_server_version,\n){\n\n dsc_sqlsetup { 'sql':\n dsc_action => 'Install',\n dsc_agtsvcstartuptype => 'Automatic',\n dsc_browsersvcstartuptype => 'Disabled',\n dsc_features => 'SQLENGINE',\n dsc_forcereboot => true,\n dsc_installsqldatadir => 'D:\\\\Data',\n dsc_npenabled => false,\n dsc_securitymode => 'SQL',\n dsc_sourcepath => 'path',\n dsc_sqlbackupdir => 'E:\\\\Backup',\n dsc_sqlsysadminaccounts => 'Administrator',\n dsc_sqltempdbdir => 'F:\\\\TempDB',\n dsc_sqltempdbfilecount => 4,\n dsc_sqltempdbfilegrowth => 0,\n dsc_sqltempdbfilesize => 10240,\n dsc_sqltempdblogdir => 'F:\\\\TempDb',\n dsc_sqltempdblogfilegrowth => 0,\n dsc_sqltempdblogfilesize => 10240,\n dsc_sqluserdbdir => 'D:\\\\Data',\n dsc_sqluserdblogdir => 'G:\\\\Log',\n\n }\n\n}\n"}}}
---
D, [2021-04-13T14:47:01.587189 #17879] DEBUG -- : Importing static data file /home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-prompt.json...
I, [2021-04-13T14:47:01.588638 #17879] INFO -- : Received textDocument/didOpen notification.
D, [2021-04-13T14:47:01.589613 #17879] DEBUG -- : Importing static data file /home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-puppetdb_fact.json...
D, [2021-04-13T14:47:01.593915 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":0,"result":null}
---
D, [2021-04-13T14:47:01.613070 #17879] DEBUG -- : Importing static data file /home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-system.json...
D, [2021-04-13T14:47:01.617254 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/mhj/environments/windows/modules/sqlhosting/manifests/host.pp","diagnostics":[]}}
---
D, [2021-04-13T14:47:01.617475 #17879] DEBUG -- : Static bolt data returned 47 functions
I, [2021-04-13T14:47:01.618386 #17879] INFO -- : Succesfully dynamically registered the workspace/didChangeConfiguration method
D, [2021-04-13T14:47:01.620837 #17879] DEBUG -- : Static bolt data returned 7 datatypes
D, [2021-04-13T14:47:01.622754 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":1,"method":"workspace/configuration","params":{"items":[{"section":"puppet"}]}}
---
D, [2021-04-13T14:47:01.624351 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":1,"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///home/mhj/environments/windows/modules/sqlhosting/manifests/host.pp"}}}
---
D, [2021-04-13T14:47:01.633939 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":1,"result":[{"kind":5,"selectionRange":{"end":{"line":32,"character":1},"start":{"line":4,"character":0}},"children":[{"kind":7,"selectionRange":{"end":{"line":5,"character":28},"start":{"line":5,"character":9}},"children":[],"range":{"end":{"line":5,"character":28},"start":{"line":5,"character":9}},"detail":"$sql_server_version","name":"$sql_server_version"},{"kind":6,"selectionRange":{"start":{"line":8,"character":17},"end":{"line":8,"character":22}},"children":[{"kind":13,"selectionRange":{"end":{"line":9,"character":14},"start":{"line":9,"character":4}},"children":[],"range":{"end":{"line":9,"character":43},"start":{"line":9,"character":4}},"detail":"dsc_action","name":"dsc_action"},{"kind":13,"selectionRange":{"end":{"line":10,"character":25},"start":{"line":10,"character":4}},"children":[],"range":{"end":{"line":10,"character":45},"start":{"line":10,"character":4}},"detail":"dsc_agtsvcstartuptype","name":"dsc_agtsvcstartuptype"},{"kind":13,"selectionRange":{"end":{"line":11,"character":29},"start":{"line":11,"character":4}},"children":[],"range":{"end":{"line":11,"character":44},"start":{"line":11,"character":4}},"detail":"dsc_browsersvcstartuptype","name":"dsc_browsersvcstartuptype"},{"kind":13,"selectionRange":{"end":{"line":12,"character":16},"start":{"line":12,"character":4}},"children":[],"range":{"end":{"line":12,"character":45},"start":{"line":12,"character":4}},"detail":"dsc_features","name":"dsc_features"},{"kind":13,"selectionRange":{"end":{"line":13,"character":19},"start":{"line":13,"character":4}},"children":[],"range":{"end":{"line":13,"character":38},"start":{"line":13,"character":4}},"detail":"dsc_forcereboot","name":"dsc_forcereboot"},{"kind":13,"selectionRange":{"end":{"line":14,"character":25},"start":{"line":14,"character":4}},"children":[],"range":{"end":{"line":14,"character":44},"start":{"line":14,"character":4}},"detail":"dsc_installsqldatadir","name":"dsc_installsqldatadir"},{"kind":13,"selectionRange":{"end":{"line":15,"character":17},"start":{"line":15,"character":4}},"children":[],"range":{"end":{"line":15,"character":39},"start":{"line":15,"character":4}},"detail":"dsc_npenabled","name":"dsc_npenabled"},{"kind":13,"selectionRange":{"end":{"line":16,"character":20},"start":{"line":16,"character":4}},"children":[],"range":{"end":{"line":16,"character":39},"start":{"line":16,"character":4}},"detail":"dsc_securitymode","name":"dsc_securitymode"},{"kind":13,"selectionRange":{"end":{"line":17,"character":18},"start":{"line":17,"character":4}},"children":[],"range":{"end":{"line":17,"character":40},"start":{"line":17,"character":4}},"detail":"dsc_sourcepath","name":"dsc_sourcepath"},{"kind":13,"selectionRange":{"end":{"line":18,"character":20},"start":{"line":18,"character":4}},"children":[],"range":{"end":{"line":18,"character":46},"start":{"line":18,"character":4}},"detail":"dsc_sqlbackupdir","name":"dsc_sqlbackupdir"},{"kind":13,"selectionRange":{"end":{"line":19,"character":27},"start":{"line":19,"character":4}},"children":[],"range":{"end":{"line":19,"character":49},"start":{"line":19,"character":4}},"detail":"dsc_sqlsysadminaccounts","name":"dsc_sqlsysadminaccounts"},{"kind":13,"selectionRange":{"end":{"line":20,"character":20},"start":{"line":20,"character":4}},"children":[],"range":{"end":{"line":20,"character":46},"start":{"line":20,"character":4}},"detail":"dsc_sqltempdbdir","name":"dsc_sqltempdbdir"},{"kind":13,"selectionRange":{"end":{"line":21,"character":26},"start":{"line":21,"character":4}},"children":[],"range":{"end":{"line":21,"character":35},"start":{"line":21,"character":4}},"detail":"dsc_sqltempdbfilecount","name":"dsc_sqltempdbfilecount"},{"kind":13,"selectionRange":{"end":{"line":22,"character":27},"start":{"line":22,"character":4}},"children":[],"range":{"end":{"line":22,"character":35},"start":{"line":22,"character":4}},"detail":"dsc_sqltempdbfilegrowth","name":"dsc_sqltempdbfilegrowth"},{"kind":13,"selectionRange":{"end":{"line":23,"character":25},"start":{"line":23,"character":4}},"children":[],"range":{"end":{"line":23,"character":39},"start":{"line":23,"character":4}},"detail":"dsc_sqltempdbfilesize","name":"dsc_sqltempdbfilesize"},{"kind":13,"selectionRange":{"end":{"line":24,"character":23},"start":{"line":24,"character":4}},"children":[],"range":{"end":{"line":24,"character":46},"start":{"line":24,"character":4}},"detail":"dsc_sqltempdblogdir","name":"dsc_sqltempdblogdir"},{"kind":13,"selectionRange":{"end":{"line":25,"character":30},"start":{"line":25,"character":4}},"children":[],"range":{"end":{"line":25,"character":35},"start":{"line":25,"character":4}},"detail":"dsc_sqltempdblogfilegrowth","name":"dsc_sqltempdblogfilegrowth"},{"kind":13,"selectionRange":{"end":{"line":26,"character":28},"start":{"line":26,"character":4}},"children":[],"range":{"end":{"line":26,"character":39},"start":{"line":26,"character":4}},"detail":"dsc_sqltempdblogfilesize","name":"dsc_sqltempdblogfilesize"},{"kind":13,"selectionRange":{"end":{"line":27,"character":20},"start":{"line":27,"character":4}},"children":[],"range":{"end":{"line":27,"character":44},"start":{"line":27,"character":4}},"detail":"dsc_sqluserdbdir","name":"dsc_sqluserdbdir"},{"kind":13,"selectionRange":{"end":{"line":28,"character":23},"start":{"line":28,"character":4}},"children":[],"range":{"end":{"line":28,"character":43},"start":{"line":28,"character":4}},"detail":"dsc_sqluserdblogdir","name":"dsc_sqluserdblogdir"}],"range":{"end":{"line":30,"character":3},"start":{"line":8,"character":2}},"detail":"dsc_sqlsetup: 'sql'","name":"dsc_sqlsetup: 'sql'"}],"range":{"end":{"line":32,"character":1},"start":{"line":4,"character":0}},"detail":"sqlhosting::host","name":"sqlhosting::host"}]}
---
D, [2021-04-13T14:47:01.635476 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":1,"result":[{"editorService":{"enable":true,"debugFilePath":"/home/mhj/log.log","featureFlags":["puppetstrings"],"formatOnType":{"enable":true,"maxFileSize":4096},"hover":{"showMetadataInfo":true},"loglevel":"debug","protocol":"stdio","puppet":{"confdir":"","environment":"windows","modulePath":"/home/mhj/environments","vardir":"","version":""},"tcp":{"address":"","port":0},"timeout":10},"validate":{"resolvePuppetfiles":true},"format":{"enable":true},"installDirectory":"","installType":"auto","notification":{"nodeGraph":"messagebox","puppetResource":"messagebox"},"pdk":{"checkVersion":true},"titleBar":{"pdkNewModule":{"enable":false}}}]}
---
I, [2021-04-13T14:47:01.636863 #17879] INFO -- : Attempting to dynamically register the textDocument/onTypeFormatting method with id 7fd2f4c2-5965-4d54-bf79-0391ec7ee6af
D, [2021-04-13T14:47:01.638422 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":2,"method":"client/registerCapability","params":{"registrations":[{"method":"textDocument/onTypeFormatting","id":"7fd2f4c2-5965-4d54-bf79-0391ec7ee6af","registerOptions":{"firstTriggerCharacter":">"}}]}}
---
D, [2021-04-13T14:47:01.640441 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":2,"result":null}
---
I, [2021-04-13T14:47:01.641917 #17879] INFO -- : Succesfully dynamically registered the textDocument/onTypeFormatting method
D, [2021-04-13T14:47:02.582163 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":2,"method":"puppet/getVersion","params":null}
---
D, [2021-04-13T14:47:02.584422 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":2,"result":{"puppetVersion":"7.5.0","facterVersion":"4.0.52","languageServerVersion":"1.1.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
A, [2021-04-13T14:47:03.576239 #17879] ANY -- : SidecarQueue Thread: Calling sidecar with --action default_aggregate --puppet-version=7.5.0 --puppet-settings=--environment,windows,--modulepath,/home/mhj/environments returned exitcode 0,
D, [2021-04-13T14:47:03.598842 #17879] DEBUG -- : SidecarQueue Thread: default_aggregate returned 39 datatypes
D, [2021-04-13T14:47:03.599099 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":3,"method":"puppet/getVersion","params":null}
---
D, [2021-04-13T14:47:03.600656 #17879] DEBUG -- : SidecarQueue Thread: default_aggregate returned 104 functions
D, [2021-04-13T14:47:03.601617 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":3,"result":{"puppetVersion":"7.5.0","facterVersion":"4.0.52","languageServerVersion":"1.1.0","factsLoaded":false,"functionsLoaded":true,"typesLoaded":true,"classesLoaded":true}}
---
D, [2021-04-13T14:47:03.601667 #17879] DEBUG -- : SidecarQueue Thread: default_aggregate returned 14 types
D, [2021-04-13T14:47:03.603450 #17879] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "/home/mhj/.vscode-server/extensions/puppet.puppet-vscode-1.2.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "workspace_aggregate", "--local-workspace", "/home/mhj/environments/windows", "--puppet-version=7.5.0", "--puppet-settings=--environment,windows,--modulepath,/home/mhj/environments"]
A, [2021-04-13T14:47:04.293856 #17879] ANY -- : SidecarQueue Thread: Calling sidecar with --action facts --puppet-version=7.5.0 --puppet-settings=--environment,windows,--modulepath,/home/mhj/environments returned exitcode 0,
D, [2021-04-13T14:47:04.303199 #17879] DEBUG -- : SidecarQueue Thread: facts returned 372 items
D, [2021-04-13T14:47:04.583448 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":4,"method":"puppet/getVersion","params":null}
---
D, [2021-04-13T14:47:04.602236 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":4,"result":{"puppetVersion":"7.5.0","facterVersion":"4.0.52","languageServerVersion":"1.1.0","factsLoaded":true,"functionsLoaded":true,"typesLoaded":true,"classesLoaded":true}}
---
A, [2021-04-13T14:47:05.417021 #17879] ANY -- : SidecarQueue Thread: Calling sidecar with --action workspace_aggregate --local-workspace /home/mhj/environments/windows --puppet-version=7.5.0 --puppet-settings=--environment,windows,--modulepath,/home/mhj/environments returned exitcode 0,
D, [2021-04-13T14:47:12.681611 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":5,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///home/mhj/environments/windows/modules/sqlhosting/manifests/host.pp"},"position":{"line":28,"character":7}}}
---
E, [2021-04-13T14:47:12.685510 #17879] ERROR -- : (textDocument/hover) dsc_sqlsetup is not a valid puppet type, class or defined type
D, [2021-04-13T14:47:12.687138 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":5,"result":{"contents":null}}
---
D, [2021-04-13T14:47:15.147982 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":6,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///home/mhj/environments/windows/modules/sqlhosting/manifests/host.pp"},"position":{"line":28,"character":9}}}
---
E, [2021-04-13T14:47:15.150964 #17879] ERROR -- : (textDocument/hover) dsc_sqlsetup is not a valid puppet type, class or defined type
D, [2021-04-13T14:47:15.152330 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":6,"result":{"contents":null}}
---
D, [2021-04-13T14:47:15.586068 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":7,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///home/mhj/environments/windows/modules/sqlhosting/manifests/host.pp"},"position":{"line":28,"character":11}}}
---
E, [2021-04-13T14:47:15.589327 #17879] ERROR -- : (textDocument/hover) dsc_sqlsetup is not a valid puppet type, class or defined type
D, [2021-04-13T14:47:15.591232 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":7,"result":{"contents":null}}
---
D, [2021-04-13T14:49:36.377415 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":8,"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///home/mhj/environments/windows/modules/sqlhosting/manifests/host.pp"}}}
---
D, [2021-04-13T14:49:36.390735 #17879] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":8,"result":[{"kind":5,"selectionRange":{"end":{"line":32,"character":1},"start":{"line":4,"character":0}},"children":[{"kind":7,"selectionRange":{"end":{"line":5,"character":28},"start":{"line":5,"character":9}},"children":[],"range":{"end":{"line":5,"character":28},"start":{"line":5,"character":9}},"detail":"$sql_server_version","name":"$sql_server_version"},{"kind":6,"selectionRange":{"start":{"line":8,"character":17},"end":{"line":8,"character":22}},"children":[{"kind":13,"selectionRange":{"end":{"line":9,"character":14},"start":{"line":9,"character":4}},"children":[],"range":{"end":{"line":9,"character":43},"start":{"line":9,"character":4}},"detail":"dsc_action","name":"dsc_action"},{"kind":13,"selectionRange":{"end":{"line":10,"character":25},"start":{"line":10,"character":4}},"children":[],"range":{"end":{"line":10,"character":45},"start":{"line":10,"character":4}},"detail":"dsc_agtsvcstartuptype","name":"dsc_agtsvcstartuptype"},{"kind":13,"selectionRange":{"end":{"line":11,"character":29},"start":{"line":11,"character":4}},"children":[],"range":{"end":{"line":11,"character":44},"start":{"line":11,"character":4}},"detail":"dsc_browsersvcstartuptype","name":"dsc_browsersvcstartuptype"},{"kind":13,"selectionRange":{"end":{"line":12,"character":16},"start":{"line":12,"character":4}},"children":[],"range":{"end":{"line":12,"character":45},"start":{"line":12,"character":4}},"detail":"dsc_features","name":"dsc_features"},{"kind":13,"selectionRange":{"end":{"line":13,"character":19},"start":{"line":13,"character":4}},"children":[],"range":{"end":{"line":13,"character":38},"start":{"line":13,"character":4}},"detail":"dsc_forcereboot","name":"dsc_forcereboot"},{"kind":13,"selectionRange":{"end":{"line":14,"character":25},"start":{"line":14,"character":4}},"children":[],"range":{"end":{"line":14,"character":44},"start":{"line":14,"character":4}},"detail":"dsc_installsqldatadir","name":"dsc_installsqldatadir"},{"kind":13,"selectionRange":{"end":{"line":15,"character":17},"start":{"line":15,"character":4}},"children":[],"range":{"end":{"line":15,"character":39},"start":{"line":15,"character":4}},"detail":"dsc_npenabled","name":"dsc_npenabled"},{"kind":13,"selectionRange":{"end":{"line":16,"character":20},"start":{"line":16,"character":4}},"children":[],"range":{"end":{"line":16,"character":39},"start":{"line":16,"character":4}},"detail":"dsc_securitymode","name":"dsc_securitymode"},{"kind":13,"selectionRange":{"end":{"line":17,"character":18},"start":{"line":17,"character":4}},"children":[],"range":{"end":{"line":17,"character":40},"start":{"line":17,"character":4}},"detail":"dsc_sourcepath","name":"dsc_sourcepath"},{"kind":13,"selectionRange":{"end":{"line":18,"character":20},"start":{"line":18,"character":4}},"children":[],"range":{"end":{"line":18,"character":46},"start":{"line":18,"character":4}},"detail":"dsc_sqlbackupdir","name":"dsc_sqlbackupdir"},{"kind":13,"selectionRange":{"end":{"line":19,"character":27},"start":{"line":19,"character":4}},"children":[],"range":{"end":{"line":19,"character":49},"start":{"line":19,"character":4}},"detail":"dsc_sqlsysadminaccounts","name":"dsc_sqlsysadminaccounts"},{"kind":13,"selectionRange":{"end":{"line":20,"character":20},"start":{"line":20,"character":4}},"children":[],"range":{"end":{"line":20,"character":46},"start":{"line":20,"character":4}},"detail":"dsc_sqltempdbdir","name":"dsc_sqltempdbdir"},{"kind":13,"selectionRange":{"end":{"line":21,"character":26},"start":{"line":21,"character":4}},"children":[],"range":{"end":{"line":21,"character":35},"start":{"line":21,"character":4}},"detail":"dsc_sqltempdbfilecount","name":"dsc_sqltempdbfilecount"},{"kind":13,"selectionRange":{"end":{"line":22,"character":27},"start":{"line":22,"character":4}},"children":[],"range":{"end":{"line":22,"character":35},"start":{"line":22,"character":4}},"detail":"dsc_sqltempdbfilegrowth","name":"dsc_sqltempdbfilegrowth"},{"kind":13,"selectionRange":{"end":{"line":23,"character":25},"start":{"line":23,"character":4}},"children":[],"range":{"end":{"line":23,"character":39},"start":{"line":23,"character":4}},"detail":"dsc_sqltempdbfilesize","name":"dsc_sqltempdbfilesize"},{"kind":13,"selectionRange":{"end":{"line":24,"character":23},"start":{"line":24,"character":4}},"children":[],"range":{"end":{"line":24,"character":46},"start":{"line":24,"character":4}},"detail":"dsc_sqltempdblogdir","name":"dsc_sqltempdblogdir"},{"kind":13,"selectionRange":{"end":{"line":25,"character":30},"start":{"line":25,"character":4}},"children":[],"range":{"end":{"line":25,"character":35},"start":{"line":25,"character":4}},"detail":"dsc_sqltempdblogfilegrowth","name":"dsc_sqltempdblogfilegrowth"},{"kind":13,"selectionRange":{"end":{"line":26,"character":28},"start":{"line":26,"character":4}},"children":[],"range":{"end":{"line":26,"character":39},"start":{"line":26,"character":4}},"detail":"dsc_sqltempdblogfilesize","name":"dsc_sqltempdblogfilesize"},{"kind":13,"selectionRange":{"end":{"line":27,"character":20},"start":{"line":27,"character":4}},"children":[],"range":{"end":{"line":27,"character":44},"start":{"line":27,"character":4}},"detail":"dsc_sqluserdbdir","name":"dsc_sqluserdbdir"},{"kind":13,"selectionRange":{"end":{"line":28,"character":23},"start":{"line":28,"character":4}},"children":[],"range":{"end":{"line":28,"character":43},"start":{"line":28,"character":4}},"detail":"dsc_sqluserdblogdir","name":"dsc_sqluserdblogdir"}],"range":{"end":{"line":30,"character":3},"start":{"line":8,"character":2}},"detail":"dsc_sqlsetup: 'sql'","name":"dsc_sqlsetup: 'sql'"}],"range":{"end":{"line":32,"character":1},"start":{"line":4,"character":0}},"detail":"sqlhosting::host","name":"sqlhosting::host"}]}
---
D, [2021-04-13T14:50:04.302632 #17879] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":9,"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///home/mhj/environments/windows/modules/sqlhosting/manifests/host.pp"}}}
---
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
jpogran commentedon Apr 13, 2021
This
(textDocument/hover) dsc_sqlsetup is not a valid puppet type, class or defined typeindicates that the extension doesn't know where to find thedsc_sqlsetuptype, so if can't parse the source and provide hover information. We'll look into figuring out if we should be returning something else other than null there, but in the meantime you should use themodulepathsetting in the extension to point to the place your modules are located, this way it can provide autocomplete, hover, and other advanced features for the types you are looking at.Hvid commentedon Apr 14, 2021
But i believe
modulepathis already pointed correct:D, [2021-04-13T14:47:01.518339 #17879] DEBUG -- : Detected additional puppet settings ["--environment", "windows", "--modulepath", "/home/mhj/environments"]The
dsc-sqlserverdscmodule is located here:/home/mhj/environments/windows/modules/sqlserverdscglennsarti commentedon Apr 14, 2021
The module path it would want is
/home/mhj/environments/windows/modules/Hvid commentedon Apr 14, 2021
That gives me the same error in output, but this in the debug log:
glennsarti commentedon Apr 14, 2021
ahh yes, whoops, I missed the
environment = windowsbitas per https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_hover
glennsarti commentedon Apr 14, 2021
Hrmm...I'm not 100% sure how the language server will deal with cross-plat (because it's over SSH) environments. You shouldn't need to set the module path really, because it's a child of the environment_path
I don't suppose you could post a directory tree of the SSH part so we can try and reproduce the problem?
glennsarti commentedon Apr 14, 2021
It could be trying the use the default environment path on Linux which would is
$codedir/environmentsWhich is
~/.puppetlabs/etc/code/environmentsHvid commentedon Apr 15, 2021
Here is the directory structure of my /home/mhj/environments/windows:
Hvid commentedon Apr 15, 2021
I tried copying the modules to
~/.puppetlabs/etc/code/environments. It doesn't pick them up from there either. Is there any additional logging i can enable to help us out?jpogran commentedon May 12, 2021
Addressed in puppetlabs/puppet-editor-services#301. Will be published in the next release
Hvid commentedon May 17, 2021
But that only fixes the error message and not the issue with it not picking up the modules for intellisense, right?
glennsarti commentedon May 17, 2021
Correct