Suppress this error with check go version false

Debugging/Launch after update to Go 1.14 not works #3106 Comments What version of Go, VS Code & VS Code Go extension are you using? Run go version to get version of Go go version go1.14 darwin/amd64 Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders 1.43.0 78a4c91400152c0f27ba4d363eb56d2835f9903a […]

Содержание

  1. Debugging/Launch after update to Go 1.14 not works #3106
  2. Comments
  3. What version of Go, VS Code & VS Code Go extension are you using?
  4. Share the Go related settings you have added/edited
  5. Describe the bug
  6. Version of Delve is too old for this version of Go (maximum supported version 1.12, suppress this error with —check-go-version=false) #1710
  7. Comments
  8. Debugging after update to Go 1.14 Launch not works #92717
  9. Comments
  10. Delve: Версия Delve слишком старая для этой версии Go (максимальная поддерживаемая версия 1.12, подавите эту ошибку с помощью —check-go-version=false)
  11. Все 15 Комментарий
  12. vscode-go failing to update go tools #2897
  13. Comments
  14. What version of Go, VS Code & VS Code Go extension are you using?
  15. Share the Go related settings you have added/edited
  16. Describe the bug
  17. Steps to reproduce the behavior:
  18. Screenshots or recordings

Debugging/Launch after update to Go 1.14 not works #3106

What version of Go, VS Code & VS Code Go extension are you using?

  • Run go version to get version of Go
    • go version go1.14 darwin/amd64
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders
    • 1.43.0
      78a4c91400152c0f27ba4d363eb56d2835f9903a
      x64
  • Check your installed extensions to get the version of the VS Code Go extension
    • 0.13.1
  • Run go env GOOS GOARCH to get the operating system and processor architecture details
    • darwin
      amd64

Run Preferences: Open Settings (JSON) command to open your settings.json file.
Share all the settings with the go. or [«go»] prefixes.

Describe the bug

After updating golang to version 1.14 I am not able to launch/debug an application anymore. I am getting the following error:

The text was updated successfully, but these errors were encountered:

What is the version of delve?
The error message indicates the current version is too old. If you are in linux and using 1.14, run the following command in a directory where no go.mod file exists will do upgrade.

Same issue after the upgrade of delve to v1.4.0

@micharaze: Is the error message the same or is there a different error message?

It’s possible VS Code isn’t using the updated version of Delve. Can you run dlv version in the integrated terminal?

In my case the delve debugger is identical between vscode and my normal terminal

I cannot repro this issue.

Edit: @jimmystewpot if you manually installed dlv, can you try to let VS Code install the tool? Go: Install/Update Tools and select ‘dlv’. That will show which path VS Code will use to install the new dlv. Let us know whether the path is different from the dlv’s path ( which dlv from the integrated terminal.)

Also you can double check if dlv exec exhibits the same issue. If so, we will need help from upstream dlv dev.

Источник

Version of Delve is too old for this version of Go (maximum supported version 1.12, suppress this error with —check-go-version=false) #1710

  1. What version of Delve are you using ( dlv version )?
    Version: 1.3.0
  2. What version of Go are you using? ( go version )?
    go version go1.13.1 darwin/amd64
  3. What operating system and processor architecture are you using?
    macOS
  4. What did you do?
    Initial debugging vi GoLand
  5. What did you expect to see?
    Debug process started
  6. What did you see instead?
    Version of Delve is too old for this version of Go (maximum supported version 1.12, suppress this error with —check-go-version=false)

I tried to add the flag to the Go tool arguments: via the Run/Debug Configurations in GoLand, but I received the following error:

The text was updated successfully, but these errors were encountered:

Upgrade GoLand to 2019.2.2 or newer and the issue will be fixed. This is not a Delve issue, it’s caused by us, JetBrains, embedding Delve in the IDE.

@dlsniper tnx for the quick answer. Indeed it was an issue of JetBrains.

what fuck?just now , JetBrains was by me crack.

The right way is upgrade GoLand to newer and the issue will be fixed. Here is a temporary solution:

@52fhy please don’t do that because it will break the IDE updating process. and other things. Just upgrade the IDE and everything will be fine.

@52fhy please don’t do that because it will break the IDE updating process. and other things. Just upgrade the IDE and everything will be fine.

Thanks. Upgrade is too slow. Sometimes I just want to debug and don’t want to upgrade the IDE.

We release an updated version once a month, so not sure why that is slower than breaking the IDE installation. That being said, if you are aware of the problem it causes, you can still do it, of course. Just know that we don’t support this and in the future, when Delve APIs will change, this might further break your IDE experience.

