-
Notifications
You must be signed in to change notification settings - Fork 21
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
@param name
puppet strings tag crashes language server
#320
Labels
bug
Something isn't working
Comments
h4l
added a commit
to h4l/puppet-editor-services
that referenced
this issue
Jan 4, 2022
Classes and defined types with @param tags for parameters that were not present were causing the language server to crash due to populate_classes_from_yard_registry assuming param tags always had a :types array present. Param tags without types are now ignored. Note that class/defined type parameters without a specified type automatically have the "Any" type in their :types array, so they're not excluded by this change.
h4l
added a commit
to h4l/puppet-editor-services
that referenced
this issue
Jan 4, 2022
Classes and defined types with docstring @param tags for parameters are not actually present in the parameter list cause the language server to crash, due to populate_classes_from_yard_registry assuming param tags always have a :types array present. @param tags without types are now ignored. Note that class/defined type parameters without a specified type automatically have the "Any" type in their :types array, so they're not excluded by this change.
h4l
added a commit
to h4l/puppet-editor-services
that referenced
this issue
Jan 4, 2022
Classes and defined types with docstring @param tags for parameters that are not actually present in the parameter list cause the language server to crash, due to populate_classes_from_yard_registry assuming param tags always have a :types array present. @param tags without types are now ignored. Note that class/defined type parameters without a specified type automatically have the "Any" type in their :types array, so they're not excluded by this change.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
(I'm using the language server via the Puppet vscode extension, but I assume I should report this here as it appears to be a language server issue.)
Including the following in a
.pp
file causes the language server to crash when starting:I get the following traceback in the vscode extension's log file:
Expected Behavior
The language server shouldn't crash.
Steps to Reproduce
I included the above snippet in a vscode project with the Puppet extension enabled.
Environment
Additional Context
N/A
The text was updated successfully, but these errors were encountered: