New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"browse.VC.DB" causing me problems, constantly writes to disk (Unreal Engine project) #7849
Comments
@pepsi112-dude, the file "browse.VC.DB" is a database file that stores symbols for browsing features such as "go to definition". When opening a folder, the C++ extension will tag parse files for that folder. To see which files are parsed, enable the C++ logging (see instructions at https://code.visualstudio.com/docs/cpp/enable-logging-cpp#_enable-logging-for-the-language-server). To configure which files/folders the tag parser will parse, set these browser properties. |
I solved my problems by running the Unreal Engine as Administrator. However I still am not found of VScode, since now other elements are popping up on my disk usage windows sdk10 , files from Vscode, files from my Unreal Engine project and so on, they are fluctuating on and off switching on my disk usage while I do nothing, overall my disk usage is constant, now that shuts off then that turns on and so forth as long as the project is loaded but I do nothing, if I close the project all this stops. This leads me to believe that VCcode is live all the time and that it should not do this, it should come alive when you compile and that is it. Other litter Ides do not do this, you don't see them work while they do nothing at all while you don't do anything with the loaded project inside the window. Not VCcode. VScode was an alternative to Visual Studio to offer something litter that has "no fuss" once again microsoft dissapoints by giving me "CIRCUS MODE" on my disk drive, not even Visual Studio does this and that is really heavy , and you think you got the liter version and all the sudden your hard drive starts fusssing around for nothing just to annoy you, you can't even work with the noise from the hard drive. Worst for me for some reason Unreal Engine decided to play Microsoft all the way and you cannot compile with other Ides Unreal engine. It's like a chose windows over linux, but the rest from Microsoft as expirience I rather not say. |
Are these other disk usage caused by processes from the C++ extension or from VS Code client without the C++ extension? Could you provide logs from the C++ extension's language server by following instructions at https://code.visualstudio.com/docs/cpp/enable-logging-cpp#_enable-logging-for-the-language-server? This will help determine what process and other work that is being done by the C++ extension that's causing disk usage. For performance issues, please provide performance analysis logs to help us troubleshoot the issue. https://github.com/microsoft/vscode-cpptools/wiki/Troubleshooting-Performance-Issues#windows |
They are project related and windows related, windows sdk files, c++ tool files and project files from the loaded project, all bouncing around. |
This is no longer in vscode latest vers." Open the Command Palette and choose Preferences: Workspace settings." The second log involves me installing visual studio and my hard drive is already full almost. |
I manage to find the log option under the preferences> user options (now). I think this has to do with running in admin mode, go back to running it in user mode and I got the other problem with the DB file, (just a hunch what gets written in it is this never ending stuff outputed by the log but in the db file) Well I did my best to find out how to solve this, any answers ? After trying to close the editor then reload the editor and reload the project for the editor the Editor says the module is not compiled and tries to compile says it's "made with another version" and says then that the project cannot be loaded and that compilation failed. All this when I try to work with VScode. When running the log I get recursive (recursive = repetative ?) meaning it loads the whole thing then repeats it's self, I left it for a few hours and it does not stop. Part of the log from VScode log C++ output C_Cpp: Logging Level: Edit by me:I just spent 3 days trying to go around Visual Studio, with no results to compile without it being installed. Visual Studio is a pain, Vscode is nice fast, modern, I like it, too bad it does not work for me. |
Why does it parse files ? It loads them instantly under the tree project then starts parasing them ? this go's on and on, repeating. So if I install the whole package with Visual Studio it does not do this, so no Visual Studio no VScode and no compability, you can have the msvc compiler for nothing because as long as it's not patched with special magic from Visual Studio the Game Engine will complain and VScode will complain saying "it's another version from another planet" because everything needs to go thru Visual Studio format like. It's why everyone "likes Microsoft so much" that they try to avoid it. Check this out, this log from the Game Engine error log, (I don't have visual studio installed) I set the engine to Vscode, it was set on VStudio. Log file: ======================================================================= It is specific stranded on visual studio yet I changed the option to VS code, so no matter what the format that runs things thru is visual studio: I get this error only if I switch to Vscode mode inside the Editor, If I leave it on VS 2019 no error. Who o why do people say "use VCcode" use it with Unreal Engine, and then there are others who say, it just does not work. How come Microsoft, why do you do this ? (sense of humor). So Vscode does not understand how to handle and process the C++ code coming from unreal engine without visual studio installed, nor the game engine, giving errors trying to use just the build tools ? without visual studio. Microsoft said Vscode is an alternative to Visual Studio that is heavy weight IDE. If it's so, why would I need to install Visual Studio since I'm trying to avoid it. VScode should have such implementations I think where it sees visual studio formating and works with it without visual studio installed, just my opinion. Tho VS2019 is not installed when you get the build tools it creates a VS2019 folder, this from the installer where you get all the C++ dependenciers and the sdk. Path from my setup: |
I also posted here, similar problem regarding MS build tools. Anyone can help me use VCcode ? any ideas. |
Are you using the Unreal Editor to generate/export the VS Code project? Could you clarify how you setup the project so that we can see if this a concern with C++ extension or a concern with an third party editor? Could you clarify what you mean by "running in admin mode"? Depending on how a project is configured, it could affect how the C++ extension will process a project for IntelliSense features to work. For setting up large/complex projects with specific configurations, like Unreal Engine, I suggest to consult the Unreal Engine forums. Some clarifications:
About the C++ extension's tag parsing files:
About compiling the project:
As stated above, the C++ extension does not provide a compiler and does not automatically configure compiling settings. There are simple compiling template that can be generated, but specific compiler arguments will not be set as there is no "project" concept on VS Code for the extension to know what information to provide to a compiler. |
I can also see it's loading some files from the game engine "to repeat things" it has to do with some headers. Fore example: This poster here: From the posts of this thread: #3470 #1114 Intelisense is an extension and Browse.Vb.db is part of it if I'm not mistaken. It may be that it reads the header in a wrong way, the header may tell it to repeat to verify things maybe a few times, sometimes it needs to check, so this extension interprets it as "repeat on forever" + database growth. It's clearly this extension, so many people having "the same issue" and none of them use Unreal Engine, they have other stuff with other headers that are similar to what I have. VCcode is fun to code in, looks nice, has extension install on the fly, lite weight, fast, too bad it does this. I really liked it why I went this far here. If you want me to close the thread I will, or leave it open maybe others will join and know more, participate and maybe find an answer to overall problems, or maybe give some advice, I don't know. |
What I think Vscode should do is make support for Unreal Engine, because "hordes of people" want to use this and ditch Visual Studio that it is flawed in my view and not for personal use, it is for big corps, not for personal end user. There is other thing other then "big corps", these are indi developers, free lancers with professional licence, individuals, artists and so on. EditI took another version of Vscode, reinstalled VScode with it, reinstalled extensions. Still the same problem. Exactly what a lite IDE does not do, and Visual Studio does. Bother you "in off mode" with - let's do some tasks while you are not doing anything. I give up. Joke (please stand still while the commander is not at the controls "it's not your spaceship") Make a better product Microsoft. |
Problem solved. VCode is still good it still loads my project with all the files from unreal from the editor, it has unreal sniplets to generate code functions. But for debugging, building and compiling I use command prompt. So if you have problems just disable intelisense and just use Vcode in this manner. |
If you're hitting a parsing problem with certain files, you can add the folder to the C_Cpp.files.exclude setting to stop parsing files in those folder, e.g. "C:\PROGRAM FILES\EPIC GAMES\UE_4.26\ENGINE\SOURCE\THIRDPARTY\boost". I tried with the boost 1.76.0 and I didn't see any problem tag parsing the Your experience is not "normal", and could be caused by your usage of an older Windows OS, and it's not due to us targeting big corporations instead of indie developers. We can't fix an issue if we're not able to reproduce it and don't know what is causing the issue. We thought maybe your cpptools process was crashing and causing an issue with re-parsing afterwards, but that may not be what's happening if you don't see the crash message. |
Bug type: Language Service
Describe the bug
Steps to reproduce
Expected behavior
Code sample and logs
Code sample
Configurations in
c_cpp_properties.json
Logs from running
C/C++: Log Diagnostics
from the VS Code command paletteLogs from the language server logging
Screenshots
Additional context
I have been redirected here, they told me it is a extension problem and to ask here ?
Basicly "browse.VC.DB" keeps on writing to disk when my project is opened in VS Code.
I setup VCcode with Unreal Engine on Win7. Unreal engine generates code project inside my VScode application, so I thought to find a way to avoid Visual Studio and use VScode.
All works fine, the project tree is loaded in VS code except that this "browse.VC.DB" file keeps on getting bigger and keeps on getting written.
It does not stop at all, it can go for hours, it is continues non stop writting and reading to this file, the hard drive go's off, you can hear it, and the file just gets bigger.
I went under my workspace for unreal, and there is only one unreal project that I created for this purpose, nothing else, this project has about 7 megs. There is nothing else there. except this project with it's main folder having 7megs.
Unreal Engine is freshly installed , clean installation, I just installed VS code with it's dependencies for Microsoft Build Tools.
What is this "browse.VC.DB" ? it's part of itelisense ? Why does it constantly write to disk, it,s annoying , I can see it under Resource Monitor, you don't have to touch anything and it just continues to write at around 1.000.000 bites per second without me doing anything, if I keep it like this I can also damage the hdd if the hard drive constantly reads and writes all the time.
I left it for 2 hours to see if it stops, it does not, "AMAZING" what does it write and read from there.
Also 1 GB for 7 meg project ? what can it possibly store inside there for 7 megs making it above 1 GB.
Can I get rid of it, disable it ? make it less noisy, limit it, I don't know, best is to disable it if I can get by it.
Is it part of C++ dependency ? I use C++ for writing projects for Unreal Engine 4.
How can I get past this, Visual Studio does not do this, but I don't want Visual Studio because it costs HDD space, it's slow and I have limited PC resources, and I prefer something faster and litter.
Best if I can disable it, it's a DB storing what, project files ? what for. I'll be glad to disable it I don't need cache, I just save to disk when I'm done without this "Drama"
The text was updated successfully, but these errors were encountered: