NoSuchMethodError with xbase.lib 2.11 target and xbase.lib 2.10 host #122
Comments
Sounds like eclipse/xtext-lib@b2207e7 |
append(String) was introduced here: eclipse/xtext-lib@da32a7d |
I don't think we can do anything about it |
(besides catching that exception and turning it into a "please update your eclipse plug-in"-message) |
At least we have to make sure that xbase.lib >= 2.11.0 is put into the classpath. Currently the Xtend editor creates a message
We should fix this. Is the version |
No I think it searches for a class that was introduced with 2.8 |
So we could change this to search for |
I think so |
see org.eclipse.xtend.core.validation.XtendValidator.checkClassPath(XtendFile) |
It's not necessary to have xbase.lib 2.11 in the classpath, even if the Xtend compiler version 2.11 is used. The generated code is still compatible with older library versions. The problem reported by @meysholdt is the other way around: having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. This is probably because the active annotations code is executed with the library from the compiler classpath, and not the project's library version. We can't fix this for existing Xtend 2.10 installations, but maybe we can improve the situation for the future. Would it be possible to use the project's library when code involving active annotations is compiled? |
we had this issue again after eclipse/xtext-lib#55 @svenefftinge do you have any hints on @spoenemann s question |
No, it is not possible, because we need to use the tool's classpath for everything else to not run into incompatible class versions. Also, a class is first resolved by the parent classloader (which includes xbase). |
so we should close this as wontfix? |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=444914 adresss this issue as well with focus on better "catching" the problem so i will close this |
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
There is a problem with the version having xbase.lib 2.11 in the classpath but an older Xtend compiler in the IDE leads to the exception. It is described in a few places: https://www.eclipse.org/forums/index.php/t/1084743/ Also see this: eclipse/xtext-xtend#122
After upgrading the target platform of an Xtext project to 2.11.0-beta2, I got the following exception in the Error Log View. In the Xtend Editor, I got an error marker saying "org.eclipse.xtend2.lib.StringConcatenation.append(Ljava/lang/String;)V See error log for details"
In my host Eclipse, xbase.lib 2.10.0 is installed.
The text was updated successfully, but these errors were encountered: