-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
completion returns no results with pattern matching #2107
base: master
Are you sure you want to change the base?
Conversation
@srikanth-sankaran @iloveeclipse I have updated the PR.
I left this part out. The PR doesn't touch the bits field.
It also fixes https://bugs.eclipse.org/bugs/show_bug.cgi?id=568934#c8 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=568934#c6 If you agree, I can add a test. |
No, this fix is not correct. It is kludgy and may work but I can't predict what other problems it may cause down the road. Basically you are pairing a The real problem as I outlined on the bug earlier is due to wrong parse tree recovery. Can you check why the scanner doesn't declare EOF upon seeing the completion at things.is| and why it returns the token Object at all ? As you can see the two statements get jammed into one things.is| Object so it appears as though you are completing on a nested type, while you are actually completing on a QNR. |
I have tried it and I get:
There isn't
I have checked the following code:
the parse tree recovered is
The parser also returns CompletionOnQualifiedTypeReference. It works because the parser finds the Based on it and the fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=287939 I have created a new PR - 970acaf
This part is removed. The recovered parse tree with the PR is:
@srikanth-sankaran Could you, please, review. |
I have updated the PR. It works similar to CA in
I have also added some tests. |
What it does
Fixes #2106, https://bugs.eclipse.org/bugs/show_bug.cgi?id=568934#c8 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=568934#c6
How to test
try CA at |
Without the patch:
With the patch:
I will add a test.