Mailing List Archive

lucene execute ./gradlew precommit and ./gradlew test failed
i want to contribute to lucene, and read How to Contribute
<https://wiki.apache.org/lucene/HowToContribute> , 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?
Re: lucene execute ./gradlew precommit and ./gradlew test failed [ In reply to ]
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 <wuda0112@gmail.com> wrote:
>
> i want to contribute to lucene, and read How to Contribute
> <https://wiki.apache.org/lucene/HowToContribute> , 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: lucene execute ./gradlew precommit and ./gradlew test failed [ In reply to ]
I have executed like this. [image: 1628075031(1).png]

Dawid Weiss <dawid.weiss@gmail.com> ?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 <wuda0112@gmail.com> wrote:
> >
> > i want to contribute to lucene, and read How to Contribute
> > <https://wiki.apache.org/lucene/HowToContribute> , 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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
Re: lucene execute ./gradlew precommit and ./gradlew test failed [ In reply to ]
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 <wuda0112@gmail.com> wrote:
>
> I have executed like this.
>
> Dawid Weiss <dawid.weiss@gmail.com> ?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 <wuda0112@gmail.com> wrote:
>> >
>> > i want to contribute to lucene, and read How to Contribute
>> > <https://wiki.apache.org/lucene/HowToContribute> , 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-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: lucene execute ./gradlew precommit and ./gradlew test failed [ In reply to ]
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.weiss@gmail.com)?

Dawid

On Tue, Aug 17, 2021 at 4:09 AM wuda <wuda@tiduyun.com> 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
> ?: ???????????û????????????? API??
> ?: ?????????, ????? -Xlint:deprecation ???±???
>
> > Task :lucene:test-framework:compileJava
> ?: ???????????û????????????? 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
> ?: ???????????û????????????? API??
> ?: ?????????, ????? -Xlint:deprecation ???±???
>
> > Task :lucene:analysis:common:compileJava
> ?: ???????????û????????????? 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
> ?: ???????????û????????????? 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
> wuda@tiduyun.com
> www.tiduyun.com
>
> ???????????6?GIG??????34??????????????????58??A2?-212?????????????????9????????4??4-505???????
> On 8/17/2021 03:16?Dawid Weiss<dawid.weiss@gmail.com>
> <dawid.weiss@gmail.com> 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 <wuda0112@gmail.com> wrote:
>
>
> I have executed like this.
>
> Dawid Weiss <dawid.weiss@gmail.com> ?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 <wuda0112@gmail.com> wrote:
>
>
> i want to contribute to lucene, and read How to Contribute
> <https://wiki.apache.org/lucene/HowToContribute> , 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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
Re: lucene execute ./gradlew precommit and ./gradlew test failed [ In reply to ]
Your files have crlf line endings - your git is set up to convert
files to Windows convention and this isn't supported by Lucene. You
have to set git to clone exactly the same binary content as present in
the repository, otherwise checksums won't match (this is intentional).

You can always compare hex dumps of the repository revision with your
own, for example:
https://raw.githubusercontent.com/apache/lucene/b84e0c272b6e1beb29e2a22d16d1d8a2bd05a731/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/ForUtil.java

Set autocrlf to false globally:

git config --global core.autocrlf false

then wipe your current clone and clone again. Perhaps there is some
magic option to reset line endings on your existing clone but I always
found it super confusing in git, sorry.

Dawid


On Tue, Aug 17, 2021 at 9:15 AM wuda <wuda@tiduyun.com> wrote:
>
> I tried this three options
>
> 1. git config --global core.autocrlf true
>
> wuda@DESKTOP-J5PKEV6 MINGW64 /d/work/lucene (main)
> $ git config --global core.autocrlf true
>
> wuda@DESKTOP-J5PKEV6 MINGW64 /d/work/lucene (main)
> $ ./gradlew check
> > 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
>
> BUILD FAILED in 4s
> 56 actionable tasks: 16 executed, 40 up-to-date
>
> 2. git config --global core.autocrlf input
>
> wuda@DESKTOP-J5PKEV6 MINGW64 /d/work/lucene (main)
> $ git config --global core.autocrlf input
> wuda@DESKTOP-J5PKEV6 MINGW64 /d/work/lucene (main)
> $ ./gradlew check
> > 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
> BUILD FAILED in 5s
> 58 actionable tasks: 17 executed, 41 up-to-date
>
>
> 3. git config --global core.autocrlf false
>
> wuda@DESKTOP-J5PKEV6 MINGW64 /d/work/lucene (main)
> $ git config --global core.autocrlf false
> wuda@DESKTOP-J5PKEV6 MINGW64 /d/work/lucene (main)
> $ ./gradlew check
> > 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
> BUILD FAILED in 6s
> 56 actionable tasks: 16 executed, 40 up-to-date
>
>
> ? ?
>
> ????? | ????
> ________________________________
> 15915997306
> wuda@tiduyun.com
> www.tiduyun.com
> ???????????6?GIG??????34??????????????????58??A2?-212?????????????????9????????4??4-505???????
> On 8/17/2021 14:48?Dawid Weiss<dawid.weiss@gmail.com> wrote?
>
>
> 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.weiss@gmail.com)?
>
> Dawid
>
> On Tue, Aug 17, 2021 at 4:09 AM wuda <wuda@tiduyun.com> 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
>> ?: ???????????û????????????? API??
>> ?: ?????????, ????? -Xlint:deprecation ???±???
>>
>> > Task :lucene:test-framework:compileJava
>> ?: ???????????û????????????? 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
>> ?: ???????????û????????????? API??
>> ?: ?????????, ????? -Xlint:deprecation ???±???
>>
>> > Task :lucene:analysis:common:compileJava
>> ?: ???????????û????????????? 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
>> ?: ???????????û????????????? 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
>> wuda@tiduyun.com
>> www.tiduyun.com
>> ???????????6?GIG??????34??????????????????58??A2?-212?????????????????9????????4??4-505???????
>> On 8/17/2021 03:16?Dawid Weiss<dawid.weiss@gmail.com> 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 <wuda0112@gmail.com> wrote:
>>
>>
>> I have executed like this.
>>
>> Dawid Weiss <dawid.weiss@gmail.com> ?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 <wuda0112@gmail.com> wrote:
>>
>>
>> i want to contribute to lucene, and read How to Contribute
>> <https://wiki.apache.org/lucene/HowToContribute> , 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-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org

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