[scala-tools] [netbeans] showing compiler verbose output

View: New views
6 Messages — Rating Filter:   Alert me  

[scala-tools] [netbeans] showing compiler verbose output

by Patrick Wright :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I've downloaded NB 6.8m2 and the latest packaged bits for the Scala
plugin. First steps went well, nice work!

I'm trying to compile a very small Scala project
(http://code.google.com/p/swarm-dpl/) using a compiler plugin
(continuations) and would like to see the compiler output. I've added
-verbose to the compiler options but am not seeing any additional
detail. I tried restarting NB and calling fsc -reset from the command
line, but it looks like the option is not being passed to the
compiler.

Also, SCALA_HOME is set correctly and I can compile these classes from
the CLI but am getting errors when I compile from within NB. Are you
using a packaged compiler, or the one on my system? I'm using a pretty
recent build of 2.8.

patrick@cgbspender:~/dev/Swarm$
>scala
Welcome to Scala version 2.8.0.r18915-b20091005020911 (Java
HotSpot(TM) 64-Bit Server VM, Java 1.6.0_16).


Thanks
Patrick

Re: [scala-tools] [netbeans] showing compiler verbose output

by dcaoyuan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 9, 2009 at 10:52 PM, Patrick Wright <pdoubleya@...> wrote:

> Hi
>
> I've downloaded NB 6.8m2 and the latest packaged bits for the Scala
> plugin. First steps went well, nice work!
>
> I'm trying to compile a very small Scala project
> (http://code.google.com/p/swarm-dpl/) using a compiler plugin
> (continuations) and would like to see the compiler output. I've added
> -verbose to the compiler options but am not seeing any additional
> detail. I tried restarting NB and calling fsc -reset from the command
> line, but it looks like the option is not being passed to the
> compiler.
Add "-verbose" to compiler options via project properties works on me.
You may need to create a new project and move src to it? Please see
attached screenshot.


>
> Also, SCALA_HOME is set correctly and I can compile these classes from
> the CLI but am getting errors when I compile from within NB. Are you
> using a packaged compiler, or the one on my system? I'm using a pretty
> recent build of 2.8.

>
> patrick@cgbspender:~/dev/Swarm$
>>scala
> Welcome to Scala version 2.8.0.r18915-b20091005020911 (Java
> HotSpot(TM) 64-Bit Server VM, Java 1.6.0_16).
>

Is your Scala version 2.8.0.r18915 ? If so, we need version above r18966

-Caoyuan


SetVerbose.png (64K) Download Attachment

Re: [scala-tools] [netbeans] showing compiler verbose output

by Andrew Gaydenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Saturday 10 October 2009 06:35:40 Caoyuan wrote:

> Add "-verbose" to compiler options via project properties works on me.
> You may need to create a new project and move src to it? Please see
> attached screenshot.

'-verbose' works for me also, rather '-unchecked' and '-deprecation'.

Re: [scala-tools] [netbeans] showing compiler verbose output

by dcaoyuan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 10, 2009 at 10:57 AM, Andrew Gaydenko <a@...> wrote:
> On Saturday 10 October 2009 06:35:40 Caoyuan wrote:
>
>> Add "-verbose" to compiler options via project properties works on me.
>> You may need to create a new project and move src to it? Please see
>> attached screenshot.
>
> '-verbose' works for me also, rather '-unchecked' and '-deprecation'.
>

But, if more than one params added, only the first one works. May need
to file a ticket for scala ant tool.

-Caoyuan

Parent Message unknown Re: [scala-tools] [netbeans] showing compiler verbose output

by Andrew Gaydenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Saturday 10 October 2009 07:04:15 you wrote:
> > '-verbose' works for me also, rather '-unchecked' and '-deprecation'.
>
> But, if more than one params added, only the first one works. May need
> to file a ticket for scala ant tool.

'-unchecked', being the *only* option, doesn't work for me - I get:

"...
warning: there were unchecked warnings; re-run with -unchecked for details
one warning found
..."

(it is for self-contained project not depending on other Scala projects)

Re: [scala-tools] [netbeans] showing compiler verbose output

by dcaoyuan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 10, 2009 at 11:14 AM, Andrew Gaydenko <a@...> wrote:
> On Saturday 10 October 2009 07:04:15 you wrote:
>> > '-verbose' works for me also, rather '-unchecked' and '-deprecation'.
>>
>> But, if more than one params added, only the first one works. May need
>> to file a ticket for scala ant tool.
>
> '-unchecked', being the *only* option, doesn't work for me - I get:

It's cause by I also pass this param to javac, I'll try to fix it. It
seems we need two lines one for scalac's params, one for javac's

>
> "...
> warning: there were unchecked warnings; re-run with -unchecked for details
> one warning found
> ..."
>
> (it is for self-contained project not depending on other Scala projects)
>