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

[netbeans] minimizing Shift-F11

7 replies
anli
Joined: 2008-08-19,
User offline. Last seen 1 day 1 hour ago.

Caoyuan, hi!

I have noticed a fixing of https://lampsvn.epfl.ch/trac/scala/ticket/2280 in
https://lampsvn.epfl.ch/trac/scala/changeset/19310

The ticket was opened wrt Eclipse plugin, but, as I can see, it is related to
compiler interaction with IDEs in a whole.

Can this news be useful for the NetBeans plugin to eliminate frequent Shift-
F11 (as far as F11 is unuseful very often). It is indeed a big problem -
basing on ant scalac/fsc tasks noticeably eats development time and feel.

Andrew

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: [netbeans] minimizing Shift-F11

On Wed, Oct 28, 2009 at 12:13 AM, Andrew Gaydenko wrote:
> Caoyuan, hi!
>
> I have noticed a fixing of
https://lampsvn.epfl.ch/trac/scala/ticket/2280 in
> https://lampsvn.epfl.ch/trac/scala/changeset/19310
>
> The ticket was opened wrt Eclipse plugin, but, as I can see, it is related to
> compiler interaction with IDEs in a whole.

If this change also affects fsc ant task (I think so), then NetBeans
should benefit from it too. We may build a snapshot and test it. (Do
not need to wait for a new org-netbeans-libs-scala.nbm, which is only
used to run plugin itself, all "ant build" on regular scala project
created by NetBeans will be applied upon $SCALA_HOME)

--Caoyuan

> Can this news be useful for the NetBeans plugin to eliminate frequent Shift-
> F11 (as far as F11 is unuseful very often). It is indeed a big problem -
> basing on ant scalac/fsc tasks noticeably eats development time and feel.
>
>
> Andrew
>

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: [netbeans] minimizing Shift-F11

On Wed, Oct 28, 2009 at 12:20 AM, Caoyuan wrote:
> On Wed, Oct 28, 2009 at 12:13 AM, Andrew Gaydenko wrote:
>> Caoyuan, hi!
>>
>> I have noticed a fixing of
https://lampsvn.epfl.ch/trac/scala/ticket/2280 in
>> https://lampsvn.epfl.ch/trac/scala/changeset/19310
>>
>> The ticket was opened wrt Eclipse plugin, but, as I can see, it is related to
>> compiler interaction with IDEs in a whole.
>
> If this change also affects fsc ant task (I think so), then NetBeans
> should benefit from it too. We may build a snapshot and test it. (Do
> not need to wait for a new org-netbeans-libs-scala.nbm, which is only
> used to run plugin itself, all "ant build" on regular scala project
> created by NetBeans will be applied upon $SCALA_HOME)

BTW, the original bug seemed only affected Eclipse plugin. For
NetBeans, the project is built via fsc ant task, it should already be
that only dependent files are re-built when one source is modified.

>
> --Caoyuan
>
>> Can this news be useful for the NetBeans plugin to eliminate frequent Shift-
>> F11 (as far as F11 is unuseful very often). It is indeed a big problem -
>> basing on ant scalac/fsc tasks noticeably eats development time and feel.
>>
>>
>> Andrew
>>
>

anli
Joined: 2008-08-19,
User offline. Last seen 1 day 1 hour ago.
Re: [netbeans] minimizing Shift-F11

On Tuesday 27 October 2009 19:29:49 Caoyuan wrote:
> BTW, the original bug seemed only affected Eclipse plugin. For
> NetBeans, the project is built via fsc ant task, it should already be
> that only dependent files are re-built when one source is modified.
>
> > --Caoyuan

Say, when

- edit some A.scala,
- switch to some B.scala with main()
- Shift-F6

it is common to get an error "type X noy found" on attempt to compile A.scala,
where X is, say, a trait defined in third C.scala file. Probably, it is
something related to "not-complete-parsing" problem.

anli
Joined: 2008-08-19,
User offline. Last seen 1 day 1 hour ago.
Re: [netbeans] minimizing Shift-F11

On Tuesday 27 October 2009 20:33:16 Andrew Gaydenko wrote:
> Say, when
>
> - edit some A.scala,
> - switch to some B.scala with main()
> - Shift-F6
>
> it is common to get an error "type X noy found" on attempt to compile
> A.scala, where X is, say, a trait defined in third C.scala file. Probably,
> it is something related to "not-complete-parsing" problem.

...or just edit A.scala, F11 and get "type X not found".

(latests trunk is in use)

anli
Joined: 2008-08-19,
User offline. Last seen 1 day 1 hour ago.
Re: [netbeans] minimizing Shift-F11

On Tuesday 27 October 2009 22:47:34 Andrew Gaydenko wrote:
> On Tuesday 27 October 2009 20:33:16 Andrew Gaydenko wrote:
> > Say, when
> >
> > - edit some A.scala,
> > - switch to some B.scala with main()
> > - Shift-F6
> >
> > it is common to get an error "type X noy found" on attempt to compile
> > A.scala, where X is, say, a trait defined in third C.scala file.
> > Probably, it is something related to "not-complete-parsing" problem.
>
> ...or just edit A.scala, F11 and get "type X not found".
>
> (latests trunk is in use)

Caoyuan,

Another frequent error (just on F11) is like such one:

"error: value cd is not a member of package ab
import ab.cd._
one error found"

Of course, package "ab.cd" does exist.

Andrew

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: [netbeans] minimizing Shift-F11
anli
Joined: 2008-08-19,
User offline. Last seen 1 day 1 hour ago.
Re: [netbeans] minimizing Shift-F11

On Thursday 29 October 2009 16:51:32 Caoyuan wrote:
> I'll take a look later. BTW, you are using the latest Scala 2.8.0
> trunk code, right?

Sure! - both the plugin and Scala itself (if last one buildable).

Andrew

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