Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

can not see repositories in Atlassian bitbucket vscode extension

Mohamed Fahmy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 20, 2023

i have Atlassian extension setup with a custom site for both Jira and Bitbucket.

the Tickets for Jira do show up in Vscode but for some reason Bitbucket never manages to connect to any repository. i always have "no bitbucket repositories found in this workspace"

2 answers

0 votes
Joseph Leiba August 12, 2024

The Atlassian extension for VS Code is riddled with inconsistencies between itself and the Bitbucket APIs.  

To use personal access tokens with your Bitbucket site, Atlassian says in this article to specify remote URLs using a format like below:

https://x-token-auth:{repository_access_token}@bitbucket.org/{workspace}/{repository}.git

But of course, the Atlassian extension doesn't work at all with URLs of that form.  You get "

URL parsing failed" errors in the extension logs.  The Atlassian extension is nothing if not inconsistent.

Using Repository Access Tokens | Bitbucket Cloud | Atlassian Support

 

Joseph Leiba August 12, 2024

The above problem is another reason you may see the message, "No Bitbucket repositories found in this workspace".  

What's worse, today suddenly the Atlassian extension stopped offering the option to specify a Personal Access Token in the authentication configuration of your custom Bitbucket site.  Now it allows only username/password, which is why I am trying to specify the token in the URL.  This extension is constantly breaking in new ways and never being fixed.

 

Like Tobias likes this
Tobias
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 12, 2024

Keeping this extension doing its work is frustrating, thats why I stopped using it.

0 votes
Vytenis Kučiauskas March 21, 2023

VSCode changed and deprecated git functionality for getting repositories

https://github.com/microsoft/vscode/blob/27f15db3c1ec3155c8c65797fe0c8d978e59d0bf/extensions/git/src/api/api1.ts#L38

So the issue should be fixed on Atlassian side

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2023

Actually, no, VSCode is the client, not the service.  It's up to clients to support the services they are clients for, it's not up to a service to provide things that they don't want to.

VSCode and/or Github need to fix this, not Atlassian.  In this case, there's nothing Atlassian could do, they don't either of the services that have the problem.  Bitbucket is stuck in the middle.

Ernest Zapata
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 24, 2023

I went back and installed extension version 2.10.2 which does find my local repositories

FDisk
Contributor
March 25, 2023

@Nic Brough -Adaptavist- no actually you are wrong. The extension is using vscode internal functions and they changed. Why it was changed is a different story. 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2023

Eh?  I said the service has not changed, but the client has, exactly as you say too.

yakirgb April 5, 2023

I see same issue with latest Atlascode plugin: 3.0.3, any workaround ? 

FDisk
Contributor
April 5, 2023

did your vscode is up to date? In my case 

vscode version: 1.77.0
and plugin 3.0.3

this combination works for me

yakirgb April 5, 2023
I'm using latest vscode 1.77.0 too,
with Bitbucket version v7.4.0
yakirgb April 10, 2023

 

Any ideas how to debug the issue of "no bitbucket repositories found in this workspace" ? 

Like tidhar_klein_orbach likes this
tidhar_klein_orbach May 1, 2023

I noticed that my remotes were configured:
ssh://git@bitbucket.mycompany.com:7999/myrepo.git


so I added another remote with the same url without the "ssh://" git@bitbucket.mycompany.com:7999/myrepo.git


after that I was managed to see the repository in vscode.

Like yakirgb likes this
yakirgb May 1, 2023

Replace "ssh://" with "https://" resolved the issue.

I think there is a bug with "ssh://" 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events