-
Notifications
You must be signed in to change notification settings - Fork 40
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
Try teavm #9
Comments
some sort of tutorials to follow: https://stackoverflow.com/questions/4955635/how-to-add-local-jar-files-to-a-maven-project |
first try:
second try with dev version 0.7.0-dev-1212:
third try with maven-war-plugin 3.3.2: attaching the pom:
|
Initialized teavm directory for trying affc58e Basic application is able to run, and when I clicked on the index.html, I'm able to see Java-coded text rendered in browser Now I'm going to add plantuml-wasm jar as a dependency and run some command in there 🤞 |
@arnaudroques TeaVM worked for the main class :) https://plantuml.github.io/plantuml-wasm/compiled-teavm/ I'm going to try it further, if TeaVM works, some of the complications we have with cheerpj will be resolved |
When I called the Utils ( https://github.com/plantuml/plantuml-wasm/blob/74b0f7b145fb9735518bd68346c05ebab933013a/teavm/teavm-maven-webapp/src/main/java/org/teavm/Client.java#L17 ) it gave such an error also, even after it works, we probably will need to do something with the files |
There are no stack trace somewhere? It would help to debug :-) |
I thought local7 is something known :) just added the result of Some of the issues are related to teavm, I saw something like https://teavm.org/docs/tooling/debugging.html and of course got help from https://github.com/konsoletyper/teavm/issues from the log, I'm not able to understand which part of plantuml was failing |
@arnaudroques maybe you can run this pom with the source code instead of jar dependency? it may compile then, or give better errors actually? by the way, there's still no guarantee that teavm will actually work, but if it works, it'll be really great (no dependencies, simpler js files etc) |
I suggest that we keep this repo for cheerpj only. In this new repo, there is a very minimal version of PlantUML:
So it only create a 100 x 100 white image. Any though ? |
I attempted to compile PlantUML using TeaVM, and then I find this issue. |
How was your attempt? Did you try it with plantuml core or the binary from
the website ?
I haven’t tried it again as I was focusing on delivering the end to end
solution, but happy to explore the teavm again.
The main branch uses cherrpj and you can also see the plantuml-core
repository is providing a lightweight version of cheerpj compiled plantuml
+ basic js.
…On Tue, 26 Dec 2023 at 03:54, leye ***@***.***> wrote:
I attempted to compile PlantUML using TeaVM, and then I find this issue.
How is the progress now? I noticed that the main branch still uses CheerpJ.
—
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHFKUEAX5B6BTL7FGB2UP3YLI4AHAVCNFSM6AAAAAAUG7JM4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZGIYTIMJUGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Not yet started😂 |
Seems like a well supported project, and we may reduce the need of sending jars
The text was updated successfully, but these errors were encountered: