OS X 10.8.3
When I pull the latest from github, the Update Project Info tab shows the files that have been updated, but when I CMD+D to diff any one of them, the diff window shows the same file on both sides and it says "no differences" on the bottom, which is incorrect. Here's a concrete example:
application.properties is a file that contains our app's version number in a propety called app.version. I have this file open in the editor and it shows 0.8.139. That is the correct value, but when I diff this file from the Update Project Info tab, it shows 0.8.138 on BOTH sides.
I have several other projects which appear to be working correctly and I can't seem to figure out what happened with this one.
Really? I'm the only one on the planet experiencing this? It's now happening in both of my main projects. Sometimes it works, sometimes it doesn't. This is almost as frustrating as the miserable performance I'm seeing after upgrading to version 12.
I reported a similar issue but it has been fixed for long time: http://youtrack.jetbrains.com/issue/IDEA-91293
Can you spot a pattern when it does not work?
Not yet but I'm really trying to find one. I always work with the same 2 projects open, and this has been working fine up until recently.
I just looked at the YouTrack link you posted - I saw that exact bug just yesterday. I saw 2 empty panels and it said "no differences" at the bottom.
Does it happen on modified files or just on created or deleted files?
Does it happen for all file types or only for certain ones?
Could you please try IDEA 12.1 EAP and see if the issue persists there? I remember some fixes around this area made in 12.1.
It happens on modified files of different types. I just pulled down the latest from github - 15 files were modified. In this particular case, CMD+D works on all of them except two .groovy files which are incorrectly showing "no differences". There is another .groovy file higher up in the list that does show differences, though, so it's definitely not specific to any one file type.
One interesting thing about this most recent pull is that the two files that are showing "no differences" are from a different repository. Both of the projects I work in regularly contain 3 git roots.
I will download and try the 12.1 EAP.
UPDATE: I don't feel comfortable using the 12.1 EAP - it's flagging a bunch of my files as having errors which is incorrect - simply opening the file clears the condition. I'll keep it around to test the diff issue though.
Quick update: the problem has not happened at all over the past few days. So strange. (I did see this bug again but only once: http://youtrack.jetbrains.com/issue/IDEA-91293.)
Here we go again. Man this is so annoying. Is there any way to find out what IntelliJ is trying to do when it goes to compare these files? Any logging info I can enable, perhaps?
IntelliJ uses the Local History to show difference.
Could you please open the problematic file in the editor and invoke VCS | Local History | Show History and attach the screenshot?
Btw, you're using 12.1, right?
I mentioned previously that I downloaded 12.1 but was unforcomfortable using it because it was incorrectly flagging a large number of my files as having errors, but I see that RC2 has just been posted, so I will download that and report back.
I will still attach the screenshots, though, so you can at least see what I'm talking about. The CMD+D image shows the result of diffing the file in the Update Project Info tab. The local history image is what you requested and correctly shows the difference. Feel free to ignore these until I report back after using 12.1.
My first try at diffing from the Update Project Info tab in 12.1 RC2 was a success, but unfortunately IntelliJ is still incorrectly flagging tons of my files as having errors (i.e, they have a red underline... I open the file and it goes away). I'll live with it for now to see if the diff issue is fixed. Would you like me to report this elsewhere or are you guys aware of it?
If you have such serious problems with error highlighting, please report it to our bugtracker, and we'll do our best to fix it asap.
Will do. It's defintely a problem.
The diff not working is still happening in 12.1, RC2, I'm afraid. I would attach screenshots again, but the ones I attached to my earier post showing the application.properties file are still valid. Same exact problem. 9 files were just pulled down in the latest update: all of them are showing "no differences".
So, Paul, as you mentioned earlier, Diff from Update Project Info works for some files, but doen't work for some other ones, right?
You mentioned groovy and properties files, that doesn't work. Are there more of them? Are these files have registered file types?
And could you please give an example of files that work fine.
Kirill, thanks for following up with me. Based on what I've seen so far, the problem doesn't seem to be related to specific file types. But it's intermittent and really difficult to reproduce consistently. Just this morning I pulled down the latest from both of my projects, diff'd a few files, and everything is fine. This is something I do on a daily basis, so I will report back when/if it happens again.
Just happened again but the behavior is slightly different this time. I'm currently using 12.1.1 (129.239). I did an Update Project which pulled down 1 file from github. If I diff that file in the Update Project Info tab, I get an empty window that says "Contents are identical" - previously I would see the contents of both files but it would say "no differences" at the bottom. If I then open the file, click Show History, and diff the most recent change from there, I see the differences. Screenshots are attached.
Please let me know if there's anything I can do to help you track this down. It's a tough one because it doesn't happen consistently.
Just want to report that this is still happening in 12.1.2 (129.354). I just pulled down 3 files and all of them are showing "no differences" when I diff from the Update Project Info tab. Here's one example: note the app.version is 0.4.120 on both sides, yet when I open this file in the editor, it's 0.4.121.
I completely understand how difficult this is to track down since it's intermittent and you are probably unable to reproduce it. Please let me know if there's anything I can do to help - I'd be glad to run a special debug build or something if that would help you figure this out.