Debugger no longer working in NetBeans Scala plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Debugger no longer working in NetBeans Scala plugin

Alan Burlison
It's a while since I last used the debugger from the NetBeans Scala
plugin and whilst it used to work just fine it no longer does. When
running a program with breakpoints set I get the following sort of
message for amy breakpoints I set:

Not able to submit breakpoint LineBreakpoint Main.scala : 14, reason:
The breakpoint is set outside of any class.

I've upgraded multiple things since it last worked - JVM, Scala,
NetBeans and the NetBeans Scala plugin and I've not been able to figure
out which the culprit is despite rolling back both the JVM and Scala
versions. I've replicated this on both Linux and Solaris so it seems to
be something generic rather than platform-specific.

JVM 1.8.0_25
Scala 2.11.4
NetBeans 8.0.1
Scala Plugin 1.6.3.0

Anyone have any suggestions as to how to track this down?

Thanks,

--
Alan Burlison
--

--
You received this message because you are subscribed to the Google Groups "scala-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Debugger no longer working in NetBeans Scala plugin

dcaoyuan
Oh, you are using Scala 2.11.x, that requires the new plugin which is not released yet. 

But you can try to build the latest plugin which is under developing and works for Scala 2.10.x and 2.11.x :


On Fri, Nov 14, 2014 at 11:20 PM, Alan Burlison <[hidden email]> wrote:
It's a while since I last used the debugger from the NetBeans Scala plugin and whilst it used to work just fine it no longer does. When running a program with breakpoints set I get the following sort of message for amy breakpoints I set:

Not able to submit breakpoint LineBreakpoint Main.scala : 14, reason: The breakpoint is set outside of any class.

I've upgraded multiple things since it last worked - JVM, Scala, NetBeans and the NetBeans Scala plugin and I've not been able to figure out which the culprit is despite rolling back both the JVM and Scala versions. I've replicated this on both Linux and Solaris so it seems to be something generic rather than platform-specific.

JVM 1.8.0_25
Scala 2.11.4
NetBeans 8.0.1
Scala Plugin 1.6.3.0

Anyone have any suggestions as to how to track this down?

Thanks,

--
Alan Burlison
--

--
You received this message because you are subscribed to the Google Groups "scala-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Debugger no longer working in NetBeans Scala plugin

Alan Burlison
On 14/11/2014 15:27, Caoyuan wrote:

> Oh, you are using Scala 2.11.x, that requires the new plugin which is not
> released yet.
>
> But you can try to build the latest plugin which is under developing and
> works for Scala 2.10.x and 2.11.x :
>
> https://github.com/dcaoyuan/nbscala

Ah, that would explain it - I've switched back to Scala 2.10.4, blown
away my ~/.cache/netbeans directory and tried again and it seems to be
working again - thank you :-)

There's nothing I desperately need from Scala 2.11 so I can switch back
to 2.10.4 for now. How long do you think it will be before support for
Scala 2.11 will be available in NBScala? (No guarantees expected,
obviously) If it's not too far away I'll wait, if not I'll see if I can
remember how to build NBScala myself :-)

Thanks,

--
Alan Burlison
--

--
You received this message because you are subscribed to the Google Groups "scala-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Debugger no longer working in NetBeans Scala plugin

dcaoyuan


On Fri, Nov 14, 2014 at 11:52 PM, Alan Burlison <[hidden email]> wrote:
On 14/11/2014 15:27, Caoyuan wrote:

Oh, you are using Scala 2.11.x, that requires the new plugin which is not
released yet.

But you can try to build the latest plugin which is under developing and
works for Scala 2.10.x and 2.11.x :

https://github.com/dcaoyuan/nbscala

Ah, that would explain it - I've switched back to Scala 2.10.4, blown away my ~/.cache/netbeans directory and tried again and it seems to be working again - thank you :-)

There's nothing I desperately need from Scala 2.11 so I can switch back to 2.10.4 for now. How long do you think it will be before support for Scala 2.11 will be available in NBScala? (No guarantees expected, obviously) If it's not too far away I'll wait, if not I'll see if I can remember how to build NBScala myself :-)

Hope to release in Nov.
 


Thanks,

--
Alan Burlison
--

--
You received this message because you are subscribed to the Google Groups "scala-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Debugger no longer working in NetBeans Scala plugin

Alan Burlison
On 14/11/2014 16:03, Caoyuan wrote:

> Hope to release in Nov.

In which case I can wait.

Thanks for all the effort you continue to put into NBScala :-)

--
Alan Burlison
--

--
You received this message because you are subscribed to the Google Groups "scala-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Debugger no longer working in NetBeans Scala plugin

Alan Burlison
In reply to this post by dcaoyuan
On 14 November 2014 16:03, Caoyuan <[hidden email]> wrote:

> Hope to release in Nov.

I've built the current version in the repo and it's looking good so
far, the debugger now works with Scala 2.11.4. I hit one exception but
I suspect it may be a NB issue rather than anything to do with the
NBScala module, see
http://statistics.netbeans.org/analytics/exception.do?id=751432

--
Alan Burlison
--

--
You received this message because you are subscribed to the Google Groups "scala-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Debugger no longer working in NetBeans Scala plugin

Alan Burlison
And another: http://statistics.netbeans.org/analytics/exception.do?id=751439

--
Alan Burlison
--

--
You received this message because you are subscribed to the Google Groups "scala-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Debugger no longer working in NetBeans Scala plugin

Alan Burlison
In reply to this post by Alan Burlison
> I've built the current version in the repo and it's looking good so
> far, the debugger now works with Scala 2.11.4.

Spoke too soon. It works sometimes, but other times although it sets
and triggers a breakpoint correctly, the editor doesn't get updated to
the correct position and stepping over code with F8 seems to step into
the JVM runtime support code. Variable display still looks OK though,

--
Alan Burlison
--

--
You received this message because you are subscribed to the Google Groups "scala-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.