bizarre dissapearing changes in 977


BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm not posting this bug yet, because I don't know how I would
reproduce/prove it.

I was working in a couple of XML files (OJB descriptor, and
struts-config.xml) making my changes and testing my code. Everything
looked ok, but upon quitting the IDE and going back into my project,
opening the files, the changes were gone. These changes were not even
in the CVS version I checked in, although there is a timestamp and
version increase for CVS, but the file contains none of the changes.

Something is very fishy. I haven't noticed this in java files, so
perhaps it's an illusion on my part, perhaps I edited what I thought was
the right file, but it's not?

Any hints as to how I can trace this would be great.

Thanks
R
-


BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/uMpT+cV9vuB27SARAn/iAJ9UdWwNgY//UHf6pBDKCilMvqLrLACgkLJl
zd78/9a+w76o119L3BJMxwQ=
=XTQf
-


END PGP SIGNATURE-----

19 comments

I noticed something similar...

I was working on some classes, removing some method calls. After running the Ant build task, I receive tons of errors, reporting it cannot resolve symbol 'getBlahblah' ('getBlahblah' being the method I got rid of).

After clicking on the error, I found the caret pointing to the position 'getBlahblah' originally was called.

I thought it might be some IDE behaviour, so I caled the ant task from the command promp, after doing an Ant-clean task.

To my surprise, running Ant from the command prompt still gave me errors!

After closing IDEA and reopening it, I found my classes containing the previously deleted methods...
I removed them again, and everything works flawlessly :|

The only thing difference: the first time I had 2 instances of IDEA open, the second time only one.

0

Not an illusion, I saw it two weeks ago

