question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] go run github.com/fabric8-analytics/cli-tools/gomanifest doesn't work, but gomanifest itself does, and the extension is trying for go run ...

See original GitHub issue

Describe the bug Im not sure but I think it is that the extension doesn’t work very well with golang 1.16, because of the following error I’m getting when trying to get the analysis for a golang project.

This is the ouput of the “Dependency Analytics” console:

 CMD :go get -u github.com/fabric8-analytics/cli-tools/gomanifest && go run github.com/fabric8-analytics/cli-tools/gomanifest "/home/user/testingProject/" "/home/user/testingProject/target/golist.json" "go"
 STDOUT :  
 STDERR : no required module provides package github.com/fabric8-analytics/cli-tools/gomanifest: go.mod file not found in current directory or any parent directory; see 'go help modules'

So the specific error seems to be that the command: go run github.com/fabric8-analytics/cli-tools/gomanifest is not runnable, since if I run the same command from an external terminal in a different directory it gives the same error, even when the command “gomanifest” alone works (meaning “gomanifest” is installed and found in the path).

To Reproduce Steps to reproduce the behavior:

  1. Ubuntu 20.04 and VScode downloaded and installed manually.

  2. Just open a golang project, and from the go.mod file open, click on the ‘Open Vulnerability Report’ icon: image

  3. Te following notification appears, just click on “Show Output Log” image

  4. See error

VSCode(please complete the following information):

  • OS: Ubuntu 20.04
  • VSCode version 1.54.3
  • Dependency Analytics Version 0.3.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rafaribecommented, Sep 9, 2022

This is also happening to me on MacOS.

0reactions
Ortega-Dancommented, Apr 21, 2021

@dgpatelgit The commit already on master works very well. Thanks. But it didn’t work on Windows. Then I just created PR #510 which adds upon your fix and includes Windows support. Please check.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems with Go extension. Please help · Issue #2574 - GitHub
I have problem with Go extension. I installed tools like gocode but it doesn't work. But in another one project all tools are...
Read more >
Go extension not working · Issue #1468 · microsoft/vscode-go
i installed the go extension, but when i try to write code, i get the following messages: "The "gopkgs" command is not available....
Read more >
Extension failed to activate #1386 - microsoft/vscode-go - GitHub
After a reboot yesterday, vscode-go does not work properly anymore. ... Still trying different things, but wanted to get some input on what...
Read more >
Go debugger won't start on M1 Mac with "Failed to launch ...
I get this regardless of what program I'm trying to run with the debugger, e.g. launching a program, or even hitting the debug...
Read more >
[Bug]: Chrome Extension V3 service_worker - Supported APIs ...
I'm a content script, and I'm going to try to send a message to anyone that is listening. Hello sender, I received your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found