vscode tells me my bitbucket-pipelines.yml file is not formatted correctly

Chris Flora November 23, 2024

On the first line in my bitbucket-pipelines.yml file, I get a red squiggle under the first letter.  Doesn't matter what's in the file, as soon as I start typing I get the message.

I'm running:

- vscode (1.95.3)

- Atlassian plugin (3.0.13)

The full error I get is:

$ref '/components/schemas/cloud' in 'file:///Users/user/.vscode/extensions/atlassian.atlascode-3.0.13/resources/schemas/pipelines-schema.json' can not be resolved.YAML(768)

Has anyone else experienced this, and is there a best-practice way to fix it?  What I did was I opened the file listed in the error, searched for the $ref, which was in the runtime section starting on line 566, and deleted the property with the problematic $ref.  Now at least I've got it working again as long as I don't need that particular setting....

 

2 answers

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2024

Hello @Chris Flora ,

thank you for reaching out and reporting this.

I was able to reproduce this issue in the most recent version of the Jira and Bitbucket (Atlassian Labs) VSCode extension v3.0.13.

I am in contact with the engineering team managing the extension to report this issue.

Meanwhile, I have confirmed that version 3.0.12 of the Atlassian extensions is not affected by this problem, so I'd suggest installing that specific version until a fix for the latest one is released.

To install a specific version of the extensions in VSCode : 

  1. Navigate to the Extension view by clicking in the Extensions button in the left sidebar.
  2. Select the Atlassian extension
  3. In the dropdown right after the Uninstall button, click on Install specific version
  4. From the list of versions, select v3.0.12.
  5. Restart VSCode or use the Restart extensions button.

I hope this helps! Let us know in case you have any questions.

Thank you, @Chris Flora !
Patrik S

0 votes
Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 24, 2024

Hello @Chris Flora 

Have you checked if your code is indentated in a correct way, Bitbucket is very sensitive to this?

Chris Flora November 24, 2024

Yes, and I can replicate the issue with a fresh pipeline file with just a single line, like so:

image: atlassian/default-image:4

When that's my only line in the bitbucket-pipelines.yml file, and there's no indentation for it (which there shouldn't be since it's the only line), I get the red squiggly under the first letter "i" in image: and I get that error.  

Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 24, 2024

I've added the tag for Atlassian so they can help us further.

Like Chris Flora likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events