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

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

Open
thadguidry opened this issue Jan 9, 2023 · 0 comments
Open

Comments

@thadguidry
Copy link

thadguidry commented Jan 9, 2023

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

  • Build scan URL:
    Sorry, I myself am not a Gradle Enterprise user, but only an OSS contributor. I did run it with --scan but no idea where or if that did anything.
  • Windows 64bit Pro
  • Visual Studio Code
  • Adoptium OpenJDK 17
  • Gradle 7.5.1 (but trying to help JBang update to Gradle 8 compatibility and surprise them and make them happy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant