jenkinsci / jenkinsci/idea-stapler-plugin

Teach Groovy to recognize `namespace` method in Groovy Stapler views

Open
#161 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
11
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Example https://github.com/jenkinsci/jenkins/blob/1ecf191f32d8383661ecf9442a3117047dbd1acf/core/src/main/resources/jenkins/tools/GlobalToolConfiguration/index.groovy#L6-L7

If tag library is available as a class, IntelliJ needs to know that the `namespace` method returns an object of the same type as a parameter class.

Contributor guide

Open the contributing guide

Research direction

Start with the example in Jenkins at core/src/main/resources/jenkins/tools/GlobalToolConfiguration/index.groovy, especially lines 6-7, and trace how the IntelliJ Stapler plugin handles Groovy tag libraries. The work is done when IntelliJ recognizes the namespace method and infers its return object type from the parameter class; no plugin file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.