Enclojure breaks all debugging in NetBeans 6.5 beta

2 views
Skip to first unread message

Chas Emerick

unread,
Aug 28, 2008, 4:49:28 PM8/28/08
to enclojure
I know that enclojure is currently targeted at NB 6.1, but I thought
I'd report this, as 6.5 is coming pretty quickly.

When enclojure is installed in NB 6.5 beta, it causes (or is
associated with) an exception at startup that makes it impossible to
set a line breakpoint (in Java -- I've not really tried the clojure
debugging yet). Specifically, clicking in the left margin of Java
file has no effect, and Debug/Toggle Line Breakpoint is permanently
disabled when enclojure is installed.

The exception that is thrown at startup is:

Annotation: value =
org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueAction
from Actions/Debug/org-netbeans-modules-debugger-ui-actions-
ContinueAction.instance
Annotation: value =
org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueAction
from Actions/Debug/org-netbeans-modules-debugger-ui-actions-
ContinueAction.instance
Annotation: value =
org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueAction
from Actions/Debug/org-netbeans-modules-debugger-ui-actions-
ContinueAction.instance
value =
org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueAction
from Actions/Debug/org-netbeans-modules-debugger-ui-actions-
ContinueAction.instance
value =
org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueAction
from Actions/Debug/org-netbeans-modules-debugger-ui-actions-
ContinueAction.instance
Caused: java.lang.AssertionError: Cannot be called outside EQ!
at
org.netbeans.modules.project.ui.actions.LookupSensitiveAction.init(LookupSensitiveAction.java:
99)
at
org.netbeans.modules.project.ui.actions.LookupSensitiveAction.isEnabled(LookupSensitiveAction.java:
124)
at
org.enclojure.clojure.debugger.actions.MainProjectManager.<init>(MainProjectManager.java:
71)
at
org.enclojure.clojure.debugger.actions.MainProjectManager.<clinit>(MainProjectManager.java:
55)
at
org.enclojure.clojure.debugger.actions.ClojureRunToCursorActionProvider.<init>(ClojureRunToCursorActionProvider.java:
78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.netbeans.api.debugger.Lookup
$MetaInf.createInstance(Lookup.java:378)
at org.netbeans.api.debugger.Lookup$MetaInf.access$1300(Lookup.java:
211)
at org.netbeans.api.debugger.Lookup$MetaInf
$MetaInfLookupList.fillInstances(Lookup.java:611)
at org.netbeans.api.debugger.Lookup$MetaInf
$MetaInfLookupList.<init>(Lookup.java:599)
at org.netbeans.api.debugger.Lookup$MetaInf
$MetaInfLookupList.<init>(Lookup.java:592)
at org.netbeans.api.debugger.Lookup$MetaInf
$MetaInfLookupList.<init>(Lookup.java:587)
at org.netbeans.api.debugger.Lookup$MetaInf.lookup(Lookup.java:245)
at
org.netbeans.api.debugger.ActionsManager.initActionImpls(ActionsManager.java:
431)
at
org.netbeans.api.debugger.ActionsManager.isEnabled(ActionsManager.java:
264)
at
org.netbeans.modules.debugger.ui.actions.DebuggerAction.isEnabled(DebuggerAction.java:
128)
at
org.netbeans.modules.debugger.ui.actions.DebuggerAction.<init>(DebuggerAction.java:
77)
at
org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueAction(DebuggerAction.java:
148)
Caused: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.netbeans.core.startup.layers.BinaryFS
$AttrImpl.methodValue(BinaryFS.java:541)
at org.netbeans.core.startup.layers.BinaryFS
$AttrImpl.getValue(BinaryFS.java:485)
at org.netbeans.core.startup.layers.BinaryFS
$BFSBase.getAttribute(BinaryFS.java:370)
at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:
826)
at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:
786)
at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:
822)
at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:
786)
at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:
719)
at org.openide.loaders.InstanceDataObject
$Ser.instanceCreate(InstanceDataObject.java:1245)
at
org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:
749)
at
org.netbeans.core.ShortcutsFolder.readShortcuts(ShortcutsFolder.java:
165)
at org.netbeans.core.ShortcutsFolder.refresh(ShortcutsFolder.java:
129)
at org.netbeans.core.ShortcutsFolder.<init>(ShortcutsFolder.java:114)
at
org.netbeans.core.ShortcutsFolder.initShortcuts(ShortcutsFolder.java:
92)
at org.netbeans.core.NonGui.initializeMainWindow(NonGui.java:151)
at org.netbeans.core.NonGui.run(NonGui.java:103)
at org.netbeans.core.startup.Main.start(Main.java:324)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:
110)
[catch] at java.lang.Thread.run(Thread.java:613)


Commenting out lines 69-71 in MainProjectManager.java eliminates that
exception, allows Java debugging to work properly, and enclojure works
nicely otherwise. I'm afraid I'm totally out of my depth w.r.t. the
NB debugger, so I didn't dig into things much further than that.

Thanks,

- Chas

Eric Thorsen

unread,
Aug 29, 2008, 6:13:22 PM8/29/08
to enclojure
Once I get this next release out I will check enclojure out on 6.5.

Thanks for the report!
Eric


On Aug 28, 4:49 pm, Chas Emerick <cemer...@snowtide.com> wrote:
> I know that enclojure is currently targeted at NB 6.1, but I thought
> I'd report this, as 6.5 is coming pretty quickly.
>
> When enclojure is installed in NB 6.5 beta, it causes (or is
> associated with) an exception at startup that makes it impossible to
> set a line breakpoint (in Java -- I've not really tried the clojure
> debugging yet).  Specifically, clicking in the left margin of Java
> file has no effect, and Debug/Toggle Line Breakpoint is permanently
> disabled when enclojure is installed.
>
> The exception that is thrown at startup is:
>
> Annotation: value =
> org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueActio n
> from Actions/Debug/org-netbeans-modules-debugger-ui-actions-
> ContinueAction.instance
> Annotation: value =
> org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueActio n
> from Actions/Debug/org-netbeans-modules-debugger-ui-actions-
> ContinueAction.instance
> Annotation: value =
> org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueActio n
> from Actions/Debug/org-netbeans-modules-debugger-ui-actions-
> ContinueAction.instance
> value =
> org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueActio n
> from Actions/Debug/org-netbeans-modules-debugger-ui-actions-
> ContinueAction.instance
> value =
> org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueActio n
> from Actions/Debug/org-netbeans-modules-debugger-ui-actions-
> ContinueAction.instance
> Caused: java.lang.AssertionError: Cannot be called outside EQ!
>         at
> org.netbeans.modules.project.ui.actions.LookupSensitiveAction.init(LookupSe nsitiveAction.java:
> 99)
>         at
> org.netbeans.modules.project.ui.actions.LookupSensitiveAction.isEnabled(Loo kupSensitiveAction.java:
> 124)
>         at
> org.enclojure.clojure.debugger.actions.MainProjectManager.<init>(MainProjec tManager.java:
> 71)
>         at
> org.enclojure.clojure.debugger.actions.MainProjectManager.<clinit>(MainProj ectManager.java:
> 55)
>         at
> org.enclojure.clojure.debugger.actions.ClojureRunToCursorActionProvider.<in it>(ClojureRunToCursorActionProvider.java:
Reply all
Reply to author
Forward
0 new messages