I was waiting for it to happen again, so I could go put the steps in a bug report ... :(

I didn't do a CVS check-in, but it looked like the local VCS had rolled back on its own, for some reason.

I don't know if it's relevant, but I was editing XML files too.

0

BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok boys and girls, it seems we actually DO have a problem on our hands,
how do we find it, and did anyone file a bug for it???

R

Rayz wrote:

| Not an illusion, I saw it two weeks ago
|
| I was waiting for it to happen again, so I could go put the steps in a
bug report ... :(
|
| I didn't do a CVS check-in, but it looked like the local VCS had
rolled back on its own, for some reason.
|
| I don't know if it's relevant, but I was editing XML files too.
|
-


BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/uNzG+cV9vuB27SARAvBLAKDjd6P/c/B0NpZDKfvF9Ioj7PuD6QCfReIp
NklcSX+YNXAeArYPg/O7s=
=KAgJ
-


END PGP SIGNATURE-----

0

I'm seeing something similar to this.

I modified a class externally (using a diff tool to merge a couple of different verisons of a class I have). The changes don't show up in IDEA no matter what I try. Yet Ant complains about some of the code I brought over. Now if I could only edit it in IDEA, I'd be a happy camper.

Note: Whenever I've done this in the past, IDEA would detect the external changes and reload the file. Now, however, even closing the file and opening again brings up the old version of the file.

Me thinks the version history is taking over.

0

Joe Kueser wrote:

I'm seeing something similar to this.

I modified a class externally (using a diff tool to merge a couple of different verisons of a class I have). The changes don't show up in IDEA no matter what I try. Yet Ant complains about some of the code I brought over. Now if I could only edit it in IDEA, I'd be a happy camper.

Note: Whenever I've done this in the past, IDEA would detect the external changes and reload the file. Now, however, even closing the file and opening again brings up the old version of the file.

Me thinks the version history is taking over.


I think I've seen this too. I've got a Visual C++ project which is under
the directory controlled by my IDEA project. When I make changes to the
C++ files, they don't show up as modified, the changes are not displayed
in the editor in IDEA (when opened as a text file), and I can't perform
a CVS Show Changes on it. I have to make a number of meaningless changes
(adding/removing blank lines) before IDEA finally notices that the file
has changed.

I tried searching for a bug report but no luck. Has anybody reported one
already?

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0

I think I've seen something similar on more than one occasion (but not regularly) when editing Java files, even on builds prior to 977.

Like you I can't predictably reproduce the behaviour I'm seeing either. It's one of those instances where you make some code changes to fix a problem, compile, run, some time later you shut down the project. When you open it up again you're looking at the previous, unfixed, version of the file. And then you think you're going mad.

Unlike other posters here though, I've not been editing XML files, and I have not had external tools modify project files etc, nor do I use CVS - I have the local version control stuff enabled.

Not much help, I know. I can't be 100% sure it's not operator error.

0

I also noticed this and it is really a reason that
I start to severly mistrust IDEA !
You reopen your project and your changes are missing,
for me it also was an XML-file.

I suspect that IDEA might take the content of some
other file and put it in the one you were editing,
e.g. an older version with same filename, somewhere
else on the filesystem.
Of course it is happening not very often, so that it
is very hard to reproduce.

Are you all using windows XP? Maybe it is related with this,
I experienced problems even with IDEA 3.0.5

Once I had entries in my lvcs with wrong time order, see attached pictures. I think I filed a bug report.


Recently, I experienced that new folders are not noticed
by IDEA3.0.5, no matter how often you hit refresh.

0

Don't know if this helps, but I always disable Local History and I have never seen this issue.

0

I never use local vcs but have experienced this problem a few times.

0

I've got the same problem, but I can reproduce it.
If I open a second project in a new window and change any file externally, then Idea does not recognize the changes.
Sometimes it happens if I open an other project in the same window.

0

BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Did you file that?

R

Michael wrote:

| I've got the same problem, but I can reproduce it.
| If I open a second project in a new window and change any file
externally, then Idea does not recognize the changes.
| Sometimes it happens if I open an other project in the same window.
-


BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/xInY+cV9vuB27SARAhmgAKDwFYsQ7od9Hu6ggh109dpbu49iGQCgm5eM
hz+r1nsy6UzOCJutO5QBc9I=
=9nek
-


END PGP SIGNATURE-----

0

I don't think it is related to XP, because this happened to me once on OS X. I was just editing Java files and my changes disappeared after closing and reponening the IDE. I chalked it up to a late night on top of a long day causing me to see things, but it appears that I am not the only one "seeing things".

0

>I chalked it up to a late night on top of a
>long day causing me to see things, but it
>appears that I am not the only one "seeing things".

I had exactly the same thought.

>I don't think it is related to XP

You're right of course, I use Linux (Mandrake).

This is the worst kind of problem though isn't it. Difficult to pin it down.

0

BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I haven't noticed it for a while, it's a real pain, I'd hate to have a
product released especially if the developers noticed something, and not
be able to find it and reproduce it, because you know the first poor sap
who uses the final release will hit the bug :)

R

Mark Lee wrote:

|>I chalked it up to a late night on top of a
|>long day causing me to see things, but it
|>appears that I am not the only one "seeing things".
|
|
| I had exactly the same thought.
|
|
|>I don't think it is related to XP
|
|
| You're right of course, I use Linux (Mandrake).
|
| This is the worst kind of problem though isn't it. Difficult to pin it
down.
-


BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/xzWT+cV9vuB27SARAiWzAJ4nLZ//XL1TVaR6exrZRHK7fBcTUwCgymCb
R03VN69Y6JvRQqZfSeIca/I=
=GBJH
-


END PGP SIGNATURE-----

0

Could this problem be related to the undo mechanism? It happened today that I tried to undo some changes I made in a class file. After some undo steps (let's say two or three) nothing happened anymore. Later I changed to another file I modified earlier and there my changes had vanished.

My suspicion is that the undos in the first file (those which didn't work) have been sent silently to the second file, undoing the changes I made before.

I can't prove it, but I think I noticed this behaviour several times during the last two weeks. Has anybody else seen something similar?

0

Well I've seen the case where the caret doesn't move to the location of
the changes actually being undone within the same file, which can mean
that you don't know that you're actually undoing stuff - I'm still
trying to work out a reproducible test case for this :
http://www.intellij.net/tracker/idea/viewSCR?publicId=20086 - but I
haven't seen it go across files...

N.

Martin Fuhrer wrote:

Could this problem be related to the undo mechanism? It happened today that I tried to undo some changes I made in a class file. After some undo steps (let's say two or three) nothing happened anymore. Later I changed to another file I modified earlier and there my changes had vanished.

My suspicion is that the undos in the first file (those which didn't work) have been sent silently to the second file, undoing the changes I made before.

I can't prove it, but I think I noticed this behaviour several times during the last two weeks. Has anybody else seen something similar?

0

Well I've seen the case where the caret doesn't move
to the location of
the changes actually being undone within the same
file, which can mean
that you don't know that you're actually undoing
stuff - I'm still
trying to work out a reproducible test case for this


Maybe that's also a problem. But in my case I'm sure nothing has been undone, since the caret was located exactly where the last changes occured.

haven't seen it go across files...


I don't know if that's really happening. Maybe it was just a timely coincidence of two unrelated problems. But without knowing it exactly I think that the two problems occured together several times.

0

I have multiple projects open most of the time,
so this could be a hint - maybe it happnens only when
multiple projects are opened? (IDEA 3.05)


0

Please sign in to leave a comment.