This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: To those hacking scalac in IntelliJ

4 replies
Grzegorz Kossak...
Joined: 2010-07-13,
User offline. Last seen 42 years 45 weeks ago.

On Thu, Jul 22, 2010 at 9:31 AM, Alexander Podkhalyuzin
wrote:
> We simplified compiling ordinary projects in recent IntelliJ scala plugin
> builds (only nightly builds), and this instruction doesn’t work. Actually
> it’s impossible now to compile scala compiler sources using IntelliJ.
>
> We are going to build scala compiler sources with IntelliJ (after some our
> code patching), so after that I’ll send newer instructions about how to
> build (and without newer instruction I can offer you just to use build
> 0.3.1814).

Thanks for all great responses!

I'll stick to 0.3.1814 for now and will report on my progress on
getting it to work.

PS. Publishing updated intellij projects would more than welcome. :-)

adriaanm
Joined: 2010-02-08,
User offline. Last seen 31 weeks 4 days ago.
Re: To those hacking scalac in IntelliJ
PS. Publishing updated intellij projects would more than welcome. :-)
here are mine: http://github.com/adriaanm/scala/tree/idea -- thanks to Gilles Dubochet for getting me started Gilles set it up to use ant for builds, which should be better at handling dependencies
using community edition 9.0 build 95.390, scala plugin 03.1796
adriaan 
Grzegorz Kossak...
Joined: 2010-07-13,
User offline. Last seen 42 years 45 weeks ago.
Re: To those hacking scalac in IntelliJ

On Thu, Jul 22, 2010 at 9:59 AM, Adriaan Moors wrote:
>> PS. Publishing updated intellij projects would more than welcome. :-)
>
> here are mine: http://github.com/adriaanm/scala/tree/idea -- thanks to
> Gilles Dubochet for getting me started
> Gilles set it up to use ant for builds, which should be better at handling
> dependencies
> using community edition 9.0 build 95.390, scala plugin 03.1796

How long does it take for ant to recompile it so intellij can run it?
(probably packing into a jar can skipped so it should be faster than
just default ant target)

Iulian Dragos 2
Joined: 2009-02-10,
User offline. Last seen 42 years 45 weeks ago.
Re: To those hacking scalac in IntelliJ


On Thu, Jul 22, 2010 at 3:59 PM, Adriaan Moors <adriaan.moors@epfl.ch> wrote:
PS. Publishing updated intellij projects would more than welcome. :-)
here are mine: http://github.com/adriaanm/scala/tree/idea -- thanks to Gilles Dubochet for getting me started Gilles set it up to use ant for builds, which should be better at handling dependencies

In my experience that's not true. One of the main reasons for using and IDE is precisely because it handles dependencies better than ant. Additionally, IntelliJ with fsc (as Lukas described) gives the fastest modify-compile-run cycle on the planet, when it comes to the scala compiler project.
It is a pity the latest nightlies are unusable for scalac..
iulian 

using community edition 9.0 build 95.390, scala plugin 03.1796
adriaan 



--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
rytz
Joined: 2008-07-01,
User offline. Last seen 45 weeks 5 days ago.
Re: To those hacking scalac in IntelliJ
I feel the same as Iulian, the dependency manager in IntelliJ seems to work well,and it's much faster than using ant.
Btw, it's important to set the "maximum heap size" in the "Scala Compiler" settings to 1024 (or more).
Lukas

On Thu, Jul 22, 2010 at 16:07, Grzegorz Kossakowski <grek@google.com> wrote:
On Thu, Jul 22, 2010 at 9:59 AM, Adriaan Moors <adriaan.moors@epfl.ch> wrote:
>> PS. Publishing updated intellij projects would more than welcome. :-)
>
> here are mine: http://github.com/adriaanm/scala/tree/idea -- thanks to
> Gilles Dubochet for getting me started
> Gilles set it up to use ant for builds, which should be better at handling
> dependencies
> using community edition 9.0 build 95.390, scala plugin 03.1796

How long does it take for ant to recompile it so intellij can run it?
(probably packing into a jar can skipped so it should be faster than
just default ant target)

--
Grzegorz

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland