Path variables in inspections - cannot get it to work in 1.2?

Hi!

We're seeing the same problem as desribed in http://www.jetbrains.net/jira/browse/TW-1084 - but in release 1.2, where this should have been fixed?

However, the documentation is a bit vague (to put it mildly).

I have tried the approach described in the jira issue comment, but I still cannot get it to work. My build agent settings are:

#Generated properties (see buildAgent.dist.properties for description)
#Wed Jan 17 09:22:51 CET 2007
serverUrl=http\://localhost\:80
name=PFACDBL04
workDir=F\:
Builder_Work
env.JAVA_HOME=d\:
jdk1.5.0_07
ownPort=9090
system.path.macro.MAVEN_REPOSITORY=f:
maven_repo
path.macro.MAVEN_REPOSITORY=f:
maven_repo
env.path.macro.MAVEN_REPOSITORY=f:
maven_repo
MAVEN_REPOSITORY=f:
maven_repo

And I have restarted the build agent.

But I still get the error:
In order for the project to load all path variables must be defined.: MAVEN_REPOSITORY

Any tips would be appreciated - we were really looking forward to this in 1.2.

6 comments
Comment actions Permalink

Hello Niels,

If it is inspections runner you should use system.MAVEN_REPOSITORY=f:
maven_repo

Sorry for inconveniene. (It is already fix in Agra.)

Thanks.

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Hi!

We're seeing the same problem as desribed in
http://www.jetbrains.net/jira/browse/TW-1084 - but in release 1.2,
where this should have been fixed?

However, the documentation is a bit vague (to put it mildly).

I have tried the approach described in the jira issue comment, but I
still cannot get it to work. My build agent settings are:

#Generated properties (see buildAgent.dist.properties for description)
#Wed Jan 17 09:22:51 CET 2007
serverUrl=http\://localhost\:80
name=PFACDBL04
workDir=F\:
Builder_Work
env.JAVA_HOME=d\:
jdk1.5.0_07
ownPort=9090
system.path.macro.MAVEN_REPOSITORY=f:
maven_repo
path.macro.MAVEN_REPOSITORY=f:
maven_repo
env.path.macro.MAVEN_REPOSITORY=f:
maven_repo
MAVEN_REPOSITORY=f:
maven_repo
And I have restarted the build agent.

But I still get the error:
In order for the project to load all path variables must be defined.:
MAVEN_REPOSITORY
Any tips would be appreciated - we were really looking forward to this
in 1.2.



0
Comment actions Permalink

Niels Ull Harremo wrote:

Hi!

We're seeing the same problem as desribed in http://www.jetbrains.net/jira/browse/TW-1084 - but in release 1.2, where this should have been fixed?

However, the documentation is a bit vague (to put it mildly).

I have tried the approach described in the jira issue comment, but I still cannot get it to work. My build agent settings are:

#Generated properties (see buildAgent.dist.properties for description)
#Wed Jan 17 09:22:51 CET 2007
serverUrl=http\://localhost\:80
name=PFACDBL04
workDir=F\:
Builder_Work
env.JAVA_HOME=d\:
jdk1.5.0_07
ownPort=9090
system.path.macro.MAVEN_REPOSITORY=f:
maven_repo
path.macro.MAVEN_REPOSITORY=f:
maven_repo
env.path.macro.MAVEN_REPOSITORY=f:
maven_repo
MAVEN_REPOSITORY=f:
maven_repo

And I have restarted the build agent.

But I still get the error:
In order for the project to load all path variables must be defined.: MAVEN_REPOSITORY

Any tips would be appreciated - we were really looking forward to this in 1.2.


It looks like you're trying to build Inspection build. For it, you have to define
system.MAVEN_REPOSITORY=f:
maven_repo
in your buildAgent properties.

For Ipr runner, the valid syntax is
system.path.macro.MAVEN_REPOSITORY=f:
maven_repo

We'll unify syntax in Agra to path.macro.MAVEN_REPOSITORY .
So far you should use two variable definitions for Ipr and Inspection runner.

Hope this helps,
KIR


--
Kirill Maximov
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Kirill,

I'm getting the exact same issue. My buildAgent.properties file (]]>/buildAgent/conf/buildAgent.properties) contains the following lines

system.path.macro.ELECTIONS_OUTPUT_DIR=output
system.ELECTIONS_OUTPUT_DIR=output
ELECTIONS_OUTPUT_DIR=output

and my inspection profile build logs always end with
Inspection output:
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
ERROR - ction.ex.InspectionApplication -
java.lang.RuntimeException: There are undefined path variables in project configuration files.
In order for the project to load all path variables must be defined.: ELECTIONS_OUTPUT_DIR
at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:117)
at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:101)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadProject(ProjectManagerImpl.java:40)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:244)
at com.intellij.codeInspection.ex.InspectionApplication.run(InspectionApplication.java:110)
at com.intellij.codeInspection.ex.InspectionApplication$1.run(InspectionApplication.java:10)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
ERROR - ction.ex.InspectionApplication - IntelliJ IDEA 6.0.3 Beta Build #6141
ERROR - ction.ex.InspectionApplication - JDK: 1.5.0_07
ERROR - ction.ex.InspectionApplication - VM: Java HotSpot(TM) Server VM
ERROR - ction.ex.InspectionApplication - Vendor: Sun Microsystems Inc.
ERROR - ction.ex.InspectionApplication - OS: Linux
ERROR - ction.ex.InspectionApplication - Last Action:
There are undefined path variables in project configuration files.
In order for the project to load all path variables must be defined.: ELECTIONS_OUTPUT_DIR

On a larger level, path variables need to be editable on the profile configurations screen for both IPR and Inspection runners. It's really quite embarrassing that I can't get inspections to run in TeamCity.

--Dave Griffith

0
Comment actions Permalink

I have to say sorry, we didn't check Inspections with path variables configuration.
This configuration works in Agra EAP builds, but not in 1.2.

We'll release 1.2.1 with the fix soon.
Before 1.2.1, we'll also publish on the confluence a smaller update which can be used to fix the problem for existing TeamCity 1.2 installations.

We'll post the followup when the fix will be available; you may also watch http://www.jetbrains.net/jira/browse/TW-1459 .

Really sorry for inconvinience,
KIR

0
Comment actions Permalink

We've made the fix for the problem. To apply it, download attachment from http://www.jetbrains.net/confluence/pages/viewpageattachments.action?pageId=18577
and place it to TeamCity/webapps/ROOT/update/plugins directory.

After finishing running builds all build agents should auto-upgrade (this may take a couple of minutes).
After the upgrade Inspection builds with path variables should run without problems.

Note: you should pass path variables as path.macro.VARNAME from now.

Hope this helps,
KIR

Message was edited by:
Kirill Maximov (JetBrains)

0
Comment actions Permalink

Cool. It works. Very nice to finally be able to see inspection results in TeamCity

--Dave Griffith

0

Please sign in to leave a comment.