vscode-tekton icon indicating copy to clipboard operation
vscode-tekton copied to clipboard

extension doesn't support multiple kinds in a single file

Open VickyWinner opened this issue 3 years ago • 13 comments

I am using a single .yaml file to create all the resources required for the pipeline by separating them with ---. I get error after I installed this extension. Not sure if its by design or a bug.

yaml: expected a single document in the stream, but found more

VickyWinner avatar May 16 '21 15:05 VickyWinner

yaml: expected a single document in the stream, but found more

Hi, @VickyWinner this error you get while creating multiple resources in a single file? If yes which command you were using to create resources.

sudhirverma avatar May 17 '21 09:05 sudhirverma

@sudhirverma just take any resource required by the pipeline. Task, TaskRun, Pipeline, PipelineRun etc.

VickyWinner avatar May 18 '21 20:05 VickyWinner

@VickyWinner I cannot to reproduce this, could you share more detailed steps to reproduce?

evidolob avatar Jun 03 '21 09:06 evidolob

its not erroring out while running the kubectl or oc. Its just the vscode pops errors.

VickyWinner avatar Jun 03 '21 12:06 VickyWinner

I try this https://github.com/tektoncd/pipeline/blob/main/examples/v1beta1/pipelineruns/pipelinerun.yaml and havent see any errors

evidolob avatar Jun 03 '21 12:06 evidolob

this is what I see image

VickyWinner avatar Jun 03 '21 12:06 VickyWinner

@VickyWinner Are you using latest version of vscode-tekton?

evidolob avatar Jun 03 '21 12:06 evidolob

I am using v0.14.0

VickyWinner avatar Jun 03 '21 13:06 VickyWinner

Latest is 0.16.1 try that version

evidolob avatar Jun 03 '21 13:06 evidolob

I just did install 0.16.1 but still the same issue. just an update that I am running vscode in administrator mode.

VickyWinner avatar Jun 03 '21 13:06 VickyWinner

Do you have any other extension related to yaml? Like Ansible?

evidolob avatar Jun 03 '21 13:06 evidolob

No. I am using only .yaml extension for all tekton stuff. I ran vscode in non-administrator mode, same issue. looks like it has nothing to do with that.

VickyWinner avatar Jun 03 '21 13:06 VickyWinner

I mean any other vscode extensions(plugins) which can handle/provide some editor features for yaml files.

evidolob avatar Jun 03 '21 13:06 evidolob