Regarding the multiple scala version, here's my hack in intellij.

1. make a soft link from parent src folder to current project folder
2. Add source folder via intellij

Here's the project structure of my livy repl module in intellj

- repl
    - scala-2.10
       - repl-parent-src   (this is softlink of repl/src)
          - main
              - resources  (add this folder to resource root via intellij)
              - scala        (add this folder to source root via intellij)
          - test
       - src
    - src



Meisam Fathi <meisam.fa...@gmail.com>于2018年3月15日周四 上午4:39写道:

> I managed to make intellij work with a few manual tweaks after importing
> the project. I think I shared the steps somewhere (most likey Livy's
> mailing list preior to Apache incubation). Let me see if I can find them.
>
> Thanks,
> Meisam
>
> On Wed, Mar 14, 2018, 10:00 AM Alex Bozarth <ajboz...@us.ibm.com> wrote:
>
> > Hey Alexy,
> >
> > I use Intellij IDEA for my Livy development and there are a few
> limitation
> > that I have just had to get used to. You can use it to build, I do all my
> > building on the command line, and due to Livy's multiple Scala version
> > support you can't follow class links into any module that has a 2.10/2.11
> > split. It's pretty frustrating, but the only solution is to stop
> supporting
> > multiple scala versions in Livy or switch to sbt instead of maven, both
> of
> > which aren't changes we can make. I got help from Marcelo on this back
> when
> > I first joined the project, so you're not the first to hit these issues.
> >
> > *Alex Bozarth*
> > Software Engineer
> > Spark Technology Center
> > ------------------------------
> > *E-mail:* *ajboz...@us.ibm.com* <ajboz...@us.ibm.com>
> > *GitHub: **github.com/ajbozarth* <https://github.com/ajbozarth>
> >
> >
> > 505 Howard Street
> > <
> https://maps.google.com/?q=505+Howard+Street+San+Francisco,+CA+94105+United+States&entry=gmail&source=g
> >
> > San Francisco, CA 94105
> > <
> https://maps.google.com/?q=505+Howard+Street+San+Francisco,+CA+94105+United+States&entry=gmail&source=g
> >
> > United States
> > <
> https://maps.google.com/?q=505+Howard+Street+San+Francisco,+CA+94105+United+States&entry=gmail&source=g
> >
> >
> >
> >
> > [image: Inactive hide details for Alexey Romanenko ---03/14/2018 06:38:58
> > AM---Hello all, I’m quite new with Livy and I have a questio]Alexey
> > Romanenko ---03/14/2018 06:38:58 AM---Hello all, I’m quite new with Livy
> > and I have a question regarding Livy development using Intellij I
> >
> > From: Alexey Romanenko <aromanenko....@gmail.com>
> > To: dev@livy.incubator.apache.org
> > Date: 03/14/2018 06:38 AM
> > Subject: Development in Intellij IDEA
> > ------------------------------
> >
> >
> >
> >
> > Hello all,
> >
> > I’m quite new with Livy and I have a question regarding Livy development
> > using Intellij IDEA.
> >
> > I imported maven project (as usually) but I can’t build and, of course,
> > run it directly in IDEA since it can’t find some Scala classes and
> > interfaces, like Logging and Utils, that actually exist in other module
> > (core). So, I have a compile error.
> >
> > In the same time, when I run command "mvn package" from console it works
> > well. It seems like IDEA can’t resolve a question which Scala version to
> > use (since Livy supports two of them: 2.10 and 2.11).
> >
> > So, my question is - how people, who use Intellij IDEA for development,
> > overcame this issue? Is it a well known problem?
> > I’d very appreciate for any hints about that.
> >
> > Thank you,
> > Alexey
> >
> >
> >
>

Reply via email to