gradle / gradle-native

The home of Gradle's support for natively compiled languages
https://blog.gradle.org/introducing-the-new-cpp-plugins
Apache License 2.0
92 stars 8 forks source link

Funky wording in output for errorno 123 "could not file attributes" #1102

Open thadguidry opened 1 year ago

thadguidry commented 1 year ago

While debugging a Gradle build for the JBang Java project that includes the plugin id "com.github.johnrengelman.shadow" version "7.1.2" I noticed in the output a confusing grammar could not file attributes (errno 123). This seems to be coming from the Native-Platform module net.rubygrapefruit and likely inside native-platform.dll? I poked around and found @adammurdoch 's notes but was unsure if this issue should be against this repo, or Gradle itself, or the repo where rubygrapefruit was forged a long while ago or may still live and breathe? Dunno.

Caused by: net.rubygrapefruit.platform.NativeException:
 Could not get file details of E:\GitHubRepos\jbang\build\libs\task ':shadowJar' property
   'archiveBaseName'.task ':shadowJar' property 'archiveExtension': could not file attributes (errno 123)
        at net.rubygrapefruit.platform.internal.DefaultWindowsFiles.stat(DefaultWindowsFiles.java:38)
        at net.rubygrapefruit.platform.internal.DefaultWindowsFiles.stat(DefaultWindowsFiles.java:28)
        at org.gradle.internal.nativeintegration.filesystem.services.NativePlatformBackedFileMetadataAccessor.stat(NativePlatformBackedFileMetadataAccessor.java:41)

Expected Behavior

Not sure if the meaning was intended to be could not retrieve/get file attributes, or if the meaning was intended to be more specific such as could not parse or understand the file attributes received. In other words, it did not find any file attributes? or found file attributes but did not understand them?

Current Behavior

incorrect or confusing grammar to deduce real meaning to help troubleshoot a bit further.

Context

building and compiling JBang

Steps to Reproduce (for bugs)

try to build JBang

Your Environment