5 ms·
Visual Studio Code is randomly erasing included header files with latest update
- donkarma 5y agoApparently a bug in the CPP addon with uninitialised memory, doesn't repro with debug logging. https://github.com/microsoft/vscode-cpptools/issues/9041 https://github.com/microsoft/vscode-cpptools/issues/9041
- Jedd 5y agoOne of the comments on that issue: > Due this bug the content of one of my source file which had 3000 line, was deleted . > I don't use version control system. > How can i restore it? I know we're in a cosy bubble on HN, but in 2022 do we really still have developers (having one 3k loc file is non-trivial enough to warrant that appellation) who don't do any kind of backups, via VCS or otherwise?
- Osiris 5y agoIt's even weirder given that the bug was in a beta/pre-release version. I wouldn't use a pre-release of VS Code on anything I didn't have a backup of.
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- LilBytes 5y agoTragically yes, my organisation has one. Fortunately he uses local SVN in spite of the training we've provided him to use Azure DevOps. You better believe he's not the exception. Worse yet he's not older and/or capable, or competent. He was hired as a shadow developer team of one to get and achieve certain outcomes that the developer team couldn't achieve in their desired timeframes. I'm trying to move him to using modern tooling (if you were to call CI/CD and Git 'modern') but it's agonising. Fortunately I'm building a case to make his apps production so his services will fall under my responsibility of monitoring as the lead SRE. I'm documenting as I go and if he doesn't improve, I'll be responsible for documenting his demise.
- kbelder 5y ago>He was hired as a shadow developer team of one to get and achieve certain outcomes that the developer team couldn't achieve in their desired timeframes. >I'm trying to move him to using modern tooling ... building a case to make his apps production so his services will fall under my responsibility Hmm...
- adhesive_wombat 5y agoOne of the questions in my interview gave me an insight into this: Them: how many people have to work on a project before version control should be used? Me: Uh, one? Git init is the first thing you do after naming the directory. Them: audible relief One wonders what they have seen.
- bravetraveler 5y agoI like it, but without a remote it's a little like taking backups on another partition of the same disk
- yakak 5y agoIMO losing a project from an inexperienced developer that isn't yet integrated is a lesser problem than getting that project with no history and whole lot of random debugging experiments that went on long enough that they couldn't be reversed in an editor's undo.
- adhesive_wombat 5y agoWell even with just one person committing, you'd still have a remote. Even for personal stuff that you don't want to publish, you can still use BitBucket private repos (or bare repos on any server you have access to). To be honest, backups wasn't what was first in my mind when answering that question (backups are a separate system in my mind), it was that being able to "git diff" to the last time it was working is often all you need to do to get your head round why it's not working now.
- tinus_hn 5y agoSo not backups but better than nothing. It would have solved the stated problem of ‘a source file accidentally got deleted’.
- tomjen3 5y agoI have some scripts that are not in version control and some applications where I have just run git init, but not pushed them to anything. That said if I was teaching somebody to code, I would not encourage them to use git to begin with, since it is powerful but also hard to use. I hope he is learning to code.
- Shadonototra 5y agowhy would anyone need to backup a file to open it in "text editor"?? please enlighten me, file deletion/corruption is to be expected in a software made by a multi trillion dollar company? this is the stupidest take i ever read "guys, backup your files before you open it in your text editor, they can get corrupted if a troll is nearby"
- nulld3v 5y agoShit happens. Have backups. Not a hot take... There are a million ways your data can get corrupted. And it happens when you least expect it.
- Shadonototra 5y agoyeah, my bad, i shouldn't expect microsoft to be a good software company, you are right the blame is on the users! freaking stoopid users
- nulld3v 5y agoNobody said that the blame is all on the users. Also, you can blame Microsoft all you want, it ain't going to get your data back.
- Shadonototra 5y ago> Also, you can blame Microsoft all you want, it ain't going to get your data back. What a wrong mindset So Microsoft can spit all the bloated and buggy trash, they shouldn't be held responsible? Who cares about the data loss, important or temporary, time was lot, not even respecting your users, you should be ashamed at microsoft Where is your standard of quality? it's the size of an electron?
- nulld3v 5y ago> What a wrong mindset > So Microsoft can spit all the bloated and buggy trash, they shouldn't be held responsible? > Who cares about the data loss, important or temporary, time was lot, not even respecting your users, you should be ashamed at microsoft > Where is your standard of quality? it's the size of an electron? Hmm, the problem is that you are talking to someone who already mostly agrees with you... I never said that you shouldn't blame Microsoft. That is what I was talking about in my last comment: "Nobody said the blame is all on the users". You should absolutely blame Microsoft. I actually refuse to even install VSCode because of the telemetry. But again, blaming Microsoft isn't going to get your data back. It's like having a house but not putting a lock on it. Then some burglar comes in and trashes your house. Like yeah, blame the burglar. The burglar should go to jail. But even if you put the burglar in jail, all the damage to your house doesn't just disappear. So put a lock on your door and maybe add some cameras too. Then your house won't get trashed and the next time a burglar comes maybe you can even catch them and put them in jail with your security cameras. Best of both worlds.
- mey 5y agoMight need to clarify the title to be that this is the C/C++ extension.
- klysm 5y agoI would consider the C/C++ extension to be “part of” VSC as it’s a core extension owned by Microsoft. But still good it wasn’t just the editor magically nuking files!
- zozbot234 5y agoLooks like this newfangled "political protest" thing is becoming a meme in FLOSS development. Now even VS Code is doing it.
- lovingCranberry 5y agoPeople use VSC for c++? I tried to use it once, but nothing really worked out of the box and the experience was so much worse than any other c++ IDE. Same with .Net in VSC. Always felt like Microsoft wants to push me towards their "main" Visual Studio for c++ and .Net by keeping the VSC experience for these languages bad.
- smackeyacky 5y agoI prefer coding .NET in VSCode, although I really only use the debugger and the code completion. Visual Studio hides too much of the build process for me. Never used it for C++ though.
- CornCobs 5y agoI've been forced to use visual studio for c++ with cmake integration and I must say no matter how lacking VSC is, I don't think visual studio does much better. Refactoring capabilities are woefully inadequate or just don't work, intellisense is often plain wrong, it doesn't detect when a rebuild or when cmake cache needs to be regenerated often enough, the list goes on and on
- mdaniel 5y agoIf you don't like VS, you may enjoy CLion, as it uses CMake as its primary build system. I was flabbergasted at how poor the Refactor menu is in VS, and I now understand why Reshaper makes so much money https://www.jetbrains.com/clion/ https://www.jetbrains.com/clion/ If you're an adventurous person, you can also use their EAP builds for free until the EAP cycle ends: https://www.jetbrains.com/clion/nextversion/ https://www.jetbrains.com/clion/nextversion/ They always say "EAPs are pre-release and may have sharp edges" but TBH I've been choosing the EAPs because they often come with the most features. Only 1 out of every 20 releases has some kind of "wtf" experience
- klysm 5y agoI had the exact same thought about C# in VSC being intentionally bad this week. There’s so many conflicts of interest within Microsoft’s tech ecosystem.
- userbinator 5y agoI've never been too fond of IDEs and all the complexity they bring/encourage. When they work they can be helpful, but when things go wrong, they tend to go really wrong. Silent automatic updating is another one of those scary things that you don't notice until it's too late. As Dijkstra says, "simplicity is a prerequisite for reliability."
- CJefferson 5y agoNote the bug is now fixed, and was only ever in a pre-release, which you had to opt in to getting. Still a serious bug of course!