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:
78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce ssorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru ctorAccessorImpl.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.jav a:
431)
at
org.netbeans.api.debugger.ActionsManager.isEnabled(ActionsManager.java:
264)
at
org.netbeans.modules.debugger.ui.actions.DebuggerAction.isEnabled(DebuggerA ction.java:
128)
at
org.netbeans.modules.debugger.ui.actions.DebuggerAction.<init>(DebuggerActi on.java:
77)
at
org.netbeans.modules.debugger.ui.actions.DebuggerAction.createContinueActio n(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(DelegatingMethodAccessorImp l.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.ja va:
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