gpt4 book ai didi

configuration - 配置 PhpStorm 以显示来自 GitLab 的问题/任务

转载 作者:行者123 更新时间:2023-12-02 03:47:22 24 4
gpt4 key购买 nike

我在设置 GitLab 帐户来管理 PhpStorm 中的任务(问题)时遇到了麻烦 TOOLS > TASKS & CONTEXTS > CONFIGURE SERVERS

什么是 token 字段?我在哪里可以找到它,我在 GitLab 服务器上的个人资料中进行了搜索,但一无所获。

enter image description here

我唯一找到并尝试过的是位于此处的个人访问 token :https://gitlab.com/profile/personal_access_tokens

PERSONAL ACCESS TOKEN 已生成并使用,但它不起作用。

enter image description here

=== 已更新 ===

错误日志(出于隐私考虑,我用星号替换了真实的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)

最佳答案

据我所知,如果您在 Gitlab 端正确生成了 token (SETTINGS > ACCESS TOKENS > CREATE PERSONAL ACCESS TOKEN)并将其插入到 PhPStorm 中 TOOLS > TASKS & CONTEXTS > CONFIGURE SERVERS 的 token 字段中,这可能是超时问题。

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

enter image description here

enter image description here

请引用这个post如果您有任何疑问。

关于configuration - 配置 PhpStorm 以显示来自 GitLab 的问题/任务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46400650/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com