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

Add tox file validation highlighting #18

Open
starlord-daniel opened this issue Apr 22, 2022 · 1 comment
Open

Add tox file validation highlighting #18

starlord-daniel opened this issue Apr 22, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@starlord-daniel
Copy link
Contributor

Problem

Currently, issues with the tox file only occur when running the tox commands.
It would have a large benefit to get diagnostics that tell you where an issue is upon saving the file.

Solution

To implement diagnostics for tox, 2 things are needed:

  • a tox validation mechanism
  • VSCode diagnostics integration

There are some libraries, that do tox validation already, but a custom implementation for this would also work, leveraging the tox configuration specification.

To include diagnostics in VSCode, Programmatic Language Features can be used.

@starlord-daniel starlord-daniel added the enhancement New feature or request label Apr 22, 2022
@The-Compiler
Copy link
Owner

Hm. I can see how that would be useful, but at the same time I'm not exactly keen to duplicate the whole tox.ini format specification in the plugin and keep it up to date.

There are some libraries, that do tox validation already

Do you perhaps have a link to those? I also wonder if we perhaps could parse the tox --help-ini output, but that seems rather brittle as well of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants