Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » CompletionProposal.METHOD_REF fails - but KEYWORD succeeds - why?
CompletionProposal.METHOD_REF fails - but KEYWORD succeeds - why? [message #31491] Wed, 24 September 2008 20:53 Go to next message
Charles Doucette is currently offline Charles DoucetteFriend
Messages: 125
Registered: July 2009
Senior Member
I have a language where the only thing that is modeled is what is in each
source file.
The source files can call other methods from the runtime library which are
not modeled.
I just attempted to implement some automatic completion.
If my completion proposals are of the kind CompletionProposal.METHOD_REF -
they fail to be generated properly and are not listed on the screen.

I ran my language's editor through the debugger, and I found the problem
(but not why):

public LazyScriptCompletionProposal(CompletionProposal proposal,
ScriptContentAssistInvocationContext context) {Assert.isNotNull(proposal);
Assert.isNotNull(context);
Assert.isNotNull(context.getCoreContext()); // this line throws an
AssertionException
fInvocationContext = context;
fProposal = proposal;
}
Re: CompletionProposal.METHOD_REF fails - but KEYWORD succeeds - why? [message #31527 is a reply to message #31491] Thu, 25 September 2008 05:41 Go to previous message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Chuck,

I have looked at the sources and I am not sure that this assert is
really needed so I have commented out it.

Regards,
Alex

Chuck Doucette wrote:
> I have a language where the only thing that is modeled is what is in each
> source file.
> The source files can call other methods from the runtime library which are
> not modeled.
> I just attempted to implement some automatic completion.
> If my completion proposals are of the kind CompletionProposal.METHOD_REF -
> they fail to be generated properly and are not listed on the screen.
>
> I ran my language's editor through the debugger, and I found the problem
> (but not why):
>
> public LazyScriptCompletionProposal(CompletionProposal proposal,
> ScriptContentAssistInvocationContext context) {Assert.isNotNull(proposal);
> Assert.isNotNull(context);
> Assert.isNotNull(context.getCoreContext()); // this line throws an
> AssertionException
> fInvocationContext = context;
> fProposal = proposal;
> }
Previous Topic:IProblemReporter and DLTKProblemReporter - clearMarkers missing and/or deprecated?
Next Topic:[BUILD] R1.0-I
Goto Forum:
  


Current Time: Sun Sep 01 03:33:19 GMT 2024

Powered by FUDForum. Page generated in 0.03553 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top