-
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
Content assist does not activate, inside if() within a switch #1561
Comments
@jjohnstn is such code completion ui? |
also encountered this problem yesterday |
@jukzi Nearly all such completion bugs are due to parsing (e.g. fails only inside a case of a switch inside a foreach) and are fixed in core. That said, if debugging proves otherwise, it can be thrown over to JDT UI. |
@mpalat 4.21 introduced |
This is cause by a parser error: In this case we should be expecting: But instead we get astNode : CompletionOnNameReference which is wrong, I can have a look at this for the next release. ideally we should not get. a parent in this scenario which makes me to doubt the recent switch expression related changes we did at CompletionNodeDetector. |
Well that was quite the ride. It's been 4-5 years since my one tiny Eclipse (Buildship) contribution. But after a few hours of following the bread-crumbs & trying to do things the "new ways", I see there's been quite a bit of effort put into helping devs get set up to contribute changes to certain specific modules of this gigantic jigsaw puzzle software. :-) Wrangling with Ooomph and MyLyn & github pull requests. (I never use any of these things for my own Java development. Simple git command-line for me, normally.) And eventually I can confirm: ctrl+space did indeed work as advertised, in the posted code sample. Many thanks! |
Give me some time, I might be able to share a very simple solution for getting JDT up and running. I have to clean that workspace setup a bit and also test with Eclipse it self.
Thats is because nowadays I use vscode with JDT.LS with few of extensions to develop in JDT as well :). But I think the same target environment setup should work fine in a pure eclipse setup as well. Will post one I get the chance to push to a GitHub repo. |
Hey, thanks for the offer. But I'm actually pretty happy with the path I ended up walking, because it took me through some areas I've been ignoring over the years - I now have one "Eclipse For Committers" installation to browse the JDT source. It launches another (basic) Eclipse with JDT for debugging - just like any other app. The steps are simpler than most of the documentation I'd found made it sound, in the end "following my nose" was easier:
I'm glad JDT has found a 2nd use in VSCode as that's obviously a very popular editor these days. Maybe some short "cheat-sheet" steps could well help lower the barriers for other VSCode-using contributors? |
fixes eclipse-jdt#1561 Also-by: Gayan Perera <[email protected]>
See also : #2106 not involving switches, |
fixes eclipse-jdt#1561 Also-by: Gayan Perera <[email protected]>
fixes #1561 --------- Co-authored-by: Gayan Perera <[email protected]>
…e-jdt#1953) fixes eclipse-jdt#1561 --------- Co-authored-by: Gayan Perera <[email protected]>
…e-jdt#1953) fixes eclipse-jdt#1561 --------- Co-authored-by: Gayan Perera <[email protected]>
I'm migrating bugzilla 576934 here, as requested in (the closely-related) github issue #341
I had upgraded from Eclipse 4.20 > 4.21 to pick up fixes for content assist regressions, but I ran into this still-failing case:
Trying ctrl+space after 'nam' in the incomplete 'if' statement still shows nothing, similarly to bugzilla 573632
Also per a workaround mentioned in there, adding another symbol after the identifier gets completion working again:
if (nam <)
Deleting the closing ')' also kicks it into working:
if (nam
Note, however, that Eclipse by default inserts that closing ')' for us.
I have confirmed this is still present in a recent nightly - Eclipse 2023-12 (4.30) Build id: I20231024-1800
The text was updated successfully, but these errors were encountered: