Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    italokrenak
    @italokrenak
    Hi Everyone!! Guys you could please help me. I am trying to use lombok but when I try to compile I receive an error, the build can not identify the code generated by lombok. I am using maven and I am new in GWT. Do you what is going on? Thank you!!!
    Colin Alworth
    @niloc132
    gwt can't use lombok out of the box - lombok generates new bytecode, while gwt reads the sources from your project instead of bytecode
    italokrenak
    @italokrenak
    My app is using the GWT 2.8.2 version
    Colin Alworth
    @niloc132
    that said, lombok has a jdt backend, and gwt uses jdt, so it is possible to load up lombok into gwt and ask it to run as gwt is working
    you must have some configuration like that in your gwt-maven-plugin setup for lombok to work in gwt
    italokrenak
    @italokrenak
    Hum ok. I will take a look on that.
    Thank you.
    Colin Alworth
    @niloc132
    if you inherited this project with lombok already added, it likely either has this, or didnt build before you got started (perhaps was only meant to build in an IDE? stranger things have happened...)
    italokrenak
    @italokrenak
    Yes, I have inherited the project with lombok but they never used in GWT scope I think so.
    It was created 2 years ago
    and have to put on prod
    in an few days
    and I am applying a few enhancements
    Colin Alworth
    @niloc132
    i might suggest leaving lombok out of gwt then if it is going out very soon, and stick to what is known to work
    Daniel Korbel
    @masterdany88
    I use lombok with gwt
    @italokrenak
                <plugin>
                    <groupId>net.ltgt.gwt.maven</groupId>
                    <artifactId>gwt-maven-plugin</artifactId>
                    <version>${gwt-maven-plugin.version}</version>
                    <inherited>false</inherited>
                    <extensions>true</extensions>
                    <configuration>
                        <failOnError>true</failOnError>
                        <sourceLevel>1.8</sourceLevel>
                        <launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
                        <moduleName>com.app</moduleName>
                        <moduleShortName>app</moduleShortName>
                        <jvmArgs>
                            <arg>
                                -javaagent:${settings.localRepository}/org/projectlombok/lombok/${lombok.version}/lombok-${lombok.version}.jar=ECJ
                            </arg>
                            <arg>-Xms1024m</arg>
                            <arg>-Xmx4096m</arg>
                        </jvmArgs>
                        <codeserverArgs>
                            <arg>-src</arg>
                            <arg>${project.parent.basedir}/shared/src/main/java</arg>
                        </codeserverArgs>
                    </configuration>
                </plugin>
    codeserverArgs are my project specific
    MCMicS
    @MCMicS

    @italokrenak
    Do you haven a stacktrace or project to look at?

    there is some error with latest lombok versions (for my projects)
    see: projectlombok/lombok#2883

    Maybe it is you error too

    Daniel Korbel
    @masterdany88
    I use one lombok version accross all my modules and it is: 1.18.10
    Colin Alworth
    @niloc132
    We're starting an informal gwt contributors/developers call shortly (though i'm running a little late) - please feel free to join us at meet.google.com/kqf-zczm-zis to talk about gwt, j2cl, or the general ecosystem, someone will add you to the room when they're able
    Colin Alworth
    @niloc132
    jetty+htmlunit upgrade builds available at https://repo.vertispan.com/gwt-snapshot/com/google/gwt/gwt-dev/2.10.0-htmlunit-upgrade-SNAPSHOT/, add https://repo.vertispan.com/gwt-snapshot/ to your repositories and change gwt version to 2.10.0-htmlunit-upgrade-SNAPSHOT if you want to try it out
    4 replies
    i only just deployed it just now, have done all testing inside of gwt itself so far, just starting to test maven now
    2 replies
    Rocco De Angelis
    @rdeangelis83
    Dam that I miss this call. Has this been announced somehow?
    Dmitrii Tikhomirov
    @treblereel
    @rdeangelis83 yeah, it was great a meetup. \
    Or Goshen
    @Oberonc
    hi guys
    in my web.xml file I have a security constraint to force people to use HTTPS
    looks like this:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Everything</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    when I deploy the war file it all works like peaches
    the problem I have is when I run the server locally using
    mvn jetty:run -pl *-server -am -Denv=dev
    server run normally, but when I try to access it I get
    HTTP ERROR 403 !Secure
    .. naturally since I dont have SSL set on localhost
    what I am forced to do is it comment out the security constant back and forth
    question - is there a way to force the security constant to only aplly to servers other than localhost ?
    Colin Alworth
    @niloc132
    @rdeangelis83 we learned to stop publishing the URL ahead of time after we had random people joining when we did that, but we should at least announce the time. The next one will be in three weeks on 30 sept, starting about the timestamp of my last message. it will also be a bit less informal, trying to drum up support for whereever we are with a potential gwt 2.10 release
    Frank Hossfeld
    @FrankHossfeld
    @niloc132 Mmmh, three weeks should be 07 Oct? Or am I wrong? 😀
    MCMicS
    @MCMicS
    Hi is there any plan to support the latest LTS of java (Java 17) for 2.10?
    Colin Alworth
    @niloc132
    @FrankHossfeld you are of course right, the 7th of october
    @MCMicS gwt 2.9 should already run on lts (i think 2.8.2 will too?)
    @MCMicS if you are asking if the new language features will be added, that won't be possible unless we wait quite a while, we need stable support in JDT for this, and they are still at some level of beta eclipse/eclipse.jdt.ls#1845
    and after that, someone will need to take the time to implement the actual features themselves (and to my knowledge, we don't have language features much past java 11 or so? https://docs.oracle.com/en/java/javase/17/language/java-language-changes.html lists language features that were added since java 9 if you want to take a look at where something was added
    text blocks for example should be quite easy to add
    switch expressions will be less easy, but i doubt should be too terrible - but someone will need to take the time to work on it
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    As I am checking there isnt many things to be emulated where those you mentioned are good ones ..we also have records, sealed classes, some stream APIs and maybe pattern matching for switch .
    Maybe something like sealed classes is easy as it is infered by the java compiler and the gwt compiler should just ignore it.
    Colin Alworth
    @niloc132
    stream apis are "easier" to implement, just have to change our stream emul - language features we have to change the js (or at least adapt how we read the java ast a bit)
    MCMicS
    @MCMicS
    @niloc132 thanks for answering. Yes I mean add new language features and changes to exisiting (like Predicate.not)
    I also test it the days to use 17 class files to use within app if source level is still 11
    MCMicS
    @MCMicS
    Predicate. Not was introduced in 11 but it is not emulated now