IntelliJ jumps to wrong line

I have had this very annoying problem with IntelliJ since version 6.0.4. It affects 7.0M1a, 7.0M1b, and it still happens with 7027 (haven't tried 7065 yet).

The problem is if I do a ctrl-b jump to declaration and that declaration is in a different file IntelliJ jumps to the wrong line (this also occurs if I jump to declaration from the menu). I have to hit the back button and then ctrl-b again and then it jumps to the correct line.

If I "downgrade" to 6.0.3 it works correctly. I have had this issue every version since 6.0.4. It is quite embarrassing when I am trying to show my team full of Eclipse users how great IntelliJ is and it can't do something as simple as jump to the correct line when looking for a declaration (I have been using IntelliJ since 4.x).

I thought maybe it could be plugin related so I tried uninstalling all the non-bundled plugins I have and it still jumped to the wrong line. The only non-bundled plugins I have installed are IdeaVIM and GenerateToString.

Should I open a bug about this? What does Jetbrains need from me to be able to fix this?

0
5 comments
Avatar
Permanently deleted user

We need the code sample where we can reproduce the problem. If you have one,
please go to www.jetbrains.net/jira to open the issue.

--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"Michael Parmeley" <no_reply@jetbrains.com> wrote in message
news:28018057.1184851020305.JavaMail.itn@is.intellij.net...
>I have had this very annoying problem with IntelliJ since version 6.0.4. It
>affects 7.0M1a, 7.0M1b, and it still happens with 7027 (haven't tried 7065
>yet).
>

The problem is if I do a ctrl-b jump to declaration and that declaration
is in a different file IntelliJ jumps to the wrong line (this also occurs
if I jump to declaration from the menu). I have to hit the back button and
then ctrl-b again and then it jumps to the correct line.

>

If I "downgrade" to 6.0.3 it works correctly. I have had this issue every
version since 6.0.4. It is quite embarrassing when I am trying to show my
team full of Eclipse users how great IntelliJ is and it can't do something
as simple as jump to the correct line when looking for a declaration (I
have been using IntelliJ since 4.x).

>

I thought maybe it could be plugin related so I tried uninstalling all the
non-bundled plugins I have and it still jumped to the wrong line. The only
non-bundled plugins I have installed are IdeaVIM and GenerateToString.

>

Should I open a bug about this? What does Jetbrains need from me to be
able to fix this?



0
Avatar
Permanently deleted user

Unfortunetly, I haven't been able to recreate it with a small test project. I regularly work on two projects, one that has 3000+ classes and another one that has ~100. It happens on both of those projects.

I will keep trying to recreate it with a smaller test project and if I do I will open an issue about it.

This also happens if I try to jump from Find results. Like if I do a find text in whole project, double-click on a find result it almost always jumps to the wrong line first, double-clicking on it a second time results in it going to the correct line.

Another place it happens from is from a stack trace. Earlier this morning I had a NPE thrown while doing some testing and the stack trace had the line number of the the NPE in it (obviously), like AgentBean:649, and after clicking on it it jumped to like line 34 of the AgentBean class rather than line 649.

0
Avatar
Permanently deleted user

I was able to recreate this problem with source code from an open source project that you should be able to download and test my scenario.

I was never able to recreate this with a small test project so had to use a real-world example.

I opened an issue, which includes a screen capture of it occuring so everyone knows I am not imagining things!

http://www.jetbrains.net/jira/browse/IDEA-14027

0

I think this is a problem in IdeaVIM, as described in this post.

http://www.intellij.net/forums/thread.jspa?messageID=5191728

-Bruce

0
Avatar
Permanently deleted user

The problem is with the IdeaVIM plugin. The following thread has a patched version of IdeaVIM as an attachment on one of the posts that fixes the problem.

http://www.intellij.net/forums/thread.jspa?forumID=18&threadID=268272

Thanks to brucet and longwa!!

0

Please sign in to leave a comment.