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

Key: IDEADEV-15103
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Jemerov
Reporter: Sankara Rameswaran
Votes: 0
Watchers: 2
Operations

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

Improve detection of relevant project when added file is under source roots of multiple open projects

Created: 22 Feb 07 15:15   Updated: 07 Aug 07 21:34
Component/s: Version Control Integration. Subversion
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: linux

Build: 6,148


 Description  « Hide
I see a rather peculiar behavior when there are multiple IDEA projects open. Suppose I have two projects open in two different frames in two different desktops(Virtual: Linux). When I try to create a file, I get a dialog box prompt to "Add to SVN" in the other frame. Before I could realize this I repeated the action 10 times. Now there are ten prompts open in the other. When I answered the first prompt It created the file successfully. The subsequent prompts didn't close. When I tried to close them, it resulted in another dialog saying "File cannot be created. File exists already" in the first frame. I had to switch back and forth till all these are gone.

 All   Comments   Work Log   Change History      Sort Order:
Vladislav Kaznacheev - 26 Feb 07 17:44
Which version of JDK are you running IDEA on?

Sankara Rameswaran - 27 Feb 07 08:52
Jdk 1.5 update 10.

Dmitry Jemerov - 03 Mar 07 22:11
Does the directory where you added the file belong to the content roots of several open projects?

Sankara Rameswaran - 05 Mar 07 14:24
You are right. I just tested it; I'm able to reproduce the same behavior. (I have a rather compelling to need to place a particular project as a sub folder of another project.)
However I believe it is possible to identify the parent frame that triggered the file addition and attach the dialog box to it. That would be the expected behavior as well.

Thibaut - 07 Aug 07 21:34
<common root>
  • project1.ipr
  • projectModule1Folder (mapped to svn /trunk)
    • projectModule1.iml
  • project2Folder (mapped to svn /trunk)
    • projectModule2.ipr
    • projectModule2.iml

So the iml are not overlapping, nor their content roots.
But the second project ipr file is indeed "under" the first one's owning folder.

Not sure if this helps pinning down the problem ?