-
Notifications
You must be signed in to change notification settings - Fork 199
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
Support for in-IDE builds, runs, and tests #30
Comments
Update: After I checked out simplelanguage again with a new Eclipse and workspace, without the second language I added, the tests run within Eclipse. Different from the previous setup, I added the VM args from the POM as the default arguments for the JVM (GraalVM) in the installed JRE properties. SLMain still does not work though. |
I'm trying to run SLMain from Intellij, I get the following error: Exception in thread "main" java.lang.UnsupportedOperationException I used the same flags as in the pom.xml file and set the JDK to the local graalvm. I'm able to run tests fine but I need to run SLMain for debugging. |
@maenu Do you mind sharing what maven dependency you use to install Python? I am running into similar exception "Caused by: java.lang.IllegalArgumentException: A language with id 'python' is not installed. Installed languages are: [js]." I suspect i didn't pull in python dependency in my gradle file. But looking in the artifacts i didn't see anything on the python here: https://mvnrepository.com/artifact/org.graalvm |
@yvonnecc I did not install Python, and I would assume the setup has changed in the two years since opening the issue. Maybe somebody else has pointers for you? I would search for Graal/Truffle/Python to find resources around Python on Graal. |
I'm trying to build my own language on Graal, therefore I checked out this repo and built it. I can get the examples to run on the Maven built Jars, e.g.
sl HelloWorld.sl
, but not from within Eclipse.To run SLMain I use the same JVM arguments as in the POM for tests:
When I run SLMain with HelloWorld.sl I get:
When I run the tests, not a single one passes, I get errors like:
So, how can I run examples and tests from within Eclipse for a Truffle language project?
Did I miss something in the documentation that would tell me how to set this up, or is a Maven build always required? If that is the case, then what is magic happening in the build?
I assumed that the Maven build merely applies an annotation processor to generate the missing classes, but it would not require witch craft to do this for the Eclipse build.
I do not want to debug my languages by building with Maven, starting a JVM with remote debugging enabled, and then connect the remote debugger. Building with Maven is fine for CI, but I want to use the features of my IDE, requiring a Maven build for every execution harms the user experience a lot.
The text was updated successfully, but these errors were encountered: