Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 31 16:20

    konsoletyper on master

    Fix html4j tests (compare)

  • Jan 30 16:36

    konsoletyper on master

    Fix compiler crash when using i… (compare)

  • Jan 30 16:00

    konsoletyper on master

    Add lazy compilation pipeline t… (compare)

  • Jan 30 12:01

    konsoletyper on master

    JS: deobfuscate stack traces fo… Proper fix for virtual table is… (compare)

  • Jan 28 11:57

    konsoletyper on master

    Fix bugs in C backend (compare)

  • Jan 28 02:49
    gxp starred konsoletyper/teavm
  • Jan 27 20:49

    konsoletyper on master

    Fix proxy bug in dev server JS: prevent TeaVM from generati… JS: add more API declarations (compare)

  • Jan 24 18:39
    mojo2012 commented #377
  • Jan 24 13:51

    konsoletyper on dev-0.6

    Produce less names in top level… Fix issue with incremental comp… Add stack deobfuscation to dev … (compare)

  • Jan 24 13:28

    konsoletyper on master

    Add stack deobfuscation to dev … (compare)

  • Jan 24 11:20
    konsoletyper commented #377
  • Jan 24 11:19
    konsoletyper commented #375
  • Jan 24 10:28
    mojo2012 commented #377
  • Jan 24 10:28
    mojo2012 commented #377
  • Jan 24 10:26
    mojo2012 commented #375
  • Jan 24 08:28
    konsoletyper commented #375
  • Jan 24 08:23
    konsoletyper commented #377
  • Jan 24 06:40
    mojo2012 edited #377
  • Jan 24 06:39
    mojo2012 opened #377
Alexey Andreev
@konsoletyper
jackson supports subclasses and cycles as well, but you need to do some manual annotating
Colin Alworth
@niloc132
just for the PoC, https://github.com/Vertispan/gwt-rpc/tree/teavm-client/endpoint-samples/teavmclient contains both the sample code and the library code, but of course i'll split that up
Alexey Andreev
@konsoletyper
In CoSpaces we generate platform-independant code as well
Colin Alworth
@niloc132
for your own classes yes, but jackson won't keep your specific List subtype, for example
the WebSocket fix in there i'll push upstream too, so that binary messages can be sent over websockets, instead of just received
Alexey Andreev
@konsoletyper
BTW, in latest TeaVM release I significantly reduced amount of generated code. It generates still more than GWT, but now it's much closer. Minesweeper example is only 54 kb, including Flavour
Colin Alworth
@niloc132
great to hear!
Colin Alworth
@niloc132

i spent a few minutes trying to land adding Class.getCanonicalName(), but something has been confusing me - TClass has no getEnclosingType method. with that being the case, i have no idea how my helper code compiled at all, shouldn't it have errored out?

poking around now trying to emulate that too, from the other given type info available

Colin Alworth
@niloc132
based on https://stackoverflow.com/a/9360115/860630, it might not actually be possible to do correctly/consistently without a proper getEnclosingType
norzak
@norzak
@niloc132 Sorry I was away for a week, thank you for sharing teavm-client. I really appreciate it.
Ivan Hetman
@Ihromant
Hi All. Could you please advice how to run project generated from
mvn -DarchetypeCatalog=local -DarchetypeGroupId=org.teavm -DarchetypeArtifactId=teavm-maven-webapp -DarchetypeVersion=0.6.1 archetype:generate
archetype in IDEA? It writes
Error: Unable to initialize main class ua.ihromant.Client
Caused by: java.lang.NoClassDefFoundError: org/teavm/jso/dom/xml/Node
It's probably because I have only org.teavm.jso.dom.html.HTMLDocument in teavmtest-1.0-SNAPSHOT folder, but it's superclass Node is not present there
I suppose that I need to conduct some actions in order to start project locally, but which actions should it be?
Thanks
Alexey Andreev
@konsoletyper
How do you start the project?
Ivan Hetman
@Ihromant
image.png
tried http://teavm.org/docs/tooling/idea.html page. There is no such plugin for Tomcat (I suppose it's in intellij ultimate edition). Tried plugin Smart Tomcat, but it doesn't allow to set context path to "/", requires some path (i tried teavm)
then configured dev server
image.png
receiving 404
Alexey Andreev
@konsoletyper
Looks like it's a problem with Tomcat plugin you are using
You can try to configure running Jetty from Maven
Ivan Hetman
@Ihromant
that would be great, I don't have preference for WebServer
Alexey Andreev
@konsoletyper
Also, you can just create 'index.html' file which includes script from the following location: http://localhost:9090/teavm/classes.js, so no server is needed
And just open this index.html from the file system
Ivan Hetman
@Ihromant
I suppose that I would need Jetty for further debugging in IDEA
Alexey Andreev
@konsoletyper
So you can try to find some information about jetty-maven plugin, like this one: https://www.eclipse.org/jetty/documentation/9.4.x/jetty-maven-plugin.html
No, you can debug in IDEA without Jetty
Ivan Hetman
@Ihromant
Do I need to launch debug and dev servers simultaneously for this?
Alexey Andreev
@konsoletyper
No, you only need dev server
Ivan Hetman
@Ihromant
will try
Ivan Hetman
@Ihromant
debug breakpoints aren't working when I resresh the page
Alexey Andreev
@konsoletyper
Ok, this might be an issue. Did you try to debug using source maps?
Ivan Hetman
@Ihromant
yes, it works with source maps
still, communication with server obviously doesn't work because no server is running
Alexey Andreev
@konsoletyper
Right. But running server is not part of TeaVM
Ivan Hetman
@Ihromant
I suppose that I need to configure Jetty and then configure remote debug for application which is launched on Jetty, right?
Alexey Andreev
@konsoletyper
You can just proceed with the setup you have
Ivan Hetman
@Ihromant
what do you mean?
Alexey Andreev
@konsoletyper
Sorry?
Ivan Hetman
@Ihromant
current setup is not fully working
Alexey Andreev
@konsoletyper
I mean, current TeaVM-related setup will work with any HTTP server, regardless how you run it
And I don't understand what you mean by "configure remote debug".
Ivan Hetman
@Ihromant
I mean to be able to put breakpoints in IDEA for both client- and server- code
Alexey Andreev
@konsoletyper
Ah, this one. I still don't think that setting up remote debug for Jetty is a part of TeaVM setup
I don't think you necessarily need to set up remote debug for this purpose. Try creating Maven launch configuration that starts jetty goal and just debug this launch configuration. Not sure this will work, but you can try to
Ivan Hetman
@Ihromant
launched mvn clean jetty:run task from IDEA, breakpoints work well on server-side, but doesn't work on client side despite i have notification on the top
image.png
Alexey Andreev
@konsoletyper
@niloc132 just pushed commit that adds support for Class.getCanonicalName()
Colin Alworth
@niloc132
(deleted, i misread your announcement to me as a statement about me)
Alexey Andreev
@konsoletyper
@Ihromant could not reproduce this. If you have additional info on how to get this issue, please, share it here. Also, how do breakpoints look in IDEA? Just red circles, or red circles with a tick?
idea-teavm.png