www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Boring exceptions with Descent

reply Qian Xu <qian.xu stud.tu-ilmenau.de> writes:
Hi Ary and All,

I am suffering from an IDE exception recently. 

The log info looks as follows:

----------------------------------------------------------------------
!ENTRY org.eclipse.core.jobs 4 2 2009-10-19 14:33:17.381
!MESSAGE An internal error occurred during: "Requesting D AST from
selection".
!STACK 0
java.lang.NullPointerException
        at
descent.core.dom.DefaultBindingResolver.resolveIdentifierExp(DefaultBindingResolver.java:741)
        at
descent.core.dom.DefaultBindingResolver.resolveName(DefaultBindingResolver.java:526)
        at descent.core.dom.Name.resolveBinding(Name.java:88)
        at
descent.internal.ui.search.NaiveOccurrencesFinder.initialize(NaiveOccurrencesFinder.java:74)
        at
descent.internal.ui.javaeditor.JavaEditor.updateOccurrenceAnnotations(JavaEditor.java:3060)
        at
descent.internal.ui.javaeditor.JavaEditor$5.selectionChanged(JavaEditor.java:3147)
        at
descent.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:163)
        at
descent.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$3.run(SelectionListenerWithASTManager.java:140)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
----------------------------------------------------------------------

Does anybody know why?
I am using openSUSE 11.1 + Eclipse 3.5 + Descent (latest SVN-checkout)


Best regards
Oct 19 2009
parent reply Ary Borenszweig <ary esperanto.org.ar> writes:
Qian Xu wrote:
 Hi Ary and All,
 
 I am suffering from an IDE exception recently. 
 
 The log info looks as follows:
 
 ----------------------------------------------------------------------
 !ENTRY org.eclipse.core.jobs 4 2 2009-10-19 14:33:17.381
 !MESSAGE An internal error occurred during: "Requesting D AST from
 selection".
 !STACK 0
 java.lang.NullPointerException
         at
 descent.core.dom.DefaultBindingResolver.resolveIdentifierExp(DefaultBindingResolver.java:741)
 ----------------------------------------------------------------------
 
 Does anybody know why?
 I am using openSUSE 11.1 + Eclipse 3.5 + Descent (latest SVN-checkout)
 
 
 Best regards
Hi Qian Xu, What's the D source code for that exception to be thrown?
Oct 19 2009
parent reply Qian Xu <qian.xu stud.tu-ilmenau.de> writes:
Ary Borenszweig wrote:

 Qian Xu wrote:
 Hi Ary and All,
 
 I am suffering from an IDE exception recently.
 
 The log info looks as follows:
 
 ----------------------------------------------------------------------
 !ENTRY org.eclipse.core.jobs 4 2 2009-10-19 14:33:17.381
 !MESSAGE An internal error occurred during: "Requesting D AST from
 selection".
 !STACK 0
 java.lang.NullPointerException
         at
descent.core.dom.DefaultBindingResolver.resolveIdentifierExp(DefaultBindingResolver.java:741)
 ----------------------------------------------------------------------
 
 Does anybody know why?
 I am using openSUSE 11.1 + Eclipse 3.5 + Descent (latest SVN-checkout)
 
 
 Best regards
Hi Qian Xu, What's the D source code for that exception to be thrown?
I cannot remember right now, but I am sure it was while typing. BTW: The code block within a "version" statement, cannot be folded. I regard this as a small bug. ^^) Best regards, Qian
Oct 19 2009
parent reply Qian Xu <qian.xu stud.tu-ilmenau.de> writes:
Right now it happened once, when I switched the focus back from KNode (the
news reader program) to Eclipse.

The error is the same. The dialog said: 

'Requesting D AST from selection' has encountered a problem. 
An internal error occurred during: "Request D AST from selection".
Oct 19 2009
parent reply Ary Borenszweig <ary esperanto.org.ar> writes:
Qian Xu wrote:
 Right now it happened once, when I switched the focus back from KNode (the
 news reader program) to Eclipse.
 
 The error is the same. The dialog said: 
 
 'Requesting D AST from selection' has encountered a problem. 
 An internal error occurred during: "Request D AST from selection".
Sorry, without the source code I will not be able to reproduce it. :-(
Oct 19 2009
next sibling parent Qian Xu <qian.xu stud.tu-ilmenau.de> writes:
Ary Borenszweig wrote:

 Qian Xu wrote:
 Right now it happened once, when I switched the focus back from KNode
 (the news reader program) to Eclipse.
 
 The error is the same. The dialog said:
 
 'Requesting D AST from selection' has encountered a problem.
 An internal error occurred during: "Request D AST from selection".
Sorry, without the source code I will not be able to reproduce it. :-(
besides the log file of Eclipse, is there anything can be helpful?
Oct 20 2009
prev sibling parent reply Qian Xu <qian.xu stud.tu-ilmenau.de> writes:
Ary Borenszweig wrote:

 Qian Xu wrote:
 Right now it happened once, when I switched the focus back from KNode
 (the news reader program) to Eclipse.
 
 The error is the same. The dialog said:
 
 'Requesting D AST from selection' has encountered a problem.
 An internal error occurred during: "Request D AST from selection".
Sorry, without the source code I will not be able to reproduce it. :-(
I think it can be anything. For instance, I just tried to modify this code block char[] jsonstring; void emit (char[] s) {jsonstring ~= s;} json.print(&emit); I moved cursor after "print(" and then typed "func". I saw this exception again.
Oct 20 2009
parent reply Ary Borenszweig <ary esperanto.org.ar> writes:
Qian Xu wrote:
 Ary Borenszweig wrote:
 
 Qian Xu wrote:
 Right now it happened once, when I switched the focus back from KNode
 (the news reader program) to Eclipse.

 The error is the same. The dialog said:

 'Requesting D AST from selection' has encountered a problem.
 An internal error occurred during: "Request D AST from selection".
Sorry, without the source code I will not be able to reproduce it. :-(
I think it can be anything. For instance, I just tried to modify this code block char[] jsonstring; void emit (char[] s) {jsonstring ~= s;} json.print(&emit); I moved cursor after "print(" and then typed "func". I saw this exception again.
Hi Qian Xu, I uploaded a new version. Can you update and see if the error is gone?
Oct 20 2009
parent Qian Xu <qian.xu stud.tu-ilmenau.de> writes:
Ary Borenszweig wrote:
 I uploaded a new version. Can you update and see if the error is gone?
Currently it works well ^^)
Oct 20 2009