History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-15060
Type: Bug Bug
Status: Open Open
Assignee: Irina Petrovskaya
Reporter: Melody Dunn
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Compile problems when project opened from SVN external

Created: 17 Sep 07 22:02   Updated: 10 Jan 08 01:25
Component/s: Compiling Project

Environment: WIndows XP

Build: 7,274
Severity: High


 Description  « Hide
I have a project which I created and everything compiles and works as expected until I try to access that project from an SVN externals directory. When I open the project from an SVN external directory, the project won't compile. I had tried repeatedly to create modules in my project where the source code was in an SVN externals directory and could not get it to work. I then checked the repository out separately, created the project - no problem. But it doesn't compile if I access it through SVN externals.

It's a big project so it's very time consuming to have to update the project from 2 separate local copies.



 All   Comments   Work Log   Change History      Sort Order:
Dmitry Jemerov - 19 Sep 07 21:49
What exactly does not compile?

Melody Dunn - 24 Sep 07 18:58
Right now, I re-opened the project from an external directory and when I compile the project (Build...Rebuild Project), everything compiles without error. When I open any java file in my project, there are errors displayed all over the screen because the imports are not recognized. For example,
  1. if my content root for a project named foo is c:/foo/
  2. my source directory is c:/foo/src/
  3. there are 2 packages with classes:
    • com\myco\package1 (package has class Package1.java)
    • com\myco\package2(package has class Package2.java)
  4. Package2.java has an import: import com.myco.package1. The error message is "Cannot resolve symbol package1"

I would have described the issue this way originally but the behavior doesn't seem to be consistent. I have opened this project before and had compiler errors as well as page display errors. My project is quite large and trying to figure out the differences is very time consuming so I haven't figured out why I have seen different behavior. Hope this helps.


Irina Petrovskaya - 26 Nov 07 17:29
could you please describe your configuration in details:
  • project structure (project/modules content roots relative locations)
  • svn externals configuration: for what directory what svn:externals properties are set?
  • do you use IDEA svn integration for this project, or use external svn client for check out etc? In the first case, please write how the VCS roots are configured for the project.
    Sorry for the multiple questions, but we cannot recreate the issue here, so we probably don't understand the situation clearly. Thanks in advance!

Dmitriy Ivanov - 28 Nov 07 01:11
This happens if I use JDK 1.6.0_02
If I switch to JDK 1.5 everything works fine.

Melody Dunn - 28 Nov 07 03:01
I do not have this configuration anymore because we merged the projects. I was using jkd 1.6_02. I was using idea svn for some things but also use tortoise and smart svn for other things.

The project looked something like this. The external property would be on the myCheckoutdir with a property to checkout the external to a folder called myExternalDirectory. Hopeful my makeshift structure below makes some sense and provides some usefulness. The project itself had many more modules than what is shown below.:

myCheckoutdir

  • deploy (directory and module and module content root)
  • infra (directory and module content root)
  • server (directory and module content root)
  • myExternalDirectory
    • devt (folder)
      • fndn (folder)
        • arch (directory and module content root)
        • base (directory and module content root)
        • bo ((directory and module content root)
        • other modules
    • html (folder)
      • ia (directory and module content root)
      • retail (directory and module content root)
    • glassfish-app (directory and module content root)
    • other modules at this level

Dmitriy Ivanov - 10 Jan 08 01:25
I believe here is scenario to reproduce it:

1. Download and install JDK 5
2. Start IDEA and configure new JDK with installed java 5
3. Shoutdown IDEA
4. Download and install JDK 6
5. Start IDEA and reconfigure existing JDK to use java 6 (don't remove and create just setup new folder for it and so on...)
6. Start new project (for example write simple hello world console program)
7. Try to compile it.

Result: IDEA doesn't compile any java-file for your project.

Workaround: remove configured JDK (in IDEA) after new JDK installation and create new one. After this compilation will work.