Code Monkey home page Code Monkey logo

Comments (4)

tomasgareau avatar tomasgareau commented on August 18, 2024 2

I think this was introduced by #51 -- it added a proxy setting to the ccppr_vsc installer that, when unset (the default), changed the install command to something like:

wget -e https_proxy=false $(curl -s https://blah -x false | grep ...)

with -x false, the curl subcommand fails to fetch the URL & wget doesn't get passed anything.

#59 should fix that!

from dap-buddy.nvim.

tomasgareau avatar tomasgareau commented on August 18, 2024 2

Hi @agentzhao -- looks like microsoft/vscode-cpptools has removed the offline installers that DAPInstall.nvim is trying to install as of version 1.8.2: microsoft/vscode-cpptools#8759

DAPInstall was running the following curl command to determine the URL to pass to wget:

curl -s https://api.github.com/repos/microsoft/vscode-cpptools/releases/latest | grep browser_ | cut -d\" -f 4 | grep linux.vsix

but since https://api.github.com/repos/microsoft/vscode-cpptools/releases/latest is now pointing to 1.8.2, there is no cpptools-linux.vsix to download, causing that wget error you saw above.

In a pinch for now you could probably change this line:

https://github.com/Pocco81/DAPInstall.nvim/blob/24923c3819a450a772bb8f675926d530e829665f/lua/dap-install/core/debuggers/ccppr_vsc.lua#L50

to:

wget https://github.com/microsoft/vscode-cpptools/releases/download/1.8.1/cpptools-linux.vsix

which would install version 1.8.1.

You can find the installed plugin & edit that line directly in your neovim data directory if you wanted to do a quick test. Try :help base-directories to find the data directory for your platform: for unix, it should be ~/.local/share/nvim, for windows, ~/AppData/Local/nvim-data.


Longer term, this installer will probably need to be edited to pull the latest files from Marketplace but I'm not super familiar with the ccppr_vsc debugger.

from dap-buddy.nvim.

agentzhao avatar agentzhao commented on August 18, 2024 1

thanks for the quick reply!

from dap-buddy.nvim.

agentzhao avatar agentzhao commented on August 18, 2024

Hi,

I've updated to the latest version - Merge pull request #59 from tomasgareau/main, but still facing this issue for ccppr_vsc

I'm running neovim 0.6.1 on wsl 2 Ubuntu 20.04

wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

[Process exited 1]

I've managed to install python and chrome successfully, not sure if it's the same issue

from dap-buddy.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.