简体   繁体   English

配置PhpStorm以显示GitLab中的问题/任务

[英]Configure PhpStorm to show Issues/Tasks from GitLab

I have a trouble to set up a GitLab's account to manage the tasks (issues) inside the PhpStorm from TOOLS > TASKS & CONTEXTS > CONFIGURE SERVERS 我无法设置GitLab的帐户来管理PhpStorm中的任务(问题)从TOOLS > TASKS & CONTEXTS > CONFIGURE SERVERS

What is a TOKEN field ? 什么是TOKEN字段? Where do I find it, I've searched in my Profile on GitLab server but found nothing. 我在哪里找到它,我在GitLab服务器上的个人资料中搜索但没有找到任何内容。

在此输入图像描述

Only thing I have found and tried, is a Personal Access Tokens located here: https://gitlab.com/profile/personal_access_tokens 我找到并尝试过的只是个人访问令牌,位于: https//gitlab.com/profile/personal_access_tokens

PERSONAL ACCESS TOKEN was already generated and used but it does not work. 个人访问TOKEN已经生成并使用但不起作用。

在此输入图像描述

=== UPDATED === ===更新===

Error log (I have replaced a real URL path with asterixes because of the privacy) 错误日志(由于隐私,我已用星号替换了真实的URL路径)

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)

You need to create a new Personal Access Token here https://gitlab.com/profile/personal_access_tokens and put it in that field. 您需要在此处创建一个新的个人访问令牌https://gitlab.com/profile/personal_access_tokens并将其放在该字段中。

Have you checked this: https://confluence.jetbrains.com/display/PhpStorm/Integration+with+an+Issue+Tracking+System+in+PhpStorm 您检查过这个: https//confluence.jetbrains.com/display/PhpStorm/Integration+with+an+Issue+Tracking+System+in+PhpStorm

From what I gather, if you generated the token correctly on the Gitlab side ( SETTINGS > ACCESS TOKENS > CREATE PERSONAL ACCESS TOKEN ) and inserted it into the token field at TOOLS > TASKS & CONTEXTS > CONFIGURE SERVERS in PhPStorm, it could be a timeout problem. 从我收集的内容来看,如果您在Gitlab端正确生成令牌( SETTINGS > ACCESS TOKENS > CREATE PERSONAL ACCESS TOKEN )并将其插入到PhPStorm中TOOLS > TASKS & CONTEXTS > CONFIGURE SERVERS的令牌字段中,则可能是超时问题。

If you go to SETTINGS (Ctrl+Alt+S) > TASKS and change the CONNECTION TIMEOUT parameter to, say, 20000ms it should work. 如果你转到SETTINGS (Ctrl + Alt + S)> TASKS并将CONNECTION TIMEOUT参数更改为20000ms它应该可以工作。

在此输入图像描述

在此输入图像描述

Please refer to this post if you have any doubts. 如果您有任何疑问,请参阅这篇文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM