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

Add example for embedding simple python scripts and debugging them using VSCode #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

timfel
Copy link
Contributor

@timfel timfel commented Nov 27, 2024

No description provided.

@timfel timfel requested review from steve-s and fniephaus November 27, 2024 12:09
@timfel timfel self-assigned this Nov 27, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 27, 2024
@timfel timfel force-pushed the tim/graalpy-vscode branch 2 times, most recently from e3c3cbc to 9b75d60 Compare November 27, 2024 12:46

```shell
./mvnw compile
./mvnw javafx:run
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I followed the JavaFX quickstart from https://openjfx.io/openjfx-docs/#maven it did not generate the wrapper. Maybe this should be mvn compiler etc. or mention something like "if you don't use Maven wrapper, the commands would be ...".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch, the project generated by javafx-archetype-simple seem to be broken on many fronts...

  • it sets maven-compiler-plugin to version 3.8.0, but that seems to be broken so one must manually update to at least 3.8.1
  • it generates module-info.java, so javac does module stuff and since polyglot is a proper module, one has to add requires org.graalvm.polyglot; to the generated module-info.java.
  • after fixing all that it fails in runtime on some Java module permission issue

All in all, maybe it's easier to not even mention this Java FX quickstart guide..?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just ran through the thing again, just copied the quickstart from JavaFX and used local maven to go through the readme and i got a working project 🤔

@timfel timfel force-pushed the tim/graalpy-vscode branch from 9b75d60 to 6fc8e96 Compare January 8, 2025 20:30
@timfel timfel force-pushed the tim/graalpy-vscode branch from 6fc8e96 to 43f5daa Compare January 8, 2025 20:33
@timfel timfel requested a review from steve-s January 8, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants