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
(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.
@niloc132 "Function Name Property" patch works like a charm :)
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
it got confused about SAM interfaces for lambdas, but those are worth getting right imho, possibly by hand, rather than giving it a real interface