Skip to content
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

The error occurs when running MWE2 for the Xtext grammar, based on the Xtend model #2871

Open
fedorov-vk opened this issue Dec 11, 2023 · 1 comment

Comments

@fedorov-vk
Copy link

The problem occurred in eclipse package "eclipse-dsl-2023-12-R" (windows/linux x64, xtend 2.33)

MW2 is reported (exception indicating a problem):
Caused by: java.lang.NoClassDefFoundError: org/slf4j/Logger

An example of projects to reproduce the problem is available in the public repository
https://github.com/fedorov-vk/xtext-xcore-sample.git

To simplest avoid the MW2 execution error,

  • it is enough to add to MANIFEST.MF of org.example.library:
    Import-Package: org.slf4j
  • or adding as external JAR the slf4j.api_2.0.9.jar into MWE2 launch configuration.

Follows is a little investigation.

  1. First sequence of calls, what is caused error.
    bundle: org.eclipse.xtext.xtext.generator_2.33.0.v20231121-0955.jar
    method: XtextGeneratorResourceSetInitializer.ensureResourceCanBeLoaded()
    call: xcore.getDeclaredMethod("doSetup", new Class[] {} ).invoke(null);

  2. Next, call doSetup:
    bundle: org.eclipse.emf.ecore.xcore_1.27.0.v20231007-1413.jar
    method: XcoreStandaloneSetup.doSetup

  3. Method doSetup - uses bundle: com.google.inject_7.0.0.jar
    Google.inject - generates the above exception.

@cdietrich
Copy link
Member

xcore version looks old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants