TabSwitch Opens New Tabs w/ Split Panes

Hi,

Something I've never seen before is happening on a relatively new installation of IDEA UE 10: When I use TabSwitch to switch to another tab and that tab is in a different split/pane from the currently focused tab, instead of the focus moving to the pane in which that tab is open, a new tab is opened for that file in the current pane.

Can this be turned off somehow? I don't see a Settings section for TabSwitch.


IDEA: 10.0.2 (#103.72)
OS: Mac OS X 10.6.6
JVM: 1.6.0_22; 64-Bit Server VM


Randall Schulz

20 comments
Comment actions Permalink

Hi Randall,

The TabSwitch plugin has not had any work done on it since IntelliJ IDEA has its own build in switcher. Could you not use that?
If you have good reasons for using TabSwitch, I will see what I can do to fix the problem in the near future.

Bas

0
Comment actions Permalink

Does the built-in tab capability allow me to bind an action to switch to recent tabs? If so, I don't see it.

The only tab-related actions I see are for moving to adjacent (left or right) tabs. If you know which actions let me do that, please let me know.


Randall Schulz

0
Comment actions Permalink

Dmitry,

I realize I edited my post into a confusing state. I do use the tab switching that goes to adjacent (left or right) tabs, but what I get from the Tab Switch plug-in is the ability to switch to tabs based on how recently I last visited them.

If that functionality is available, please direct me to it. Otherwise, I'd love to have whatever happened to introduce the new undesirable behavior of the Tab Switch plug-in in the presence of split editing panes fixed.


Randall Schulz

0
Comment actions Permalink

Just so I'm clear, the only way to do keyboard-driven, most-recently-used tab switching is with the Tab Switch plug-in which became broken, as I described in my initial post, as of 10.0.2, right?


Randall Schulz

0
Comment actions Permalink

View->Recent Files (ctrl-e in windows) shows files ordered by "last visited", which should be relatively close to last visited tabs. In a quick test, if a file was opened in a diferent pane it jumped to the opened file instead of opening a tab in the current pane

I don't use TabSwitch, so don't know how close this is to the missing funcionality.

0
Comment actions Permalink

That function is minimally what I require, but some details of how it works are undesirable to me.

  • You cannot confirm a selection by releasing the modifier key, you must click or press ENTER.
  • It cannot be cancelled with ESC while you're holding down the modifier key you used to initiate it.
  • It does not show all open files (it excludes the current file in each pane, which means you cannot use it to switch back and forth between files in different panes).


I'd very much like to get TabSwitch (or IDEA) fixed so it does not spuriously open new tabs.


Randall Schulz

0
Comment actions Permalink

Bas,

So, I think I have good, valid reasons to prefer TabSwitch to the built-in capability. Is there any chance you could look at what's causing the symptom I'm seeing?


Randall Schulz

0
Comment actions Permalink

Hello again,

Something I just saw makes me think this symptom is not a TabSwitch issue at all...

I just did a symbol search and when I picked the symbol whose definition I wanted to visit, the same thing happened. Instead of switching to an exsting tab (an the opposite split pane), A new tab was opened in the current split pane.

So I now suspect this is a bug introduced in the latter days of the 10.0.2 development.


Randall Schulz

0
Comment actions Permalink

The built-in switcher switches between recent files when the editor tabs are not visible (Settings > Editor > Editor tabs > Placement: none). Could you try that and see if you get the same (buggy) behavior?


Bas

0
Comment actions Permalink

It's now pretty clear that all inter-file navigation in the presence of multiple editing panes causes a new tab to be opened instead of switch to an existing tab for the target file when that tab is in a different pane.

I claim it's a bug. (And independent of TabSwitch)

Update: Others agree: http://youtrack.jetbrains.net/issue/IDEA-64656


Randall Schulz

Added link to IDEA-64656

0
Comment actions Permalink

Oh... MY... GOD!!!

10.5 RC2 and THIS BUG REMAINS!!!!!

Please oh please oh please oh please oh plase FIX IT!

PLEASE

0
Comment actions Permalink

This can be actually fixed on the TabSwitch side. Use OpenFileDescriptor.setUseCurrentWindow() API.

0
Comment actions Permalink

As the bug report in YouTrack  states, TabSwitch is far from the only thing exhibiting this bug.

Why won't you fix it? You've had months!


Randall Schulz

0
Comment actions Permalink

Hello Randall,

As far as I can see, your understanding of what "the bug" is isn't related
to what the original bug report says.

The original bug report describes incorrect behavior of Back/Forward navigation
in the presence of split editors. It doesn't talk abot files getting opened
in wrong panes.

TabSwitch does not work for you because it does not use the new API for controlling
whether a navigation action prefers staying in the current tab group (opening
a new copy of the file if needed) or prefers using an existing copy of the
file (switching to another tab group if needed). The existence of the API
is not a bug, but rather a feature.

It's possible that there are some cases where IDEA's own code does not use
the new API correctly. If you know of any such cases, please list them. All
that the bug report says is "There seem to be several cases".

As the bug report in YouTrack  states, TabSwitch is far from the only
thing exhibiting this bug.

Why won't you fix it? You've had months!


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Bas,

I would very much like to be able to keep using TabSwitch. The built-in switcher does not work as well for me.


Randall Schulz

0
Comment actions Permalink

Bas,

Does your offer remain open?


Randall Schulz

0
Comment actions Permalink

Sure, I will see if I can fix it this week. Sorry for not replying earlier.

Bas

0
Comment actions Permalink

Thank you!


Randall Schulz

0
Comment actions Permalink

I have just uploaded version 2.1.9 of TabSwitch which should fix your problem. Let me know how it works.

Bas

0
Comment actions Permalink

Hi, Bas,

Yes, that did it.

Thank you so much!


Randall Schulz

0

Please sign in to leave a comment.