Skip to content

As a smith I do not want to have compile errors after oomphing #1373

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

Open
1 of 2 tasks
jpilgrim opened this issue Jul 5, 2019 · 5 comments
Open
1 of 2 tasks

As a smith I do not want to have compile errors after oomphing #1373

jpilgrim opened this issue Jul 5, 2019 · 5 comments
Assignees
Labels

Comments

@jpilgrim
Copy link
Contributor

jpilgrim commented Jul 5, 2019

After freshely "oomphing" N4JS with latest Eclipse version (Eclipse IDE for Eclipse Committers, 2019-06) and I got two problems:

  • org.eclipse.n4js.model/emf-gen
    The whole folder contains errors due to wrong code generation. How can we fix that? Do we need a different EMF version somewhere? Current workaround: Replace the folder with HEAD version (and discard changes).
  • AstSelectionProvider2PluginUITest.xtend contains errors. Current workaround: It needs to be "touched" (i.e. changed, saved, undo change, save) in order to work
@jpilgrim jpilgrim added the bug label Jul 5, 2019
@jpilgrim
Copy link
Contributor Author

jpilgrim commented Jul 6, 2019

Screenshot of the two workaround:

  1. emf-gen:

ideWorkaround1

  1. AstSelectionProvider2PluginUITest.xtend

ideWorkaround2

@mmews-n4
Copy link

#1390 fixes first item

@szarnekow
Copy link
Contributor

The other problem appears to be caused by a wrongly computed build order. Investigating.

@szarnekow
Copy link
Contributor

Further analysis revealed the following causal chain for the observed problem:

  • We use bundle fragment to implement tests, lets say n4js.runner.ui.tests is a fragment for n4js.runner.ui
  • The fragments required bundles, e.g. n4js.ui.tests.helper are hoisted into the host bundles dependencies internally by PDE
  • Now we have a dependency from n4js.runner.ui to n4js.ui.tests.helper that is considered by the Eclipse incremental project builder.
  • n4jsui.tests.helper depends again on n4js.runner.ui which forms a cyclic dependency.
  • Cyclic dependencies are evil and cause the problem with the bogus error markers.
  • Potential workaround: Refactor test fragments to bundles.

@szarnekow
Copy link
Contributor

see also https://bugs.eclipse.org/bugs/show_bug.cgi?id=536592
which is solved for Eclipse 2019-12 as it seems.

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

No branches or pull requests

3 participants