uschindler commented on issue #12396:
URL: https://github.com/apache/lucene/issues/12396#issuecomment-1618230924
Hi, I just noticed that the forUtil.gradle had a bug in Lucene 9. It does
not regenerate anything because the actual python script is never executed.
I will povide a separate fix in a minute. Interestingly the script does not
execute correctly:
```
> Task :lucene:core:generateForUtilInternal FAILED
Caching disabled for task ':lucene:core:generateForUtilInternal' because:
Build cache is disabled
Task ':lucene:core:generateForUtilInternal' is not up-to-date because:
Task has failed previously.
External tool 'python3' resolved to: C:/cygwin/bin/python3.6m.exe
Starting process 'command 'C:/cygwin/bin/python3.6m.exe''. Working
directory: C:\Users\Uwe
Schindler\Projects\lucene\lucene\lucene\core\src\java\org\apache\lucene\codecs\lucene90
Command: C:/cygwin/bin/python3.6m.exe C:\Users\Uwe
Schindler\Projects\lucene\lucene\lucene\core\src\java\org\apache\lucene\codecs\lucene90\gen_ForUtil.py
Successfully started process 'command 'C:/cygwin/bin/python3.6m.exe''
Traceback (most recent call last):
File "C:\Users\Uwe
Schindler\Projects\lucene\lucene\lucene\core\src\java\org\apache\lucene\codecs\lucene90\gen_ForUtil.py",
line 438, in <module>
writeDecode(i, f)
File "C:\Users\Uwe
Schindler\Projects\lucene\lucene\lucene\core\src\java\org\apache\lucene\codecs\lucene90\gen_ForUtil.py",
line 362, in writeDecode
writeRemainder(bpv, next_primitive, shift + bpv, o,
128/num_values_per_long - o, f)
File "C:\Users\Uwe
Schindler\Projects\lucene\lucene\lucene\core\src\java\org\apache\lucene\codecs\lucene90\gen_ForUtil.py",
line 320, in writeRemainder
for i in range(num_values):
TypeError: 'float' object cannot be interpreted as an integer
```
Thats not good!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]