Skip to content
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

Hack to prevent OperationCanceledException from being propagated to logs #1052

Open
wants to merge 802 commits into
base: dom-with-javac
Choose a base branch
from

Conversation

datho7561
Copy link

No description provided.

@datho7561 datho7561 force-pushed the dom-with-javac-cancellation-hack branch 2 times, most recently from 4beec1c to 2510c10 Compare December 12, 2024 15:01
mickaelistria and others added 26 commits December 13, 2024 13:14
It may provide finer grain information (eg allows to distinguish permits
vs sealed issues)
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
And trim out some non-compatible args from problem arguments.
eg.
```java
Object asdf = new Object<>();
```

Also fixes the quickfix to remove it.

Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
…ient

Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: David Thompson <davthomp@redhat.com>
mickaelistria and others added 26 commits December 13, 2024 13:14
In some cases (such as switch expressions), Javac generates some extra
.class files of nested anonymous types. Those are only created duing the
"generate" phase, and are not detected during "analyze"; so we add in
the listener for Generate ability to record such newly generated
classes.

Fixes eclipse-jdtls#1014
This reverts commit 170822b.
And it adapts it so that the if the resulting node after adjust is not a
SimpleName or a Literal (ie is structured), then this previous node is
used as context
Most issues related to token and positions are covered.
Only do it when the type isn't in the same class and use `null` instead
of a 0 length array

Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
- select the correct node to complete when working with variable
  declarations
- for FieldDeclarations, don't allow using declarations that occur after
  the current declaration when completing the initializer
  (eg. do not suggest `c` nor `b` in `int a = 1; int b = |; int c = 3;`)
  - also handle field declarations with multiple variable declaration
    fragments properly
    (eg. allow `a` as a completion in: `int a = 2, b = |`)

Signed-off-by: David Thompson <davthomp@redhat.com>
I think I'm missing some edge cases, but this should fix a few cases.

Signed-off-by: David Thompson <davthomp@redhat.com>
Sometimes, types were collected by the scrapeBindings method and the
type search.
This PR prevents suggesting the type from the type search if it was
already suggested through publishFromScope

Should fix ~10 test cases

Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
ZipFileSystem can have its underlying channel closed if a consuming
thread was interrupted while reading (eg aborted hover).
Override the fileManager so that the channel is not closed.
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Those allow to store a more accurate key.
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
Should get all the "favourite static imports" tests passing;
around 33 new passing tests and no regressions.

Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 force-pushed the dom-with-javac-cancellation-hack branch from 2510c10 to 8cfd179 Compare December 13, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants