Skip to content

Commit

Permalink
Troubleshooting build path issue in Eclipse
Browse files Browse the repository at this point in the history
  • Loading branch information
Apanatshka committed Oct 7, 2020
1 parent f168d31 commit 5b2be0d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion source/langdev/meta/lang/stratego/incremental-compilation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,19 @@ Your file most likely said nothing of the ``build``, meaning it was on the ``bat

.. code:: esv
provider: target/metaborg/stratego.jar
provider: target/metaborg/stratego.jar
Note that a clean build using this setting is necessary at first. It will likely take significantly longer than a clean build using the ``ctree`` format. All subsequent builds should be faster.

As of Spoofax 2.5.7, there are no known limitations to the incremental compilation setting.

Troubleshooting
~~~~~~~~~~~~~~~

**Eclipse specific "strategy is undefined" issue:** If your project was generated by a Spoofax 2.5.11 or older, the project build path may not be up to date any more. This will result in errors where the compiled strategies are not found. These errors may look like so:

.. code:: text
Caused by: org.metaborg.core.MetaborgException: Invoking Stratego strategy editor-outline failed, strategy is undefined
This error would show up once you open an editor for your language once you've built your language with the jar format instead of the ctree format. The solution to the problem is to add the ``src-gen/java`` directory to the build path in Eclipse. You can do this in the Package Explorer by right-clicking the ``src-gen/java`` directory, selecting "Build Path", then selecting "Use as Source Folder". Then clean, rebuild, and strategies should resolve again.

0 comments on commit 5b2be0d

Please sign in to comment.