User forums > General (but related to Code::Blocks)
Code::Blocks scans filesystem on file open
ohsnap:
It has always been the case that the code::blocks process would begin to scan my entire filesystem every time i open a file in it. This process would use 100% disk usage for around 5 minutes in which my system is unusable. I use procmon to make sure that it is indeed the case. Never understood why. Anybody has any idea on what could cause this behavior?
oBFusCATed:
What file do you open?
Can you reproduce this with a simple file without any includes in it?
Do you have a project opened?
ohsnap:
--- Quote from: oBFusCATed on April 04, 2018, 08:51:40 pm ---What file do you open?
Can you reproduce this with a simple file without any includes in it?
Do you have a project opened?
--- End quote ---
Hi, thanks for replying.
I can reproduce it when i open .h and .c files both empty and non-empty but not with .txt files. No projects open.
This is the setup:
- windows 7 64bit
- in my \Desktop i have the folder containing the nosetup codeblocks 17.12mingw version
- create an empty .c file in the \Desktop near that folder
- open Process Monitor aka procmon
- fire up codeblocks by clicking its executable in that folder
- from CB open the above .c file. Both drag&drop and "open..." will do.
- witness procmon being flooded with filesystem activity as CB scans \Desktop and all its subfolders recursively
I have quite a bit of big folders in my desktop, mostly backups.
Because CB appears to only search inside \desktop i suspect that the logic is that CB will scan the subfolders starting from the folder in which the .c file resides.
stahta01:
Sounds like it could be code-completion related.
Can you turn off the code-completion plugin and see if the file activity goes away after doing that.
That way the CB Devs only needs to work on code checks in code-completion plugin or skip looking at that possible cause.
Edit: Most of current active devs are [primarily] Linux devs.
Tim S.
ohsnap:
--- Quote from: stahta01 on April 04, 2018, 10:22:46 pm ---Sounds like it could be code-completion related.
Can you turn off the code-completion plugin and see if the file activity goes away after doing that.
That way the CB Devs only needs to work on code checks in code-completion plugin or skip looking at that possible cause.
Edit: Most of current active devs are [primarily] Linux devs.
Tim S.
--- End quote ---
Turning off code completion unser settings->editor... and restarting did not make a difference :(
Navigation
[0] Message Index
[#] Next page
Go to full version