- Pro
- Security
Many have run out of disk space entirely
When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works.
- Copy link
- X
- Threads
Sign up for breaking news, reviews, opinion, top tech deals, and more.
Contact me with news and offers from other Future brands Receive email from us on behalf of our trusted partners or sponsors By submitting your information you agree to the Terms & Conditions and Privacy Policy and are aged 16 or over.You are now subscribed
Your newsletter sign-up was successful
An account already exists for this email address, please log in. Subscribe to our newsletter- VS Code Snap package bug on Linux keeps deleted files, clogging hard drives
- Snap creates separate local Trash folders per version, compounding storage issues
- No fix yet; users advised to install VS Code via .deb/.rpm or Flatpak instead of Snap
Microsoft’s Visual Studio Code, installed as a Snap package on a Linux device, has a strange bug that keeps all the files users deleted, clogging up hard drives as a result, leading to a myriad of other problems for the users.
The bug was first spotted by a couple of software developers, who found gigabytes of files that were supposed to be deleted. Some of them discovered the bug after completely running out of space on their computers.
The Register notes the flaw was first detected more than a year ago, and a bug report was published in early November 2024. In the report, it was said that the cause of the issue lies in Snap creating a local Trash folder for each VS Code version, instead of simply using the system one.
You may like-
Linux users targeted as crypto-stealing malware hits Snap packages - here's how to stay safe
-
Malicious AI-made extension with ransomware capabilities sneaks on to Microsoft's official VS Code marketplace - so devs beware
-
Windows 11's new year goes from bad to worse as two bugs are crashing apps
Unaddressed code change
What’s more, Snap (a Linux package format and system) also keeps older versions of VS Code after updates, further multiplying the number of local Trash folders and files that should have been deleted, but are still lingering.
On GitHub, a user discovered that the bug stems from an unaddressed code change introduced in early October 2024 which “creates a bogus Trash that’s not the system one.” According to the user, the folder is unmanageable, “carried over from update to update”, and “gradually inflating”.
Low disk space can slow down the system, editors, and compilers, and cause crashes or failed writes.
The Register says neither VS Code nor Snap have a way to manage these folders, but claims it is possible through the command line.
Are you a pro? Subscribe to our newsletterContact me with news and offers from other Future brandsReceive email from us on behalf of our trusted partners or sponsorsBy submitting your information you agree to the Terms & Conditions and Privacy Policy and are aged 16 or over.Right now, there is no indication that a fix is released, or that it is even in the works. For now, many Linux users avoid the bug by installing VS Code from the official .deb/.rpm packages or using alternatives like Flatpak instead of the Snap version.
The best antivirus for all budgetsOur top picks, based on real-world testing and comparisons➡️ Read our full guide to the best antivirus1. Best overall:Bitdefender Total Security2. Best for families:Norton 360 with LifeLock3. Best for mobile:McAfee Mobile Security
Follow TechRadar on Google News and add us as a preferred source to get our expert news, reviews, and opinion in your feeds. Make sure to click the Follow button!
And of course you can also follow TechRadar on TikTok for news, reviews, unboxings in video form, and get regular updates from us on WhatsApp too.
TOPICS Linux Sead FadilpašićSocial Links NavigationSead is a seasoned freelance journalist based in Sarajevo, Bosnia and Herzegovina. He writes about IT (cloud, IoT, 5G, VPN) and cybersecurity (ransomware, data breaches, laws and regulations). In his career, spanning more than a decade, he’s written for numerous media outlets, including Al Jazeera Balkans. He’s also held several modules on content writing for Represent Communications.
View MoreYou must confirm your public display name before commenting
Please logout and then login again, you will then be prompted to enter your display name.
Logout Read more
Linux users targeted as crypto-stealing malware hits Snap packages - here's how to stay safe
Malicious AI-made extension with ransomware capabilities sneaks on to Microsoft's official VS Code marketplace - so devs beware
Windows 11's new year goes from bad to worse as two bugs are crashing apps
Malicious Microsoft VSCode AI extensions might have hit over 1.5 million users
Windows 11 bug breaks entire desktop for some users — luckily there's a fix
Google’s Antigravity AI wiped out a developer’s drive and then apologized
Latest in Security
Coinbase reveals insider breach did take place, customer info compromised
Russian hackers are targeting a new Office 365 zero-day, so patch now or face attack
Dangerous new malware targets macOS devices via OpenVSX extensions - here's how to stay safe
Malwarebytes and ChatGPT team up to check all of those suspicious texts, emails, and URLs with one simple phrase
AI agent social media network Moltbook is a security disaster - millions of credentials and other details left unsecured
Moltbot is now OpenClaw - but watch out, malicious 'skills' are still trying to trick victims into spreading malware
Latest in News
AMD CEO assures us that Steam Machine is on track to ship 'early this year'
Alexa+ is now available for free to everyone in the US – but be cautious
A devious new Apple Pay scam is hitting millions – here’s how to stay safe
Fitbit co-founders are launching a new fitness tracking service that caters to the whole family
Samsung just quietly ended support for the Galaxy S21 series
Linux users report Microsoft's Visual Studio Code Snap package isn't actually deleting files
LATEST ARTICLES- 1Quordle hints and answers for Thursday, February 5 (game #1473)
- 2NYT Connections hints and answers for Thursday, February 5 (game #970)
- 3NYT Strands hints and answers for Thursday, February 5 (game #704)
- 4'It's very ambitious and also very challenging' — Sea of Remnants developer on building the ultimate open-world pirate playground
- 5Coinbase reveals insider breach did take place, customer info compromised