SVN synchronization issues: a story about hubris and embarassment
Pardon me if I'm wrong, but file synchronization in #6981 seems completely broken -- it's not even picking up changes from subversion after an updated issued from IDEA itself. Here's:
A coworker of mine asked me to help her fix a bug. So I had her sitting next to me, while I bragged how IDEA is great, how it makes me more productive, etc. etc. Then I opened a file (using CTRL+N, with camel case, just to show off), and IDEA alerted me, saying the file was outdated.
"Great", I thought, that was an opportunity to demonstrate a feature not seen in any other IDE:
- "Oh, someone committed a new version for this file, I need to update it".
- "How do you know?"
- "Look at the upper portion of the screen. IDEA tells me the file is outdated"
- "Ooooh... and it even says who committed the new version, and when... amazing!"
- "Heh, heh. That's IDEA for you" big grinning smile
So I ran a full project update. I didn't notice any changes after this, so I thought maybe there were only whitespace changes. I continued editing files for maybe another 15 minutes, when I finally ALT+TAB'bed to IBM RAD to redeploy the application.
And it didn't work. My first thought was that RAD didn't pick up the changes from IDEA, so I refreshed the whole workspace. It still didn't work, so maybe I did something wrong... better double check my changes.
And then, surprise. When I ALT+TABbed back to IDEA, I was greeted with the ominous "File Cache Conflict" for every file I edited after the SVN update. In other words, IDEA:
1) Failed to pick up the changes from SVN, even when the updated was issued from IDEA itself.
2) Failed to write my changes to disk when I tabbed away from it.
I was at a loss for words.
- "Err... something wrong happened"
- "How so? What are these strange 'conflict' dialogs? Didn't we update the project a while ago?"
- "Yeah, we did, but... You see, this is a preview version, so there are a few bugs around"
- "And this is one of these 'few bugs'?"
- "Yeah... well..."
That taught me a lesson. I'm never showing off like that again.
Humor aside, this looks like a serious bug to me. Has anyone else experienced something similar? I remember reading a few posts about synchronization, but I'm not sure if this is the same.
请先登录再写评论。
Yep, it's been reported a few times but we haven't had any response so far.
I've actually started restarting IDEA every time I do a Subversion update/revert/switch, since the manual file synchronization appears to be broken as well.
I should add that it appears to have been broken since build 6951.
Message was edited by:
Simon Knott
Marcus,
Join the club of shocked IDEA users. This bug has been around for some time considering its Stopship nature: http://www.jetbrains.net/jira/browse/IDEA-12716
I've made as much noise as I know how to on it. The only workaround is to restart IDEA, and with our corporate mandated slow samba mounts (another story: IDEA-12717), that takes forever and a day.
Cheers,
Jon
P.S. JetBrains even released the milestone & milestone bug fix knowing the Synch problem was present.
This is why I won't use Selena.
"Marcus Brito" <no_reply@jetbrains.com> wrote in message
news:30833130.1180529334690.JavaMail.itn@is.intellij.net...
>
>
>
>
>
>
>
>
>
>
>
Hello Jon,
Let's not confuse things. The sync problem that everyone is complaining now
was introduced after the milestone. The milestone build had known sync problems
only on Samba drives.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I'll be even less confused knowing that are both fixed. :)
File Cache Conflict after SVN update project http://www.jetbrains.net/jira/browse/IDEA-12794
Just to let you guys know that this is not gone in #7002. I've learned my way around it, but basically IDEA still can't detect external changes.
FWIW, we're seeing this sporadically on the milestone B build. Issue above duly voted.
Is there any ETA on when the sync issues are going to be fixed? Having to restart IDEA every time I revert, update or shelve changes is getting rather tedious.
Hello Simon,
The next EAP will include a rewritten VFS implementation, which will replace
the current synchronization problems with a whole new set of yet unknown
problems which will at least be actively looked at. :)
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Fantastic! I look forward to my files not being reloaded in completely different scenarios :)
This is probably already known by jetbrains guys, but these problems also manifest with CVS in 7002 (and several previous builds). Project update, shelving changes, incoming changes, and rolling back local changes are all broken due to these issues with file system synchronization.
Sounds like Jetbrains is on it with the new VFS, but if you are CVS user, beware. I generally shutdown IDEA to do all cvs updates now.
I've reverted to 6.0.5 for the time being. I love the new features in Selena, and I'd love te help test them further, but the VFS problems are a show stopper. I'll be waiting patiently for a new build with the revamped VFS implementation.
I've been using the 7.0 milestone release. They just released a bugfix update to it, 7.0m1b.
The sychronization works fine in that release.
http://www.jetbrains.com/idea/nextversion/
Most of the time I use the EAP for actual work, but the broken synchronization is too painful to work through. And now that I know the whole filesystem code is being rewritten, I think I'll be using this next 7.0m1b version for awhile.
Ok, good to know that the VFS rewrite (as already seen on the roadmap) is near.
I guess you've got a few persons committed on testing this. :)
OK, well I'm still having large synchronization problems, especially with files modified/created outside of IDEA.
Unfortunately, directories and files aren't even syncing after an IDEA restart, so it's a bit of a show-stopper for me! The only way I can get IDEA to pick up new files is to remove the content roots from modules and re-add them. :)
Hello Simon,
Is this with 7016? What OS are you under?
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Dmitry,
as I already posted yesterday, I also still see the same issues with CVS in #7016 as before - on
Windows XP.
Sascha
Hello Sascha,
Yep, I've seen your comment. Do you use background or foreground update?
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
It's with 7016 on Windows XP.
Hello Dmitry,
Update and commit are configured to run in the foreground. To sum it up, those are the effects I see:
- Updated files are marked as modified and look just as before the update, now with change-markers.
New files sometimes don't appear at all. (IDEA-12624, IDEA-12696)
- Committed files that contain an RCSID are modified after the commit, showing the original
version/author in the RCSID.
- Doing a Rollback on a file does nothing.
Synchronizing doesn't help - neither the "global" action, nor on per-file basis. However, after
waiting a certain time, alt-tabbing away from IDEA and back and opening some dialogs, the changes
will eventually be picked up.
If you need more details, put in log statements and let me know. At least in one project I can
reproduce this at will.
Sascha
Hello Sascha,
>> Yep, I've seen your comment. Do you use background or foreground
>> update?
>>
One more question: Does this happen for projects which have one content root,
or only for projects which have multiple content roots?
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
All projects that show the effect have multiple content roots in form of multiple modules, each with
a single content root. And at least one project has intersecting content roots:
.../A <- content root of module A
.../A/B <- content root of module B
Sascha
Hello Sascha,
OK, thanks for the info. We've made a few tweaks to make better use of the
new VFS in the post-update sync - these might help. We're also investigating
some related problems that we can reproduce here.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Sascha,
OK, looks like we found the real problem. Please try next build :)
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Dmitry,
Thanks a lot, indeed it looks like you've finally nailed that ugly bug. Feel free to close
IDEA-12624 and IDEA-12696.
Sascha