Closed szschaler closed 4 years ago
can you provide a stacktrace? could you also provide a reproducing example? is the same problem there with the latest nightly https://ci.eclipse.org/xpect/job/Xpect/job/master/lastSuccessfulBuild/artifact/org.eclipse.xpect.releng/p2-repository/target/repository/?
Trace is
java.lang.NullPointerException
at org.xpect.xtext.lib.setup.XtextStandaloneSetup.
This stacktrace and classnames don’t match the current code and I don’t know if the old is somewhere
=> please try with newest version => please provide a reproducible example
Current code of what? This is a recent install of Xtext and Xpect, see version numbers on top off issue. These version numbers have been taken directly from the Eclipse plugin list.
i mean the one with eclipse namespaces: https://ci.eclipse.org/xpect/job/Xpect/job/master/lastSuccessfulBuild/artifact/org.eclipse.xpect.releng/p2-repository/target/repository/
Hmm, strange. This doesn't seem to be what's installed from the nightly update site at http://www.xpect-tests.org/updatesite/nightly/, which is linked from http://www.xpect-tests.org/ ... I will try out with that version (is there a way of treating your link as an update site?) and report back.
cause nobody cares about having a proper updatesite at eclipse or updating the old one.
It may well be time to update it, if it helps avoid more confusion like mine :-)
Short of installing XPect from source from this directory, is there something I can use as an update site for the build you've linked above?
There should be a zip and a update site see https://ci.eclipse.org/xpect/job/Xpect/job/master/19/artifact/org.eclipse.xpect.releng/p2-repository/target/
The first link may be usable as update site
Thanks. Yes, that worked as an update site. I will get our IT person to install from there (long story...) and report back.
Moving to this version of Xpect fixes the issue. However, this means that there is an issue with documentation. When people search for Xpect, the only download site they find is the one advertised here: http://www.xpect-tests.org/ This leads to http://www.xpect-tests.org/updatesite/nightly/ which has the old version. No other update site is documented anywhere, as far as I can see. In fact, that old update site is still advertised in the README file for this repository.
I note that Xpect now is an Eclipse project, but it doesn't advertise any downloads on https://projects.eclipse.org/projects/modeling.xpect/downloads, or in fact packages here. Would it be possible to update the links to the update site accordingly so that the old version is no longer delivered? I believe this would avoid confusion.
The problem is There is nobody who cares to do so (an i am not a committer)
Thanks, that's nice and clear :-)
I have a simple example project using XPect 0.2.0.201706301756. If I run my tests with Xtext 2.18, all works well. If I try to run the same tests with Xtext 2.19.0.v20190902, I get a
NullPointerException
inXtextStandaloneSetup
on a line that calls on the injector to do stuff. I suspect that the injector variable hasn't been set correctly here, causing XPect to break.At this point, I am unsure how to fix this. It may of course be some incompatibility from Xtext 2.18 to 2.19, but given that my language is as unassuming as they come (literally an afternoon's hacking of a grammar), I would be surprised.
Any suggestions?