Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Thomas Broyer
    @tbroyer
    So, first step: use org.gwtproject:gwt:2.9.0 BOM; then when updating: update to org.gwtproject:gwt:2.10.0 and change direct dependencies from com.google.gwt to org.gwtproject.
    Colin Alworth
    @niloc132
    migration to org.gwtproject, dealing with degraded debugging experience in chrome, updated dependencies seems like a good 2.10 to aim for - i also have that remotewebdriver runstyle that could be worth putting into gwt proper
    Thomas Broyer
    @tbroyer
    Well, I do not have an htmlunit/jetty/asm patch actually. If you're referring to the note in the https://github.com/tbroyer/gwt-relocation-tests#experiment-5, this project uses empty JARs, and I only modified the POMs 🤷
    Colin Alworth
    @niloc132
    oh got it
    in that case i'll pick that back up again, so that as we merge these other three sets of changes we can also get that done
    i only had it done locally, and it was for a now out-of-date jetty and htmlunit (and i didn't directly poke asm iirc, at least not for its own sake)
    Rocco De Angelis
    @rdeangelis83
    Hi All, if I remember correctly there was script to package the gwt-sdk build result for maven?
    Colin Alworth
    @niloc132
    @rdeangelis83 please see maven/push-gwt.sh
    it pushes to your local .m2/repository by default
    Rocco De Angelis
    @rdeangelis83
    Hi @niloc132 , I have try patch. But it seems that "constructInvocation(function.getSourceInfo(), "Object.defineProperty", function, prop, descriptor).makeStmt();" expect an indexedMethod
    Colin Alworth
    @niloc132
    is this a compile time failure?
    i thought i had understood from related code that this could take a dotted reference and break it down
          JsStatement createGwtOnLoadFunctionCall =
              constructInvocation("ModuleUtils.addInitFunctions", arguments).makeStmt();
    for example
    but perhaps that is used as a key (irritating how sometimes strings must be individual js identifiers, and sometimes not...)
    Rocco De Angelis
    @rdeangelis83
    Unable to locate index method: Object.defineProperty. Yep during the compile time.
    I will try to fix it tomorrow morning.
    Colin Alworth
    @niloc132
    interestingly, the code you referenced says it is Object.defineProperties, but actually is Runtime.defineProperties
    perhaps these are java references and i missed the point - i was trying to come up with the js name reference
    Rocco De Angelis
    @rdeangelis83
    Yahhh I have seen that. :)
    Colin Alworth
    @niloc132
    i'll have a patch for you shortly - locally i did a bit of other cleanup, ill try to run this today and make sure it goes
    Runtime.defineProperties is a helper that does some extra work, in gwt
    i don't think we actually want that, based on the chromium link you gave me
    but it would obfuscate better
    if i get it running, i'll put a patch up on gwt-review for you to try
    Rocco De Angelis
    @rdeangelis83
    @niloc132 THX!
    Short question: What is J2Wasm?
    Thomas Broyer
    @tbroyer
    An experiment to output Web Assembly rather than Closure-style JS.
    Rocco De Angelis
    @rdeangelis83
    WOW
    Colin Alworth
    @niloc132
    (there is also a kotlin backend now too - ostensibly your java can be passed through j2cl to emit kotlin sources)
    @rdeangelis83 i'm sorry, i didnt get around to finishing something, but i'll put up a gist if you want to try what i did sketch out - i think the structure is right, but i didn't get the chance to validate it
    1 reply
    Rocco De Angelis
    @rdeangelis83
    @niloc132 THX 🙏🏻 I will give it tomorrow a try
    Miroslav Pokorny
    @mP1
    always wondered how much of blazor output is actually wasm, especially considering the question of GC.
    Or Goshen
    @Oberonc
    how can I debug server side in a project with client/shared/server ?
    how to attach a debugger ?
    I have a dead lock situation and I have hard time figuring the cause
    Colin Alworth
    @niloc132
    @Oberonc easiest answer is to run the server as normal, whatever you do in production, and attach the debugger to that - typically you just pass an extra jvm arg, but sometimes your IDE has specific integration
    if you need to debug gwt at the same time, sdm can run and let you serve its js from any web server that can serve normal js
    if you are already using gwt's DevMode process, just starting it with your IDE's debug settings will let you debug the server classes normally, but we generally advise against that
    Rocco De Angelis
    @rdeangelis83
    Maybe also helpful for others, I have repaired the Chrome devtools formatters for GWT (orginal code from Sergey Vasilinets):
    https://gist.github.com/rdeangelis83/cec831abb34903fe251ede29fdbe7b12
    The code contains some obfuscated property and method name which maybe needs to be adapted.
    That is something that could be improved in the future.
    Frank Hossfeld
    @FrankHossfeld
    nice work
    Rocco De Angelis
    @rdeangelis83
    @niloc132 "Function Name Property" patch works like a charm :)
    image.png
    Rocco De Angelis
    @rdeangelis83
    @niloc132 do you think that is really necessary to support the old function.displayName property?
    Colin Alworth
    @niloc132
    @rdeangelis83 haven't researched yet to see who else uses it, but probably should leave it in at least a little while for old chrome installs
    John Huss
    @johnthuss
    The possibility of using kotlin as a source language for j2cl is cool. This is one of the things holding me back for diving into kotlin and using it everywhere instead of java.
    Colin Alworth
    @niloc132
    @johnthuss last i checked (about 3 years ago) IJ did a pretty decent job of auto-converting java to kotlin