Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Colin Alworth
    @niloc132
    latest is 2.9.0
    (alternatively, use java 8 to compile, or provide your own emulation for the new annotation javax.annotation.processing.Generated until you update to 2.9)
    cyberquarks
    @cyberquarks
    I'm using
            <errai.version>4.3.1.Final</errai.version>
            <gwt.version>2.8.2-rx1</gwt.version>
    Colin Alworth
    @niloc132
    yep, i bet that rx fork is missing this, but it is just my guess?
    i'm wrong, 2.9.0 is the first release with it
    2.8.2 does not have it
    so yes, you need 2.9.0 or the "rx1" fork you are using to be updated with the commit: gwtproject/gwt@1e51c2a
    or grab the annotation and put it in your own supersource, as above
    (baby is back to sleep so i'm going back to sleep, awake again in not less than 7 hours :p )
    cyberquarks
    @cyberquarks
    @niloc132 apparently IntelliJ bumped JDK to 11, I changed to 8 then it works now
    Thomas Broyer
    @tbroyer
    In any case, assuming -source/-target are correctly passed to JavaC (this looks like Maven, so it must be the case), then Domino Immutables should emit javax.annotation.Generated rather than javax.annotation.processing.Generated; i.e. I'd call it a bug.
    Thomas Broyer
    @tbroyer
    …or configure a Maven profile so it uses <release>8</release> when run with JDK9+, that should workaround the Immutables issue (by hiding the j.a.p.Generated class and surfacing j.a.Generated).
    Ahmad K. Bawaneh
    @vegegoku
    The domino gwt-immutable is just a wraper to gwtify immutables, it is just tje gwt.xml file. The annotation is emitted by the immutables processor
    Thomas Broyer
    @tbroyer
    OK, so a bug (if you ask me, @elucash might disagree) in Immutables.org then :wink:
    BTW, it's always a good idea to use --release with JDK9+ rather than -source/-target (unless you have a specific case where it's not possible), which means using a profile in Maven.
    Thomas Broyer
    @tbroyer
      <profiles>
        <profile>
          <id>jdk9plus</id>
          <activation>
            <jdk>[9,)</jdk>
          </activation>
          <build>
            <plugins>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                  <release>8</release>
                </configuration>
              </plugin>
            </plugins>
          </build>
        </profile>
      </profiles>
    Ahmad K. Bawaneh
    @vegegoku
    I didnt know we can do it like this
    1 reply
    Miroslav Pokorny
    @mP1
    anybody know of any project combo where one project is a j2cl that is consumed by a separate react project. The j2cl might produce a js that is packaged as node lib or something similar or equiv?
    just wondering if theres a better way to do this sort of integration...
    Thomas Broyer
    @tbroyer
    As long as your Node project can consume Closure code (using goog.provide/goog.require), there's no reason it wouldn't work. AFAICT, consuming Closure code is actually the hardest part, because it's not "path based"; but not impossible: https://webpack.js.org/plugins/closure-webpack-plugin/#closure-library-plugin
    Unless you fully embrace Closure and its Closure Compiler, but that probably means no Babel (hence no JSX), or as an intermediate step.
    zhivko
    @zhivko
    What is proper way to CellTree.setDefaultNodeSize - currently it seems it is not honored for unvisible root element - as it is described in: gwtproject/gwt#5892
    I see constructor exists that is able to change defaultNodeSize but it requires Celltree.Resources as agument, and I do not know what to pass... any example of such usage?
    zhivko
    @zhivko
    Trying to change constructor to circumwent problem, I get errors while building gwt2.9 - https://pastebin.com/xVZYryPY
    like:
    error: cannot find symbol
    [gwt.javac]   @JsMethod
    Colin Alworth
    @niloc132
    it looks like you dont have the jsinterop annotations jar
    zhivko
    @zhivko
    isnt it that it should be builded as part of build process?
    Colin Alworth
    @niloc132
    i don't recall how this is invoked from ant - but since 2.8 google has split out the annotations into their own jar
    zhivko
    @zhivko
    dont wanna rant but is this something that should be noted within: https://github.com/gwtproject/gwt/tree/release/2.9.0#building-the-gwt-sdk
    Colin Alworth
    @niloc132
    from maven at least i'm pretty sure its a distinct jar
    oh, this is just you building gwt itself?
    sorry, i misunderstood then
    is your gwtproject/tools clone up to date?
    zhivko
    @zhivko
    yes exactly building gwt
    Colin Alworth
    @niloc132
    because tools is definitely mentioned in there
    zhivko
    @zhivko
    Maybe I should:
    git submodule update --init --recursive ?
    Colin Alworth
    @niloc132
    no
    from your link, the 3rd bullet
    did you check out that repo, either at the location it asked for, or specify an env var?
    Thomas Broyer
    @tbroyer

    @zhivko

    What is proper way to CellTree.setDefaultNodeSize - currently it seems it is not honored for unvisible root element - as it is described in: gwtproject/gwt#5892
    I see constructor exists that is able to change defaultNodeSize but it requires Celltree.Resources as agument, and I do not know what to pass... any example of such usage?

    The other constructors use GWT.create(CellTree.Resources.class) (and GWT.create(CellTree.CellTreeMessages.class) for the messages argument)

    zhivko
    @zhivko
    I am just doing this:
    c:\git\gwt>git checkout release/2.9.0
    Already on 'release/2.9.0'
    Your branch is up to date with 'origin/release/2.9.0'.
    
    c:\git\gwt>ant clean elemental dist
    Buildfile: c:\git\gwt\build.xml
    
    clean:
    
    elemental:
    
    user:
    
    dev:
    
    buildtools:
    
    build:
    
    doctool:
    Terminate batch job (Y/N)? y
    @tbroyer : Ah yess - I saw that later in sourcecode of CellTRee thanks... I will give up building gwt :)
    Thomas Broyer
    @tbroyer
    So new CellTree(myViewModel, myRoot) is equivalent to new CellTree(myViewModel, myRoot, GWT.create(CellTree.Resources.class), GWT.create(CellTree.CellTreeMessages.class), 25)
    zhivko
    @zhivko
    @tbroyer: yes thank you I get it now...
    Colin Alworth
    @niloc132
    @zhivko the issue is the other repo you need - in your c:\git, check out the tools repo (for next time i mean)
    zhivko
    @zhivko
    Yes thanks you @niloc132 it compiles OK with tools repository checkout... I had older tools.... everything fine now
    and @tbroyer suggested usage for defaultnodesize for root in celltree works just fine as you suggested - THANKS
    dac2k9
    @dac2k9_twitter
    anyone know if its possible to render a Composite (or Button etc) to a Canvas?
    Colin Alworth
    @niloc132
    @dac2k9_twitter the short answer is "sort of", the long answer is "what are you trying to achieve?" and making sure this isnt an XY problem (https://en.wikipedia.org/wiki/XY_problem)