We release an updated version once a month, so not sure why that is slower than breaking the IDE installation. That being said, if you are aware of the problem it causes, you can still do it, of course. Just know that we don’t support this and in the future, when Delve APIs will change, this might further break your IDE experience.

Thank you very much. My solution is temporary. The right way is to upgrade goland.

@52fhy please don’t do that because it will break the IDE updating process. and other things. Just upgrade the IDE and everything will be fine.

my IDE is JetBrains GoLand 2019.2.3 x64, but also take the error
Version of Delve is too old for this version of Go (maximum supported version 1.13, suppress this error with —check-go-version=false)

dlv version
Delve Debugger
Version: 1.4.1
Build: $Id: bda606147ff48b58bde39e20b9e11378eaa4db46 $

go version
go version go1.14.2 windows/amd64

@gbwxy please upgrade to GoLand 2020.1.2 and that problem will disappear.

@dlsniper I am using your perpetual fallback version and your suggested fix requires me to pay for one more year of goland for 200$. I don’t want to pay but still want to have access to the debugger. The fix above seems to be the only way to achieve that.

@dlsniper do you have a solution for fallback license owners who have already invested 200$+ in your product?

@jtestard if you don’t want to upgrade to a newer version of the IDE, then @52fhy’s solution above is the only solution we’ve got. then you can follow the instructions here: https://youtrack.jetbrains.com/issue/GO-8186#focus=streamItem-27-3730182.0-0 for a workaround that won’t break the IDE upgrade path.

Also, I have to apologize for the incorrect version mentioned above. The fix for this issue was applied in 2019.2.4, per comment on our issue tracker. Still, we encourage everyone to use the latest possible version to make sure that the experience is worthy of the paid price.

Finally, the license price for GoLand is $89 for the first year, then $71 for the second year, and $53 from the third year onward. Unless you are a company, but that’s beyond the scope of this issue.

I’m happy to move the discussion on our support channels for GoLand.

Edit: Be aware that doing so, might cause problems in the future, if the Delve APIs will need changes to work, etc. and that point the only solution will be an upgrade anyway.

Источник

Debugging after update to Go 1.14 Launch not works #92717

After updating golang to version 1.14 I am not able to launch/debug an application anymore. I am getting the following error:

VS Code version: Code 1.43.0 (78a4c91, 2020-03-09T19:34:44.548Z)
OS version: Darwin x64 19.3.0

System Info

Item Value
CPUs Intel(R) Core(TM) i5-4260U CPU @ 1.40GHz (4 x 1400)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) 4, 5, 6
Memory (System) 4.00GB (0.12GB free)
Process Argv
Screen Reader no
VM 0%

Extensions (29)

Extension Author (truncated) Version
vscode-css-formatter aes 1.0.1
path-intellisense chr 1.4.2
bracket-pair-colorizer-2 Coe 0.0.29
vscode-eslint dba 2.1.1
es7-react-js-snippets dsz 2.7.0
gitlens eam 10.2.1
vscode-html-css ecm 0.2.3
jira-plugin gio 0.19.1-alpha
vscode-back-forward-button gri 0.1.2
todo-tree Gru 0.0.169
plantuml jeb 2.13.6
vscode-peacock joh 3.6.0
auto-comment-blocks kev 1.0.1
vscode-docker ms- 1.0.0
python ms- 2020.2.64397
Go ms- 0.13.1
debugger-for-chrome msj 4.12.6
autodocstring njp 0.4.0
vsnotes pat 0.7.1
material-icon-theme PKi 4.0.1
gotestexplorer pre 0.1.11
LiveServer rit 5.6.1
action-buttons seu 1.1.5
code-settings-sync Sha 3.4.3
js-jsx-snippets sky 10.0.0
code-spell-checker str 1.8.0
JavaScriptSnippets xab 1.7.2
markdown-all-in-one yzh 2.7.0
vscode-proto3 zxh 0.4.2

The text was updated successfully, but these errors were encountered:

Источник

Delve: Версия Delve слишком старая для этой версии Go (максимальная поддерживаемая версия 1.12, подавите эту ошибку с помощью —check-go-version=false)

Я попытался добавить флаг в Go tool arguments: через Run/Debug Configurations в GoLand , но получил следующую ошибку:

Правильный способ — обновить GoLand до более новой версии, и проблема будет устранена. Вот временное решение:

Все 15 Комментарий

Обновите GoLand до версии 2019.2.2 или новее, и проблема будет устранена. Это не проблема Delve, это вызвано тем, что мы, JetBrains, встроили Delve в IDE.

