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
gdx-setup: html build error: the method setProperty(Object, String, double) is undefined for the type JsUtils #7283
Comments
What's the value of $gdxVersion? It should be 2.10.0 on latest Gdx Setup but it looks like it's picking 2.8.2 from the cache. Have you tried deleting Gradle cache? |
1.12.0 I think.
Hmmm the project was generated from this commit
|
Hm, HTML on gdx-setup seems to be broken right now unless you change |
I changed the gdxVersion to "1.12.2-SNAPSHOT" and then it works now. |
Ok, I see, the problem is that there's still no libGDX release that supports GWT 2.10.0 (the latest stable release 1.12.1 uses GWT 2.8.2) so the solution is to depend on 1.12.2-SNAPSHOT. Alternatively if you don't want to depend on a SNAPSHOT you need to downgrade GWT to 2.8.2. A third option is use Liftoff that, as far as I know uses a custom gwt backend (com.github.tommyettinger:gdx-backend-gwt) and not the official one to be able to support 2.10.0. |
Yep, the custom backend is here https://github.com/tommyettinger/gdx-backends in case there's any concern over it. It's almost identical to the libGDX backend for GWT; the same changes to support 2.10.0 were made in the current revision.
I try to maintain Liftoff regularly and keep dependencies as close to up-to-date as possible. Until #7284 is merged, gdx-setup will still be behind by one release, still (still) doesn't have versioned releases, and still (still) pops up an MS Paint nightmare to welcome users to the framework. Not to mention the extra stuff offered by Liftoff, like jpackage and Graal Native Image support for LWJGL3, OK, rant mode; this isn't directed at anyone here... I'm not going to bring gdx-liftoff into the libGDX repo, ever, because the versioned releases are actually important and useful. I'll continue to maintain it where it is. I think it would be nice for gdx-liftoff to be mentioned in the setup docs. I think that makes sense, considering gdx-setup can break and the auto-deployed unversioned JAR can refer to that broken version, with no recourse for new users. If someone is worried about the bus factor of Liftoff potentially becoming unmaintained, it is open source and anyone can update a fork. The code isn't that hard to read (assuming you can read Kotlin), and there's even some architecture documentation that czyzby graciously added (along with a ton of other great stuff). I think any concerns over libraries/tools being dropped is a strawman, considering kryonet's original repo hasn't released in literally a decade, while crykn's fork is much more up-to-date and is perfectly usable. |
Please ensure you have given all the following requested information in your report.
Issue details
Use gdx-setup on the master (2023-11-20, even with this commit fe99b6a) to set up a new project using default settings. Then run
./gradlew dist:html
. I got build errorI double check the html part already have the patch
Reproduction steps/code
Use gdx-setup to set up a new project
./gradlew dist:html
Version of libGDX and/or relevant dependencies
1.12.1 master (2023-11-20)
Stacktrace
Please select the affected platforms
The text was updated successfully, but these errors were encountered: