-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testThrowingFullLayout failed #71
Comments
Are you working on Windows? If yes I guess it's a line ending issue. Does the test work if you append
|
Thanks for the answer! Yes, I use Windows. I can't add
I don't understand yet how to fix it. |
|
I have no idea either :-( |
The same error here: eclipse/xtext#1391 |
Thanks for help! You are right. Addition of My 2nd issue with Xtext was caused by JAVA_HOME set to JDK 13. Old version of Xtext doesn't support this JDK. So switching JAVA_HOME to JDK 1.8 solved the error. The following tests are failed now:
Errors for all tests are similar:
The visible difference between the results is the following (maybe line endings are different too):
|
Yes, probably the same line ending problem. But if there are line endings in the middle of the string,
@AresEkb could you try that, and if it helps would you like to create a pull request fixing the tests on Windows? |
Thanks! All tests are passed now. I created a pull request #72 |
Hi
I cloned the repository and initiated a build process
gradlew build
.I've got a failed
testThrowingFullLayout
:Expected and actual values are trimmed. However I guess that NPE was thrown as expected. The problem is that exception text differs, maybe because of different JDK version.
I tried to change file https://github.com/eclipse/sprotty-server/blob/master/org.eclipse.sprotty/src/test/java/org/eclipse/sprotty/DefaultDiagramServerTest.xtend
Added
println(logger.toString)
to the end oftestThrowingFullLayout
and commented outassertEquals
. But I can't build the project:Execution failed for task ':org.eclipse.sprotty.layout:generateTestXtext'.
caused by
java.lang.NoSuchMethodError: 'void com.google.common.base.Throwables.throwIfUnchecked(java.lang.Throwable)'
Could you please help to fix it?
The text was updated successfully, but these errors were encountered: