Closed thygesteffensen closed 2 months ago
Hi @thygesteffensen
Did you Clone using ssh or http?
If http you need to uncheck the clone ssh in the configuration
I cloned using SSH :)
thyge@Thyges-MacBook-Pro ~/d/h/H2 > git remote -v
origin git@h.ssh.dev.azure.com:v3/dev/DP/H (fetch)
origin git@h.ssh.dev.azure.com:v3/dev/DP/H (push)
The remote url is prefixed with a name to use the correct SSH key
And you opened a project from the got root?
Also check under settings>version control> git
If the checkbox of using credential is enabled/disabled
It looks like you opened a project that is under GitHub and not under azure devops
And you opened a project from the got root?
Also check under settings>version control> git
If the checkbox of using credential is enabled/disabled
"Use credential helper" is disabled
It looks like you opened a project that is under GitHub and not under azure devops
It is a DevOps project :)
The solution file (given it is a dotnet project) is not located in the git root, but in src/
.
In Settings > Version Control > Directory Mappings the git root is noted.
And the azd tool window is disabled?
Yes, I cannot see the tool windows as depicted in https://github.com/edgafner/dorkag/wiki/AZD%3A-AZD-Usage#viewing-pull-requests and the actions are all disabled. I can only see them when including disabled actions i the "actions prompt" in Rider.
There is no errors in the notification center either :)
I just cloned using HTTPs and it now works as expected :)
I'll try to clone with SSH without using a modified address :)
The check box ('Clone git repositories using ssh') was still checked though.
In the first image you sent - you can see the the GitHub bundle plugin is enable - and for non GitHub repo this is disabled so something is really weird.
Let me know how it goes with new ssh.
Thanks again for reporting
Cloning the repo with the "original" ssh url also works.
Here is the steps for reproduction.
I have access to many different DevOps and with different users - so I will have multiple SSH keys and to streamline the process I do the following for all DevOps:
~/.ssh/config
:
Add the following for each new DevOps:
Host ado1.ssh.dev.azure.com
Hostname ssh.dev.azure.com
User thyge@somewhere.com
IdentityFile ~/.ssh/id_rsa_somewhere
ado1
is just a custom identifier.
id_rsa_somewhere
is the SSH key generated and related to that specific DevOps.
Add the public key in DevOps.
Clone
Navigate to the repo in DevOps and copy the SSH clone url.
Modify it to match the url from the config. E.g.,
git@ssh.dev.azure.com:v3/org/project/repo
becomes git@ado1.ssh.dev.azure.com:v3/org/project/repo
.
Open the project (solution) Now you cannot create/view pull requests even though you have logged in :)
Yes in this case it will not work
Since I must make some assumptions like the url is of a certain format Ssh.dev.azure.com
This is a special case I ll add it to the backlog but user can really do everything they want so for example ado1.ssh can be a.b.c.d and I am not sure I can cover all the options.
I ll investigate this anyway
Awesome, thanks 🚀
Yes. If you're using the git remote to check if the given repo is hosted on DevOps you could add a option to overwrite this and enable the extension anyway? (With a disclaimer that it ONLY works with DevOps repos?)
I cannot see why it wouldn't work when the remote is changed?
Out of curiosity I added a remote, such as:
git remote add bogus <original-ssh-url>
and now the extension is enabled and I can browse and create pull request ;)
(But the remote bogus
is mentioned in the UI sometimes, but the remote origin should be the one used by Rider and git.
So best option is to add this case as a "solution" to the docs?
I still had the ssh key assigned to the 'default' url. So this does not work.
I can browse pull request, edit them (All actions where the PAT is used?) I cannot create a pull request.
You can create but it is telling you that there is no branch on the remote When you create it will ask you if you want to create a branch on the remote before creating This is the default behavior for the GitHub and gitlab jetbrains bundle plugin.
Hi. I'm not sure that is it same bug, but after login my tool icon is missing now
Also actions are not available
@bostandyksoft Did you opened the project from the local azure devops for repo? Is it a Azure devops service or server?
I'm not sure that clearly understand question. We have own server with Azure Devops (it is'nt cloud)
@bostandyksoft I think the just released version contains the fix for this issue.
Please let me know if not.
@Jonatha1983
I re-authenticated with a full-access PAT and checked 'Clone git repositories using ssh'.
Actions from AZD are still un-available.
Please let me know if you need anything else.
I'm using JetBrains version: 2024.1 and AZD version: 2024.1.53
@thygesteffensen Yeah, I found a bug caused by changes in one of the Azure DevOps API responses.
I am releasing a version as soon as possible. Sorry about it - will update once released.
@thygesteffensen The version with the fix was approved by Jetbrains marketplace: https://plugins.jetbrains.com/plugin/22319-azd/edit/versions/stable/523303
@Jonatha1983 Awesome, but still no luck...
I upgraded Azd to version 2024.1.57
Rider is still 2024.1
It's the same behaviour as before. When/If I add a new remote with a "standard" Azure DevOps url, the actions are enabled. But when I use the "proxied" version to separate SSH keys, the actions are not enabled.
My remote: git@org1.ssh.dev.azure.com:v3/org1/project1/repo1 Original remote: git@ssh.dev.azure.com:v3/org1/project1/repo1
This is configured in the .ssh
config file :)
Yes still need to tackle that case - I am keeping this ticket open for now. Will update.
@thygesteffensen Hi
The last available version should include a fix for your git remote config case.
Please let me know if it does/doesnt
And if it does and all is working as you expect I would appreciate a nice review or a nice star rate (if didn't already) 🙏🏻
https://plugins.jetbrains.com/plugin/22319-azd
Thanks
Once you confirm I ll close the issue.
I still dont have any icons on my toolbar
@bostandyksoft can you share some details?
When you fill up the server url - did you include the Collection name? Are you using ssh or https? Did you change the git configuration some how? If you are using ssh, Are you using a different port instead of 22? Can you send me the pattern of your server, for instance is it of this form: Https://a.b.c.com/collectionName ?
If you can please open a different ticket with those details because I am not sure it is related to the original.
I have the same issue with the icon not showing. I've tried the suggestions above but still having the issue..
Interestingly when I un-checked the "Clone git repositories using ssh" then I lost the Pull Requests & Work Items tabs.
I update Rider to the latest version, then lost the tabs again until I switched OFF the "Clone git repositories using ssh"
Hi @TonyCasey
When you run in the terminal: git remote -vv
Do you see ssh or https?
In the case of SSH, this checkbox should be enabled
In the case of HTTP, it should be disabled, but under Settings > Version Control, make sure the Use credential helper is enabled.
The two tabs in the git tool window are from the other plugin you installed, so they are not related. Honestly, I am not sure how the IDE will work when both are installed.
Please let me know how it goes - and in case you still need help please open a new ticket with some more details.
Thanks
Thanks, I've done the suggested but still the same. I'll open a new ticket with some screenshots
@thygesteffensen Hi
The last available version should include a fix for your git remote config case.
Please let me know if it does/doesnt
And if it does and all is working as you expect I would appreciate a nice review or a nice star rate (if didn't already) 🙏🏻
https://plugins.jetbrains.com/plugin/22319-azd
Thanks
Yes, it is working now - Thanks, looking forward to use it :)
Describe the bug None of the actions are available after logging in, the PAT is for all organisations.
To Reproduce Steps to reproduce the behavior:
Expected behavior Actions are active, such as 'Create Pull Request'
Screenshots
![image](https://github.com/edgafner/dorkag/assets/31892312/970fd296-8553-40ab-a5d7-b87d43e8fa08)
Desktop (please complete the following information):
JetBrains IDE (please complete the following information):
Azure Devops organization details:
Additional context Add any other context about the problem here.