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

Hover and go to defintion not working as expected #605

Closed
genebean opened this issue Jan 16, 2020 · 2 comments · Fixed by #606
Closed

Hover and go to defintion not working as expected #605

genebean opened this issue Jan 16, 2020 · 2 comments · Fixed by #606
Assignees
Milestone

Comments

@genebean
Copy link

What Versions are you running?

OS Version: macOS 10.14.6
VSCode Version: 1.41.1
Puppet Extension Version: 0.22.0
PDK Version: 1.15.0

What You Are Seeing?

Hover info and go to definition is not working for modules pulled in when onceover runs. I have the following in .vscode/settings.json within my control repo:

{
    "puppet.editorService.puppet.modulePath": "/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules"
}

That directory is populated when I run onceover like so:

╔ ☕️  gene:~/repos/puppetlabs-modules (production ✔)    
╚ᐅ bundle exec onceover run spec -c role::pe::master
INFO     -> Using Puppetfile '/Users/gene.liverman/repos/puppetlabs-modules/Puppetfile'
INFO     -> Updating module /Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules/augeas_core

What is Expected?

Hovering over a class or defined type of a module that is installed locally should produce informtion in a popup

Right clicking and selecting Go to Defintion should take me to the code associated with a class or defined type in a locally installed module.

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

I reproduced it by opening site/profile/manifests/pe/master.pp in my control repo and mousing over and right clicking on both parts of profile_metadata::service (parts being either side of the ::).

Output Log

From Log(Extension Host):

[2020-01-16 11:32:29.009] [exthost] [info] extension host started
[2020-01-16 11:32:29.031] [exthost] [info] ExtensionService#_doActivateExtension GrapeCity.gc-excelviewer {"startup":false,"extensionId":{"value":"GrapeCity.gc-excelviewer","_lower":"grapecity.gc-excelviewer"},"activationEvent":"onLanguage:plaintext"}
[2020-01-16 11:32:29.032] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/gene.liverman/.vscode/extensions/grapecity.gc-excelviewer-2.1.32/dist/extension
[2020-01-16 11:32:29.104] [exthost] [info] ExtensionService#_doActivateExtension jpogran.puppet-vscode {"startup":false,"extensionId":{"value":"jpogran.puppet-vscode","_lower":"jpogran.puppet-vscode"},"activationEvent":"onLanguage:puppet"}
[2020-01-16 11:32:29.104] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/out/extension
[2020-01-16 11:32:29.410] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"extensionId":{"value":"vscode.debug-auto-launch","_lower":"vscode.debug-auto-launch"},"activationEvent":"*"}
[2020-01-16 11:32:29.410] [exthost] [info] ExtensionService#loadCommonJSModule file:///Applications/Visual Studio Code.app/Contents/Resources/app/extensions/debug-auto-launch/dist/extension
[2020-01-16 11:32:29.413] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"extensionId":{"value":"vscode.emmet","_lower":"vscode.emmet"},"activationEvent":"*"}
[2020-01-16 11:32:29.413] [exthost] [info] ExtensionService#loadCommonJSModule file:///Applications/Visual Studio Code.app/Contents/Resources/app/extensions/emmet/dist/extension
[2020-01-16 11:32:29.436] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"extensionId":{"value":"GitHub.vscode-pull-request-github","_lower":"github.vscode-pull-request-github"},"activationEvent":"*"}
[2020-01-16 11:32:29.436] [exthost] [info] ExtensionService#loadCommonJSModule file:///Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main
[2020-01-16 11:32:29.509] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"extensionId":{"value":"vscode.merge-conflict","_lower":"vscode.merge-conflict"},"activationEvent":"*"}
[2020-01-16 11:32:29.509] [exthost] [info] ExtensionService#loadCommonJSModule file:///Applications/Visual Studio Code.app/Contents/Resources/app/extensions/merge-conflict/dist/extension
[2020-01-16 11:32:29.514] [exthost] [info] ExtensionService#_doActivateExtension vscode.search-result {"startup":true,"extensionId":{"value":"vscode.search-result","_lower":"vscode.search-result"},"activationEvent":"*"}
[2020-01-16 11:32:29.514] [exthost] [info] ExtensionService#loadCommonJSModule file:///Applications/Visual Studio Code.app/Contents/Resources/app/extensions/search-result/dist/extension.js
[2020-01-16 11:32:29.518] [exthost] [info] ExtensionService#_doActivateExtension ban.spellright {"startup":true,"extensionId":{"value":"ban.spellright","_lower":"ban.spellright"},"activationEvent":"*"}
[2020-01-16 11:32:29.518] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/gene.liverman/.vscode/extensions/ban.spellright-3.0.48/src/extension
[2020-01-16 11:32:29.520] [exthost] [info] ExtensionService#_doActivateExtension eamodio.gitlens {"startup":true,"extensionId":{"value":"eamodio.gitlens","_lower":"eamodio.gitlens"},"activationEvent":"*"}
[2020-01-16 11:32:29.520] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/gene.liverman/.vscode/extensions/eamodio.gitlens-10.2.0/dist/extension
[2020-01-16 11:32:29.594] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode.azure-account {"startup":true,"extensionId":{"value":"ms-azure-devops.azure-pipelines","_lower":"ms-azure-devops.azure-pipelines"},"activationEvent":"*"}
[2020-01-16 11:32:29.594] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/gene.liverman/.vscode/extensions/ms-vscode.azure-account-0.8.8/dist/extension
[2020-01-16 11:32:29.836] [exthost] [info] ExtensionService#_doActivateExtension yzhang.markdown-all-in-one {"startup":true,"extensionId":{"value":"yzhang.markdown-all-in-one","_lower":"yzhang.markdown-all-in-one"},"activationEvent":"workspaceContains:README.md"}
[2020-01-16 11:32:29.836] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/gene.liverman/.vscode/extensions/yzhang.markdown-all-in-one-2.7.0/dist/extension
[2020-01-16 11:32:30.271] [exthost] [info] eager extensions activated
[2020-01-16 11:32:30.409] [exthost] [info] ExtensionService#_doActivateExtension GitHub.vscode-pull-request-github {"startup":true,"extensionId":{"value":"GitHub.vscode-pull-request-github","_lower":"github.vscode-pull-request-github"},"activationEvent":"*"}
[2020-01-16 11:32:30.409] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/gene.liverman/.vscode/extensions/github.vscode-pull-request-github-0.14.0/media/extension
[2020-01-16 11:32:30.473] [exthost] [info] ExtensionService#_doActivateExtension ms-azure-devops.azure-pipelines {"startup":true,"extensionId":{"value":"ms-azure-devops.azure-pipelines","_lower":"ms-azure-devops.azure-pipelines"},"activationEvent":"*"}
[2020-01-16 11:32:30.473] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/gene.liverman/.vscode/extensions/ms-azure-devops.azure-pipelines-1.157.4/out/extension
[2020-01-16 11:32:43.970] [exthost] [error] [jpogran.puppet-vscode] provider FAILED
[2020-01-16 11:32:43.970] [exthost] [error] TypeError: Cannot read property 'kind' of null
	at asHoverContent (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:101:27)
	at asHover (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:134:31)
[2020-01-16 11:32:47.786] [exthost] [error] [jpogran.puppet-vscode] provider FAILED
[2020-01-16 11:32:47.786] [exthost] [error] TypeError: Cannot read property 'kind' of null
	at asHoverContent (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:101:27)
	at asHover (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:134:31)
[2020-01-16 11:32:48.090] [exthost] [error] [jpogran.puppet-vscode] provider FAILED
[2020-01-16 11:32:48.090] [exthost] [error] TypeError: Cannot read property 'kind' of null
	at asHoverContent (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:101:27)
	at asHover (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:134:31)
[2020-01-16 11:32:48.297] [exthost] [error] [jpogran.puppet-vscode] provider FAILED
[2020-01-16 11:32:48.297] [exthost] [error] TypeError: Cannot read property 'kind' of null
	at asHoverContent (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:101:27)
	at asHover (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:134:31)
[2020-01-16 11:32:51.162] [exthost] [error] [jpogran.puppet-vscode] provider FAILED
[2020-01-16 11:32:51.162] [exthost] [error] TypeError: Cannot read property 'kind' of null
	at asHoverContent (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:101:27)
	at asHover (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:134:31)
[2020-01-16 11:32:51.570] [exthost] [error] [jpogran.puppet-vscode] provider FAILED
[2020-01-16 11:32:51.570] [exthost] [error] TypeError: Cannot read property 'kind' of null
	at asHoverContent (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:101:27)
	at asHover (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:134:31)
[2020-01-16 11:32:53.021] [exthost] [error] [jpogran.puppet-vscode] provider FAILED
[2020-01-16 11:32:53.021] [exthost] [error] TypeError: Cannot read property 'kind' of null
	at asHoverContent (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:101:27)
	at asHover (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:134:31)
[2020-01-16 11:32:58.276] [exthost] [error] [jpogran.puppet-vscode] provider FAILED
[2020-01-16 11:32:58.276] [exthost] [error] TypeError: Cannot read property 'kind' of null
	at asHoverContent (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:101:27)
	at asHover (/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/node_modules/vscode-languageclient/lib/protocolConverter.js:134:31)

From Puppet

DEBUG: 2020-01-16T16:32:29.974Z Registered extension.pdkNewModule command
DEBUG: 2020-01-16T16:32:29.974Z Registered extension.pdkNewClass command
DEBUG: 2020-01-16T16:32:29.974Z Registered extension.pdkNewTask command
DEBUG: 2020-01-16T16:32:29.974Z Registered extension.pdkValidate command
DEBUG: 2020-01-16T16:32:29.974Z Registered extension.pdkTestUnit command
DEBUG: 2020-01-16T16:32:29.975Z Found a valid Puppet installation at /opt/puppetlabs/pdk/puppet
DEBUG: 2020-01-16T16:32:29.977Z Setting status bar to Initializing
DEBUG: 2020-01-16T16:32:29.977Z Configuring language client options
DEBUG: 2020-01-16T16:32:29.977Z Creating server options
DEBUG: 2020-01-16T16:32:29.978Z [getRubyEnvFromPDK] Using environment variable DEVKIT_BASEDIR=/opt/puppetlabs/pdk
DEBUG: 2020-01-16T16:32:29.978Z [getRubyEnvFromPDK] Using environment variable GEM_HOME=/opt/puppetlabs/pdk/share/cache/ruby/2.5.0
DEBUG: 2020-01-16T16:32:29.978Z [getRubyEnvFromPDK] Using environment variable GEM_PATH=/opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/gems/2.5.0:/opt/puppetlabs/pdk/share/cache/ruby/2.5.0:/opt/puppetlabs/pdk/private/puppet/ruby/2.5.0
DEBUG: 2020-01-16T16:32:29.978Z [getRubyEnvFromPDK] Using environment variable RUBY_DIR=/opt/puppetlabs/pdk/private/ruby/2.5.7
DEBUG: 2020-01-16T16:32:29.978Z [getRubyEnvFromPDK] Using environment variable RUBYLIB=/opt/puppetlabs/pdk/lib:
DEBUG: 2020-01-16T16:32:29.978Z [getRubyEnvFromPDK] Using environment variable PATH=/opt/puppetlabs/pdk/bin:/opt/puppetlabs/pdk/private/ruby/2.5.7/bin:/usr/local/opt/ruby/bin:/usr/local/opt/node@10/bin:/Applications/Araxis Merge.app/Contents/Utilities:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/puppetlabs/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/MacGPG2/bin:/usr/local/munki:/opt/puppetlabs/pdk/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/gene.liverman/.nexustools:/usr/local/sbin:/Applications/VMware OVF Tool:/usr/local/lib/ruby/gems/2.6.0/bin
DEBUG: 2020-01-16T16:32:29.978Z [getRubyEnvFromPDK] Using environment variable RUBYOPT=rubygems
DEBUG: 2020-01-16T16:32:29.978Z [getRubyEnvFromPDK] Editor Services will invoke with: /opt/puppetlabs/pdk/private/ruby/2.5.7/bin/ruby /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/puppet-languageserver --stdio --timeout=10 --local-workspace=/Users/gene.liverman/repos/puppetlabs-modules --puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules --debug=/Users/gene.liverman/Downloads/vscode-puppet-debug.log
DEBUG: 2020-01-16T16:32:29.978Z Creating language client
DEBUG: 2020-01-16T16:32:30.011Z Setting status bar to Initialization Complete
DEBUG: 2020-01-16T16:32:30.011Z Configuring Local::stdio connection handler
DEBUG: 2020-01-16T16:32:30.011Z Setting status bar to Starting languageserver
DEBUG: 2020-01-16T16:32:30.013Z Registered Format Document provider
DEBUG: 2020-01-16T16:32:30.014Z Registered extension.puppetShowNodeGraphToSide command
DEBUG: 2020-01-16T16:32:30.014Z Registered onDidSaveTextDocument for node graph event handler
DEBUG: 2020-01-16T16:32:30.014Z Registered DebugAdapterDescriptorFactory for Puppet
DEBUG: 2020-01-16T16:32:30.015Z Registered DebugConfigurationProvider for Puppet
DEBUG: 2020-01-16T16:32:31.999Z pdk shell started, pid: 51311
DEBUG: 2020-01-16T16:32:34.618Z Setting status bar to Loading Puppet
#<Thread:0x00007fb01b181d48@/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/validation_queue.rb:38 run> terminated with exception (report_on_exception is true):
/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/vendor/puppet-lint/lib/puppet-lint/optparser.rb:142:in `build': invalid option: --no-leading_zero-check (OptionParser::InvalidOption)
	from /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/manifest/validation_provider.rb:48:in `block in validate'
	from /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/manifest/validation_provider.rb:48:in `chdir'
	from /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/manifest/validation_provider.rb:48:in `validate'
	from /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/validation_queue.rb:100:in `validate'
	from /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/validation_queue.rb:137:in `block in worker'
	from /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/validation_queue.rb:116:in `loop'
	from /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/validation_queue.rb:116:in `worker'
	from /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/validation_queue.rb:40:in `block in enqueue'
DEBUG: 2020-01-16T16:32:35.622Z Setting status bar to 6.11.1
DEBUG: 2020-01-16T16:32:36.625Z Setting status bar to 6.11.1
DEBUG: 2020-01-16T16:32:37.621Z Setting status bar to 6.11.1
DEBUG: 2020-01-16T16:32:38.623Z Setting status bar to 6.11.1
DEBUG: 2020-01-16T16:32:39.623Z Setting status bar to 6.11.1
DEBUG: 2020-01-16T16:32:40.622Z Setting status bar to 6.11.1
DEBUG: 2020-01-16T16:32:41.626Z Setting status bar to 6.11.1

Debug Log

I, [2020-01-16T11:32:30.583278 #51310]  INFO -- : Language Server is v0.23.0
D, [2020-01-16T11:32:30.583622 #51310] DEBUG -- : Loading gems...
I, [2020-01-16T11:32:34.559070 #51310]  INFO -- : Using Puppet v6.11.1
D, [2020-01-16T11:32:34.560904 #51310] DEBUG -- : Detected additional puppet settings ["--modulePath", "/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules"]
I, [2020-01-16T11:32:34.579357 #51310]  INFO -- : Initializing Puppet Helper...
D, [2020-01-16T11:32:34.579616 #51310] DEBUG -- : Initializing Document Store...
I, [2020-01-16T11:32:34.579786 #51310]  INFO -- : Initializing settings...
I, [2020-01-16T11:32:34.582242 #51310]  INFO -- : Starting RPC Server...
I, [2020-01-16T11:32:34.582293 #51310]  INFO -- : Using Facter v2.5.6
D, [2020-01-16T11:32:34.582457 #51310] DEBUG -- : Using STDIO Server
I, [2020-01-16T11:32:34.582573 #51310]  INFO -- : Preloading Puppet Types (Async)...
I, [2020-01-16T11:32:34.583403 #51310]  INFO -- : Preloading Facter (Async)...
D, [2020-01-16T11:32:34.583630 #51310] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "default_types", "--puppet-version=6.11.1", "--puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules"]
I, [2020-01-16T11:32:34.583782 #51310]  INFO -- : Preloading Functions (Async)...
I, [2020-01-16T11:32:34.589945 #51310]  INFO -- : Preloading Classes (Async)...
D, [2020-01-16T11:32:34.590170 #51310] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "default_functions", "--puppet-version=6.11.1", "--puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules"]
I, [2020-01-16T11:32:34.590518 #51310]  INFO -- : Preloading DataTypes (Async)...
I, [2020-01-16T11:32:34.595408 #51310]  INFO -- : Preloading Workspace (Async)...
I, [2020-01-16T11:32:34.595891 #51310]  INFO -- : Preloading static data (Async)...
D, [2020-01-16T11:32:34.597380 #51310] DEBUG -- : Importing static data file /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-aggregate.json...
D, [2020-01-16T11:32:34.598779 #51310] DEBUG -- : Importing static data file /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-ctrl.json...
D, [2020-01-16T11:32:34.599939 #51310] DEBUG -- : Importing static data file /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-canary.json...
D, [2020-01-16T11:32:34.601227 #51310] DEBUG -- : Importing static data file /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-file.json...
D, [2020-01-16T11:32:34.602706 #51310] DEBUG -- : Importing static data file /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-boltlib.json...
D, [2020-01-16T11:32:34.607451 #51310] DEBUG -- : Importing static data file /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-system.json...
D, [2020-01-16T11:32:34.608431 #51310] DEBUG -- : Importing static data file /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-puppetdb_fact.json...
D, [2020-01-16T11:32:34.609407 #51310] DEBUG -- : STDIOSRV: Starting STDIO server...
D, [2020-01-16T11:32:34.609606 #51310] DEBUG -- : Importing static data file /Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/lib/puppet-languageserver/static_data/bolt-out.json...
D, [2020-01-16T11:32:34.610522 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":51199,"rootPath":"/Users/gene.liverman/repos/puppetlabs-modules","rootUri":"file:///Users/gene.liverman/repos/puppetlabs-modules","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:///Users/gene.liverman/repos/puppetlabs-modules","name":"puppetlabs-modules"}]}}
---
D, [2020-01-16T11:32:34.611000 #51310] DEBUG -- : Static bolt data returned 36 functions
D, [2020-01-16T11:32:34.611706 #51310] DEBUG -- : Received initialize method
D, [2020-01-16T11:32:34.612265 #51310] DEBUG -- : Static bolt data returned 6 datatypes
D, [2020-01-16T11:32:34.612680 #51310] 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, [2020-01-16T11:32:34.625150 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","method":"initialized","params":{}}
---
I, [2020-01-16T11:32:34.632101 #51310]  INFO -- : Client has received initialization
I, [2020-01-16T11:32:34.634540 #51310]  INFO -- : Attempting to dynamically register the workspace/didChangeConfiguration method with id 670ac782-8149-4338-816f-2e3dbf52a363
D, [2020-01-16T11:32:34.635571 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":0,"method":"client/registerCapability","params":{"registrations":[{"id":"670ac782-8149-4338-816f-2e3dbf52a363","registerOptions":{},"method":"workspace/didChangeConfiguration"}]}}
---
D, [2020-01-16T11:32:34.639520 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp","languageId":"puppet","version":1,"text":"# Class: profile::pe::master\n#\n# Profile to manage PE master settings that should only be applied \n# to the master and aren't managed by the puppet_enterprise modules \n# or by profile::pe::master_common\n#\nclass profile::pe::master () inherits profile::base::puppet::params {\n  profile_metadata::service { $title:\n    human_name        => 'Puppet Master',\n    owner_uid         => 'daniel.parks',\n    team              => infracore,\n    end_users         => ['notify-infracore@puppet.com'],\n    escalation_period => 'global-workhours',\n    downtime_impact   => \"Can't make changes to infrastructure\",\n    doc_urls          => [\n      'https://confluence.puppetlabs.com/display/SRE/SRE+Internal+Puppet+Infrastructure+Service+Docs',\n    ],\n  }\n\n  include pe_databases\n  include resource_api::server\n\n  if $facts['whereami'] == 'aws_internal_net_vpc' {\n    include profile::ssl::infc_aws_wildcard\n\n    node_group { 'Agent specified environment':\n      ensure               => present,\n      description          => 'Allows all nodes to pick their own environment',\n      environment          => 'agent-specified',\n      override_environment => true,\n      parent               => 'All Environments',\n      rule                 => ['and',  ['~', 'name', '.+']],\n    }\n  }\n  else {\n    include profile::ssl::ops\n  }\n\n  Ssl::Cert <| |> ~> Service['pe-nginx']\n}\n"}}}
---
I, [2020-01-16T11:32:34.639863 #51310]  INFO -- : Received textDocument/didOpen notification.
D, [2020-01-16T11:32:34.640211 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":1,"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"}}}
---
D, [2020-01-16T11:32:34.683673 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":1,"result":[{"selectionRange":{"start":{"line":6,"character":0},"end":{"line":39,"character":1}},"children":[{"selectionRange":{"start":{"line":7,"character":30},"end":{"line":7,"character":36}},"children":[{"selectionRange":{"start":{"line":8,"character":4},"end":{"line":8,"character":14}},"children":[],"name":"human_name","range":{"start":{"line":8,"character":4},"end":{"line":8,"character":40}},"kind":13,"detail":"human_name"},{"selectionRange":{"start":{"line":9,"character":4},"end":{"line":9,"character":13}},"children":[],"name":"owner_uid","range":{"start":{"line":9,"character":4},"end":{"line":9,"character":39}},"kind":13,"detail":"owner_uid"},{"selectionRange":{"start":{"line":10,"character":4},"end":{"line":10,"character":8}},"children":[],"name":"team","range":{"start":{"line":10,"character":4},"end":{"line":10,"character":34}},"kind":13,"detail":"team"},{"selectionRange":{"start":{"line":11,"character":4},"end":{"line":11,"character":13}},"children":[],"name":"end_users","range":{"start":{"line":11,"character":4},"end":{"line":11,"character":56}},"kind":13,"detail":"end_users"},{"selectionRange":{"start":{"line":12,"character":4},"end":{"line":12,"character":21}},"children":[],"name":"escalation_period","range":{"start":{"line":12,"character":4},"end":{"line":12,"character":43}},"kind":13,"detail":"escalation_period"},{"selectionRange":{"start":{"line":13,"character":4},"end":{"line":13,"character":19}},"children":[],"name":"downtime_impact","range":{"start":{"line":13,"character":4},"end":{"line":13,"character":63}},"kind":13,"detail":"downtime_impact"},{"selectionRange":{"start":{"line":14,"character":4},"end":{"line":14,"character":12}},"children":[],"name":"doc_urls","range":{"start":{"line":14,"character":4},"end":{"line":16,"character":5}},"kind":13,"detail":"doc_urls"}],"name":"profile_metadata::service: $title","range":{"start":{"line":7,"character":2},"end":{"line":17,"character":3}},"kind":6,"detail":"profile_metadata::service: $title"},{"selectionRange":{"start":{"line":25,"character":17},"end":{"line":25,"character":46}},"children":[{"selectionRange":{"start":{"line":26,"character":6},"end":{"line":26,"character":12}},"children":[],"name":"ensure","range":{"start":{"line":26,"character":6},"end":{"line":26,"character":37}},"kind":13,"detail":"ensure"},{"selectionRange":{"start":{"line":27,"character":6},"end":{"line":27,"character":17}},"children":[],"name":"description","range":{"start":{"line":27,"character":6},"end":{"line":27,"character":78}},"kind":13,"detail":"description"},{"selectionRange":{"start":{"line":28,"character":6},"end":{"line":28,"character":17}},"children":[],"name":"environment","range":{"start":{"line":28,"character":6},"end":{"line":28,"character":47}},"kind":13,"detail":"environment"},{"selectionRange":{"start":{"line":29,"character":6},"end":{"line":29,"character":26}},"children":[],"name":"override_environment","range":{"start":{"line":29,"character":6},"end":{"line":29,"character":34}},"kind":13,"detail":"override_environment"},{"selectionRange":{"start":{"line":30,"character":6},"end":{"line":30,"character":12}},"children":[],"name":"parent","range":{"start":{"line":30,"character":6},"end":{"line":30,"character":48}},"kind":13,"detail":"parent"},{"selectionRange":{"start":{"line":31,"character":6},"end":{"line":31,"character":10}},"children":[],"name":"rule","range":{"start":{"line":31,"character":6},"end":{"line":31,"character":59}},"kind":13,"detail":"rule"}],"name":"node_group: 'Agent specified environment'","range":{"start":{"line":25,"character":4},"end":{"line":32,"character":5}},"kind":6,"detail":"node_group: 'Agent specified environment'"}],"name":"profile::pe::master","range":{"start":{"line":6,"character":0},"end":{"line":39,"character":1}},"kind":5,"detail":"profile::pe::master"}]}
---
E, [2020-01-16T11:32:34.695040 #51310] ERROR -- : Error in ValidationQueue Thread: invalid option: --no-leading_zero-check
D, [2020-01-16T11:32:34.695802 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":0,"result":null}
---
I, [2020-01-16T11:32:34.697641 #51310]  INFO -- : Succesfully dynamically registered the workspace/didChangeConfiguration method
D, [2020-01-16T11:32:34.698747 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":1,"method":"workspace/configuration","params":{"items":[{"section":"puppet"}]}}
---
D, [2020-01-16T11:32:34.709831 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":1,"result":[{"editorService":{"enable":true,"debugFilePath":"/Users/gene.liverman/Downloads/vscode-puppet-debug.log","featureFlags":[],"formatOnType":{"enable":true},"hover":{"showMetadataInfo":true},"loglevel":"debug","protocol":"stdio","puppet":{"confdir":"","environment":"","modulePath":"/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules","vardir":"","version":""},"tcp":{"address":"","port":0},"timeout":10},"validate":{"resolvePuppetfiles":true},"format":{"enable":true},"installDirectory":null,"installType":"pdk","notification":{"nodeGraph":"messagebox","puppetResource":"messagebox"},"pdk":{"checkVersion":true},"titleBar":{"pdkNewModule":{"enable":true}}}]}
---
I, [2020-01-16T11:32:34.710653 #51310]  INFO -- : Attempting to dynamically register the textDocument/onTypeFormatting method with id f8f3649a-3312-4a8d-a30c-a0ac9e35deb8
D, [2020-01-16T11:32:34.711897 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":2,"method":"client/registerCapability","params":{"registrations":[{"id":"f8f3649a-3312-4a8d-a30c-a0ac9e35deb8","registerOptions":{"firstTriggerCharacter":">"},"method":"textDocument/onTypeFormatting"}]}}
---
D, [2020-01-16T11:32:34.714904 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":2,"result":null}
---
I, [2020-01-16T11:32:34.715470 #51310]  INFO -- : Succesfully dynamically registered the textDocument/onTypeFormatting method
D, [2020-01-16T11:32:35.619388 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":2,"method":"puppet/getVersion","params":null}
---
D, [2020-01-16T11:32:35.621964 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":2,"result":{"puppetVersion":"6.11.1","facterVersion":"2.5.6","languageServerVersion":"0.23.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2020-01-16T11:32:36.619423 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":3,"method":"puppet/getVersion","params":null}
---
D, [2020-01-16T11:32:36.622090 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":3,"result":{"puppetVersion":"6.11.1","facterVersion":"2.5.6","languageServerVersion":"0.23.0","factsLoaded":false,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
D, [2020-01-16T11:32:37.459095 #51310] DEBUG -- : [FacterHelper::_load_facts] Finished loading 124 facts
D, [2020-01-16T11:32:37.619605 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":4,"method":"puppet/getVersion","params":null}
---
D, [2020-01-16T11:32:37.620635 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":4,"result":{"puppetVersion":"6.11.1","facterVersion":"2.5.6","languageServerVersion":"0.23.0","factsLoaded":true,"functionsLoaded":false,"typesLoaded":false,"classesLoaded":false}}
---
A, [2020-01-16T11:32:37.757871 #51310]   ANY -- : SidecarQueue Thread: Calling sidecar with --action default_types --puppet-version=6.11.1 --puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules returned exitcode 0, 
D, [2020-01-16T11:32:37.801280 #51310] DEBUG -- : SidecarQueue Thread: default_types returned 13 items
D, [2020-01-16T11:32:37.801566 #51310] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "default_classes", "--puppet-version=6.11.1", "--puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules"]
A, [2020-01-16T11:32:37.900813 #51310]   ANY -- : SidecarQueue Thread: Calling sidecar with --action default_functions --puppet-version=6.11.1 --puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules returned exitcode 0, 
D, [2020-01-16T11:32:37.939927 #51310] DEBUG -- : SidecarQueue Thread: default_functions returned 60 items
D, [2020-01-16T11:32:37.940208 #51310] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "default_datatypes", "--puppet-version=6.11.1", "--puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules"]
D, [2020-01-16T11:32:38.619948 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":5,"method":"puppet/getVersion","params":null}
---
D, [2020-01-16T11:32:38.622599 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":5,"result":{"puppetVersion":"6.11.1","facterVersion":"2.5.6","languageServerVersion":"0.23.0","factsLoaded":true,"functionsLoaded":true,"typesLoaded":true,"classesLoaded":false}}
---
D, [2020-01-16T11:32:39.620714 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":6,"method":"puppet/getVersion","params":null}
---
D, [2020-01-16T11:32:39.623272 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":6,"result":{"puppetVersion":"6.11.1","facterVersion":"2.5.6","languageServerVersion":"0.23.0","factsLoaded":true,"functionsLoaded":true,"typesLoaded":true,"classesLoaded":false}}
---
D, [2020-01-16T11:32:40.621554 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":7,"method":"puppet/getVersion","params":null}
---
D, [2020-01-16T11:32:40.622444 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":7,"result":{"puppetVersion":"6.11.1","facterVersion":"2.5.6","languageServerVersion":"0.23.0","factsLoaded":true,"functionsLoaded":true,"typesLoaded":true,"classesLoaded":false}}
---
A, [2020-01-16T11:32:40.692770 #51310]   ANY -- : SidecarQueue Thread: Calling sidecar with --action default_classes --puppet-version=6.11.1 --puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules returned exitcode 0, 
D, [2020-01-16T11:32:40.693183 #51310] DEBUG -- : SidecarQueue Thread: default_classes returned 0 items
D, [2020-01-16T11:32:40.693468 #51310] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "workspace_classes", "--local-workspace", "/Users/gene.liverman/repos/puppetlabs-modules", "--puppet-version=6.11.1", "--puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules"]
A, [2020-01-16T11:32:40.834435 #51310]   ANY -- : SidecarQueue Thread: Calling sidecar with --action default_datatypes --puppet-version=6.11.1 --puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules returned exitcode 0, 
D, [2020-01-16T11:32:40.834812 #51310] DEBUG -- : SidecarQueue Thread: default_datatypes returned 0 items
D, [2020-01-16T11:32:40.835196 #51310] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "workspace_functions", "--local-workspace", "/Users/gene.liverman/repos/puppetlabs-modules", "--puppet-version=6.11.1", "--puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules"]
D, [2020-01-16T11:32:41.623062 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":8,"method":"puppet/getVersion","params":null}
---
D, [2020-01-16T11:32:41.625672 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":8,"result":{"puppetVersion":"6.11.1","facterVersion":"2.5.6","languageServerVersion":"0.23.0","factsLoaded":true,"functionsLoaded":true,"typesLoaded":true,"classesLoaded":true}}
---
D, [2020-01-16T11:32:43.960800 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":9,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":7,"character":2}}}
---
E, [2020-01-16T11:32:43.969462 #51310] ERROR -- : (textDocument/hover) Unable to generate Hover information for object of type Puppet::Pops::Model::HostClassDefinition
D, [2020-01-16T11:32:43.970010 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":9,"result":{"contents":null}}
---
A, [2020-01-16T11:32:44.191333 #51310]   ANY -- : SidecarQueue Thread: Calling sidecar with --action workspace_functions --local-workspace /Users/gene.liverman/repos/puppetlabs-modules --puppet-version=6.11.1 --puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules returned exitcode 0, 
D, [2020-01-16T11:32:44.192537 #51310] DEBUG -- : SidecarQueue Thread: workspace_functions returned 3 items
D, [2020-01-16T11:32:44.192884 #51310] DEBUG -- : SidecarQueue Thread: Running sidecar ["ruby", "/Users/gene.liverman/.vscode/extensions/jpogran.puppet-vscode-0.22.0/vendor/languageserver/puppet-languageserver-sidecar", "--action", "workspace_types", "--local-workspace", "/Users/gene.liverman/repos/puppetlabs-modules", "--puppet-version=6.11.1", "--puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules"]
D, [2020-01-16T11:32:47.779299 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":10,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":8,"character":22}}}
---
E, [2020-01-16T11:32:47.785351 #51310] ERROR -- : (textDocument/hover) profile_metadata::service is not a valid puppet type, class or defined type
D, [2020-01-16T11:32:47.786135 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":10,"result":{"contents":null}}
---
D, [2020-01-16T11:32:48.081193 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":11,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":8,"character":22}}}
---
E, [2020-01-16T11:32:48.089222 #51310] ERROR -- : (textDocument/hover) profile_metadata::service is not a valid puppet type, class or defined type
D, [2020-01-16T11:32:48.089786 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":11,"result":{"contents":null}}
---
D, [2020-01-16T11:32:48.284734 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":12,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":7,"character":22}}}
---
E, [2020-01-16T11:32:48.296256 #51310] ERROR -- : (textDocument/hover) profile_metadata::service is not a valid puppet type
D, [2020-01-16T11:32:48.296747 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":12,"result":{"contents":null}}
---
A, [2020-01-16T11:32:49.009906 #51310]   ANY -- : SidecarQueue Thread: Calling sidecar with --action workspace_classes --local-workspace /Users/gene.liverman/repos/puppetlabs-modules --puppet-version=6.11.1 --puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules returned exitcode 0, 
D, [2020-01-16T11:32:49.077474 #51310] DEBUG -- : SidecarQueue Thread: workspace_classes returned 874 items
D, [2020-01-16T11:32:51.005963 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":13,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":7,"character":23}}}
---
D, [2020-01-16T11:32:51.011448 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":13,"result":[]}
---
D, [2020-01-16T11:32:51.154712 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":14,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":7,"character":23}}}
---
E, [2020-01-16T11:32:51.161182 #51310] ERROR -- : (textDocument/hover) profile_metadata::service is not a valid puppet type
D, [2020-01-16T11:32:51.161671 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":14,"result":{"contents":null}}
---
D, [2020-01-16T11:32:51.564286 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":15,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":7,"character":15}}}
---
E, [2020-01-16T11:32:51.569617 #51310] ERROR -- : (textDocument/hover) profile_metadata::service is not a valid puppet type
D, [2020-01-16T11:32:51.570052 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":15,"result":{"contents":null}}
---
A, [2020-01-16T11:32:52.142744 #51310]   ANY -- : SidecarQueue Thread: Calling sidecar with --action workspace_types --local-workspace /Users/gene.liverman/repos/puppetlabs-modules --puppet-version=6.11.1 --puppet-settings=--modulePath,/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules returned exitcode 0, 
D, [2020-01-16T11:32:52.194423 #51310] DEBUG -- : SidecarQueue Thread: workspace_types returned 14 items
D, [2020-01-16T11:32:52.864768 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":16,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":7,"character":15}}}
---
D, [2020-01-16T11:32:52.869411 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":16,"result":[]}
---
D, [2020-01-16T11:32:53.015241 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":17,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":7,"character":15}}}
---
E, [2020-01-16T11:32:53.020836 #51310] ERROR -- : (textDocument/hover) profile_metadata::service is not a valid puppet type
D, [2020-01-16T11:32:53.021399 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":17,"result":{"contents":null}}
---
D, [2020-01-16T11:32:57.507319 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":18,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":7,"character":16}}}
---
D, [2020-01-16T11:32:57.512468 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":18,"result":[]}
---
D, [2020-01-16T11:32:58.269266 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":19,"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":7,"character":23}}}
---
E, [2020-01-16T11:32:58.275229 #51310] ERROR -- : (textDocument/hover) profile_metadata::service is not a valid puppet type
D, [2020-01-16T11:32:58.275815 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":19,"result":{"contents":null}}
---
D, [2020-01-16T11:33:01.169268 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":20,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///Users/gene.liverman/repos/puppetlabs-modules/site/profile/manifests/pe/master.pp"},"position":{"line":7,"character":23}}}
---
D, [2020-01-16T11:33:01.176536 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":20,"result":[]}
---
D, [2020-01-16T11:35:21.689938 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":21,"method":"puppet/getVersion","params":null}
---
D, [2020-01-16T11:35:21.691549 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":21,"result":{"puppetVersion":"6.11.1","facterVersion":"2.5.6","languageServerVersion":"0.23.0","factsLoaded":true,"functionsLoaded":true,"typesLoaded":true,"classesLoaded":true}}
---
D, [2020-01-16T11:35:21.693297 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","id":22,"method":"shutdown","params":null}
---
D, [2020-01-16T11:35:21.693753 #51310] DEBUG -- : Received shutdown method
D, [2020-01-16T11:35:21.694053 #51310] DEBUG -- : --- OUTBOUND
{"jsonrpc":"2.0","id":22,"result":null}
---
D, [2020-01-16T11:35:21.695018 #51310] DEBUG -- : --- INBOUND
{"jsonrpc":"2.0","method":"exit","params":null}
---
I, [2020-01-16T11:35:21.696257 #51310]  INFO -- : Received exit notification.  Closing connection to client...
D, [2020-01-16T11:35:21.696465 #51310] DEBUG -- : STDIOSRV: Stopping STDIO server...
D, [2020-01-16T11:35:21.696695 #51310] DEBUG -- : STDIOSRV: STDIO server stopped
I, [2020-01-16T11:35:21.696862 #51310]  INFO -- : Language Server exited.

@glennsarti
Copy link
Contributor

Hrmm I think I can see a problem.

I, [2020-01-16T11:32:30.583278 #51310]  INFO -- : Language Server is v0.23.0
D, [2020-01-16T11:32:30.583622 #51310] DEBUG -- : Loading gems...
I, [2020-01-16T11:32:34.559070 #51310]  INFO -- : Using Puppet v6.11.1
D, [2020-01-16T11:32:34.560904 #51310] DEBUG -- : Detected additional puppet settings ["--modulePath", "/Users/gene.liverman/repos/puppetlabs-modules/.onceover/etc/puppetlabs/code/environments/production/modules"]
I, [2020-01-16T11:32:34.579357 #51310]  INFO -- : Initializing Puppet Helper...
D, [2020-01-16T11:32:34.579616 #51310] DEBUG -- : Initializing Document Store...

The setting should be --modulepath not --modulePath

@glennsarti
Copy link
Contributor

glennsarti commented Jan 17, 2020

Yeah, looks like https://github.com/lingua-pupuli/puppet-vscode/blob/e1c97fedaa2a1672b7cbd7b2e9f3855d402c52c5/src/helpers/commandHelper.ts#L160 needs some changing.

And I (git) blame myself for that one 😄

glennsarti added a commit to glennsarti/puppet-vscode that referenced this issue Jan 17, 2020
Previously when passing through a module path to the language server it would
use the puppet setting `modulePath` however this is not cased correctly. This
commit uses the correct `modulepath` puppet setting.
@glennsarti glennsarti added this to the 0.23.0 milestone Jan 17, 2020
@glennsarti glennsarti added this to To do in 0.23.0 Marketplace Release via automation Jan 17, 2020
@glennsarti glennsarti self-assigned this Jan 17, 2020
0.23.0 Marketplace Release automation moved this from To do to Done Jan 17, 2020
jpogran added a commit that referenced this issue Jan 17, 2020
(GH-605) Use correct setting name for module path
@jpogran jpogran removed this from Done in 0.23.0 Marketplace Release Mar 27, 2020
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

Successfully merging a pull request may close this issue.

2 participants