edgafner / dorkag

Issue Tracker repository for all Dorkag plugins
Other
5 stars 0 forks source link

[FEATURE]: Support for Rider 2024.3 #152

Closed mat-kap closed 1 week ago

mat-kap commented 1 week ago

I need the support for the current release candidate of Rider 2024.3. Currently I need to switch to the latest release to get the functionality of AZD which is the opposit of a smooth workflow.

Jonatha1983 commented 1 week ago

@mat-kap Yes, the new candidate release 2024.3 was updated this weekend by the jetbrains team; hopefully, by the end of the day, there will be a version to support it that include solutions for: #151 , #148 and #147

mat-kap commented 1 week ago

Great news. I'm looking forward to get the new version.

Jonatha1983 commented 1 week ago

Hi @mat-kap, all the issues above were released and are now pending JetBrains' approval (usually 1-2 days)

If you want to give it a try now - you can download the EAP version (which is the same) or change the Plugin Repository in your IDE to the EAP: https://plugins.jetbrains.com/plugins/eap/list

Please let me know if some issues persist, and I'll reopen the relevant ticket.

Also, If you have a 1-minute spare, I would appreciate a lovely review on the plugins' marketplace page🙏🏻 it helps me gain new users and keep my head up.

Thanks again for reporting issues and asking for new features!!!

mat-kap commented 1 week ago

Hi @Jonatha1983 I've now tested the EAP version. I can't attach work items to the pull request. The linked work item from the commit is read correctly. When I click on the "Link Work Item"-button nothing happens. The search functionality of the work items is great.

Jonatha1983 commented 1 week ago

@mat-kap Yes I think it is related to this issue

https://github.com/edgafner/dorkag/issues/153

Will investigate it Thanks

mat-kap commented 1 week ago

@Jonatha1983 Ok thanks. The auto close functionality works but I've deactivated the close associated work item check box and my work item is closed after the finish of the pull request.

Jonatha1983 commented 1 week ago

Oh I didn't check that, sorry

Thanks for updating and reporting!!

Jonatha1983 commented 1 week ago

@mat-kap I uploaded a new version to EAP with the fixes if you want to give it a try - thanks again for reporting.

mat-kap commented 1 week ago

Hi @Jonatha1983 The problem of linking work item still exists in the new 2024.3.4 version.

Jonatha1983 commented 1 week ago

Thanks for updating, will recheck it.

Can you see if there are any exceptions or warning in the log related to AZD?

Thanks

mat-kap commented 1 week ago

Yes there are warnings (the _ are replaced by me, because there are sensitive data):

2024-11-13 11:35:14,037 [15735852] WARN - #com.gafner.plugin.azd.pullrequest.data.AZDPullRequest - HTTP Request Request POST https://_.visualstudio.com/_/_apis/wit/workitems/2963?api-version=7.2-preview.3 failed with status code 401 and response body: com.intellij.collaboration.api.HttpStatusErrorException: HTTP Request Request POST https://_.visualstudio.com/_/_apis/wit/workitems/2963?api-version=7.2-preview.3 failed with status code 401 and response body: at com.gafner.plugin.azd.api.r.a(SourceFile:46) at com.gafner.plugin.azd.api.r.a(SourceFile:76) at com.gafner.plugin.azd.api.r$a.a(SourceFile:95) at com.gafner.plugin.azd.api.r$a.invoke(SourceFile:94) at com.gafner.plugin.azd.api.s$a.a(SourceFile:177) at com.gafner.plugin.azd.api.s$a.invoke(SourceFile:176) at com.gafner.plugin.azd.api.s.b(SourceFile:176) at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2200) at java.base/java.util.concurrent.CompletableFuture$MinimalStage.thenApply(CompletableFuture.java:2948) at java.net.http/jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.getBody(ResponseSubscribers.java:843) at com.gafner.plugin.azd.api.w$a$a.invokeSuspend(SourceFile:138) at com.gafner.plugin.azd.api.w$a$a.a(SourceFile) at com.gafner.plugin.azd.api.w$a$a.invoke(SourceFile) at com.gafner.plugin.azd.api.p.sendAndAwaitCancellable(SourceFile:99) at com.gafner.plugin.azd.api.p$b.invokeSuspend(SourceFile) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

2024-11-14 08:06:53,355 [7026570] WARN - #com.gafner.plugin.azd.pullrequest.data.AZDPullRequest - HTTP Request Request POST https://_.visualstudio.com/_/_apis/wit/workitems/2965?api-version=7.2-preview.3 failed with status code 401 and response body: com.intellij.collaboration.api.HttpStatusErrorException: HTTP Request Request POST https://_.visualstudio.com/_/_apis/wit/workitems/2965?api-version=7.2-preview.3 failed with status code 401 and response body: at com.gafner.plugin.azd.api.r.a(SourceFile:46) at com.gafner.plugin.azd.api.r.a(SourceFile:76) at com.gafner.plugin.azd.api.r$a.a(SourceFile:95) at com.gafner.plugin.azd.api.r$a.invoke(SourceFile:94) at com.gafner.plugin.azd.api.s$a.a(SourceFile:177) at com.gafner.plugin.azd.api.s$a.invoke(SourceFile:176) at com.gafner.plugin.azd.api.s.b(SourceFile:176) at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2200) at java.base/java.util.concurrent.CompletableFuture$MinimalStage.thenApply(CompletableFuture.java:2948) at java.net.http/jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.getBody(ResponseSubscribers.java:843) at com.gafner.plugin.azd.api.w$a$a.invokeSuspend(SourceFile:138) at com.gafner.plugin.azd.api.w$a$a.a(SourceFile) at com.gafner.plugin.azd.api.w$a$a.invoke(SourceFile) at com.gafner.plugin.azd.api.p.sendAndAwaitCancellable(SourceFile:99) at com.gafner.plugin.azd.api.p$b.invokeSuspend(SourceFile) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

2024-11-14 08:11:06,156 [ 134828] WARN - #com.gafner.plugin.azd.pullrequest.data.AZDPullRequest - HTTP Request Request POST https://_.visualstudio.com/_/_apis/wit/workitems/2965?api-version=7.2-preview.3 failed with status code 401 and response body: com.intellij.collaboration.api.HttpStatusErrorException: HTTP Request Request POST https://_.visualstudio.com/_/_apis/wit/workitems/2965?api-version=7.2-preview.3 failed with status code 401 and response body: at com.gafner.plugin.azd.api.r.a(SourceFile:46) at com.gafner.plugin.azd.api.r.a(SourceFile:76) at com.gafner.plugin.azd.api.r$a.a(SourceFile:95) at com.gafner.plugin.azd.api.r$a.invoke(SourceFile:94) at com.gafner.plugin.azd.api.s$a.a(SourceFile:177) at com.gafner.plugin.azd.api.s$a.invoke(SourceFile:176) at com.gafner.plugin.azd.api.s.b(SourceFile:176) at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2200) at java.base/java.util.concurrent.CompletableFuture$MinimalStage.thenApply(CompletableFuture.java:2948) at java.net.http/jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.getBody(ResponseSubscribers.java:843) at com.gafner.plugin.azd.api.w$a$a.invokeSuspend(SourceFile:138) at com.gafner.plugin.azd.api.w$a$a.a(SourceFile) at com.gafner.plugin.azd.api.w$a$a.invoke(SourceFile) at com.gafner.plugin.azd.api.p.sendAndAwaitCancellable(SourceFile:99) at com.gafner.plugin.azd.api.p$b.invokeSuspend(SourceFile) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

Jonatha1983 commented 1 week ago

@mat-kap Did you create the PAT with the vso.work_write scope? I am pretty sure you missed that scope that is why you get 401

mat-kap commented 1 week ago

@Jonatha1983 I've referenced the wrong PAT for the RC of Rider and there was not selected "All Accessible organizations" and missed the vso.work_write scope. I'll try it later and give you an update on this.

Jonatha1983 commented 1 week ago

Ok @mat-kap thanks.

Just for info on the upcoming release ( a day or two) there will no need for the all accessible organization any more.

mat-kap commented 5 days ago

Hi @Jonatha1983. I've now tested the right PAT and it worked. Thanks for the support.