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

Key: IDEADEV-25369
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Dmitry Jemerov
Reporter: Jake Robb
Votes: 9
Watchers: 6
Operations

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

VCS: IntelliJ "forgets" about my changes.

Created: 17 Jan 07 00:38   Updated: 05 Aug 08 18:37
Component/s: Version Control Integration. CVS
Fix Version/s: Selena 7.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. File Entries (1 kb)
2. Zip Archive geoff_mitchell-idealogs.zip (137 kb)
3. Zip Archive jrobb-idea-log.zip (144 kb)
4. XML File log.xml (2 kb)

Image Attachments:

1. IntellijCVSIssue.png
(122 kb)
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-10983 Locale changed files don't change the... Resolved
IDEA-13074 Changed file shows up in "File View" ... Resolved

Build: 6,148
Fixed in build: 8,254
Severity: High


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
Dan Grabowski - 17 Jan 07 02:02
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 - 16 Feb 07 19:55
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 - 16 Feb 07 22:52
I just wanted to comment that Dan's screenshots look exactly like the problem I'm seeing. Thanks!

Jake Robb - 26 Apr 07 18:20
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 - 23 Sep 07 20:40
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 - 16 Oct 07 17:22
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 - 07 Feb 08 18:00
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 - 07 Feb 08 19:18
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 - 07 Feb 08 20:55
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 - 07 Feb 08 22:41
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 - 08 Feb 08 02:28
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 - 08 Feb 08 02:29
If there is any other way I can assist, please let me know.

Dmitry Jemerov - 08 Feb 08 13:49
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 - 08 Feb 08 16:15
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 - 08 Feb 08 16:17
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 - 08 Feb 08 16:17
Ed,

Please send your logs too. Your situation could be different.


Jake Robb - 08 Feb 08 17:48 - edited
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 - 08 Feb 08 19:18
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 - 09 Feb 08 00:56
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 - 26 Mar 08 18:35
Thanks! I can't wait for the EAP....

Yann Cébron - 30 Mar 08 13:03
#8256: a SVN move once again did not make it into commit fully (the deletion was not recognized until after committing)

Yann Cébron - 30 Mar 08 13:16
#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 - 30 Mar 08 14:53
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 - 04 Apr 08 02:01
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.