You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "jainankitk (via GitHub)" <gi...@apache.org> on 2025/08/11 23:14:42 UTC

[I] lucene/distribution.tests failing for branch_10x [lucene]

jainankitk opened a new issue, #15046:
URL: https://github.com/apache/lucene/issues/15046

   ### Description
   
   Build is failing with the following error:
   After backporting the change #15033 on `branch_10x`, build is failing due to unnamed variables error. Working on fixing that
   
   ```
   /Users/runner/work/lucene/lucene/lucene/core/src/java21/org/apache/lucene/store/MemorySegmentIndexInput.java:330: error: unnamed variables are a preview feature and are disabled by default.
   > Task :lucene:core:compileMain21Java FAILED
       } catch (IndexOutOfBoundsException _) {
   gradle/actions: Writing build results to /Users/runner/work/_temp/.gradle-actions/build-results/__run-1754950346869.json
                                          ^
     (use --enable-preview to enable unnamed variables)
   1 error
   
   
   FAILURE: Build failed with an exception.
   [Incubating] Problems report is available at: file:///Users/runner/work/lucene/lucene/build/reports/problems/problems-report.html
   
   10 actionable tasks: 10 executed
   * What went wrong:
   Execution failed for task ':lucene:core:compileMain21Java'.
   > Compilation failed; see the compiler output below.
     /Users/runner/work/lucene/lucene/lucene/core/src/java21/org/apache/lucene/store/MemorySegmentIndexInput.java:330: error: unnamed variables are a preview feature and are disabled by default.
         } catch (IndexOutOfBoundsException _) {
                                            ^
       (use --enable-preview to enable unnamed variables)
     1 error
   
   * Try:
   > Check your code and dependencies to fix the compilation error(s)
   
   BUILD FAILED in 1m 38s
   ```
   
   ### Version and environment details
   
   _No response_


-- 
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-unsubscribe@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] lucene/distribution.tests failing for branch_10x [lucene]

Posted by "uschindler (via GitHub)" <gi...@apache.org>.
uschindler closed issue #15046: lucene/distribution.tests failing for branch_10x
URL: https://github.com/apache/lucene/issues/15046


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] lucene/distribution.tests failing for branch_10x [lucene]

Posted by "uschindler (via GitHub)" <gi...@apache.org>.
uschindler commented on issue #15046:
URL: https://github.com/apache/lucene/issues/15046#issuecomment-3206423425

   I reverted both changes in 10.x branch. 
   
   For Java 21 the changes were not applicable. Now my Eclipse shows no warnings anymore. This was a typical "main branch" only change.


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] lucene/distribution.tests failing for branch_10x [lucene]

Posted by "jainankitk (via GitHub)" <gi...@apache.org>.
jainankitk commented on issue #15046:
URL: https://github.com/apache/lucene/issues/15046#issuecomment-3177256702

   Resolved as part of #15047 


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] lucene/distribution.tests failing for branch_10x [lucene]

Posted by "uschindler (via GitHub)" <gi...@apache.org>.
uschindler commented on issue #15046:
URL: https://github.com/apache/lucene/issues/15046#issuecomment-3201137259

   Please revert the PR (see comment in the issue). The PR should have never been backported as Java 21 has no support for "_" variable type.


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] lucene/distribution.tests failing for branch_10x [lucene]

Posted by "jainankitk (via GitHub)" <gi...@apache.org>.
jainankitk closed issue #15046: lucene/distribution.tests failing for branch_10x
URL: https://github.com/apache/lucene/issues/15046


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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