Tuesday, May 20, 2025

Re: GWTTestCase - split module testsuite compile problems

I don't see a Gin inherits statement, which I think is how Guice imports end up working, but maybe GWTP picks that up. Given how many "...did you forget to inherit a required module" errors that are that seem to match classes that should be already in your inherits, I'm guessing you shared your "main" module, and that your test is using something different.

Can you confirm this is the module file that your test is using, and not just for production? Also, can you share the full log, to help confirm that what you think is getting used is actually being used?

On Tuesday, May 20, 2025 at 11:44:29 AM UTC-5 jef...@robaws.be wrote:
Hello

Coming from https://github.com/tbroyer/gwt-maven-archetypes/issues/76 I'd still like to fix the error that I am currently having.
The fix to change the source plugin from package to process-classes is causing the testsuite to not compile using mvn clean test.

Packaging the application has no issues.

These are my inherits:
```
    <inherits name='com.google.gwt.user.User'/>
    <inherits name="com.google.gwt.i18n.I18N"/>
    <inherits name='com.google.gwt.maps.Maps'/>
    <inherits name="gwt.material.design.GwtMaterialWithJQuery"/>
    <inherits name="gwt.material.design.addins.GwtMaterialAddins"/>
    <inherits name="gwt.material.design.GwtMaterialTable"/>
    <inherits name="gwt.material.design.amcharts.GwtMaterialAmCharts"/>
    <inherits name="com.google.web.bindery.requestfactory.RequestFactory"/>

    <inherits name="com.google.common.base.Base"/>
    <inherits name="com.google.common.collect.Collect" />
    <inherits name="com.google.gwt.logging.Logging"/>
    <inherits name="de.benediktmeurer.gwt.slf4j.api.API"/>
    <inherits name="de.benediktmeurer.gwt.slf4j.jul.JUL"/>
    <inherits name="com.google.gwt.inject.Inject"/>
    <inherits name="com.allen_sauer.gwt.dnd.gwt-dnd"/>
    <inherits name="com.google.common.io.Io"/>
    <inherits name='com.gwtplatform.mvp.MvpWithEntryPoint'/>
    <inherits name="net.lightoze.gwt.i18n.GwtI18nServer"/>

    <inherits name="com.github.nmorel.gwtjackson.GwtJackson" />
    <inherits name="com.github.nmorel.gwtjackson.rest.GwtJacksonRest" />
```

Here is an overview of my errors. I am omitting the source of the files.
```
   [ERROR] Errors in 'file:/...'
      [ERROR] Line 133: No source code is available for type com.google.inject.Provider<T>; did you forget to inherit a required module?
      [ERROR] Line 279: No source code is available for type com.gwtplatform.mvp.shared.proxy.PlaceRequest; did you forget to inherit a required module?
      [ERROR] Line 282: No source code is available for type com.google.common.base.Strings; did you forget to inherit a required module?
      [ERROR] Line 480: No source code is available for type com.google.common.base.Joiner; did you forget to inherit a required module?
      [ERROR] Line 738: No source code is available for type com.gwtplatform.mvp.client.proxy.PlaceManager; did you forget to inherit a required module?
      [ERROR] Line 761: No source code is available for type com.gwtplatform.mvp.shared.proxy.PlaceRequest.Builder; did you forget to inherit a required module?
      [ERROR] Line 1090: No source code is available for type com.google.web.bindery.requestfactory.shared.RequestContext; did you forget to inherit a required module?
      [ERROR] Line 1200: No source code is available for type com.google.common.base.Splitter; did you forget to inherit a required module?
      [ERROR] Line 1421: No source code is available for type com.google.web.bindery.requestfactory.shared.EntityProxy; did you forget to inherit a required module?
      [ERROR] Line 1422: No source code is available for type com.google.web.bindery.autobean.shared.AutoBeanCodex; did you forget to inherit a required module?
      [ERROR] Line 1422: No source code is available for type com.google.web.bindery.autobean.shared.AutoBeanUtils; did you forget to inherit a required module?
      [ERROR] Errors in 'jar:file:/.../MyProxy.java'
         [ERROR] Line 8: No source code is available for type com.google.web.bindery.requestfactory.shared.ValueProxy; did you forget to inherit a required module?

```

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/99274752-b45e-4600-a816-f983de40fd47n%40googlegroups.com.

No comments:

Post a Comment