Solr
  1. Solr
  2. SOLR-2994

Solr no longer compiles in IntelliJ

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.6
    • Component/s: Build
    • Labels:
    • Environment:

      IntelliJ

      Description

      Running the "ant idea" target no longer creates an IntelliJ environment that is consistent, I'm getting "package org.apache.lucene.analysis.phonetic does not exist". It looks like the phonetic package moved from lucene to contrib?

      Note that command-line ant task continues to work just fine.

      I'll attach a patch that fixes it for me, but I'd really like someone who understands Idea (Steve, are you listening?) system take a look to see if it's OK. It's a magnificent single line in solr.iml.

      I'm assuming this is also a problem for 4.x, I'll probably be in that environment later today and see.

      I have no idea whether Eclipse suffers from the same problem.

      I've assigned it to myself just for tracking, anyone who can glance at it and say "yeah, that's right" please feel free to just check it in for 3x and 4x if applicable.

      1. SOLR-2994.patch
        0.5 kB
        Erick Erickson

        Activity

        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Steve Rowe made changes -
        Affects Version/s 4.0 [ 12314992 ]
        Steve Rowe made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Erick Erickson [ erickerickson ] Steven Rowe [ steve_rowe ]
        Fix Version/s 3.6 [ 12319065 ]
        Resolution Fixed [ 1 ]
        Hide
        Steve Rowe added a comment -

        Thanks Erick, I've committed your patch to branch_3x in r1225922.

        It looks like the phonetic package moved from lucene to contrib?

        See SOLR-2982.

        I'm assuming this is also a problem for 4.x, I'll probably be in that environment later today and see.

        trunk compiles fine for me from IntelliJ. (The phonetic module was already there before SOLR-2982.)

        I have no idea whether Eclipse suffers from the same problem.

        The source and test directories for the phonetic contrib were already in the Eclipse config, even though the directories themselves weren't, so the Eclipse config is fine, AFAICT.

        Show
        Steve Rowe added a comment - Thanks Erick, I've committed your patch to branch_3x in r1225922. It looks like the phonetic package moved from lucene to contrib? See SOLR-2982 . I'm assuming this is also a problem for 4.x, I'll probably be in that environment later today and see. trunk compiles fine for me from IntelliJ. (The phonetic module was already there before SOLR-2982 .) I have no idea whether Eclipse suffers from the same problem. The source and test directories for the phonetic contrib were already in the Eclipse config, even though the directories themselves weren't, so the Eclipse config is fine, AFAICT.
        Erick Erickson made changes -
        Field Original Value New Value
        Attachment SOLR-2994.patch [ 12508944 ]
        Hide
        Erick Erickson added a comment -

        Fixes the problem on my machine in 3x. I'll probably see about 4x later.

        Show
        Erick Erickson added a comment - Fixes the problem on my machine in 3x. I'll probably see about 4x later.
        Erick Erickson created issue -

          People

          • Assignee:
            Steve Rowe
            Reporter:
            Erick Erickson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development