2017-09-25 51 views
1

问题/任务我有麻烦建立GitLab的帐户从TOOLS>TASKS & CONTEXTS>CONFIGURE SERVERS配置PhpStorm显示来自GitLab

什么是TOKEN场管理PhpStorm内的任务(问题)?我在哪里可以找到它,我在GitLab服务器上搜索了我的配置文件,但什么也没找到。

enter image description here

唯一的事情我已经找到,并试图,是个人的访问令牌位于:https://gitlab.com/profile/personal_access_tokens

个人访问令牌已经生成和使用,但它不工作。

enter image description here

===修订===

错误日志(我已经更换了真正的URL路径与因隐私asterixes)

2017-09-25 19:59:41,023 [7154630] WARN - lij.tasks.impl.TaskManagerImpl - Cannot connect to GitlabRepository(URL='https://gitlab.com/***/***/issues') 
com.intellij.tasks.impl.RequestFailedException: Request failed with HTTP error: 404 Not Found. 
    at com.intellij.tasks.impl.RequestFailedException.forStatusCode(RequestFailedException.java:16) 
    at com.intellij.tasks.impl.httpclient.TaskResponseUtil$GsonMultipleObjectsDeserializer.handleResponse(TaskResponseUtil.java:173) 
    at com.intellij.tasks.impl.httpclient.TaskResponseUtil$GsonMultipleObjectsDeserializer.handleResponse(TaskResponseUtil.java:151) 
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222) 
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164) 
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139) 
    at com.intellij.tasks.gitlab.GitlabRepository.fetchProjects(GitlabRepository.java:139) 
    at com.intellij.tasks.gitlab.GitlabRepository.ensureProjectsDiscovered(GitlabRepository.java:254) 
    at com.intellij.tasks.gitlab.GitlabRepository.fetchIssues(GitlabRepository.java:160) 
    at com.intellij.tasks.gitlab.GitlabRepository.getIssues(GitlabRepository.java:107) 
    at com.intellij.tasks.TaskRepository.getIssues(TaskRepository.java:168) 
    at com.intellij.tasks.impl.TaskManagerImpl.a(TaskManagerImpl.java:783) 
    at com.intellij.tasks.impl.TaskManagerImpl.b(TaskManagerImpl.java:742) 
    at com.intellij.tasks.impl.TaskManagerImpl.a(TaskManagerImpl.java:736) 
    at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:342) 
    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) 
+1

重现此问题,并检查帮助>显示登录...> idea.log文件中的任何特定错误消息。有没有什么? –

+0

@ VladLuchansky - 我已更新问题 – aspirinemaga

回答

1

从我所收集,如果你正确生成令牌的Gitlab侧(SETTINGS>ACCESS TOKENS>CREATE PERSONAL ACCESS TOKEN)并将其插入到令牌场在TOOLS>TASKS & CONTEXTS>CONFIGURE SERVERS在PhPStorm中,这可能是一个超时问题。

如果您转到SETTINGS(Ctrl + Alt + S)>TASKS并将CONNECTION TIMEOUT参数更改为20000ms,它应该可以工作。

enter image description here

enter image description here

请参阅本post,如果您有任何疑问。

+0

上述字段中的最终服务器URL是什么? 它是你的项目的直接URL(你看到你的源代码)或者它是一个'/ issues' URL,你可以看到你所有问题的列表? – aspirinemaga

+1

它应该只是'http:// gitlab.com'(在上面添加了一张新照片)。 – pierrebonbon

+0

就是这样!谢谢@pierrebonbon,我输入了我的项目(gitlab.com/name/repo)的URL。它应该是gitlab.com – aspirinemaga

2
+0

这就是我所做的,但它不起作用,所以我没有想法。 个人访问令牌是有道理的,但它不起作用。 – aspirinemaga

+0

你有什么错误吗?如果是的话,他们说什么?您可以尝试将超时时间增加到15000“首选项”>“工具”>“任务” –

+0

问题在于URL,它应该是没有任何其他子页面的域名。 – aspirinemaga