microsoft / azure-devops-intellij

IntelliJ IDEA plug-in for Visual Studio Team Services and Team Foundation Server (TFS)
MIT License
151 stars 94 forks source link

Authentication passed, but can't get repository from TFS! #113

Open Gavineil opened 7 years ago

Gavineil commented 7 years ago

Hi guys, My company is planning to use TFS 2018 RC2, but I meet a issue when I connnet to TFS 2018 git repository. After I passed identity authentication, there is no repository show. Please help!

TFS version: TFS2018 RC2 Inteliji Version: 2017.2.5 Git version: 2.14.2.windows.3 Plugin version: 1.125.0

image 2017-10-25 08:33:44,589 [ 398751] INFO - tion.TfsAuthenticationProvider - starting TfsAuthenticator 2017-10-25 08:33:44,589 [ 398751] INFO - tion.TfsAuthenticationProvider - Async authentication starting 2017-10-25 08:33:51,645 [ 405807] INFO - .services.HttpProxyServiceImpl - useHttpProxy: false 2017-10-25 08:33:51,901 [ 406063] DEBUG - n.telemetry.TfsTelemetryHelper - sendEvent(TfsConnection, {VSO.Plugin.Property.Success=true, TFS.Version=TFS2015_or_later}) 2017-10-25 08:33:51,901 [ 406063] INFO - tion.TfsAuthenticationProvider - Async authentication done - result: true 2017-10-25 08:33:51,901 [ 406063] INFO - on.ServerContextLookupListener - loadContexts activeOperation with 1 contexts and a scope of REPOSITORY 2017-10-25 08:33:51,901 [ 406063] INFO - on.ServerContextLookupListener - loadContexts terminateActiveOperation in state NOT_STARTED 2017-10-25 08:33:51,901 [ 406063] INFO - on.ServerContextLookupListener - ServerContext operation terminated 2017-10-25 08:33:51,901 [ 406063] INFO - on.ServerContextLookupListener - ServerContext lookup started 2017-10-25 08:33:51,917 [ 406079] WARN - s.ServerContextLookupOperation - doWork: Unable to do lookup on context: https://itech/Demo/Test/_git/demo 2017-10-25 08:33:51,917 [ 406079] WARN - s.ServerContextLookupOperation - doWork: Exception java.lang.NullPointerException at com.microsoft.alm.common.utils.UrlHelper.resolveEndpointUri(UrlHelper.java:361) at com.microsoft.alm.plugin.context.soap.CatalogServiceImpl.<init>(CatalogServiceImpl.java:72) at com.microsoft.alm.plugin.context.soap.SoapServicesImpl.getCatalogService(SoapServicesImpl.java:19) at com.microsoft.alm.plugin.operations.ServerContextLookupOperation.doSoapCollectionLookup(ServerContextLookupOperation.java:165) at com.microsoft.alm.plugin.operations.ServerContextLookupOperation$1.run(ServerContextLookupOperation.java:76) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 2017-10-25 08:33:51,917 [ 406079] INFO - on.ServerContextLookupListener - ServerContext lookup results has error: true 2017-10-25 08:33:51,917 [ 406079] INFO - on.ServerContextLookupListener - ServerContext lookup completed 2017-10-25 08:33:51,917 [ 406079] INFO - on.ServerContextLookupListener - ServerContext operation done

ghost commented 5 years ago

Same issue here

ForNeVeR commented 5 years ago

@marco-augustin, hello. Could you please show a server URL you're trying to use? From the screenshot of the opening post, it looks like the server URL isn't right: actual server URL shouldn't include _git; most likely the right one would be https://itech/Demo for this particular example.

ghost commented 5 years ago

It works now. Thanks for the hint! The original server address had the collection name in the URL.

ForNeVeR commented 5 years ago

Thanks for your answer. We have plans to improve this UI to make it easier to enter the right URL there.