question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Completion no longer shows sensible candidates in `else` branches

See original GitHub issue

On latest master (f4fad03d1410a4b014fd24de4e84f25f98f79879) Completion candidates in the else branches started to be useless, see this short demo:

https://user-images.githubusercontent.com/38700/122011481-7119e400-cdbc-11eb-8e33-7e11f1e55999.mp4

This is in the https://github.com/crate/crate codebase: https://github.com/crate/crate/blob/master/server/src/main/java/io/crate/protocols/postgres/PostgresWireProtocol.java#L645 in case you need something to reproduce. (I haven’t yet tried to see if this happens on smaller projects)

If I checkout the commit before https://github.com/eclipse/eclipse.jdt.ls/commit/9c41c18a2c07e2c1565a83212df2e08d7c407f1d everything is good again.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
snjezacommented, Jun 15, 2021
1reaction
snjezacommented, Jun 15, 2021

The following code doesn’t work too:

private void test(String s, int i) {
  if (i > 2) {
  } else {
    s.|
    System.out.println("b");
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Arizona 2022 General Election Publicity Pamphlet
NOVEMBER 8, 2022 ☆ GENERAL ELECTION. A MESSAGE TO ARIZONA VOTERS. Dear Arizona Voter,. Thank you for learning more about the issues that ......
Read more >
Election Security Rumor vs. Reality - CISA
When a ballot cannot be read by a scanner at a voting site, election officials apply procedures to securely store the ballots until...
Read more >
Security Clearance Frequently Asked Questions
Answers to some of the most frequently asked questions about U.S. Government security clearances and jobs requiring security clearance.
Read more >
Patterns for Managing Source Code Branches - Martin Fowler
One developer, Scarlett, needs to make a few changes so she clones that git repository and checks out the master branch. She makes...
Read more >
The Public and Broadcasting
In exchange for obtaining a valuable license to operate a broadcast station using the public airwaves, each radio and television licensee is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found