@dlsniper спасибо за быстрый ответ. Действительно, это была проблема JetBrains.

какого хрена?только что JetBrains был у меня крэком.

Правильный способ — обновить GoLand до более новой версии, и проблема будет устранена. Вот временное решение:

@ 52fhy , пожалуйста, не делайте этого, потому что это нарушит процесс обновления IDE. и другие вещи. Просто обновите IDE и все будет хорошо.

@ 52fhy , пожалуйста, не делайте этого, потому что это нарушит процесс обновления IDE. и другие вещи. Просто обновите IDE и все будет хорошо.

Спасибо. Обновление слишком медленное. Иногда я просто хочу отладить и не хочу обновлять IDE.

Мы выпускаем обновленную версию раз в месяц, так что не знаю, почему это медленнее, чем прерывание установки IDE. При этом, если вы знаете о проблеме, которую это вызывает, вы, конечно, все равно можете это сделать. Просто знайте, что мы не поддерживаем это, и в будущем, когда API Delve изменятся, это может еще больше нарушить вашу работу с IDE.

Мы выпускаем обновленную версию раз в месяц, так что не знаю, почему это медленнее, чем прерывание установки IDE. При этом, если вы знаете о проблеме, которую это вызывает, вы, конечно, все равно можете это сделать. Просто знайте, что мы не поддерживаем это, и в будущем, когда API Delve изменятся, это может еще больше нарушить вашу работу с IDE.

Большое Вам спасибо. Мое решение временное. Правильный путь — обновить goland.

@ 52fhy , пожалуйста, не делайте этого, потому что это нарушит процесс обновления IDE. и другие вещи. Просто обновите IDE и все будет хорошо.

моя IDE — JetBrains GoLand 2019.2.3 x64, но также принять ошибку
Версия Delve слишком старая для этой версии Go (максимальная поддерживаемая версия 1.13, подавите эту ошибку с помощью —check-go-version=false)

dlv-версия
Отладчик погружения
Версия: 1.4.1
Сборка: $Id: bda606147ff48b58bde39e20b9e11378eaa4db46 $

иди версия
версия go go1.14.2 windows/amd64

@gbwxy, пожалуйста, обновитесь до GoLand 2020.1.2, и эта проблема исчезнет.

@dlsniper Я использую вашу постоянную резервную версию, и предложенное вами исправление требует, чтобы я заплатил еще один год за 200 долларов. Я не хочу платить, но все же хочу иметь доступ к отладчику. Вышеприведенное исправление кажется единственным способом добиться этого.

@dlsniper , у вас есть решение для владельцев резервных лицензий, которые уже вложили более 200 долларов в ваш продукт?

@jtestard , если вы не хотите переходить на более новую версию IDE, то приведенное выше решение @52fhy — единственное решение, которое у нас есть. тогда вы можете следовать инструкциям здесь: https://youtrack.jetbrains.com/issue/GO-8186#focus =streamItem-27-3730182.0-0 для обходного пути, который не нарушит путь обновления IDE.

Кроме того, я должен извиниться за неправильную версию, упомянутую выше. Исправление этой проблемы было применено в версии 2019.2.4, судя по комментарию в нашем трекере ошибок. Тем не менее, мы призываем всех использовать самую последнюю возможную версию, чтобы убедиться, что опыт достоин заплаченной цены.

Наконец, стоимость лицензии GoLand составляет 89 долларов в первый год, затем 71 доллар во второй год и 53 доллара с третьего года. Если вы не компания, но это выходит за рамки этого вопроса.

Я рад перенести обсуждение на наши каналы поддержки GoLand .

Изменить . Имейте в виду, что это может вызвать проблемы в будущем, если API Delve потребуют изменений для работы и т. д., и в этом случае единственным решением будет обновление в любом случае.

@dlsniper Цена могла измениться, но 200 долларов — это то, сколько я заплатил за один год. Спасибо за обходное решение.

Источник

What version of Go, VS Code & VS Code Go extension are you using?

go version go1.13.4 windows/amd64

  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders
    1.40.0
    86405ea23e3937316009fc27c9361deee66ffbf5
    x64
  • Check your installed extensions to get the version of the VS Code Go extension
    Name: Go
    ID: ms-vscode.go
    Description: Rich Go language support for Visual Studio Code
    Version: 0.11.9
    Editore: Microsoft
    itemName=ms-vscode.Go
  • Run go env GOOS GOARCH to get the operating system and processor arhcitecture details
    windows
    amd64

Describe the bug

I have manually upgraded go compiler to 1.13.4.
After this nothing works anymore
When I start Visual studio code it says it needs to update go tools.
Update starts but fails because all tools report «access is denied»
I I try debugging delve complains telling me that: «Version of Delve is too old for this version of Go (maximum supported version 1.12, suppress this error with —check-go-version=false)»

Steps to reproduce the behavior:

  1. Upgrade go compiler to 1.13.4
  2. Open Visual studio code
  3. Press Ctrl Shift P
  4. Select Go: Install/Update tools
  5. select your preference of tools
  6. Look at errors in the Output pane (See below for error detail)

Screenshots or recordings

Output of tools update:
Using the value d:go from the go.toolsGopath setting.
Installing 12 tools at d:gobin in module mode.
gocode
gopkgs
go-outline
go-symbols
guru
gorename
dlv
gocode-gomod
godef
goimports
golint
gopls

Installing github.com/mdempsky/gocode FAILED
Installing github.com/uudashr/gopkgs/cmd/gopkgs SUCCEEDED
Installing github.com/ramya-rao-a/go-outline FAILED
Installing github.com/acroca/go-symbols FAILED
Installing golang.org/x/tools/cmd/guru FAILED
Installing golang.org/x/tools/cmd/gorename FAILED
Installing github.com/go-delve/delve/cmd/dlv FAILED
Installing github.com/stamblerre/gocode FAILED
Installing github.com/rogpeppe/godef FAILED
Installing golang.org/x/tools/cmd/goimports FAILED
Installing golang.org/x/lint/golint FAILED
Installing golang.org/x/tools/gopls SUCCEEDED

10 tools failed to install.

gocode:
Error: Command failed: c:gobingo.exe get -v github.com/mdempsky/gocode
go: finding github.com/mdempsky/gocode latest
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
build github.com/mdempsky/gocode: cannot load golang.org/x/tools/go/gcexportdata: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-162181577 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.
go: finding github.com/mdempsky/gocode latest
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
build github.com/mdempsky/gocode: cannot load golang.org/x/tools/go/gcexportdata: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-162181577 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.

go-outline:
Error: Command failed: c:gobingo.exe get -v github.com/ramya-rao-a/go-outline
go: finding github.com/ramya-rao-a/go-outline latest
go: finding golang.org/x/tools latest
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
build github.com/ramya-rao-a/go-outline: cannot load golang.org/x/tools/go/buildutil: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-861491774 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.
go: finding github.com/ramya-rao-a/go-outline latest
go: finding golang.org/x/tools latest
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
build github.com/ramya-rao-a/go-outline: cannot load golang.org/x/tools/go/buildutil: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-861491774 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.

go-symbols:
Error: Command failed: c:gobingo.exe get -v github.com/acroca/go-symbols
go: finding golang.org/x/tools latest
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
build github.com/acroca/go-symbols: cannot load golang.org/x/tools/go/buildutil: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-975959578 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.
go: finding golang.org/x/tools latest
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
build github.com/acroca/go-symbols: cannot load golang.org/x/tools/go/buildutil: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-975959578 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.

guru:
Error: Command failed: c:gobingo.exe get -v golang.org/x/tools/cmd/guru
go: finding golang.org/x/tools latest
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
go get golang.org/x/tools/cmd/guru: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-321705022 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.
go: finding golang.org/x/tools latest
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
go get golang.org/x/tools/cmd/guru: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-321705022 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.

gorename:
Error: Command failed: c:gobingo.exe get -v golang.org/x/tools/cmd/gorename
go: finding golang.org/x/tools latest
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
go get golang.org/x/tools/cmd/gorename: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-227549402 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.
go: finding golang.org/x/tools latest
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
go get golang.org/x/tools/cmd/gorename: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-227549402 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.

dlv:
Error: Command failed: c:gobingo.exe get -v github.com/go-delve/delve/cmd/dlv
go: extracting github.com/go-delve/delve v1.3.2
go get github.com/go-delve/delve/cmd/dlv: rename d:gopkgmodgithub.comgo-delvedelve@v1.3.2.tmp-884088698 d:gopkgmodgithub.comgo-delvedelve@v1.3.2: Access is denied.
go: extracting github.com/go-delve/delve v1.3.2
go get github.com/go-delve/delve/cmd/dlv: rename d:gopkgmodgithub.comgo-delvedelve@v1.3.2.tmp-884088698 d:gopkgmodgithub.comgo-delvedelve@v1.3.2: Access is denied.

gocode-gomod:
Error: Command failed: c:gobingo.exe get -v -d github.com/stamblerre/gocode
go: extracting github.com/stamblerre/gocode v1.0.0
go get github.com/stamblerre/gocode: rename d:gopkgmodgithub.comstamblerregocode@v1.0.0.tmp-608084638 d:gopkgmodgithub.comstamblerregocode@v1.0.0: Access is denied.
go: extracting github.com/stamblerre/gocode v1.0.0
go get github.com/stamblerre/gocode: rename d:gopkgmodgithub.comstamblerregocode@v1.0.0.tmp-608084638 d:gopkgmodgithub.comstamblerregocode@v1.0.0: Access is denied.

godef:
Error: Command failed: c:gobingo.exe get -v github.com/rogpeppe/godef
go: extracting golang.org/x/tools v0.0.0-20181130195746-895048a75ecf
build github.com/rogpeppe/godef: cannot load golang.org/x/tools/go/ast/astutil: rename d:gopkgmodgolang.orgxtools@v0.0.0-20181130195746-895048a75ecf.tmp-281861802 d:gopkgmodgolang.orgxtools@v0.0.0-20181130195746-895048a75ecf: Access is denied.
go: extracting golang.org/x/tools v0.0.0-20181130195746-895048a75ecf
build github.com/rogpeppe/godef: cannot load golang.org/x/tools/go/ast/astutil: rename d:gopkgmodgolang.orgxtools@v0.0.0-20181130195746-895048a75ecf.tmp-281861802 d:gopkgmodgolang.orgxtools@v0.0.0-20181130195746-895048a75ecf: Access is denied.

goimports:
Error: Command failed: c:gobingo.exe get -v golang.org/x/tools/cmd/goimports
go: finding golang.org/x/tools latest
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
go get golang.org/x/tools/cmd/goimports: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-789239246 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.
go: finding golang.org/x/tools latest
go: extracting golang.org/x/tools v0.0.0-20191111154804-8cb0d02132ec
go get golang.org/x/tools/cmd/goimports: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec.tmp-789239246 d:gopkgmodgolang.orgxtools@v0.0.0-20191111154804-8cb0d02132ec: Access is denied.

golint:
Error: Command failed: c:gobingo.exe get -v golang.org/x/lint/golint
go: finding golang.org/x/lint latest
go: extracting golang.org/x/tools v0.0.0-20190311212946-11955173bddd
build golang.org/x/lint/golint: cannot load golang.org/x/tools/go/ast/astutil: rename d:gopkgmodgolang.orgxtools@v0.0.0-20190311212946-11955173bddd.tmp-568541006 d:gopkgmodgolang.orgxtools@v0.0.0-20190311212946-11955173bddd: Access is denied.
go: finding golang.org/x/lint latest
go: extracting golang.org/x/tools v0.0.0-20190311212946-11955173bddd
build golang.org/x/lint/golint: cannot load golang.org/x/tools/go/ast/astutil: rename d:gopkgmodgolang.orgxtools@v0.0.0-20190311212946-11955173bddd.tmp-568541006 d:gopkgmodgolang.orgxtools@v0.0.0-20190311212946-11955173bddd: Access is denied.

The text was updated successfully, but these errors were encountered:

This may very well be a bug in the way that vscode-go installs these tools, but I’ve never seen such an error before. @jayconrod — have you ever encountered something like this?

Probably related to golang/go#35043, windows is wonderful like that.

As a confirmation, reopening vs code asked for gopls update, and this time it reports the exact command failing, and as you supposed it’s a rename. Here the output:

Using the value d:go from the go.toolsGopath setting.
Installing 1 tool at d:gobin in module mode.
gopls

Installing golang.org/x/tools/gopls FAILED

1 tools failed to install.

gopls:
Error: Command failed: c:gobingo.exe get -v golang.org/x/tools/gopls
go: finding golang.org/x/tools/gopls v0.2.0
go: downloading golang.org/x/tools/gopls v0.2.0
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools v0.0.0-20191112005509-a3f652f18032
go: extracting golang.org/x/tools/gopls v0.2.0
go: extracting golang.org/x/tools v0.0.0-20191112005509-a3f652f18032
go: downloading golang.org/x/tools v0.0.0-20191108194844-46f05828f2fe
go: extracting golang.org/x/tools v0.0.0-20191108194844-46f05828f2fe
go get golang.org/x/tools/gopls: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191108194844-46f05828f2fe.tmp-150253189 d:gopkgmodgolang.orgxtools@v0.0.0-20191108194844-46f05828f2fe: Access is denied.
go: finding golang.org/x/tools/gopls v0.2.0
go: downloading golang.org/x/tools/gopls v0.2.0
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools v0.0.0-20191112005509-a3f652f18032
go: extracting golang.org/x/tools/gopls v0.2.0
go: extracting golang.org/x/tools v0.0.0-20191112005509-a3f652f18032
go: downloading golang.org/x/tools v0.0.0-20191108194844-46f05828f2fe
go: extracting golang.org/x/tools v0.0.0-20191108194844-46f05828f2fe
go get golang.org/x/tools/gopls: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191108194844-46f05828f2fe.tmp-150253189 d:gopkgmodgolang.orgxtools@v0.0.0-20191108194844-46f05828f2fe: Access is denied.

Doing the same command externally works, however

@alfmos The errors you’re seeing are reported by the go command after it extracts a module zip file, as it tries to move the extracted directory into place in the module cache.

Could you take a quick look in the module cache and see if there is a permissions problem?

  • Does the directory d:gopkgmodgolang.orgxtools@v0.0.0-20191108194844-46f05828f2fe exist? Is it owned by another user? Does it have any unusual ACLs or permissions? Are there files inside?
  • How about the parent directory d:gopkgmodgolang.orgx ? Same questions.
  • What file system is this on (I’m assuming NTFS on a second drive, but correct me if I’m wrong). Would anything prevent file locking from working there?

You can work around this by setting the GOPATH environment variable to a different directory. That will move the module cache.

Alternatively, you can clear the cache by running go clean -modcache .

@OneOfOne I don’t think golang/go#35043 is the cause. Module zip directories are not set to read-only until after they are renamed. I’m guessing the cache is either in some partial state it can’t recover from or directories in it are owned by multiple users.


@jayconrod I have included a printscreen of the directory and I don’t see any issue on permissions.
d is indeed a second disk, local to the pc.
No one is locking directories, and launching go goet from outside vs code doesn’t give error (but doesn’t solve the problem)
I reverted to 1.12 to continue working. I’m going to install 1.13 again, I’ll give a try to your workarounds and I’ll let you know.
P.S. I work in an Active directory environment, but I am domain admin and I have all permissions

Reinstalled go 1.13
launched go clean -modcache
Started vc code, asked for updating gopls, but installation failed.
I have also changed d:go permissions giving complete control to authenticated users and local users, but nothing changes
Going to try changing GOPATH
Usual error:
Using the value d:go from the go.toolsGopath setting.
Installing 1 tool at d:gobin in module mode.
gopls

Installing golang.org/x/tools/gopls FAILED

1 tools failed to install.

gopls:
Error: Command failed: c:gobingo.exe get -v golang.org/x/tools/gopls
go: finding golang.org/x/tools/gopls v0.2.0
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools/gopls v0.2.0
go: downloading golang.org/x/tools v0.0.0-20191113055240-e33b02e76616
go: extracting golang.org/x/tools/gopls v0.2.0
go: extracting golang.org/x/tools v0.0.0-20191113055240-e33b02e76616
go: downloading golang.org/x/tools v0.0.0-20191108194844-46f05828f2fe
go: extracting golang.org/x/tools v0.0.0-20191108194844-46f05828f2fe
go get golang.org/x/tools/gopls: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191108194844-46f05828f2fe.tmp-556064501 d:gopkgmodgolang.orgxtools@v0.0.0-20191108194844-46f05828f2fe: Access is denied.
go: finding golang.org/x/tools/gopls v0.2.0
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools/gopls v0.2.0
go: downloading golang.org/x/tools v0.0.0-20191113055240-e33b02e76616
go: extracting golang.org/x/tools/gopls v0.2.0
go: extracting golang.org/x/tools v0.0.0-20191113055240-e33b02e76616
go: downloading golang.org/x/tools v0.0.0-20191108194844-46f05828f2fe
go: extracting golang.org/x/tools v0.0.0-20191108194844-46f05828f2fe
go get golang.org/x/tools/gopls: rename d:gopkgmodgolang.orgxtools@v0.0.0-20191108194844-46f05828f2fe.tmp-556064501 d:gopkgmodgolang.orgxtools@v0.0.0-20191108194844-46f05828f2fe: Access is denied.

New try:
created d:gocache
Assigned complete permissions to all users
chenged in vs code all references
<
«php.validate.executablePath»: «d:phpphp.exe»,
«window.zoomLevel»: 0,
«svn.enableProposedApi»: «product»,

>
started vs code
tried to update gopls, but always same error on rename:

Источник

AdolphKevin

VSCode debug error : Version of Delve is too old for this version of Go

vscode debug error in macos :

Version of Delve is too old for this version of Go (maximum supported version 1.13, suppress this error with —check-go-version=false)

go version is 1.14.1 darwin/amd64 , dlv version is 1.4.0

i try reinstall go-delve in $GOPATH and appoint 1.14 in go mod

i try upgrade and reinstall vscode

but still no solution.

AdolphKevin

is solution.

sudo rm $GOROOT/bin/dlv
sudo rm $GOPATH/bin/dlv
sudo go get -u github.com/go-delve/delve/cmd/dlv

check dlv local path

result is $GOROOT/bin/dlv. then

sudo mv $GOROOT/bin/dlv $GOPATH/bin/

AdolphKevin

keep vscode and delve is updates available

leobeosab

Easier solution for me is just doing

go get -u github.com/go-delve/delve/cmd/dlv

No sudo or moving necessary for me at least.

Antony-redzone

don’t forget you may need to do a
go mod tidy
after the above command

mofei1

{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
«version»: «0.2.0»,
«configurations»: [

    {
        "name": "Launch Package",
        "type": "go",
        "request": "launch",
        "mode": "debug",
        "program": "${workspaceFolder}",
        "dlvLoadConfig":{
            "followPointers": true,
            "maxVariableRecurse": 1,
            "maxStringLen": 512, //字符串最大长度
            "maxArrayValues": 64,
            "maxStructFields": -1
          },
         "dlvFlags": ["--check-go-version=false"] 

    }
]

}
add flag it also can solve it ,the dlv-dap version is too hight will cause it.

nikhilbhavsar5895

{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
«version»: «0.2.0»,
«configurations»: [

    {
        "name": "Launch Package",
        "type": "go",
        "request": "launch",
        "mode": "debug",
        "program": "${workspaceFolder}",
        "dlvLoadConfig":{
            "followPointers": true,
            "maxVariableRecurse": 1,
            "maxStringLen": 512, //字符串最大长度
            "maxArrayValues": 64,
            "maxStructFields": -1
          },
         "dlvFlags": ["--check-go-version=false"] 

    }
]

}
add flag it also can solve it ,the dlv-dap version is too hight will cause it.

Thanks for answer,
This solves my debug server issue but I’m not able to debug test cases. Can you please help me?

coffeedome

@nikhilbhavsar5895 just saw your question above — just go to settings.json file (Settings -> Extensions -> Go -> Select «Edit in settings.json under «Go:Delve Config» section) then add the «dlvFlags»: [«—check-go-version=false»] section to that block just like above.

trentmillar

Since go get is no longer supported outside a module and depricated <1.17 & removed from >=1.18, https://go.dev/doc/go-get-install-deprecation

I just rm‘d the old dlv using, (but I don’t think this is required since the install command should overwrite the binary.)

Then installed the latest version using,

go install github.com/go-delve/delve/cmd/dlv@latest

Works just fine

nixomose

for those of you using a dlv-sudo.sh type script, I had to run go install from above as both my user and as root.
it updated /home/nixo//go/bin/dlv which is what my script was pointing to.
But since it runs as root I needed to install as root as well.

seaskylove

sudo rm $GOROOT/bin/dlv
sudo rm $GOPATH/bin/dlv
sudo go get -u github.com/go-delve/delve/cmd/dlv

There is a situation, dlv’s version is too newer,
so U do cmd «sudo go get -u github.com/go-delve/delve/cmd/dlv» can assign version.
eg:go version 1.14, dlv version 1.7+, —>Correct command:sudo go get -u github.com/go-delve/delve/cmd/dlv@v1.6.0

Обновите GoLand до версии 2019.2.2 или новее, и проблема будет устранена. Это не проблема Delve, это вызвано тем, что мы, JetBrains, встроили Delve в IDE.

@dlsniper спасибо за быстрый ответ. Действительно, это была проблема JetBrains.

какого хрена?только что JetBrains был у меня крэком!!!!

Правильный способ — обновить GoLand до более новой версии, и проблема будет устранена. Вот временное решение:

$ go version
go version go1.14 darwin/amd64

$ goland_dlv_dir=/Applications/GoLand.app/Contents/plugins/go/lib/dlv/mac/
$ $goland_dlv_dir/dlv version
Delve Debugger
Version: 1.3.0
Build: a82e6d69875ed11a0bb3b80d15efba4b4722106e

# install latest 
go get -u github.com/go-delve/delve/cmd/dlv

# bak
mv $goland_dlv_dir/dlv $goland_dlv_dir/dlv.bak

# mv
cp `go env | grep GOPATH | cut -d """ -f 2`/bin/dlv $goland_dlv_dir/

# ok 
$goland_dlv_dir/dlv version
Delve Debugger
Version: 1.4.0
Build: $Id: 67422e6f7148fa1efa0eac1423ab5594b223d93b

@ 52fhy , пожалуйста, не делайте этого, потому что это нарушит процесс обновления IDE. и другие вещи. Просто обновите IDE и все будет хорошо.

@ 52fhy , пожалуйста, не делайте этого, потому что это нарушит процесс обновления IDE. и другие вещи. Просто обновите IDE и все будет хорошо.

Спасибо. Обновление слишком медленное. Иногда я просто хочу отладить и не хочу обновлять IDE.

Мы выпускаем обновленную версию раз в месяц, так что не знаю, почему это медленнее, чем прерывание установки IDE. При этом, если вы знаете о проблеме, которую это вызывает, вы, конечно, все равно можете это сделать. Просто знайте, что мы не поддерживаем это, и в будущем, когда API Delve изменятся, это может еще больше нарушить вашу работу с IDE.

Мы выпускаем обновленную версию раз в месяц, так что не знаю, почему это медленнее, чем прерывание установки IDE. При этом, если вы знаете о проблеме, которую это вызывает, вы, конечно, все равно можете это сделать. Просто знайте, что мы не поддерживаем это, и в будущем, когда API Delve изменятся, это может еще больше нарушить вашу работу с IDE.

Большое Вам спасибо. Мое решение временное. Правильный путь — обновить goland.

@ 52fhy , пожалуйста, не делайте этого, потому что это нарушит процесс обновления IDE. и другие вещи. Просто обновите IDE и все будет хорошо.

моя IDE — JetBrains GoLand 2019.2.3 x64, но также принять ошибку
Версия Delve слишком старая для этой версии Go (максимальная поддерживаемая версия 1.13, подавите эту ошибку с помощью —check-go-version=false)

dlv-версия
Отладчик погружения
Версия: 1.4.1
Сборка: $Id: bda606147ff48b58bde39e20b9e11378eaa4db46 $

иди версия
версия go go1.14.2 windows/amd64

@gbwxy, пожалуйста, обновитесь до GoLand 2020.1.2, и эта проблема исчезнет.

@dlsniper Я использую вашу постоянную резервную версию, и предложенное вами исправление требует, чтобы я заплатил еще один год за 200 долларов. Я не хочу платить, но все же хочу иметь доступ к отладчику. Вышеприведенное исправление кажется единственным способом добиться этого.

@dlsniper , у вас есть решение для владельцев резервных лицензий, которые уже вложили более 200 долларов в ваш продукт?

@jtestard , если вы не хотите переходить на более новую версию IDE, то приведенное выше решение @52fhy — единственное решение, которое у нас есть. тогда вы можете следовать инструкциям здесь: https://youtrack.jetbrains.com/issue/GO-8186#focus =streamItem-27-3730182.0-0 для обходного пути, который не нарушит путь обновления IDE.

Кроме того, я должен извиниться за неправильную версию, упомянутую выше. Исправление этой проблемы было применено в версии 2019.2.4, судя по комментарию в нашем трекере ошибок. Тем не менее, мы призываем всех использовать самую последнюю возможную версию, чтобы убедиться, что опыт достоин заплаченной цены.

Наконец, стоимость лицензии GoLand составляет 89 долларов в первый год, затем 71 доллар во второй год и 53 доллара с третьего года. Если вы не компания, но это выходит за рамки этого вопроса.

Я рад перенести обсуждение на наши каналы поддержки GoLand .

Изменить . Имейте в виду, что это может вызвать проблемы в будущем, если API Delve потребуют изменений для работы и т. д., и в этом случае единственным решением будет обновление в любом случае.

@dlsniper Цена могла измениться, но 200 долларов — это то, сколько я заплатил за один год. Спасибо за обходное решение.

[Windows] Я знаю, что это закрыто, и я опаздываю на вечеринку, но я оказался здесь после того, как получил ошибку заголовка в Visual Studio Code. Я обнаружил, что go v1.15.3 поставляется с dlv v1.12. Обновление dlv через go get -u github.com/go-delve/delve/cmd/dlv поместило новый dlv v1.5.0 в локальный (.gobin относительно моего текущего каталога) каталог. Копирование нового .gobindlv.exe в мой go install (c:gobinbin в моем случае) решило проблему. Возможно, это поможет кому-то столкнуться с той же проблемой.

Была ли эта страница полезной?

0 / 5 — 0 рейтинги

Понравилась статья? Поделить с друзьями:
  • Suppress error java
  • Supported api 3 что это на андроид как исправить на телефоне bq
  • Supported api 3 как исправить на телефоне zte
  • Supported api 3 как исправить на планшете
  • Support viber com ошибка при регистрации что делать