When I try to build the core module in Intellij I get two kinds of
compilation errors:

D:\cache\idea\system\compiler\core.e95d7d7c\.generated\groovyStubs\jenkins-core\production\jenkins\widgets\BuildQueueWidget\index.java

Error(1, 9)  The package jenkins.widgets.BuildQueueWidget collides with a
type

This stub for the Groovy script is automatically generated by Intellij for
Java/Groovy cross-compilation. The generated file looks like this:

package jenkins.widgets.BuildQueueWidget;

public class index extends groovy.lang.Script {
public static void main(java.lang.String[] args) {
return ;
}

public java.lang.Object run() {
return null;
}

}

There is indeed a class jenkins.widgets.BuildQueueWidget with the same name
as the namespace.

Here Intellij offers me to exclude this Groovy file from stub generation.
Should I do it?

There is another type of error that I also receive:

D:\cache\idea\system\compiler\core.e95d7d7c\.generated\groovyStubs\jenkins-core\production\jenkins\util\groovy\AbstractGroovyViewModule.java

Error (38, 8) FormTagLib cannot be resolved to a type

All of this is very confusing. This is the third day I am trying to get
started working with the sources and it adds some frustration, given that I
am experienced with maven and Intellij. Is there a description about how
exactly one must configure Intellij in order build the project?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to