You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Marius Grama <ma...@gmail.com> on 2015/05/22 16:33:20 UTC

how to start Solr from the IDE

I'm new on the Solr project (and Angular as well) and started attaching
patches to some of the issues from the project to get a better grasp on how
Solr is working.
I've recently done a minor patch in which I've done modifications on
Angular pages and after changing some java classes and some html files I
wanted to check the validity of my changes.

I checked the validity of my changes by doing :

$ ant server ;
$ bin/solr start -e cloud -noprompt


I was wondering if there's an easy way to start the Solr server directly
from the IDE (I use IDEA).
Also could you give me some tips that you think may be useful when working
on angular related isuses on Solr?

Thanks in advance.

Re: how to start Solr from the IDE

Posted by Erick Erickson <er...@gmail.com>.
As far as debugging the java is concerned, I don't ever start Solr in
the IDE, just attach as a remote session from your IDE. This page has
instructions for IntelliJ, Eclipse and Netbeans although this last is
sparse: https://wiki.apache.org/solr/HowToContribute. I've just
updated the IntelliJ page with an example of setting up a remote
session via the start scripts.

Since I don't do much with the UI, I'll defer to Upayavira on that stuff....

Best,
Erick



On Fri, May 22, 2015 at 7:44 AM, Upayavira <uv...@odoko.co.uk> wrote:
> On Fri, May 22, 2015, at 03:33 PM, Marius Grama wrote:
>> I'm new on the Solr project (and Angular as well) and started attaching
>> patches to some of the issues from the project to get a better grasp on
>> how
>> Solr is working.
>> I've recently done a minor patch in which I've done modifications on
>> Angular pages and after changing some java classes and some html files I
>> wanted to check the validity of my changes.
>>
>> I checked the validity of my changes by doing :
>>
>> $ ant server ;
>> $ bin/solr start -e cloud -noprompt
>>
>>
>> I was wondering if there's an easy way to start the Solr server directly
>> from the IDE (I use IDEA).
>> Also could you give me some tips that you think may be useful when
>> working on angular related isuses on Solr?
>
> It seems (from your patch SOLR-7555) you are wanting to work on both the
> Java and the Javascript code.
>
> I'm sure others can say more about development environments for messing
> with the Java - for now I've restrained myself to the JS code alone.
>
> When you start Solr, it unpacks the war into
> solr/server/solr-webapp/webapp. I point my IDE there, edit it all
> in-place, and can debug live in the browser from there. Then I have a
> simple rsync script that copies changes back to solr/webapp/web from
> where I generate patches.
>
> There's not too much more to it than that.
>
> I did review your changes in SOLR-7555 and they seemed very reasonable.
> I'm sure there's a lot more you could help with if you are interested.
>
> Upayavira

Re: how to start Solr from the IDE

Posted by Upayavira <uv...@odoko.co.uk>.
On Fri, May 22, 2015, at 03:33 PM, Marius Grama wrote:
> I'm new on the Solr project (and Angular as well) and started attaching
> patches to some of the issues from the project to get a better grasp on
> how
> Solr is working.
> I've recently done a minor patch in which I've done modifications on
> Angular pages and after changing some java classes and some html files I
> wanted to check the validity of my changes.
> 
> I checked the validity of my changes by doing :
> 
> $ ant server ;
> $ bin/solr start -e cloud -noprompt
> 
> 
> I was wondering if there's an easy way to start the Solr server directly
> from the IDE (I use IDEA).
> Also could you give me some tips that you think may be useful when
> working on angular related isuses on Solr?

It seems (from your patch SOLR-7555) you are wanting to work on both the
Java and the Javascript code. 

I'm sure others can say more about development environments for messing
with the Java - for now I've restrained myself to the JS code alone.

When you start Solr, it unpacks the war into
solr/server/solr-webapp/webapp. I point my IDE there, edit it all
in-place, and can debug live in the browser from there. Then I have a
simple rsync script that copies changes back to solr/webapp/web from
where I generate patches.

There's not too much more to it than that.

I did review your changes in SOLR-7555 and they seemed very reasonable.
I'm sure there's a lot more you could help with if you are interested.

Upayavira