You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
ANSI Support: keybinding issues for Ctrl+Shift+C #65
Understand where the keybinding conflicts with Java Stack Trace console are coming from - we have not just "one" console, but lot of different consoles, so if the keybinding issues appeared in one, they will also appear in other one for sure.
OK, (kind of) got it.
Sometimes 90% of fixing a bug is reproducing it :-)
The problems was no me not knowing where to look for the log, it was that the conflict is not reported on Windows.
Trying in on Linux the conflict is in the log, and also in the Preferences -- General -- Keys -- "Conflicts" panel on the right
(as described here #57 (comment))
But I think Linux is wrong.
The contexts there the hotkeys are supposed to be active are completely independent:
"C/C++ Editor", "Editing Java Source", "Editing Properties Files" vs "In Console"
And in fact without ANSI Support binding to Ctrl+Shift+C, there are still conflicts reported between the other bindings.
I've also tried the functionality.
And it all works properly, in console / java / C++ / properties editor.
So I am quite sure this is a false positive on Linux.
I can:
spend some time dig in the code that checks for the conflicts, find the problem and point to it :-)
just file a bug claiming that the validation is wrong and leave it to someone else
But the questions: should I enable Ctrl+Shift+C for ANSI Settings, confident that is a false positive, Linux only, and tested that it works? Or play it safe and not assign any hotkeys?
I am quite sure this is a false positive on Linux.
It is not only "false positive" reporting. The problem is that if that happens, the affected keybindings do not work afterwards. So we have to understand where the problem is coming from and fix that.
If that is Linux only, my guess would be different context activation timings, because of possible different key processing events order on GTK.
As long as we have the broken bindings, I would not enable them. The "rest" of Eclipse doesn't trigger binding conflicts, so it must be something special in the Console.
I can test again on all platforms, and test the ANSI copy, and "Toggle comments"
BTW, if looks a bit like "Toggle comments" is grabbing a bit too many hotkeys? :-)
It takes Ctrl+/, Ctrl+7, and Ctrl+Shift+C
And Ctrl+Shift+C is Copy in all the Linux and MacOS console / terminal applications that I know of
(you can't use Ctrl+C in a terminal app, because it sends a SIGINT signal, which cancels or terminates the currently-running program)
Is there a way to "bribe" the owners of "Toggle comments" to release Ctrl+Shift+C?
;-)
Activity
mihnita commentedon Aug 9, 2022
Please assign to me (I don't have the right to do it myself)
Thanks,
M.
laeubi commentedon Aug 9, 2022
@vogella WDYT about making @mihnita a platform committer?
mihnita commentedon Aug 10, 2022
OK, (kind of) got it.
Sometimes 90% of fixing a bug is reproducing it :-)
The problems was no me not knowing where to look for the log, it was that the conflict is not reported on Windows.
Trying in on Linux the conflict is in the log, and also in the Preferences -- General -- Keys -- "Conflicts" panel on the right
(as described here #57 (comment))
But I think Linux is wrong.
The contexts there the hotkeys are supposed to be active are completely independent:
"C/C++ Editor", "Editing Java Source", "Editing Properties Files" vs "In Console"
And in fact without ANSI Support binding to Ctrl+Shift+C, there are still conflicts reported between the other bindings.
I've also tried the functionality.
And it all works properly, in console / java / C++ / properties editor.
So I am quite sure this is a false positive on Linux.
I can:
But the questions: should I enable Ctrl+Shift+C for ANSI Settings, confident that is a false positive, Linux only, and tested that it works? Or play it safe and not assign any hotkeys?
mihnita commentedon Aug 10, 2022
@iloveeclipse Any opinion please?
Thank you!
M
iloveeclipse commentedon Aug 10, 2022
It is not only "false positive" reporting. The problem is that if that happens, the affected keybindings do not work afterwards. So we have to understand where the problem is coming from and fix that.
If that is Linux only, my guess would be different context activation timings, because of possible different key processing events order on GTK.
As long as we have the broken bindings, I would not enable them. The "rest" of Eclipse doesn't trigger binding conflicts, so it must be something special in the Console.
mihnita commentedon Aug 10, 2022
There are binding conflicts in the official m2 download.
Directly as a package, not with the installed.
Got "Eclipse IDE for Java Developers, Linux [x86_64]
Unpacked and started it.
The results are:
and
Nothing extra installed. And the ANSI support is not in M2.
mihnita commentedon Aug 10, 2022
I've tested, and they work.
I can test again on all platforms, and test the ANSI copy, and "Toggle comments"
BTW, if looks a bit like "Toggle comments" is grabbing a bit too many hotkeys? :-)
It takes Ctrl+/, Ctrl+7, and Ctrl+Shift+C
And Ctrl+Shift+C is Copy in all the Linux and MacOS console / terminal applications that I know of
(you can't use Ctrl+C in a terminal app, because it sends a
SIGINTsignal, which cancels or terminates the currently-running program)Is there a way to "bribe" the owners of "Toggle comments" to release Ctrl+Shift+C?
;-)
mihnita commentedon Aug 17, 2022
@iloveeclipse
Considering that right now the bindings are removed, what should we do about this bug?
Thanks,
M.
iloveeclipse commentedon Aug 17, 2022
I do not plan to work on this and do not see strong need for dedicated shortcuts, so if you are OK with current state, you can close this ticket.