Comments (4)
@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.
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.
@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.
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)
- VS Code to Auto-detect language HOT 1
- Update `braces` to version 3.0.3 HOT 2
- cpptools-srv quit unexpectedly when rescanning workspace HOT 1
- Tweak the hover popup information to make it more readable and concise HOT 3
- format do not support AlignEscapedNewlines : LeftWithLastLine HOT 1
- Validation for VS Code settings HOT 1
- Outline view is randomly incorrect after opening a file and pasting code
- "<unnamed>" is incorrectly offered as a completion
- Intellisense error sizeof(uint32_t) is 8 bytes HOT 1
- Workspace tag parsing performance regression with 1.21.0 on Linux/Mac HOT 2
- Database may randomly have incorrect symbols after Close All Editors (without saving) is done HOT 1
- the prelaunchtask c/c++: gcc build active file terminated with exit code -1
- Formatting does not work in the if statement in the λ expression to the right of the assignment statement … HOT 1
- Display additional Doxygen tags in tooltip documentation HOT 3
- C_Cpp.codeAnalysis.exclude does work with ${workspaceFolder} or ${workspaceFolder]/** HOT 5
- integrated terminal does not support std::thread output HOT 1
- Annoying false-positives in C code HOT 3
- Version v1.20.5 does not find standard headers HOT 2
- After setting win11 folder with file name case sensitive, IntelliSense can't parse symbol HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-cpptools.