Re: lucene execute ./gradlew precommit and ./gradlew test failed

2021-08-16 Thread Dawid Weiss
I'm sorry, I was out of office. I can't see that attachment you
posted. If it's still a problem, can you copy-paste what you see on
the console once you issue "git status"?

Dawid

On Wed, Aug 4, 2021 at 1:07 PM Da Wu  wrote:
>
> I have executed like this.
>
> Dawid Weiss  于2021年8月2日周一 下午9:07写道:
>>
>> What does "git status" say? The hashes of generated files are not what
>> they're supposed to be - either something has changed them or you have
>> a git configuration that replaces something on the fly (line endings,
>> most likely).
>>
>> Dawid
>>
>> On Wed, Jul 28, 2021 at 9:55 AM Da Wu  wrote:
>> >
>> > i want to contribute to lucene, and read  How to Contribute
>> >  , when i execute
>> > ./gradlew precommit,
>> > it failed,  output is:
>> >
>> > Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use
>> > --status for details
>> > > Task :lucene:backward-codecs:generateForUtilChecksumCheck FAILED
>> >
>> > FAILURE: Build failed with an exception.
>> >
>> > * Where:
>> > Script 'D:\idea_workspace\lucene\gradle\generation\regenerate.gradle' line:
>> > 162
>> >
>> > * What went wrong:
>> > Execution failed for task
>> > ':lucene:backward-codecs:generateForUtilChecksumCheck'.
>> > > Checksums mismatch for derived resources; you might have modified a
>> > generated resource (regenerate task: generateForUtilInternal):
>> >   Current:
>> >
>> > lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/ForUtil.java=214818d4ca67ac890dc67ed5c3cf208704dfe71e
>> >
>> > lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/gen_ForUtil.py=20ce3591a2ed8b23b8789da9eaa78e2b48b2c9ed
>> >
>> >   Expected:
>> >
>> > lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/ForUtil.java=59319f493441c05e84ca9077a9f3bf98b6eb8c7e
>> >
>> > lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/gen_ForUtil.py=96635fbbf3270b6cb25237b8c01e068ecad0d2ce
>> >
>> > * Try:
>> > Run with --stacktrace option to get the stack trace. Run with --info or
>> > --debug option to get more log output. Run with --scan to get full 
>> > insights.
>> >
>> > * Get more help at https://help.gradle.org
>> >
>> > BUILD FAILED in 16s
>> > 78 actionable tasks: 18 executed, 60 up-to-date
>> >
>> >
>> >
>> > but i have modified nothing, what should i do?
>>
>> -
>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>

-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



Re: lucene execute ./gradlew precommit and ./gradlew test failed

2021-08-16 Thread Dawid Weiss
What do these two commands say?

git config autocrlf
git config --global autocrlf

Also, can you zip and send me those two offending files from your local
checkout (dawid.we...@gmail.com)?

Dawid

On Tue, Aug 17, 2021 at 4:09 AM wuda  wrote:

> I hava clone a completely new branch "main", and the output is:
>
>
> wuda@DESKTOP-J5PKEV6 MINGW64 /d/work/lucene (main)
> $ git pull
> Already up to date.
>
> wuda@DESKTOP-J5PKEV6 MINGW64 /d/work/lucene (main)
> $ git status
> On branch main
> Your branch is up to date with 'origin/main'.
>
> nothing to commit, working tree clean
>
> wuda@DESKTOP-J5PKEV6 MINGW64 /d/work/lucene (main)
> $ ./gradlew check
> Downloading gradle-wrapper.jar from
> https://github.com/gradle/gradle/raw/v6.8.3/gradle/wrapper/gradle-wrapper.jar
> To honour the JVM settings for this build a single-use Daemon process will
> be forked. See
> https://docs.gradle.org/6.8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon
> .
> Daemon will be stopped at the end of the build
>
> > Task :localSettings
>
> IMPORTANT. This is the first time you ran the build. I wrote some sane
> defaults (for this machine) to 'gradle.properties', they will be picked up
> on consecutive gradle invocations (not this one).
>
> Run gradlew :helpLocalSettings for more information.
>
> > Task :errorProneSkipped
> WARNING: errorprone disabled (skipped on non-nightly runs)
>
> > Task :lucene:core:compileJava
> ע: ijЩ▒ļ▒ʹ▒û򸲸ѹ▒ʱ▒▒ API▒▒
> ע: ▒й▒▒▒ϸ▒▒Ϣ, ▒▒ʹ▒▒ -Xlint:deprecation ▒▒▒±▒▒롣
>
> > Task :lucene:test-framework:compileJava
> ע: ijЩ▒ļ▒ʹ▒û򸲸ѹ▒ʱ▒▒ API▒▒
> ע: ▒й▒▒▒ϸ▒▒Ϣ, ▒▒ʹ▒▒ -Xlint:deprecation ▒▒▒±▒▒롣
>
> > Task :lucene:queries:compileJava
> ע:
> D:\work\lucene\lucene\queries\src\java\org\apache\lucene\queries\mlt\MoreLikeThis.javaʹ▒û򸲸ѹ▒ʱ▒▒
> API▒▒
> ע: ▒й▒▒▒ϸ▒▒Ϣ, ▒▒ʹ▒▒ -Xlint:deprecation ▒▒▒±▒▒롣
>
> > Task :lucene:highlighter:compileJava
> ע:
> D:\work\lucene\lucene\highlighter\src\java\org\apache\lucene\search\vectorhighlight\FieldTermStack.javaʹ▒û򸲸ѹ▒ʱ▒▒
> API▒▒
> ע: ▒й▒▒▒ϸ▒▒Ϣ, ▒▒ʹ▒▒ -Xlint:deprecation ▒▒▒±▒▒롣
>
> > Task :lucene:spatial-extras:compileJava
> ע: ijЩ▒ļ▒ʹ▒û򸲸ѹ▒ʱ▒▒ API▒▒
> ע: ▒й▒▒▒ϸ▒▒Ϣ, ▒▒ʹ▒▒ -Xlint:deprecation ▒▒▒±▒▒롣
>
> > Task :lucene:analysis:common:compileJava
> ע: ijЩ▒ļ▒ʹ▒û򸲸ѹ▒ʱ▒▒ API▒▒
> ע: ▒й▒▒▒ϸ▒▒Ϣ, ▒▒ʹ▒▒ -Xlint:deprecation ▒▒▒±▒▒롣
>
> > Task :lucene:suggest:compileJava
> ע:
> D:\work\lucene\lucene\suggest\src\java\org\apache\lucene\search\suggest\jaspell\JaspellLookup.javaʹ▒û򸲸ѹ▒ʱ▒▒
> API▒▒
> ע: ▒й▒▒▒ϸ▒▒Ϣ, ▒▒ʹ▒▒ -Xlint:deprecation ▒▒▒±▒▒롣
>
> > Task :lucene:backward-codecs:compileTestJava
> ע: ijЩ▒ļ▒ʹ▒û򸲸ѹ▒ʱ▒▒ API▒▒
> ע: ▒й▒▒▒ϸ▒▒Ϣ, ▒▒ʹ▒▒ -Xlint:deprecation ▒▒▒±▒▒롣
>
> > Task :lucene:backward-codecs:generateForUtilChecksumCheck FAILED
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Script 'D:\work\lucene\gradle\generation\regenerate.gradle' line: 162
>
> * What went wrong:
> Execution failed for task
> ':lucene:backward-codecs:generateForUtilChecksumCheck'.
> > Checksums mismatch for derived resources; you might have modified a
> generated resource (regenerate task: generateForUtilInternal):
>   Current:
>
> lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/ForUtil.java=214818d4ca67ac890dc67ed5c3cf208704dfe71e
>
> lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/gen_ForUtil.py=20ce3591a2ed8b23b8789da9eaa78e2b48b2c9ed
>
>   Expected:
>
> lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/ForUtil.java=59319f493441c05e84ca9077a9f3bf98b6eb8c7e
>
> lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/gen_ForUtil.py=96635fbbf3270b6cb25237b8c01e068ecad0d2ce
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output. Run with --scan to get full insights.
>
> * Get more help at https://help.gradle.org
>
> Deprecated Gradle features were used in this build, making it incompatible
> with Gradle 7.0.
> Use '--warning-mode all' to show the individual deprecation warnings.
> See
> https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings
>
> BUILD FAILED in 1m 5s
> 202 actionable tasks: 202 executed
>
>
> 吴 达
> 云管研发部 | 梯度科技
> --
> 15915997306
> w...@tiduyun.com
> www.tiduyun.com
>
> 广西南宁市良庆区飞云路6号GIG国际金融中心34楼(总部),湖南长沙岳麓区西湖文化园58小镇A2栋-212(湖南分公司),北京市丰台区广安路9号院国投财富广场4号楼4-505(北京子公司)
> On 8/17/2021 03:16,Dawid Weiss
>  wrote:
>
> I'm sorry, I was out of office. I can't see that attachment you
> posted. If it's still a problem, can you copy-paste what you see on
> the console once you issue "git status"?
>
> Dawid
>
> On Wed, Aug 4, 2021 at 1:07 PM Da Wu  wrote:
>
>
> I have executed like this.
>
> Dawid Weiss  于2021年8月2日周一 下午9:07写道:
>
>
> What does "git status" say? The hashes of generated files are not what
> they're supposed to be - either something has changed them or you have
> a git configuration that replaces something on the fly (line