Show parameter names when configuration issue
See original GitHub issueYour checklist for this issue
🚨 Please review the guidelines for contributing to this repository.
- [ x ] Link to any upstream changes that might be required (for example Jenkins Core pull request)
Feature Request
I am currently debugging an error that looks like this:
Caused by: io.jenkins.plugins.casc.ConfiguratorException: : Failed to construct instance of class hudson.plugins.ec2.SlaveTemplate.
Constructor: public hudson.plugins.ec2.SlaveTemplate(java.lang.String,java.lang.String,hudson.plugins.ec2.SpotConfiguration,java.lang.String,java.lang.String,com.amazonaws.services.ec2.model.InstanceType,boolean,java.lang.String,hudson.model.Node$Mode,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,hudson.plugins.ec2.AMITypeData,java.lang.String,boolean,java.lang.String,java.util.List,java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,java.lang.String,boolean,java.lang.String,boolean,boolean,boolean,hudson.plugins.ec2.ConnectionStrategy,int).
Arguments: [java.lang.String, null, null, java.lang.String, java.lang.String, com.amazonaws.services.ec2.model.InstanceType, java.lang.Boolean, java.lang.String, null, java.lang.String, null, null, java.lang.String, java.lang.String, java.lang.String, null, null, java.lang.Boolean, java.lang.String, java.util.ArrayList, java.lang.String, null, java.lang.String, java.lang.Boolean, java.lang.Boolean, java.lang.Boolean, null, java.lang.Boolean, null, java.lang.Boolean, java.lang.Boolean, java.lang.Boolean, null, java.lang.Integer]
I have no way to reconcile what arguments are expected versus what was supplied. It would be really nice to know what it was looking for when it failed.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Viewing method parameter information | WebStorm ... - JetBrains
Parameter hints show the names of parameters in calls of methods and functions. Parameter hints are shown right in the editor next to...
Read more >Android Studio 3.0 parameter hints information not always ...
Go to File > Settings > Editor > General > Appearance > Show parameter name hints; Click Configure; Language: -> Java; Options ->...
Read more >The BIG-IP ASM system may fail to display parameter names ...
The BIG-IP ASM system may fail to display parameter names configured for an allowed URL. This issue occurs when all of the following ......
Read more >Inline Parameter Name Hints - Help | JetBrains Rider
When your caret is at a method call showing parameter name hints, you can press Alt+Enter , choose Configure Parameter Name Hints, or...
Read more >5 Parameters for the sqlnet.ora File - Oracle Help Center
This chapter provides complete listing of the sqlnet.ora file configuration parameters. This chapter includes the following topics:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool so we do know the actual prameters we could use reflection and
getGenericParameterTypes()
to get the param types and configure the Exception message to include the names and types.Fixed via https://github.com/jenkinsci/configuration-as-code-plugin/pull/930