Closed camlloyd closed 1 year ago
Thanks for reporting this, @camlloyd. The CLASSPATH
length does seem to be a known issue with Gradle, see https://github.com/gradle/gradle/issues/1989.
The length of the APP_HOME
folder name is important. I couldn't immediately reproduce the issue when running .\bin\bioformats2raw.bat
from a folder with a 70 character name. Switching to a folder with an 82 character name results in the The input line is too long
error.
If renaming/shortening the path name is an option, that's probably the easier immediate work-around since it won't require changing bioformats2raw.bat
after every build.
Thanks @melissalinkert!
See https://github.com/ome/conda-raw2ometiff/pull/9 for conda (similar for bioformats2raw)
From a quick search, it looks like a workaround currently used elsewhere is to patch these lines within the startScripts
section of the Gradle build script https://github.com/search?q=CLASSPATH+winFileText&type=code
Possibly something worth trying out for an upcoming bioformats2raw/raw2ometiff
release
Trying to run bioformats2raw on Windows 10 produces the following error:
Without digging into Gradle, a workaround is to change the long
CLASSPATH
variable after building thebioformats2raw.bat
file from:to a wildcard, since it exceeds the limit of 2047 characters for Windows NT(?):