Comments (12)
In general I find it problematic when programs create files outside of the working directory and don't notify the user in any way and often all these remain usually after the program is uninstalled, such as configurations, caches, temporary files, etc.
from vscode-cpptools.
Hi @H-G-Hristov,
Please see the C_Cpp.intelliSenseCachePath
and C_Cpp.intelliSenseCacheSize
settings and let us know if those do not provide the control you are looking for. By default, we pick a common location for cache files because that allows us to manage the total size of caches for all workspaces instead of creating GB's worth of caches per workspaceFolder.
from vscode-cpptools.
@bobbrow Thank you for pointing these settings out.
Main main complaint is that I have been using this extension for over 5 years now and I hand no clue this is happening :) until I run out of space on my Ubuntu partition, which I created too small. It took me awhile to figure out what's was eating my space. And it turned out the cpptools extension was eathing up 30Gb.
According to the setting the cache is 5GB but in fact it was 30Gb.
So it would be nice if the extension improves the visibility of this. Maybe via message on start or something. Or maybe it can have a statistics panel, status bar entry, etc.
And if uninstalled would the extension cleanup this cache or leave it behind like so many programs do?
With so many extensions and so many settings it becomes really hard to figure out everything.
from vscode-cpptools.
Did you intend to say Gb (lower-case 'b')? 30Gb < 5GB
If you did mean 30 GB, are you able to reproduce the issue and share some steps how to do it?
And if uninstalled would the extension cleanup this cache or leave it behind like so many programs do?
Unfortunately, we don't get to play a role in the uninstall process. That could be a feature request for VS Code.
With so many extensions and so many settings it becomes really hard to figure out everything.
Yes, we understand and are very much aware that learning settings in VS Code contributes to a steep learning curve for new users. We've tried to document the most important ones, but could probably do better here.
from vscode-cpptools.
Did you intend to say Gb (lower-case 'b')? 30Gb < 5GB
If you did mean 30 GB, are you able to reproduce the issue and share some steps how to do it?
30GB as in 30 Gigabytes. Sorry.
I don't know how to reproduce it. I use VSCode to open /runtimes in https://github.com/llvm/llvm-project with a CMake preset to build libc++ and also another one to build and link to libc++ a test executable in a separate custom project. I can observe it it will happen again.
Currently:
5.5GB looks more than 5120 but it's probably not a repro.
from vscode-cpptools.
Can you share any machine specs? Is it native Ubuntu, or WSL? x64 or Arm? Raspberry Pi or other embedded device?
from vscode-cpptools.
It is a standard Ubuntu Desktop distro on Dell Inspiron 7567, Intel 7700HQ, 8GB RAM, the partition size is 62.1GB Total.
This is a report from bugs.launchpad.net:
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 6.5.0-15.15~22.04.1-generic 6.5.3
Uname: Linux 6.5.0-15-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.capabilities.gpu0: Error: path was not a regular file.
.proc.driver.nvidia.capabilities.mig: Error: path was not a regular file.
.proc.driver.nvidia.gpus.0000.01.00.0: Error: path was not a regular file.
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
NVRM version: NVIDIA UNIX x86_64 Kernel Module 535.154.05 Thu Dec 28 15:37:48 UTC 2023
GCC version: gcc version 12.3.0 (Ubuntu 12.3.0-1ubuntu1~22.04)
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Sun Jan 28 08:57:34 2024
DistUpgraded: Fresh install
DistroCodename: jammy
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GpuHangFrequency: Several times a week
GpuHangReproducibility: Seems to happen randomly
GpuHangStarted: Immediately after installing this version of Ubuntu
GraphicsCard:
Intel Corporation HD Graphics 630 [8086:591b] (rev 04) (prog-if 00 [VGA controller])
Subsystem: Dell HD Graphics 630 [1028:0798]
NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] [10de:1c8c] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Dell GP107M [GeForce GTX 1050 Ti Mobile] [1028:0798]
InstallationDate: Installed on 2022-05-01 (636 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
MachineType: Dell Inc. Inspiron 15 7000 Gaming
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-15-generic root=UUID=19e3ad11-d1ce-49ce-8809-80fc68612eb3 ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
Title: Xorg freeze
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/30/2021
dmi.bios.release: 1.15
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.15.0
dmi.board.name: 065C71
dmi.board.vendor: Dell Inc.
dmi.board.version: X02
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.15.0:bd08/30/2021:br1.15:svnDellInc.:pnInspiron157000Gaming:pvr:rvnDellInc.:rn065C71:rvrX02:cvnDellInc.:ct10:cvr:sku0798:
dmi.product.family: Inspiron
dmi.product.name: Inspiron 15 7000 Gaming
dmi.product.sku: 0798
dmi.sys.vendor: Dell Inc.
mtime.conffile..etc.apport.crashdb.conf: 2022-05-17T00:40:19.420743
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.113-2~ubuntu0.22.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 23.0.4-0ubuntu1~22.04.1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.4-2ubuntu1.7~22.04.7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1
from vscode-cpptools.
Thank you. So it looks like nothing out of the ordinary should be needed to reproduce this.
from vscode-cpptools.
Thank you. So it looks like nothing out of the ordinary should be needed to reproduce this.
I think so. I have had this installation since Ubuntu 22.04 was released. I probably did some tests with vcpkg Vulkan SDK but I only started using it with LLVM's libc++ intensively since around Christmas, which is for about 2 months.
Meanwhile on my macOS everything seems in order (I have used it for about 2 years daily):
from vscode-cpptools.
At least there's C_Cpp.intelliSenseCachePath
to work with
from vscode-cpptools.
I can confirm there is a bug here. We'll get this fixed very soon.
from vscode-cpptools.
Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.19.5
from vscode-cpptools.
Related Issues (20)
- incorrect comment syntax highlight HOT 1
- Basic Include files error
- Go to Definition goes to a correct source file but locating at a wrong line. HOT 2
- Extension not working at all HOT 4
- C/C++ extensions, remote development: all C++ features suddenly inhibited for any project on a single remote host HOT 12
- IntelliSense squiggles don't update correctly after an edit and cursor line change or save HOT 1
- Intellisense flags a bunch of problems that aren't problems HOT 8
- `provideConfigurations` is called with duplicate URI:s HOT 1
- Intellisense doesn't work on windows case sensitive folders HOT 6
- cpptools DDOS'ing our file server HOT 4
- Unable to resolve configuration with compilerPath C:/cygwin64/bin/gcc.exe . Using C:\cygwin64\bin\gcc.exe instead. HOT 3
- VSC not seeing symbols in outline for c language (No symbols found in document eg_name.c) HOT 22
- "directory" In "compile_commands.json" Is Ignored? HOT 2
- systemd-shutdown[1]: Waiting for process: cpptools, cpptools-srv, node HOT 5
- Incorrect "Unable to process IntelliSense for file with same canonicalized path as existing file." message can appear when cpptools crashes HOT 6
- Unable to paste multiple lines to integrated terminal while debugging C++ HOT 2
- Doxygen return parameter links to a GitHub user's account page HOT 3
- cpptools crashes and/or deadlocks if `C_Cpp.loggingLevel: "9"` is used
- Enabling customization of hover information in a similar way that natvis files improves data view in debugging HOT 1
- EASteamProxy.exe breaks VScode "command:pickProcess" 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.