Hi, I'm getting this error while trying to get the completion list:
Method threw 'com.intellij.openapi.progress.ProcessCanceledException' exception.
I'm adding my own code completion contributor for some XML files, and it's working fine.
This error only happens when I'm requesting the completion list after something like "<t"
If I request the list in a white space it works as expeced.
If I request the list after "<" it works but it tries to insert a new "<".
Do you know what could be the cause of this behavior?
I'm adding a string like "<sometag></sometag>" with the LookupElement.
So I was expecting if I write "<s" and press Ctrl+Space then have the autocomplete for "<sometag></sometag>"
My results are calculated correctly and my completion method is finishing without throwing any error.
I've tried adding "_result.stophere();" but it stills throwing the error (I don't see the error in the IDE, I'm seeing only debugging, the IDE just doesn't show any completion list)
This is my code for the LookupElement:
String name = entry.getKey();
LookupElement element = LookupElementBuilder.create(entry.getValue()) // entry.getValue() == "<sometag></sometag>"
//LookupElement element = LookupElementBuilder.create("I was thinking in using this string inside my weigher", entry.getValue())
If I execute the code before (LookupElementBuilder without Object), the behavior is a bit different.
I'm not getting the list when I request it after "<s" but when I request it after "<" it's not adding another "<" instantly (without selecting any item in the completion list)
But If I choose the item from the completion list (with enter, click or tab, it doesn't matter) it inserts something like: "<<sometag></sometag>" (note the duplicated "<")
Please tell me what I'm doing wrong, I don't know how to solve this :(