Compiling with gradle produces an error
See original GitHub issueRunning python src/python/localrun.py -source wikimedium10k
produces the following error for me:
Compile:
compile lucene:core...
[RUN: ./gradlew lucene:core:jar, cwd=/.../lucene_bench_home/patch]
/.../lucene_bench_home/patch/lucene/benchmark
Traceback (most recent call last):
File "src/python/localrun.py", line 54, in <module>
comp.benchmark("trunk_vs_patch")
File "/.../lucene_bench_home/util/src/python/competition.py", line 389, in benchmark
taskPatterns = (self.onlyTaskPatterns, self.notTaskPatterns), randomSeed = self.randomSeed)
File "/.../lucene_bench_home/util/src/python/searchBench.py", line 46, in run
r.compile(c)
File "/.../lucene_bench_home/util/src/python/benchUtil.py", line 1017, in compile
cp = self.classPathToString(self.getClassPath(competitor.checkout))
File "/.../lucene_bench_home/util/src/python/benchUtil.py", line 935, in getClassPath
return self.getAntClassPath(checkout)
File "/.../lucene_bench_home/util/src/python/benchUtil.py", line 893, in getAntClassPath
for filename in os.listdir('%s/lucene/build/core' % path):
OSError: [Errno 2] No such file or directory: '/.../lucene_bench_home/patch/lucene/build/core'
Commenting these lines in src/python/benchUtil.py
seems to fix an error for me:
def getClassPath(self, checkout):
path = checkoutToPath(checkout)
+ #if not os.path.exists(os.path.join(checkout, 'build.gradle')):
+ # return self.getAntClassPath(checkout)
@msokolov I am wondering if you can suggest a proper way to fix this issue 🙏
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Gives compilation error but works fine in eclipse IDE - Help ...
I'm facing weird issue with Gradle 4.1, JDK 1.8.291 and Eclipse IDE. ... Gradle Java Plugin Issue - Gives compilation error but works...
Read more >Gradle error when trying to compile an old project Android ...
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project ( ...
Read more >Question - Error when compiling unity at the build gradle project
First, make a blank project with a single blank scene and prove that it builds successfully. If it does NOT build, then go...
Read more >Gradle with Java11 build produces intermittent compilation ...
https://stackoverflow.com/questions/70041411/gradle-with-java11-build-produces-intermittent-compilation-errors.
Read more >Gradle compiles but vscode-java is getting compilation errors
gradle compileJava runs correctly, but vscode-java is getting me compilation errors. Environment. Operating System: Ubuntu 18.04; JDK version: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t think it is premature.
The primary purpose of
luceneutil
is to run correctly on Lucene’s master branch.8.x (and prior releases) are nice to have.
But I do agree, it is a very strong nice to have for the current (8.x, now) stable branch.
So I think we should get both gradle (master) and ant (8.x) working now.
@mayya-sharipova can we resolve this issue now?