-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Improve Usage directions #1
Comments
Normally this is enough to be able to resolve |
If you build an Eclipse plug-in, you need to add the xtext2langium p2 repository to your target platform. |
@steve-hickman-epistimis |
@steve-hickman-epistimis <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="io.typefox.xtext2langium" version="0.0.0"/>
<repository location="https://typefox.github.io/xtext2langium/download/updates/v0.3.0/"/>
</location> |
@steve-hickman-epistimis Please re-open if something else is missing. |
I have tested this for both Maven and Gradle using the default 'Hello' XText project. This eliminates the unresolved reference errors and the .langium files are generated as expected. Interestingly, on the Gradle project, I did not have to add this to the dependencies in the build.gradle file to build in Eclipse. Don't know why - maybe the Gradle file only matters when building from the command line? One other thing: For my actual DSL, I found that recreating the XText project and adding the langium dependency before the first time I selected "Generate XText Artifacts" worked. For those who still have problems getting this to work, consider that. Thanks! |
NOTE: You need to update your blog post (https://www.typefox.io/blog/xtext-to-langium) to reference the 0.3.0 version. |
The usage directions are spartan - so much so that I haven't gotten this to work yet. So far I've done:
io.typefox.xtext2langium;bundle-version="0.2.0"
Generate....mwe2
file in base grammar project, adding the prescribed snippetto the
StandardLanguage
section as directed.4. Added the Maven dependency to the pom.xml of my base grammar project as below:
I still get:
errors in the .mwe2 file where I inserted the snippet.
I know there must be a simple fix to this - I just don't know what it is. I haven't discovered it by looking through the test code for this either. Or on StackOverflow/ Eclipse Forums via Google searches. I apologize that I just don't know Eclipse well enough to know the solution to this.
Could I trouble you to update the directions to make them more explicit?
The text was updated successfully, but these errors were encountered: