!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

129 Members
28 Servers

Load older messages


SenderMessageTime
5 Dec 2024
@glepage:matrix.orgGaétan Lepage joined the room.14:08:38
@glepage:matrix.orgGaétan Lepage

Hello,
I am quite new to the Java ecosystem in nixpkgs.
I was trying to update the jadx package.
I bumped the version and src hash, nix-build -A jadx.mitmCache.updateScript (this changed the deps.json).

However, the build fails with:

> Configure project :
jadx version: 1.5.1

FAILURE: Build failed with an exception.

* Where:
Build file '/build/source/jadx-gui/build.gradle.kts' line: 1

* What went wrong:
An exception occurred applying plugin request [id: 'jadx-kotlin']
> Failed to apply plugin 'org.openrewrite.rewrite'.
   > Project#afterEvaluate(Action) on project ':jadx-gui' cannot be executed in the current context.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 53s

Have I done something wrong ?

14:10:50
@glepage:matrix.orgGaétan Lepage The update looks quite minimal: https://github.com/skylot/jadx/releases/tag/v1.5.1 14:11:28
@9hp71n:matrix.orgghpzin (moved to @ghpzin:envs.net) joined the room.16:45:28
@tomodachi94:matrix.orgTomodachi94 (they/them)
In reply to@glepage:matrix.org

Hello,
I am quite new to the Java ecosystem in nixpkgs.
I was trying to update the jadx package.
I bumped the version and src hash, nix-build -A jadx.mitmCache.updateScript (this changed the deps.json).

However, the build fails with:

> Configure project :
jadx version: 1.5.1

FAILURE: Build failed with an exception.

* Where:
Build file '/build/source/jadx-gui/build.gradle.kts' line: 1

* What went wrong:
An exception occurred applying plugin request [id: 'jadx-kotlin']
> Failed to apply plugin 'org.openrewrite.rewrite'.
   > Project#afterEvaluate(Action) on project ':jadx-gui' cannot be executed in the current context.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 53s

Have I done something wrong ?

Looks like a plugin might not be downloaded. Do you have the log from the deps.json upgrade?
17:45:33
@tomodachi94:matrix.orgTomodachi94 (they/them) cc creator @chayleaf, who knows far more than I do 17:45:52
@tomodachi94:matrix.orgTomodachi94 (they/them) cc hook and mitmCache creator @chayleaf, who knows far more than I do 17:46:00
@glepage:matrix.orgGaétan Lepage
In reply to @tomodachi94:matrix.org
Looks like a plugin might not be downloaded. Do you have the log from the deps.json upgrade?
No and I have to run... I will try to have a look later.
17:52:37
@glepage:matrix.orgGaétan Lepage This is the PR if of any use: https://github.com/NixOS/nixpkgs/pull/362140 17:52:45
6 Dec 2024
@tomodachi94:matrix.orgTomodachi94 (they/them) @FliegendeWurst congrats on the committee bit! 01:32:48
@tomodachi94:matrix.orgTomodachi94 (they/them) @FliegendeWurst congrats on the committer bit! 01:32:53
@tomodachi94:matrix.orgTomodachi94 (they/them) At last, I'm no longer the only committer on the Java team!! /lh 01:33:21
@chayleaf:matrix.pavluk.orgchayleaf
In reply to @glepage:matrix.org

Hello,
I am quite new to the Java ecosystem in nixpkgs.
I was trying to update the jadx package.
I bumped the version and src hash, nix-build -A jadx.mitmCache.updateScript (this changed the deps.json).

However, the build fails with:

> Configure project :
jadx version: 1.5.1

FAILURE: Build failed with an exception.

* Where:
Build file '/build/source/jadx-gui/build.gradle.kts' line: 1

* What went wrong:
An exception occurred applying plugin request [id: 'jadx-kotlin']
> Failed to apply plugin 'org.openrewrite.rewrite'.
   > Project#afterEvaluate(Action) on project ':jadx-gui' cannot be executed in the current context.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 53s

Have I done something wrong ?

