digitalmars.D.announce - DScanner v0.16.0-beta.1 - looking for IDE dev feedback
- WebFreak001 (18/18) Jul 08 2023 https://github.com/dlang-community/D-Scanner/releases/tag/v0.16.0-beta.1
- WebFreak001 (9/10) Jul 09 2023 https://github.com/dlang-community/D-Scanner/releases/tag/v0.16.0-beta.2
- =?UTF-8?Q?Christian_K=c3=b6stlin?= (5/26) Jul 09 2023 Sounds to good to be true, will give it a try for sure!!!
- WebFreak001 (6/12) Jul 09 2023 thanks, feel free to leave feedback about the CLI and fixes for
https://github.com/dlang-community/D-Scanner/releases/tag/v0.16.0-beta.1 the new D-Scanner version comes with a major new improvement: automatic fix suggestions for diagnostics. As IDE dev you can use the existing `--report` functionality to get JSON parsable output for the issues, along with new information such as start/end byte indices. Then when the user wants to query auto-fixes for any given issue (or just in general at any location in the file), use `dscanner --resolveMessage b512 file.d` to list the resolved auto-fixes at the given location. See the README.md for more information. Looking for feedback on the API and if you need any changes. Additionally this API is usable with D-Scanner as a library as well. `dscanner fix source/` can be used to interactively auto-fix all issues inside the source/ directory that have available autmoatic fixes.
Jul 08 2023
On Saturday, 8 July 2023 at 21:59:53 UTC, WebFreak001 wrote:[...]https://github.com/dlang-community/D-Scanner/releases/tag/v0.16.0-beta.2 updated API in v0.16.0-beta.2: `--report` includes all auto-fixes that don't need any resolving now, as well as the names for the to-be-resolved auto-fixes. This way you can show the user that actions are available before trying to query them. (although in the future new classes of auto-fixes could be introduced that are not tied to diagnostics. The API isn't built for this right now though and isn't expected in the near future)
Jul 09 2023
On 08.07.23 23:59, WebFreak001 wrote:https://github.com/dlang-community/D-Scanner/releases/tag/v0.16.0-beta.1 the new D-Scanner version comes with a major new improvement: automatic fix suggestions for diagnostics. As IDE dev you can use the existing `--report` functionality to get JSON parsable output for the issues, along with new information such as start/end byte indices. Then when the user wants to query auto-fixes for any given issue (or just in general at any location in the file), use `dscanner --resolveMessage b512 file.d` to list the resolved auto-fixes at the given location. See the README.md for more information. Looking for feedback on the API and if you need any changes. Additionally this API is usable with D-Scanner as a library as well. `dscanner fix source/` can be used to interactively auto-fix all issues inside the source/ directory that have available autmoatic fixes.Sounds to good to be true, will give it a try for sure!!! Thanks a lot. Kind regards, Christian
Jul 09 2023
On Sunday, 9 July 2023 at 07:54:38 UTC, Christian Köstlin wrote:On 08.07.23 23:59, WebFreak001 wrote:thanks, feel free to leave feedback about the CLI and fixes for existing or new diagnostics you would like to see. I just fixed a bug in the CLI that you reported and with the latest version it should work again (CI tested now): https://github.com/dlang-community/D-Scanner/releases/tag/v0.16.0-beta.3[...]Sounds to good to be true, will give it a try for sure!!! Thanks a lot. Kind regards, Christian
Jul 09 2023