rmuir commented on pull request #365: URL: https://github.com/apache/lucene/pull/365#issuecomment-939369650
The problem for me is that the shellscript pulls its `$classpath` variable from the output of `gradlew echoCp`. The issue is, this contains a lot more than the classpath, it also contains *terminal-escaped* crap from gradle itself. You can see this by echoing to a file, and then opening it up in the editor. attempting to debug it directly with `-x` or adding prints to the shellscript will only confuse you, because the terminal escapes will wipe away all the evidence. Run it yourself, but redirect to a tmp file then open it with vim. ```console jmh[JMH]$ ../../gradlew -q echoCp > /tmp/out.txt think:jmh[JMH]$ vi /tmp/out.txt ``` You'll see it looks something like this. We are passing all this stuff to the java via `-classpath` and in my case its not parsing correctly. ``` ^[[1A^[[1m> Starting Daemon^[[m^[[17D^[[1B^[[1A> IDLE^[[0K^[[6D^[[1B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [89ms]^[[m^[[38D^[[2B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [189ms]^[[m^[[39D^[[2B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [289ms]^[[m^[[39D^[[2B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [389ms]^[[m^[[39D^[[2B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [489ms]^[[m^[[39D^[[1B^[[1m> Evaluating settings^[[m^[[21D^[[1B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [589ms]^[[m^[[39D^[[2B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [689ms]^[[m^[[39D^[[2B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [789ms]^[[m^[[39D^[[2B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [889ms]^[[m^[[39D^[[2B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [989ms]^[[m^[[39D^[[2B^[[2A^[[1m<^[[0;1m-------------> 0% INITIALIZING [1s]^[[m^[[0K^[[36D^[[2B^[[2A^[[1m<^[[0;1m-------------> 0% CONFIGURING [1s]^[[m^[[0K^[[35D^[[1B^[[1m> Loading projects^[[m^[[0K ^[[18D^[[1B^[[1A^[[1m> :missing-doclet^[[m^[[0K^[[17D^[[1B^[[2A^[[1m<^[[0;1m-------------> 2% CONFIGURING [2s]^[[m^[[35D^[[1B^[[1m> Building buildSrc^[[m^[[19D^[[1B^[[1A^[[1m> Building buildSrc > :buildSrc^[[m^[[31D^[[1B^[[2A^[[1m<^[[0;1m-------------> 4% CONFIGURING [2s]^[[m^[[35D^[[1B^[[1m> Building buildSrc^[[m^[[0K^[[19D^[[1B^[[1A^[[1m> Building buildSrc > Resolve dependencies of :buildSrc:compileClasspath^[[m^[[72D^[[1B^[[1A^[[1m> Building buildSrc^[[m^[[0K^[[19D^[[1B^[[1A^[[1m> Building buildSrc > :buildSrc:compileJava^[[m^[[43D^[[1B^[[1A^[[1m> root project > Resolve dependencies of detachedConfiguration4^[[m^[[63D^[[1B^[[1A^[[1m> root project > Resolve dependencies of :classpath^[[m^[[0K^[[51D^[[1B^[[1A^[[1m> root project^[[m^[[0K^[[14D^[[1B^[[2A^[[1m<^[[0;1m-------------> 4% CONFIGURING [3s]^[[m^[[35D^[[2B^[[2A^[[1m<^[[0;1m-------------> 4% CONFIGURING [4s]^[[m^[[35D^[[2B^[[2A^[[1m<^[[0;1m-------------> 4% CONFIGURING [5s]^[[m^[[35D^[[2B^[[2A^[[1m<^[[0;1m-------------> 4% CO NFIGURING [6s]^[[m^[[35D^[[2B^[[1A^[[1m> root project > Resolve dependencies of classpath^[[m^[[50D^[[1B^[[1A^[[1m> root project^[[m^[[0K^[[14D^[[1B^[[2A^[[1m<^[[0;32;1m=^[[0;39;1m------------> 9% CONFIGURING [6s]^[[m^[[35D^[[1B^[[1m> root project > :lucene:backward-codecs^[[m^[[40D^[[1B^[[2A^[[1m<^[[0;32;1m=^[[0;39;1m------------> 12% CONFIGURING [6s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:benchmark^[[m^[[0K^[[34D^[[1B^[[2A^[[1m<^[[0;32;1m==^[[0;39;1m-----------> 17% CONFIGURING [7s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:codecs^[[m^[[0K^[[31D^[[1B^[[2A^[[1m<^[[0;32;1m===^[[0;39;1m----------> 24% CONFIGURING [7s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:documentation^[[m^[[38D^[[1B^[[2A^[[1m<^[[0;32;1m====^[[0;39;1m---------> 31% CONFIGURING [7s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:grouping^[[m^[[0K^[[33D^[[1B^[[2A^[[1m<^[[0;32;1m=====^[[0;39;1m--------> 39% CONFIGURING [7s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:join^[[m^[[0K^[[29D^[[1B^[[2A^[[1m<^[[0;32; 1m=====^[[0;39;1m--------> 41% CONFIGURING [7s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:luke^[[m^[[29D^[[1B^[[2A^[[1m<^[[0;32;1m======^[[0;39;1m-------> 48% CONFIGURING [7s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:monitor^[[m^[[32D^[[1B^[[2A^[[1m<^[[0;32;1m======^[[0;39;1m-------> 51% CONFIGURING [7s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:packaging^[[m^[[34D^[[1B^[[2A^[[1m<^[[0;32;1m=======^[[0;39;1m------> 56% CONFIGURING [7s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:queryparser^[[m^[[36D^[[1B^[[2A^[[1m<^[[0;32;1m=======^[[0;39;1m------> 60% CONFIGURING [7s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:sandbox^[[m^[[0K^[[32D^[[1B^[[2A^[[1m<^[[0;32;1m========^[[0;39;1m-----> 68% CONFIGURING [7s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:suggest^[[m^[[32D^[[1B^[[2A^[[1m<^[[0;32;1m=========^[[0;39;1m----> 73% CONFIGURING [8s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:analysis:common^[[m^[[40D^[[1B^[[2A^[[1m<^[[0;32;1m==========^[[0;39;1m---> 80% CONFIGURING [8s]^[[ m^[[36D^[[1B^[[1m> root project > :lucene:analysis:morfologik^[[m^[[44D^[[1B^[[2A^[[1m<^[[0;32;1m===========^[[0;39;1m--> 85% CONFIGURING [8s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:analysis:opennlp^[[m^[[0K^[[41D^[[1B^[[2A^[[1m<^[[0;32;1m============^[[0;39;1m-> 95% CONFIGURING [8s]^[[m^[[36D^[[1B^[[1m> root project > :lucene:misc:native^[[m^[[0K^[[36D^[[1B^[[2A^[[1m<^[[0;32;1m============^[[0;39;1m-> 97% CONFIGURING [8s]^[[m^[[36D^[[1B^[[1m> root project^[[m^[[0K^[[14D^[[1B^[[2A^[[1m<^[[0;32;1m=============^[[0;39;1m> 100% CONFIGURING [9s]^[[m^[[37D^[[1B> IDLE^[[0K^[[6D^[[1B^[[2A^[[1m<^[[0;1m-------------> 0% EXECUTING [9s]^[[m^[[0K^[[33D^[[1B^[[1m> :lucene:jmh:echoCp > Resolve dependencies of :lucene:jmh:runtimeClasspath^[[m^[[75D^[[1B^[[2A/home/rmuir/workspace/lucene-test/lucene/lucene/jmh/build/classes/java/main:/home/rmuir/workspace/lucene-test/lucene/lucene/jmh/build/resources/main:/home/rmuir/workspace/lucene-test/lucene/lucene/test-framework/build/libs/lucene-test-fram ework-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/suggest/build/libs/lucene-suggest-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/analysis/kuromoji/build/libs/lucene-analysis-kuromoji-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/analysis/icu/build/libs/lucene-analysis-icu-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/analysis/common/build/libs/lucene-analysis-common-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/facet/build/libs/lucene-facet-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/highlighter/build/libs/lucene-highlighter-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/queryparser/build/libs/lucene-queryparser-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/grouping/build/libs/lucene-grouping-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/sandbox/build/libs/lucene-sandbox-9.0.0-SNAPSHOT.jar:/ho me/rmuir/workspace/lucene-test/lucene/lucene/queries/build/libs/lucene-queries-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/spatial-extras/build/libs/lucene-spatial-extras-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/misc/build/libs/lucene-misc-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/join/build/libs/lucene-join-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/codecs/build/libs/lucene-codecs-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/memory/build/libs/lucene-memory-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/spatial3d/build/libs/lucene-spatial3d-9.0.0-SNAPSHOT.jar:/home/rmuir/workspace/lucene-test/lucene/lucene/core/build/libs/lucene-core-9.0.0-SNAPSHOT.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/org.locationtech.spatial4j/spatial4j/0.7/faa8ba85d503da4ab872d17ba8c00da0098ab2f2/spatial4j-0.7.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/or g.apache.commons/commons-compress/1.19/7e65777fb451ddab6a9c054beb879e521b7eab78/commons-compress-1.19.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/com.ibm.icu/icu4j/68.2/76893e6000401ace133a65262254be0ebe556d46/icu4j-68.2.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/net.sourceforge.nekohtml/nekohtml/1.9.17/39a870b0ea4cb0d2a3015c1ab569d17d83122d55/nekohtml-1.9.17.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/com.eaio.uuid/uuid/3.2/77ba5105d949cd589aff75400d9f7d3676691a46/uuid-3.2.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/org.hdrhistogram/HdrHistogram/2.1.12/6eb7552156e0d517ae80cc2247be1427c8d90452/HdrHistogram-2.1.12.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/org.openjdk.jmh/jmh-core/1.32/9a8b69ea08118fd4e5d30a152d37b7087ee4a720/jmh-core-1.32.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/com.carrotsearch.randomizedtesting/randomizedtesting-runner/2.7.6/17894fe98cce53f9bd994044d9bea7bd7801cafa/randomizedtesting-runner-2.7.6.jar:/home/rmuir/.gradl e/caches/modules-2/files-2.1/junit/junit/4.13.1/cdd00374f1fee76b11e2a9d127405aa3f6be5b6a/junit-4.13.1.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest/2.2/1820c0968dba3a11a1b30669bb1f01978a91dedc/hamcrest-2.2.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/com.carrotsearch/hppc/0.9.0/fcc952fb6d378266b943bef9f15e67a4d45cfa88/hppc-0.9.0.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/io.sgr/s2-geometry-library-java/1.0.0/f95b25589b40b5b0965deb592445073ff3efa299/s2-geometry-library-java-1.0.0.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/net.sf.jopt-simple/jopt-simple/4.6/306816fb57cf94f108a43c95731b08934dcae15c/jopt-simple-4.6.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-math3/3.2/ec2544ab27e110d2d431bdad7d538ed509b21e62/commons-math3-3.2.jar:/home/rmuir/.gradle/caches/modules-2/files-2.1/xerces/xercesImpl/2.12.0/f02c844149fd306601f20e0b34853a670bef7fa2/xercesImpl-2.12.0.jar:/home/rmuir/workspace/lucene-test/lucene/lu cene/jmh/src/resources/words.txt^[[4259D ^[[0K ^[[0K ^[[2A^[[1m<^[[0;32;1m=============^[[0;39;1m> 100% EXECUTING [9s]^[[m^[[35D^[[1B> IDLE^[[6D^[[1B^[[2A^[[1m<^[[0;1m-------------> 0% WAITING^[[m^[[0K^[[26D^[[2B^[[2A^[[2K^[[1B^[[2K^[[1A^[[1A^[[4259C ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org