Personal tools
You are here: Home Community Forum Software Setting up an IDEA Project - Stuck

Setting up an IDEA Project - Stuck

Up to Software

Setting up an IDEA Project - Stuck

Posted by Alan Sausse at April 20. 2009

Hello again forum,

I'm following the procedure given on the page:

http://www.pillarone.org/collaboration/help-center/how-to/setup-an-idea-project-for-pillarone-application

I've got as far as the "Setup the Project" section without any problems.  I've also got the ULC developer license.

The instructions are here:

Setup the Project

  1. Click on open project and select the file trunk/RiskAnalytics/RiskAnalytics.ipr
  2. Adjust the project structure
    1. Open the dialog by clicking on File > Project Structure
    2. Project: Click on New and add a JSDK (path to your JDK installation, i.e. C:\Program Files\Java\jdk1.5.0_15)

=========

 

At this stage, the filename trunk/RiskAnalytics/RiskAnalytics.ipr is not available to me (forward slash vs backslash...?).  Instead I see a file C:\PillarOne Stuff\svn_test\RiskAnalytics\RiskAnalytics.ipr - I don't know if this is what I need.  The filename RiskAnalytics.ipr is correct but the path is now.  When I select this file and press 'OK', a dialog box opens up saying:

 

"There are undefined path variables in project configuration files.  In order for the project to load all path variables must be defined."

 

Below that it shows:

 

MAVEN_REPOSITORY                      C:\Documents and Settings\Alan Sausse\.m2\repository

TEMPLATE (in red text)                    >blank<

 

I can proceed no further than this.

 

Can someone advise please?

 

Many thanks,

 

AS 20/4/09.

Re: Setting up an IDEA Project - Stuck

Posted by Stefan Kunz at April 21. 2009

Hi Alan,

Project File RiskAnalytics.ipr

the path always depends how you checked out from the repository. In my recipe I checked out to trunk, you selected svn_test which is fine too. So, you may simply select C:\PillarOne Stuff\svn_test\RiskAnalytics\RiskAnalytics.ipr.

Unknown path variables

The simple solution is to click on the button with the three dots in the line of the TEMPLATE entry and select a folder and click then on ok. It works fine if it has any path set.

Hope this helps.

Cheers,

Stefan

Re: Setting up an IDEA Project - Stuck

Posted by Alan Sausse at April 22. 2009

Thanks Stefan.

I followed your advice, and everything seemed to be ok.  I think something was loading for a few minutes, but then I was greeted with the message:

"Groovy facets are not allowed in Grails application.  Would you like to remove facet 'Groovy (RiskAnalytics)' from the project?" (options: yes or no)

What does this mean?  Sounds kind of important!

I clicked on 'no', anyway.

I continued to follow the instructions...

Verify your Project Setup

  • Execute ant cruise in order to build and test the whole project. Ant targets can be found by clicking on the Ant Build button at the right side.
  • Start the application selecting one of the items RiskAnalytics (...). dev, test and standalone should work without any further configuration steps.

 

Not sure what I'm looking for here.  When I click on the Ant Build button, a box appears with 'RiskAnalytics-build' as a main header.  Clicking on this gives a list of about 15 items below.  test is in the list, but not dev or standalone.  Am I looking at the right thing?

 

I right-clicked on 'test' anyway, and initiated the build.  I saw lots and lots of errors in the messages window, however, and the build eventually finished, saying:

"Ant build completed with 5 errors 5 warnings in 308s at 10:59:56"

I saw the troubleshooting section.

  • If ant targets don't work, check the properties by right clicking on RiskAnalytics-build. The list should contain a property with name env.GRAILS_HOME and value ../grails.

I do indeed see these things.

 

In the next section, it says that

 

  • If you get suddenly strange and not explainable error messages, you should apply the following recipe to clear all caches:
    • execute the ant clean target in IDEA or grails clean on the command line

 

I don't quite understand what this means.  Is it relevant to me anyway?

 

Thanks,

 

Alan.

 

 

 

 

 

 

 

Re: Setting up an IDEA Project - Stuck

Posted by Stefan Kunz at April 25. 2009

  • The next time you are asked to remove the facet Groovy from the project you may agree as it is part of the Grails facet and IDEA wants to avoid conflicts. Furthermore I have committed new project files, after updating the project you shouldn't get the question any more. You may update the project by clicking on in the menu Version Control.
  • Regarding your questions concerning ant targets and starting the application in IDEA, I have added some screenshots to the setup document. Hope this helps.
Sorry for being too short in my original explanations.

Re: Setting up an IDEA Project - Stuck

Posted by Stefan Kunz at April 25. 2009

> "Ant build completed with 5 errors 5 warnings in 308s at 10:59:56"

You should have a look at the test reports. Simply open index.html placed in the subdirectory test/reports of the project.

If the error is unable to setup you should simply rerun ant test or ant cruise. If the reports show different errors you should have a look at this new how-to describing the execution of a test class in IDEA.

Probably you asked yourself why you got errors in test cases without doing any change in the checked out code. It might be that you updated your code base when the repository code base was broken. In order avoid this you should consider if the repository contains working test case asking Mr. Hudson :) Don't update your code, when the bullet is red! Further interesting information can be found in the document Code Contribution Process.

Re: Setting up an IDEA Project - Stuck

Posted by Alan Sausse at April 29. 2009

Stefan,

I ran IDEA again and saw the same "Groovy facets are not allowed in Grails application.  Would you like to remove facet 'Groovy (RiskAnalytics)' from the project?".  This time I clicked 'yes'.

When I tried to update the project, nothing happened - I saw a message saying "No versioned directories to update was found."

The ant build process failed again - "Ant build completed with 5 errors one warning in 88s at 14:31:24".  I can't find the index.html file either.

What do I do with the 'Hudson' page?  I can see a build history (with red and blue bullet points), graphs, etc. but I don't know what to do with it.

I'm finding all of this quite confusing, I must confess.  I don't really understand what I'm doing.

Alan.

Re: Setting up an IDEA Project - Stuck

Posted by Stefan Kunz at April 30. 2009

Alan,

On how to read hudson: The left column contains a build history. Red bullets indicate a failing build, blue bullets indicate that everything is fine.

If the most recent build has a blue bullet everything is fine and you may check out or update the project as the code in the repository is clean and no test case failed on the server.

If you update the project when the last build failed, most probably the tests will fail on your machine too.

Regarding the project update I suggest to have a chat this afternoon.

Stefan

Quick reply
URLs will be automatically hyperlinked. Basic HTML tags are OK.
Powered by Ploneboard
Document Actions
History
Action Performed by Date and Time Comment
Activate Alan Sausse 20.04.2009 22:03 No comments.