try setting gradleUpdateTask to assemble, this sometimes helps if some dependencies aren't being downloaded
04:56:23
@glepage:matrix.orgGaétan LepageThank you for the suggestion ! Unfortunately it does the same thing...07:27:42
@chayleaf:matrix.pavluk.orgchayleaf
In reply to @glepage:matrix.org
Thank you for the suggestion ! Unfortunately it does the same thing...
as another option, you could set enableParallelBuilding to false, I don't have any ideas other than that
09:33:00
@chayleaf:matrix.pavluk.orgchayleafif that doesn't work out, it might be beneficial to try to reproduce it outside of the nix sandbox09:33:14
@glepage:matrix.orgGaétan Lepage same with enableParallelBuilding = false unfortunately :/
I will try to bisect the change to have a better idea. Thanks for your help :)
09:38:56
@fliegendewurst:matrix.orgFliegendeWurstHow can I fix gradle packages where the build fails on everything not x86_64-linux? https://github.com/NixOS/nixpkgs/pull/35316511:33:14
@fliegendewurst:matrix.orgFliegendeWurst

The error is:

* What went wrong:
A problem occurred evaluating root project 'keyboard-layout-editor'.
> Could not resolve all files for configuration ':runtimeClasspath'.
   > Could not find javafx-fxml-17-mac-aarch64.jar (org.openjfx:javafx-fxml:17).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/org/openjfx/javafx-fxml/17/javafx-fxml-17-mac-aarch64.jar
   > Could not find javafx-controls-17-mac-aarch64.jar (org.openjfx:javafx-controls:17).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/17/javafx-controls-17-mac-aarch64.jar
   > Could not find javafx-graphics-17-mac-aarch64.jar (org.openjfx:javafx-graphics:17).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/17/javafx-graphics-17-mac-aarch64.jar
   > Could not find javafx-base-17-mac-aarch64.jar (org.openjfx:javafx-base:17).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/17/javafx-base-17-mac-aarch64.jar
11:33:48
@fliegendewurst:matrix.orgFliegendeWurstI suppose the deps.json would need to be combined from all platforms, in some way?11:34:59
@tomodachi94:matrix.orgTomodachi94 (they/them)
In reply to@fliegendewurst:matrix.org
I suppose the deps.json would need to be combined from all platforms, in some way?
Bingo. Alternatively, some people patch out these platform-dependent dependencies
15:49:22
@fliegendewurst:matrix.orgFliegendeWurst
In reply to @tomodachi94:matrix.org
Bingo. Alternatively, some people patch out these platform-dependent dependencies
Well, the dependency is openjfx. I can't just patch that out. Maybe I can get all the deps.json files via the community builder..
19:41:16
@tomodachi94:matrix.orgTomodachi94 (they/them)We do have an OpenJFX package, you might be able to patch it to use that? I can't find any other instances of packages doing that (but maybe they should): https://github.com/search?q=repo%3ANixOS%2Fnixpkgs%20Gradle%20OpenJFX&type=code19:44:23
8 Dec 2024
@tomodachi94:matrix.orgTomodachi94 (they/them)Can we (and should we) override vendored dependencies that are packaged from source locally?05:23:06
@chayleaf:matrix.pavluk.orgchayleafwe certainly can, but the current approach is just setting LD_LIBRARY_PATH07:19:06
@chayleaf:matrix.pavluk.orgchayleaftheres a looot of jar dependencies most of which can be built from source07:19:44
@chayleaf:matrix.pavluk.orgchayleafi guess you could make an argument for building the ones with native code from source, but it's gonna require looots of effort07:20:11
@chayleaf:matrix.pavluk.orgchayleafanyway, thete are some examples in-tree of gradle packages fetching deps for multiple platforms07:21:07
@chayleaf:matrix.pavluk.orgchayleafusually it involves running gradle multiple times with different args or env vars07:21:26
@chayleaf:matrix.pavluk.orgchayleafworst case you can write a grep+sed mess to extract urls from the source files and then download them with curl07:22:37

Show newer messages


Back to Room ListRoom Version: 6