-
Notifications
You must be signed in to change notification settings - Fork 211
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
Concourse CI Pipeline Editor reports errors on valid pipeline.yml
#41
Comments
Thanks for the report.
The idea was, that if you bothered to type 'path: ' you probably intended to put a real value in there so if you left it empty it was probably by mistake. Since 'path' is optional, if you don't care about setting it you could simply... not set it, rather than set it to I.e like so:
But seeing as it is formally accepted by fly CLI probably should simply allow empty strings there, or, at least make this a warning rather than an error. What you think? Warning... or nothing? I still think its odd for someone to have
I'll try and do a fix later this afternoon for both issues (i.e. empty stirng -> warning and add the optional property to schema.). |
Yeah, I can totally see why that error was added! But I agree, since this is something that is produced from the I think a warning might be more suitable, maybe something like (for all paths):
which kind of mimics the docs here: Or one could maybe skip the warning, and simply rely on the tooltip (wish I could screenshot tooltips, but it says:)
Okay, sounds great! Thanks for a super useful plugin :) |
1) Turn errors for empty task.input|output.path into a warning 2) Add task.optional property to the schema
Its fixed. You can try snapshot build from here: http://dist.springsource.com/snapshot/STS4/nightly-distributions.html Just download the vscode-concourse vsix file from there. And you can install it into vscode following these instructions: https://github.com/spring-projects/sts4/blob/master/vscode-extensions/vscode-concourse/developer-notes.md#getting-and-installing-latest-snapshot |
cool! I'll have a look tomorrow. when will this be available in the "official release"? |
@olle-brkt the next "official" update will be shipped to the marketplaces as soon as this or next week, aiming for end of this week. |
Hi!
I've seen this plug-in report lines that are valid pipeline config. What's interesting is that these pipelines are validating and formatted using
fly format-pipeline
so they should be totally legit.pipeline.yml:
Both errors I have found were in the same inline task definition:
Errors:
here, the plugin complains the the paths in the input/output sections should not be empty, even though it was set to an empty string by
fly format-pipeline
and it is totally valid to do so (if the sting is empty, the name of the input/output is assumed to be the path)here, the plugin complains about the new 'optional' property introduced in 3.9.0, see https://concourse.ci/running-tasks.html#input-optional
is the same as 1
let me know if you need more information!
The text was updated successfully, but these errors were encountered: