fix: CommonViewerSorter has been deprecated in favor of CommonViewerComparator in Eclipse 2026-03#1512
Conversation
…omparator in Eclipse 2026-03
|
The following test case started failing: I guess this is because of the 2026-03 release and the "latest" URLs being updated. |
|
Hi @FlorianKroiss and @rubenporras, It seems, this change made the LSP4E version 0.30.1 incompatible with e.g. Eclipse 2025-12 (which my team mates still have to use). See the following stacktrace: |
|
Looking at Copilot bug tracker, there are lot of people requesting even Eclipse 4.30 support (and getting it, see microsoft/copilot-eclipse-feedback#169). Once they will get latest Copilot with latest Lsp4e, all such users will see troubles as well. What I would say is: for such a very "low level" component like lsp4e, it would be great to support not only the latest Eclipse platform, but at least some releases before latest. With that, a revert of the change here would be really appreciated. |
If this is caused by eclipse-platform/eclipse.platform.ui#3621 and if the change in platform is not compatible, it should be reported to platform. @akurtakov : I assume, the assumption in eclipse-platform/eclipse.platform.ui#3621 was that the change is backwards compatible to existing plugins? |
|
I've created #1515. |
|
I'm sorry for causing this problem. I did not see that the class was newly introduced and just wanted to fix the test by following the deprecation hint.
I don't think we have one? But we should do what tm4e does. In hindsight, @sebthom even warned us that this very problem will happen sooner or later #1428 (comment) |
No problem, the intent was clear. Let discuss a fix for the specific issue here: #1516 and the (probably longer) discussion belongs to a dedicated ticket about LSP4E compatibility in general. |
For existing plugins - nothing changes as long as the old API is there. Most places are already using Comparators and not Sorters thus this is kind of continuing what has been started in years ago to move away of Sorters. |
Hmm. The original issue was this one. |
|
So switching to the new API makes it behave like the old API but the old API itself doesn't ? It somehow doesn't make sense to me unless there is some code somewhere doing instanceof check for ViewerSorter. |
No description provided.