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

[4.3.5] Backport Json RPC diagnostics #11707

Merged
merged 17 commits into from
Jul 18, 2024
Merged

Conversation

kLabz and others added 13 commits July 3, 2024 07:41
* let's see how much breaks

* [tests] enable diagnostics tests for 11177 and 11184

* [tests] Update test for 5306

* Don't cache/run filters for find reference/implementation requests (#11226)

* Only run filters and save cache on diagnostics, not usage requests

* [tests] Update test for 11184

* disable test

* add VUsedByTyper to avoid bad unused local errors

* revert @:compilerGenerated change

---------

Co-authored-by: Rudy Ges <k@klabz.org>
Note: not including texprConverter changes

see 160a490
see #7282
Legacy diagnostics = false, json rpc diagnostics = true
@kLabz kLabz force-pushed the 4.3.5_json_rpc_diagnostics branch from bd6b109 to 9d252ad Compare July 3, 2024 15:16
@kLabz kLabz marked this pull request as ready for review July 3, 2024 15:44
@kLabz
Copy link
Contributor Author

kLabz commented Jul 3, 2024

This might be a bit much for a patch release but I think it's worth it, especially with Json RPC diagnostics vshaxe/haxe-language-server#124.

I kept the commit history clean for easier review.
Also CI is having a stroke again 🤷 (ignore windows and mac, it's failing on 4.3 branch atm; but linux is having some random ppa issues too today)

@kLabz kLabz force-pushed the 4.3.5_json_rpc_diagnostics branch from 3b8a2c2 to baba167 Compare July 3, 2024 20:26
@RblSb
Copy link
Member

RblSb commented Jul 4, 2024

Tested with latest vshaxe commit, got Failed - Exception while handling Haxe completion response: Unexpected end of JSON input from organizeImportGroup > formatText > loadConfig > determineConfig stacktrace (#11709?)

@kLabz
Copy link
Contributor Author

kLabz commented Jul 4, 2024

Sounds like #11709 indeed

@Simn
Copy link
Member

Simn commented Jul 10, 2024

The changes here look good to me. As I've said on Slack, it's quite a lot for a patch release, but it's a very nice cleanup, so I'm fine with merging this.

kLabz added 3 commits July 18, 2024 07:02
* [diagnostics] fix json rpc diagnostics display config

* [tests] Server tests: do not fail silently when runHaxeJsonCb errors

* [tests] add more diagnostics tests

* [display] rework multiple display files handling

* clean up a bit...

* [diagnostics] handle a.b.c.hx case, even if pointless

* [diagnostics] do not skip errors during DisplayProcessing.process_display_file
@kLabz kLabz merged commit f3ebf88 into 4.3.5_preparation Jul 18, 2024
59 of 66 checks passed
@kLabz kLabz mentioned this pull request Jul 18, 2024
kLabz added a commit that referenced this pull request Jul 18, 2024
* [display] diagnostics as json rpc (Backport #11412)

* [tests] use json rpc diagnostics

* [tests] Add test for 11695

* [tests] Update diagnostics tests

* Run some filters in diagnostics (#11220)

* let's see how much breaks

* [tests] enable diagnostics tests for 11177 and 11184

* [tests] Update test for 5306

* Don't cache/run filters for find reference/implementation requests (#11226)

* Only run filters and save cache on diagnostics, not usage requests

* [tests] Update test for 11184

* disable test

* add VUsedByTyper to avoid bad unused local errors

* revert @:compilerGenerated change

---------

Co-authored-by: Rudy Ges <k@klabz.org>

* [display] get rid of TypeloadParse.current_stdin

* [display] fix -D display-stdin handling

* [display] generalize fileContents behavior to other json rpc display calls

* [display] fix range of pattern variables

Note: not including texprConverter changes

see 160a490
see #7282

* [tests] add test for #7282

* [tests] add test for #7931

* Remove populateCacheFromDisplay config

Legacy diagnostics = false, json rpc diagnostics = true

* [std] Diagnostics request doc

* [tests] Test Json RPC diagnostics with several open files

* [diagnostics] fix multi display files (#11722)

* [diagnostics] fix json rpc diagnostics display config

* [tests] Server tests: do not fail silently when runHaxeJsonCb errors

* [tests] add more diagnostics tests

* [display] rework multiple display files handling

* clean up a bit...

* [diagnostics] handle a.b.c.hx case, even if pointless

* [diagnostics] do not skip errors during DisplayProcessing.process_display_file

* Enable display tests again...

* [tests] fix display tests

---------

Co-authored-by: Simon Krajewski <simon@haxe.org>
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.

3 participants