konsoletyper / teavm

Compiles Java bytecode to JavaScript, WebAssembly and C
https://teavm.org
Apache License 2.0
2.55k stars 261 forks source link

IDEA compilation fails on 0.9.0-dev-15 #827

Closed Ihromant closed 8 months ago

Ihromant commented 8 months ago

After recent changes in 0.9.0-dev-15

INFO: Starting build
ERROR: Compile server crashed
java.lang.ArithmeticException: / by zero
    at org.teavm.devserver.CodeServlet$ProgressListenerImpl.progressReached(CodeServlet.java:1094)
    at org.teavm.devserver.CodeServlet$ProgressListenerImpl.phaseStarted(CodeServlet.java:1088)
    at org.teavm.vm.TeaVM.reportPhase(TeaVM.java:599)
    at org.teavm.vm.TeaVM.build(TeaVM.java:367)
    at org.teavm.devserver.CodeServlet.buildOnce(CodeServlet.java:847)
    at org.teavm.devserver.CodeServlet.runTeaVM(CodeServlet.java:730)
    at java.base/java.lang.Thread.run(Thread.java:1583)
INFO: Build thread complete

on any project in IDEA.

Ihromant commented 8 months ago

@konsoletyper what about releasing fixed plugin? It's really a blocker when you can't develop your application.

konsoletyper commented 8 months ago

@Ihromant As a workaround you can build IDEA plugin from master and install it from disk

Ihromant commented 8 months ago

Sure I can and already did (replaced .class by fixed .class file using archive manager), but I suppose that after similar advices number of teavm-dev-users (and potential testers/verifiers) could reduce.