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

Log type #851

Closed
Closed

Conversation

mickaelistria
Copy link

No description provided.

mickaelistria and others added 30 commits September 18, 2024 14:54
- Also fix a mostly unrelated classcast exception

Signed-off-by: David Thompson <[email protected]>
…-jdt#597)

fix: eclipse-jdt#592

* Use simple name length instead of javac node length.
* consider the fake name and error names when calculating length.
* skip error and fake identifier nodes from position update.
* improve fix how position is calculated
- Fixes error when executing cleanups in the Eclipse IDE
- Cleanups still don't work (they don't do anything)

Signed-off-by: David Thompson <[email protected]>
Fixes some problem ids, which should in turn fix some quickfixes in the
jdtls suite.

Signed-off-by: David Thompson <[email protected]>
Small fix to generic error range fixer as well:
length should always be at least one so that the error is visible
somewhere.

Signed-off-by: David Thompson <[email protected]>
Should fix 3 tests

Signed-off-by: David Thompson <[email protected]>
…e-jdt#621)

* Fix some bugs requiring == for multiple resolutions on a node

Signed-off-by: Rob Stryker <[email protected]>

* Cleanup

Signed-off-by: Rob Stryker <[email protected]>

---------

Signed-off-by: Rob Stryker <[email protected]>
Co-authored-by: Rob Stryker <[email protected]>
The main goal of this PR is to get the quick fix for the following case
working:

```java
public class MyClass extends java.util.List {

}
```

I needed to redo a lot of the type variable and method param/arg code in
order to accomplish this.

Signed-off-by: David Thompson <[email protected]>
* Report diagnostics for the unused imports & private members & local variables
- var in method without initializer (eg `var i;`)
- attempt to invoke `.toString()` on a method that returns `int`

Signed-off-by: David Thompson <[email protected]>
mickaelistria and others added 22 commits September 18, 2024 15:09
This reverts commit 27d1ddb.
It causes many regressions on JDT-LS.
This reverts commit 2aa2631.
Improve Lombok support by running analysis less greedily
This one deals mostly with explicit this param.

Signed-off-by: David Thompson <[email protected]>
requires 1 VM arg per line
eg. preserve the `m[]` in the AST in the following case,
(despite the fact that it's invalid),
since javac does.

```java
int[] foo = new int[m[]];
```

Signed-off-by: David Thompson <[email protected]>
Skip in case we're running tests to remain compatible with JDT
Signed-off-by: Rob Stryker <[email protected]>
Signed-off-by: Rob Stryker <[email protected]>
Javac sometimes add virtual nodes to the tree (usually with endPos ==
-1). Ignore then when computing diagnostic position.
@mickaelistria
Copy link
Author

This was interesting once, but doesn't seem useful in general. Let's close.

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.

6 participants