Skip to main content



      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 16:53 Go to next message
Eclipse UserFriend
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 01:41 Go to previous message
Eclipse UserFriend
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: Mon May 12 03:57:46 EDT 2025

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

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

Back to the top