Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Dmitry Jemerov 
Subsystem
Version Control. CVS 
Affected versions
Fixed in
Fixed in build
Next build 
Build
6148
Fixed in build
8254
Severity
0
  • Submitted by   Jake Robb
    3 years ago (17 Jan 2007 00:38)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:40)
  • Jira: IDEA-36277
    (history, comments)

IDEA-36277

VCS: IntelliJ "forgets" about my changes.

IntelliJ 6 often seems to "forget" which files I have changed or added. The problem can surface when I open the app (or just a project), when I save, and when I switch to IntelliJ from another application. Files that I know are new or modified do not show up in green or blue, respectively. They're just black. They also don't show up in the Changes tab.

On the modified files, I can do a Check Status on the individual file and IntelliJ will discover that the file is modified. This is not an option on added files, however, so there is no way that I have found to get IntelliJ to rediscover the state of a file that has been added to CVS but not committed. My only option is to commit it using TortoiseCVS or another CVS tool.

Performing Check Project Status or Update Project often causes IntelliJ to rediscover some or all of the modified files. Usually not all of them running Check Status on each individual file is the only way I can consistently rediscover them. I'll reiterate this NEVER helps on added files.

I have not determined a definite way to reproduce this issue, but I can generally cause it to happen inadvertently within ten minutes of normal use. I will post a comment on this issue if I discover a consistent way to reproduce this problem.

I'm using CVS. I have the plugins CVSbar and TabReorder, but I have confirmed that the problem persists without these plugins installed.

This bug has existed in all public releases of IntelliJ 6 from the beta to 6.0.4. 4.5.4 and 5.1.2 do not have this bug.

I previously reported this on October 19, 2006, but can find no evidence of that issue in JIRA today, so I am re-reporting it. If anyone has any idea how the issue could have been deleted, I'd love to know.

Issue was resolved
Comments (24)
 
History (1)
 
Links
 
Dan Grabowski
  Dan Grabowski
17 Jan 2007 02:02
(3 years ago)
#permalink
I have also experienced this issue with version 6.0.2 (build #6107) using CVS. IntelliJ will occasionally lose the modified status of files and I need to perform a check status on the file or project in order to get the files to display as modified again. This issue really hurts the value of the CVS integration in IntelliJ, since I can never trust that commits will include all modified files.
Dan Grabowski
  Dan Grabowski
16 Feb 2007 19:55
(2 years ago)
#permalink
Attached are a screenshot of this issue occurring and the CVS entries file for the directory in question. The files ServletResourceUtils.java and ImageFinder.java in this directory are locally added, but IntelliJ is diplaying them as unmodified. The color of the file names is black, instead of green, and they do not show up in the changes tab. The CVS entries file correctly identifies these files as locally added.
Jake Robb
  Jake Robb
16 Feb 2007 22:52
(2 years ago)
#permalink
I just wanted to comment that Dan's screenshots look exactly like the problem I'm seeing. Thanks!
Jake Robb
  Jake Robb
26 Apr 2007 18:20
(2 years ago)
#permalink
Has any progress been made here? Would it be worth my time to pursue installing Milestone 1 of IntelliJ 7 to see if this is fixed? I have some hoops to jump through to get software installed at work, so any advice would be appreciated.
Jorge Montero
  Jorge Montero
23 Sep 2007 20:40
(2 years ago)
#permalink
This has happened to Us plenty of times. Some of our developers have moved back to Idea 5 because of this!

The most common situation where this usually happens is after doing a CVS update. The files are updated fine, but the IDE sets all files to black, whether they were changed or not.
Ed Staub
  Ed Staub
16 Oct 2007 17:22
(2 years ago)
#permalink
This problem prevented my company from moving from 5 to 6.

Unfortunately, it's still in 7, as of RC6 (build 7348).

The problem appears to be on a directory. All modified or new files in a directory won't be seen.

When using Commit Files (control-K), some modified files simply won't show up.

The results if you do a Check Directory Status on a high-level directory is strange. All files will correctly appear on the "New" and "Modified" lists, but some of them will be shown in black, the "unmodified" color code. If you right-click on these files, the Commit option is greyed-out.

A Synchronize fixes the problem. If a "Check Status" window is up, it is automatically fixed.

We see the problem on both Linux and Windows.
Jake Robb
  Jake Robb
07 Feb 2008 18:00
(2 years ago)
#permalink
This is still an issue in 7.0.2.

On the bright side, we are now far enough behind that we're switching to Subversion in order to get around it. :)
Geoffrey Mitchell
  Geoffrey Mitchell
07 Feb 2008 19:18
(2 years ago)
#permalink
I think it is actually worse in 7. Typically, just closing and restarting Idea causes it. I am pretty certain that our company will not be purchasing any further upgrades, and may migrate away from Idea entirely if this is not addressed. I have to say I think it is pretty ridiculous that this bug has been out here for a year with no sign of being addressed.
Dmitry Jemerov
  Dmitry Jemerov
07 Feb 2008 20:55
(2 years ago)
#permalink
For those who can reproduce the problem: Please do the following steps.
1. Download the latest IntelliJ IDEA 7.0.3 EAP build from http://www.jetbrains.net/confluence/display/IDEADEV/Selena+EAP
2. Replace the bin\log.xml in IntelliJ IDEA directory with the attached log.xml file
3. When the problem happens, note the names of the files for which the changes are not reported
4. Attach your idea.log file to this issue and specify the names of the files with a comment.

This will let us see why exactly the problem happens.
Jake Robb
  Jake Robb
07 Feb 2008 22:41
(2 years ago)
#permalink
I have installed the EAP and replaced the log file with the one provided. I usually can recreate this issue within a couple of hours.
Geoffrey Mitchell
  Geoffrey Mitchell
08 Feb 2008 02:28
(2 years ago)
#permalink
I opened idea, edited one file, NewPhysical.java, closed idea, and opened it again. Before I closed and reopened the file was shown in the Default change list and was highlighted blue as modified. After reopening, the name was black and the Default change list was empty. The zip file contains all idea.log* files (I didn't want to miss anything).
Geoffrey Mitchell
  Geoffrey Mitchell
08 Feb 2008 02:29
(2 years ago)
#permalink
If there is any other way I can assist, please let me know.
Dmitry Jemerov
  Dmitry Jemerov
08 Feb 2008 13:49
(2 years ago)
#permalink
Geoffrey,

Thanks for the logs!

How exactly is your project configured? Do I understand correctly that all your .iml files are stored under "projects\camelot"? Is the "projects\camelot\modules" directory under a content root of any module, or do the content roots of all modules start below this directory?
Ed Staub
  Ed Staub
08 Feb 2008 16:15
(2 years ago)
#permalink
Dmitry,
If you need any more logs, let me know.
For what it's worth OUR project structure (no connection to Geoffrey), looks like

project-root-directory
project.ipr
modules-directory
module-A-directory
module-A.iml
src-directory, etc.
module-B-directory
module-B.iml
src-directory, etc.
...
module-N-directory
module-N.iml
src-directory, etc.


The module content root is always the default - the directory that the .iml file is in.
Ed Staub
  Ed Staub
08 Feb 2008 16:17
(2 years ago)
#permalink
Argh - the post dropped all my indenting.

project-root-directory
----project.ipr
----modules-directory
--------module-A-directory
------------module-A.iml
------------src-directory, etc.
--------module-B-directory
------------module-B.iml
------------src-directory, etc.
--------...
--------module-N-directory
------------module-N.iml
------------src-directory, etc.
Dmitry Jemerov
  Dmitry Jemerov
08 Feb 2008 16:17
(2 years ago)
#permalink
Ed,

Please send your logs too. Your situation could be different.
Jake Robb
  Jake Robb
08 Feb 2008 17:48
(2 years ago)
#permalink
I haven't yet seen the issue in build 7684. Keeping my fingers crossed. Were any relevant changes made in this build?

My IPR and IML files are all in a subdirectory ("setup") within the project root. The module directories themselves reside outside of that directory. Adopting Ed's format:

project-root-directory
----module-A-directory
--------src-directory, etc.
----module-B-directory
--------src-directory, etc.
----...
----module-N-directory
--------src-directory, etc.
----setup
--------project.ipr
--------module-A.iml
--------module-B.iml
--------...
--------module-N.iml
Geoffrey Mitchell
  Geoffrey Mitchell
08 Feb 2008 19:18
(2 years ago)
#permalink
My setup is similar to Ed's, but slightly different. We actually have multiple ipr's using different combinations of modules.

So, it looks like this:

project-root-directory (camelot)
----modules
--------module-A-directory
------------module-A.ipr
------------server
----------------module-A-server.iml
----------------src directory, etc.
------------client
----------------module-A-client.iml
----------------src directory, etc.
----...
--------module-N-directory
------------module-N.ipr
------------server
----------------module-N-server.iml
----------------src directory, etc.
------------client
----------------module-N-client.iml
----------------src directory, etc.

I do have a "commonfiles" module configured that is rooted at the "camelot" directory, but the "modules" directory is excluded.
Jake Robb
  Jake Robb
09 Feb 2008 00:56
(2 years ago)
#permalink
I am attaching my log files. The modified files are Configuration.xsd and BusinessRuleHandler.java in the sircondb project. I reproduced this several times in a row by modifying a file and then closing and reopening the project.
Geoffrey Mitchell
  Geoffrey Mitchell
26 Mar 2008 18:35
(22 months ago)
#permalink
Thanks! I can't wait for the EAP....
Yann Cébron
  Yann Cébron
30 Mar 2008 13:03
(22 months ago)
#permalink
  1. 8256: a SVN move once again did not make it into commit fully (the deletion was not recognized until after committing)
Yann Cébron
  Yann Cébron
30 Mar 2008 13:16
(22 months ago)
#permalink
  1. 8256: the editor tab titles don't update their status color immediately after committing, but only after switching back to the file in question
project view is updated correctly
Dmitry Jemerov
  Dmitry Jemerov
30 Mar 2008 14:53
(22 months ago)
#permalink
Yann: Both of these problems are unrelated to the original JIRA issue (which involves a specific project configuration where a module content root is located below a directory excluded from another module). The editor tabs update issue should be fixed already.
Geoffrey Mitchell
  Geoffrey Mitchell
04 Apr 2008 02:01
(22 months ago)
#permalink
Well, things are definitely MUCH better in the EAP. The first time I closed and re-opened Idea to test if the problem was still happening, it did happen. But, it has not happened on close/re-open since then. It has also not happened on running an ant build, which it used to do. It did, however, happen to me today when I did a project update (Version Control -> Update Project). I will try to get logs showing the problem and attach them.