Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goto definition and hover does not work #811

Open
jgrammen-agilitypr opened this issue Mar 9, 2022 · 3 comments
Open

goto definition and hover does not work #811

jgrammen-agilitypr opened this issue Mar 9, 2022 · 3 comments

Comments

@jgrammen-agilitypr
Copy link

What Versions are you running?

OS Version: Windows 10
VSCode Version: 1.65.1
Puppet Extension Version: 1.4.0
PDK Version: 2.4.0

What You Are Seeing?

no hover support or f12 (go to defintion) is working. It used to work, but appears to have broken recently.

What is Expected?

f12 should take me to the class file

How Did You Get This To Happen? (Steps to Reproduce)

vscodef12_test
normally this would load the relevant class file in a new tab

I have tried adjusting the configuration of the extension by setting modulepath (this didnt work), confdir (didnt work)
I used to get the intellisense to work by setting codedir in a puppet.conf file in my "homedir" (Windows)

Output Log

note: some content snipped out for security reasons

D, [2022-03-09T13:54:26.959265 #15180] DEBUG -- : Loading gems...
I, [2022-03-09T13:54:44.540972 #15180]  INFO -- : Using Puppet v6.26.0
I, [2022-03-09T13:54:44.549187 #15180]  INFO -- : Using Facter v4.2.7
D, [2022-03-09T13:54:44.551080 #15180] DEBUG -- : Detected additional puppet settings []
I, [2022-03-09T13:54:45.147650 #15180]  INFO -- : Initializing settings...
I, [2022-03-09T13:54:45.152798 #15180]  INFO -- : Starting RPC Server...
D, [2022-03-09T13:54:45.203956 #15180] DEBUG -- : Using STDIO Server
D, [2022-03-09T13:54:45.575718 #15180] DEBUG -- : STDIOSRV: Starting STDIO server...
D, [2022-03-09T13:54:45.584302 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":8260,"rootPath":"c:\\Users\\jason.grammenos\\Documents\\server_conf_mgmt\\puppet","rootUri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet","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:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet","name":"puppet"}]}}
---
D, [2022-03-09T13:54:45.586107 #15180] DEBUG -- : Received initialize method
I, [2022-03-09T13:54:45.587956 #15180]  INFO -- : Loading Default Data via aggregate (Async)...
D, [2022-03-09T13:54:45.589908 #15180] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "default_aggregate", "--puppet-version=6.26.0"]
D, [2022-03-09T13:54:45.590289 #15180] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "facts", "--puppet-version=6.26.0"]
I, [2022-03-09T13:54:45.590714 #15180]  INFO -- : Loading static data (Async)...
D, [2022-03-09T13:54:45.605813 #15180] 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, [2022-03-09T13:54:45.608719 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-aggregate.json...
D, [2022-03-09T13:54:45.611026 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-boltlib.json...
D, [2022-03-09T13:54:45.615090 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-canary.json...
D, [2022-03-09T13:54:45.617262 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-ctrl.json...
D, [2022-03-09T13:54:45.619099 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-dir.json...
D, [2022-03-09T13:54:45.620891 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-file.json...
D, [2022-03-09T13:54:45.622775 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-log.json...
D, [2022-03-09T13:54:45.624759 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-out.json...
D, [2022-03-09T13:54:45.626537 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-prompt.json...
D, [2022-03-09T13:54:45.628506 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-puppetdb_fact.json...
D, [2022-03-09T13:54:45.629957 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-puppet_connect.json...
D, [2022-03-09T13:54:45.631540 #15180] DEBUG -- : Importing static data file c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-system.json...
D, [2022-03-09T13:54:45.633264 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","method":"initialized","params":{}}
---
D, [2022-03-09T13:54:45.633714 #15180] DEBUG -- : Static bolt data returned 59 functions
I, [2022-03-09T13:54:45.635265 #15180]  INFO -- : Client has received initialization
D, [2022-03-09T13:54:45.636730 #15180] DEBUG -- : Static bolt data returned 9 datatypes
I, [2022-03-09T13:54:45.638644 #15180]  INFO -- : Attempting to dynamically register the workspace/didChangeConfiguration method with id d87aa953-6f59-49d5-9d57-f904ad1bbbe5
D, [2022-03-09T13:54:45.641721 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":0,"method":"client/registerCapability","params":{"registrations":[{"method":"workspace/didChangeConfiguration","registerOptions":{},"id":"d87aa953-6f59-49d5-9d57-f904ad1bbbe5"}]}}
---
D, [2022-03-09T13:54:45.646581 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp","languageId":"puppet","version":1,"text":"\n"}}}
---
I, [2022-03-09T13:54:45.648462 #15180]  INFO -- : Received textDocument/didOpen notification.
D, [2022-03-09T13:54:45.663668 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/modules/mm/manifests/common.pp","languageId":"puppet","version":1,"text":"#\n"}}}
---
I, [2022-03-09T13:54:45.666457 #15180]  INFO -- : Received textDocument/didOpen notification.
D, [2022-03-09T13:54:45.668027 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":1,"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/modules/mm/manifests/common.pp"}}}
---
D, [2022-03-09T13:54:45.891544 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":1,"result":[{"selectionRange":{"star":5}]}
---
D, [2022-03-09T13:54:45.963133 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":0,"result":null}
---
I, [2022-03-09T13:54:46.008141 #15180]  INFO -- : Succesfully dynamically registered the workspace/didChangeConfiguration method
D, [2022-03-09T13:54:46.053254 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":1,"method":"workspace/configuration","params":{"items":[{"section":"puppet"}]}}
---
D, [2022-03-09T13:54:46.143307 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":1,"result":[{"editorService":{"enable":true,"debugFilePath":"C:\\\\Users\\\\jason.grammenos\\\\Documents\\\\puppetlangaugeserver.log","featureFlags":[],"foldingRange":{"enable":true,"showLastLine":false},"formatOnType":{"enable":true,"maxFileSize":4096},"hover":{"showMetadataInfo":true},"loglevel":"debug","protocol":"stdio","puppet":{"confdir":"","environment":"","modulePath":"","vardir":"","version":"6.26.0"},"tcp":{"address":"","port":0},"timeout":10},"validate":{"resolvePuppetfiles":true},"format":{"enable":true},"installDirectory":"","installType":"pdk","notification":{"nodeGraph":"messagebox","puppetResource":"messagebox"},"pdk":{"checkVersion":true},"titleBar":{"pdkNewModule":{"enable":true}}}]}
---
I, [2022-03-09T13:54:46.188323 #15180]  INFO -- : Attempting to dynamically register the textDocument/onTypeFormatting method with id b1dbd560-f70c-4037-a223-65664d3d769e
D, [2022-03-09T13:54:46.218379 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":2,"method":"client/registerCapability","params":{"registrations":[{"method":"textDocument/onTypeFormatting","registerOptions":{"firstTriggerCharacter":">"},"id":"b1dbd560-f70c-4037-a223-65664d3d769e"}]}}
---
I, [2022-03-09T13:54:46.276965 #15180]  INFO -- : Attempting to dynamically register the textDocument/foldingRange method with id e3c14866-afe2-4ea0-bf12-27db49d1792d
D, [2022-03-09T13:54:46.278690 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":3,"method":"client/registerCapability","params":{"registrations":[{"method":"textDocument/foldingRange","registerOptions":{"firstTriggerCharacter":">"},"id":"e3c14866-afe2-4ea0-bf12-27db49d1792d"}]}}
---
D, [2022-03-09T13:54:46.280482 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":2,"result":null}
---
I, [2022-03-09T13:54:46.282015 #15180]  INFO -- : Succesfully dynamically registered the textDocument/onTypeFormatting method
D, [2022-03-09T13:54:46.283341 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":3,"result":null}
---
I, [2022-03-09T13:54:46.284934 #15180]  INFO -- : Succesfully dynamically registered the textDocument/foldingRange method
D, [2022-03-09T13:54:46.482869 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp","diagnostics":[{"message":"line has more than 140 characters","source":"Puppet","range":{"start":{"line":12,"character":139},"end":{"line":12,"character":139}},"code":"140chars","severity":2},{"message":"line has more than 140 characters","source":"Puppet","range":{"start":{"line":41,"character":139},"end":{"line":41,"character":139}},"code":"140chars","severity":2},{"message":"line has more than 140 characters","source":"Puppet","range":{"start":{"line":97,"character":139},"end":{"line":97,"character":139}},"code":"140chars","severity":2},{"message":"line has more than 140 characters","source":"Puppet","range":{"start":{"line":273,"character":139},"end":{"line":273,"character":139}},"code":"140chars","severity":2},{"message":"line has more than 140 characters","source":"Puppet","range":{"start":{"line":407,"character":139},"end":{"line":407,"character":139}},"code":"140chars","severity":2},{"message":"line has more than 140 characters","source":"Puppet","range":{"start":{"line":661,"character":139},"end":{"line":661,"character":139}},"code":"140chars","severity":2}]}}
---
D, [2022-03-09T13:54:46.488236 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":2,"method":"textDocument/foldingRange","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/modules/mm/manifests/common.pp"}}}
---
---
D, [2022-03-09T13:54:46.683095 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":3,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:46.728284 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":3,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:46.948405 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/modules/mm/manifests/common.pp","diagnostics":[{"message":"string containing only a variable","source":"Puppet","range":{"start":{"line":328,"character":18},"end":{"line":328,"character":18}},"code":"only_variable_string","severity":2},{"message":"line has more than 140 characters","source":"Puppet","range":{"start":{"line":452,"character":139},"end":{"line":452,"character":139}},"code":"140chars","severity":2},{"message":"line has more than 140 characters","source":"Puppet","range":{"start":{"line":570,"character":139},"end":{"line":570,"character":139}},"code":"140chars","severity":2}]}}
---
D, [2022-03-09T13:54:47.643239 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":4,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:47.651229 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":4,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:47.749358 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":5,"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"}}}
---
D, [2022-03-09T13:54:47.885428 #15180] DEBUG -- : --- OUTBOUND
---
D, [2022-03-09T13:54:47.895145 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":6,"method":"textDocument/foldingRange","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"}}}
---
D, [2022-03-09T13:54:47.937367 #15180] DEBUG -- : --- OUTBOUND
---
D, [2022-03-09T13:54:48.648220 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":7,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:48.656095 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":7,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:49.653282 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":8,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:49.661141 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":8,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:49.743328 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":9,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":574,"character":38}}}
---
E, [2022-03-09T13:54:49.771837 #15180] ERROR -- : (textDocument/hover) class is not a valid puppet type
D, [2022-03-09T13:54:49.773385 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":9,"result":null}
---
D, [2022-03-09T13:54:50.658232 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":10,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:50.660098 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":10,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:51.663280 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":11,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:51.671371 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":11,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:52.668270 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":12,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:52.676667 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":12,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:53.673233 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":13,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:53.675126 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":13,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:54.678237 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":14,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:54.686087 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":14,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:55.683263 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":15,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:55.691168 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":15,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:56.688269 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":16,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:56.696187 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":16,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:57.693267 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":17,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:57.701154 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":17,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:58.698239 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":18,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:58.706197 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":18,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:54:59.703249 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":19,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:54:59.711117 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":19,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:00.708261 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":20,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:00.716239 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":20,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:01.713234 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":21,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:01.721251 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":21,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:02.718269 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":22,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:02.726171 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":22,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:03.726066 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":23,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:03.733995 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":23,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:04.735845 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":24,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:04.743983 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":24,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:05.744360 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":25,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:05.752504 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":25,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:06.757142 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":26,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:06.765179 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":26,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:07.764351 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":27,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:07.772486 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":27,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
A, [2022-03-09T13:55:07.810409 #15180]   ANY -- : SidecarQueue Thread: Calling sidecar with --action default_aggregate --puppet-version=6.26.0 returned exitcode 1, c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_strings_helper.rb:147:in `block (3 levels) in populate_classes_from_yard_registry!': undefined method `join' for nil:NilClass (NoMethodError)
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_strings_helper.rb:143:in `each'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_strings_helper.rb:143:in `block (2 levels) in populate_classes_from_yard_registry!'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_strings_helper.rb:128:in `each'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_strings_helper.rb:128:in `block in populate_classes_from_yard_registry!'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_strings_helper.rb:127:in `each'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_strings_helper.rb:127:in `populate_classes_from_yard_registry!'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_strings_helper.rb:102:in `populate_from_yard_registry!'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_strings_helper.rb:74:in `file_documentation'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_strings_helper.rb:10:in `file_documentation'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_helper.rb:93:in `block in retrieve_via_puppet_strings'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_helper.rb:92:in `each'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet-languageserver-sidecar/puppet_helper.rb:92:in `retrieve_via_puppet_strings'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet_languageserver_sidecar.rb:257:in `execute'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/lib/puppet_languageserver_sidecar.rb:360:in `execute_and_output'
	from c:/Users/jason.grammenos/.vscode/extensions/puppet.puppet-vscode-1.4.0/vendor/languageserver/puppet-languageserver-sidecar:14:in `<main>'

D, [2022-03-09T13:55:08.777278 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":28,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:08.785211 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":28,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:09.788490 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":29,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:09.796614 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":29,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:10.795883 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":30,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:10.804256 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":30,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:11.800955 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":31,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:11.802904 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":31,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:12.802272 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":32,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:12.810727 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":32,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:13.817683 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":33,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:13.826767 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":33,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2022-03-09T13:55:14.823188 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":34,"method":"puppet/getVersion","params":null}
---
D, [2022-03-09T13:55:14.825430 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":34,"result":{"puppetVersion":"6.26.0","facterVersion":"4.2.7","languageServerVersion":"1.3.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
A, [2022-03-09T13:55:19.443528 #15180]   ANY -- : SidecarQueue Thread: Calling sidecar with --action facts --puppet-version=6.26.0 returned exitcode 0, 
D, [2022-03-09T13:55:19.453201 #15180] DEBUG -- : SidecarQueue Thread: facts returned 109 items
D, [2022-03-09T13:55:20.311978 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":35,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:20.370792 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":35,"result":[]}
---
D, [2022-03-09T13:55:21.395643 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":36,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:21.460232 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":36,"result":[]}
---
D, [2022-03-09T13:55:21.697121 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":37,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:21.726771 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":37,"result":[]}
---
D, [2022-03-09T13:55:21.940761 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":38,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:21.969460 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":38,"result":[]}
---
D, [2022-03-09T13:55:22.211944 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":39,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:22.265461 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":39,"result":[]}
---
D, [2022-03-09T13:55:22.470839 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":40,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:22.499104 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":40,"result":[]}
---
D, [2022-03-09T13:55:22.759704 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":41,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:22.789087 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":41,"result":[]}
---
D, [2022-03-09T13:55:23.031721 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":42,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:23.061058 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":42,"result":[]}
---
D, [2022-03-09T13:55:23.289867 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":43,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:23.336652 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":43,"result":[]}
---
D, [2022-03-09T13:55:23.577556 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":44,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:23.604764 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":44,"result":[]}
---
D, [2022-03-09T13:55:23.851705 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":45,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:23.886732 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":45,"result":[]}
---
D, [2022-03-09T13:55:24.107733 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":46,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:24.130075 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":46,"result":[]}
---
D, [2022-03-09T13:55:24.366141 #15180] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":47,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///c%3A/Users/jason.grammenos/Documents/server_conf_mgmt/puppet/environments/production/manifests/90-infra.pp"},"position":{"line":580,"character":18}}}
---
D, [2022-03-09T13:55:24.390333 #15180] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":47,"result":[]}
---
@jgrammen-agilitypr
Copy link
Author

linking in two seemingly related issues
#743
#742

Addtional things I have tried based on those two above issues:
creating an environments.conf

modulepath = $codedir/modules/
manifest = $codedir/environments/production/manifests/

at the root directory of the "workspace"
or at the root/environments/production/environments.conf

after each reload window, no change
Tried setting module path again in extension settings, reload window, no change in behaviour.

In case it helps, I am on windows 10, my code is on windows, I open vscode from windows

@jay7x
Copy link

jay7x commented Mar 25, 2024

I'd request to ensure that Bolt plans and tasks are supported by this feature also 🙏🏻

@jgrammen-agilitypr
Copy link
Author

This functionality is still not present in the following versions:

OS Version: Windows 10 ( Windows_NT x64 10.0.19045)
VSCode Version: 1.92.2 (user setup) Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
Puppet Extension Version: 1.5.3
PDK Version: 3.0.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants