GithubHelp home page GithubHelp logo

Comments (4)

sean-mcmanus avatar sean-mcmanus commented on June 29, 2024

@basava157 There might be some problem with the database. Can you set C_Cpp.loggingLevel to "Debug" and look in the C/C++ logging window for any database error messages? Also, can you set C_Cpp.default.browse.databaseFilename to something like "${workspaceFolder}/.vscode/vc.db" to verify that the database file can be created (it might be trying to create it at an invalid location).

from vscode-cpptools.

basava157 avatar basava157 commented on June 29, 2024

Log generated by C/C++ extension output window content:
"Warning: Expected file /home/basavaraj.m/.vscode-server/extensions/ms-vscode.cpptools-1.20.5/bin/libc.so is missing."

It looks like in home direcory, inside the /.vscode folder there is no db file.
sh-4.4$ ls .vscode/
extensions.json
sh-4.4$ cd .vscode/
sh-4.4$ ls
extensions.json

Note : one more observation is when we reconnect it will show every time like : "The C/C++ extension installed does not match your system."

Installed extension pack details in remote machine are :
sh-4.4$ cd $HOME/.vscode-server/extensions/
sh-4.4$ ls
arzg.eclipse-0.2.0 extensions.json ms-vscode.cmake-tools-1.18.42 ms-vscode.cpptools-extension-pack-1.3.0
davidanson.vscode-markdownlint-0.55.0 mitaki28.vscode-clang-0.2.4 ms-vscode.cpptools-1.20.5 ramyaraoa.show-offset-0.0.4

The machine details are:
The local machine is Microsoft Windows10 pro
The remote machine is ubuntu 18.04 Linux.

(Tried with different extension but still not working and getting same error so please suggest the correct one)

from vscode-cpptools.

sean-mcmanus avatar sean-mcmanus commented on June 29, 2024

@basava157 You have an extension that is for the wrong OS installed. You should uninstall your extension, reload window, and then install the Linux version of the extension in the remote instance. The marketplace is supposed to handle this correctly. Did you install it via the vsix on the GitHub page?

from vscode-cpptools.

basava157 avatar basava157 commented on June 29, 2024

Ya correct, I have installed manually through VSIX / command prompt. As you suggested if its not correct version means, could you please suggest which is the compatible version for this platform. Automatic installation is not working from extension option, so tried doing manually.

When we try to reinstall with latest version getting error as "XHR failed"

and also,
When I try to install Linux extension getting below error.

sh-4.4$ code --install-extension [email protected]
Installing extensions on SSH: 10.221.31.74...
Error: End of central directory record signature not found. Either not a zip file, or file is truncated.
at y (/home/basavaraj.m/.vscode-server/cli/servers/Stable-611f9bfce64f25108829dd295f54a6894e87339d/server/out/vs/server/node/server.main.js:105:25790)
at /home/basavaraj.m/.vscode-server/cli/servers/Stable-611f9bfce64f25108829dd295f54a6894e87339d/server/out/vs/server/node/server.main.js:105:27228
at /home/basavaraj.m/.vscode-server/cli/servers/Stable-611f9bfce64f25108829dd295f54a6894e87339d/server/node_modules/yauzl/index.js:40:7
at /home/basavaraj.m/.vscode-server/cli/servers/Stable-611f9bfce64f25108829dd295f54a6894e87339d/server/node_modules/yauzl/index.js:190:5
at /home/basavaraj.m/.vscode-server/cli/servers/Stable-611f9bfce64f25108829dd295f54a6894e87339d/server/node_modules/yauzl/index.js:712:5
at /home/basavaraj.m/.vscode-server/cli/servers/Stable-611f9bfce64f25108829dd295f54a6894e87339d/server/node_modules/yauzl/fd-slicer.js:33:7
at callback (/home/basavaraj.m/.vscode-server/cli/servers/Stable-611f9bfce64f25108829dd295f54a6894e87339d/server/node_modules/graceful-fs/polyfills.js:138:21)
at FSReqCallback.wrapper [as oncomplete] (node:fs:688:5)
Failed Installing Extensions: vscode-remote://ssh-remote%2B10.221.31.74/home/basavaraj.m/personal/ms-vscode.cpptools-1.20.5%40linux-x64.vsix
sh-4.4$

When we try to reinstall from remote desktop command prompt:
sh-4.4$ code --install-extension [email protected]
Unable to connect to VS Code server: Error in request.
Error: connect ENOENT /run/user/1078/vscode-ipc-eae665fb-be1e-4604-a5f0-b5c21b579efb.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) {
errno: -2,
code: 'ENOENT',
syscall: 'connect',
address: '/run/user/1078/vscode-ipc-eae665fb-be1e-4604-a5f0-b5c21b579efb.sock'
}
sh-4.4$

from vscode-cpptools.

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.