Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default web project fails to run #176

Closed
aquagray opened this issue Feb 24, 2024 · 3 comments
Closed

Default web project fails to run #176

aquagray opened this issue Feb 24, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@aquagray
Copy link

Hello,

I was following the setup steps. I created project with desktop & web.
Desktop runs fine, and when I got to running
./gradlew html:superDev

I got:

Compiling module com.mygdx.game.GdxDefinitionSuperdev
   [ERROR] Errors in 'generated://EDE6402AFBDE09D1E8D4A9C9E9098379/com/badlogic/gwtref/client/IReflectionCache2Generated.java'
...
[ERROR] Line 7088: No source code is available for type jsinterop.annotations.JsMethod; did you forget to inherit a required module?
      [ERROR] Line 7328: No source code is available for type jsinterop.annotations.JsIgnore; did you forget to inherit a required module?
      [ERROR] Line 7342: No source code is available for type jsinterop.annotations.JsType; did you forget to inherit a required module?
      [ERROR] Line 7595: No source code is available for type jsinterop.annotations.JsProperty; did you forget to inherit a required module?
   Tracing compile failure path for type 'com.badlogic.gwtref.client.IReflectionCache2Generated'
...
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

My default browser is chrome
Version 121.0.6167.184 (Official Build) (arm64)

Any help would be much appreciated!

@Frosty-J
Copy link
Contributor

Hi, it's broken and has been now for three months. libgdx/libgdx#7283

Change gdxVersion in build.gradle to 1.12.2-SNAPSHOT (or revert the GWT version to 2.8.2 but I'm not sure how) until we get a working stable version (could easily be another three months - libGDX doesn't get regular releases) or use the gdx-liftoff project generator instead.

@crykn crykn added the duplicate This issue or pull request already exists label Feb 25, 2024
@crykn crykn closed this as completed Feb 25, 2024
@Hyperion2400
Copy link

Hyperion2400 commented Feb 26, 2024

You can downgrade the GWT version to 2.8.2 in html/build.gradle. That fixes it.

gwt {
    gwtVersion='2.8.2'

@Frosty-J
Copy link
Contributor

Changing gwtVersion doesn't work for me, I think more is required than that.

[ERROR] Errors in 'elemental2/core/JsArray.java'
  [ERROR] Line 18: The type javaemul.internal.ArrayStamper is not visible
  [ERROR] Line 195: ArrayStamper cannot be resolved
Tracing compile failure path for type 'elemental2.core.JsArray'
  [ERROR] Errors in 'elemental2/core/JsArray.java'
	 [ERROR] Line 195: ArrayStamper cannot be resolved
	 [ERROR] Line 18: The type javaemul.internal.ArrayStamper is not visible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants