Skip to content
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

Cursor IDE Bitbucket git auth problems #392

Open
csibe17 opened this issue Jan 28, 2025 · 2 comments
Open

Cursor IDE Bitbucket git auth problems #392

csibe17 opened this issue Jan 28, 2025 · 2 comments
Assignees

Comments

@csibe17
Copy link

csibe17 commented Jan 28, 2025

Hi,

We have a working workspace template with VSCode and we are using Bitbucket authentication.
Now we installed Cursor as an additional choice of IDE for developers.

module "cursor" {
  count        = data.coder_workspace.me.start_count
  source       = "registry.coder.com/modules/cursor/coder"
  version      = "1.0.27"
  agent_id     = coder_agent.main.id
  folder       = "/home/${local.username}/dayrize-cloud"
  order        = 2
}

With regular VSCode we don't have any issue with git commands' authentication.

With Cursor we have issues from the beginning, because upon any git command it prompts for username/password. I could almost solve it by adding the following config at workspace startup.

git config --global credential.helper store

It works in a way that I use either the web terminal or open VSCode and do a git pull. That saves the credential to the file system, then Cursor can use it and it works. But unfortunately, after a while (don't know the exact times, but several hours) the .git-credentials file gets emptied out, so Cursor git commands are failing again (prompting for user/pass). If I do the same process again (run a git command in web terminal or VSCode), it populates the credential store and git in Cursor can be used again without a problem, until it stops working.

Does anyone experienced this behavior?
Any ideas how to solve it?

Thanks,
Gabor

@matifali
Copy link
Member

@code-asher @bcpeinhardt any ideas what could be going here?

@bcpeinhardt
Copy link
Collaborator

I'm not sure. It is strange it happens specifically with cursor. I'll take a look!

@bcpeinhardt bcpeinhardt self-assigned this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants