-
Notifications
You must be signed in to change notification settings - Fork 29
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
Story: Add language support for DVC.yaml #1192
Comments
This comment was marked as outdated.
This comment was marked as outdated.
But via the YAML extension by RedHat right? If so should it be recommended somewhere in the Get Started page? |
We have an in-product prompt to install that extension. It was added in #903. Under this ticket we'll look at expanding support outside of the scope of that extension 👍🏻. |
Oh, I did notice that box but I thought it was an automatic VSC prompt. Cool then |
Updates:
Language support:
I'm posting this now because I believe I have a shot at a first iteration of the first three items in the language support list, and I would like to post a demo tomorrow. |
@wolmir can you share some video (even WPI is totally fine)
Can we do things like:
Could you clarify please? @skshetry @dberenbaum anything from the top of your head that would simplify editing /managing DVC files? |
@shcheklein I'll try to record a video today
Technically yes, but can you give me a specific example, please?
Yes that's possible, but we have to be careful with the highlight color to not conflict with other extensions like GitLens for example.
Yes, traditionally as a hover tooltip, but there are other possibilities like a faded text next to the symbol.
From the DVC docs, the variables are scoped per stage/foreach block and can't be referenced outside of it. |
@wolmir, I think you can ignore the inner scope unless someone asks for it (it's an arcane feature). That said, I think it'd be easier to design it in a way that resolves each stage independently, considering the support for |
Thanks @skshetry ! While you're here, can you think of other ways VSCode can help with dvc.yaml? |
I think a view of all stages in the sidebar would be nice which takes you to the individual definitions of the stages and maybe allows running each individually (just like the tests). I don't know if it's in the scope of this ticket, but we could also have linter-like features, eg: parameter does not exist or is out of sync, etc. |
👍 to pretty much everything here.
Can we call this out even more? Like @jorgeorpinel, I didn't realize it was for DVC and ignored it.
This would be nice. Even better would be to suggest individual parameters in IntelliSense by parsing
Unlike
Not sure I follow what this would do.
In addition, it would be nice if we could show in which other stages a path is referenced and in what context (what is the stage name and is the path a Other ideas that I think would be helpful (apologize if some are wildly unrealistic, but I'm excited for this as it could greatly improve the experience of creating pipelines): SnippetsSuggest filled-out templates for sections of
IntelliSense Suggestions
|
Nice, thanks @dberenbaum ! |
WIP stuff: Screen.Recording.2022-07-29.at.16.14.13.movScreen.Recording.2022-07-29.at.16.16.44.movScreen.Recording.2022-07-29.at.16.41.24.mov |
@shcheklein ticket needs a checklist of items... please. |
It would be nice to have a bash syntax highlighting for Parametrization syntax is not very important. |
Checklist of items here:
|
Wasn't this already done in #3175? |
We need to help users manage stages, metrics, models, params within the editor.
The text was updated successfully, but these errors were encountered: