Skip to content
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

Files not showing up in sidebar Debian 9 #62314

Closed
JacobStewart64 opened this issue Oct 31, 2018 · 5 comments
Closed

Files not showing up in sidebar Debian 9 #62314

JacobStewart64 opened this issue Oct 31, 2018 · 5 comments
Assignees
Labels
file-watcher File watcher *question Issue represents a question, should be posted to StackOverflow (VS Code)
Milestone

Comments

@JacobStewart64
Copy link

Issue Type: Bug

Running an out of source CMake build in my workspace, sidebar only acknowledges a few changed files. An ls on the build dir shows all the files are there, but the gui doesn't know about them =(

VS Code version: Code 1.28.2 (7f3ce96, 2018-10-17T00:20:56.183Z)
OS version: Linux x64 4.9.0-8-amd64

System Info
Item Value
CPUs Intel(R) Core(TM) i3-4170 CPU @ 3.70GHz (4 x 3699)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: enabled
webgl2: enabled
Load (avg) 0, 0, 0
Memory (System) 7.75GB (5.84GB free)
Process Argv .
Screen Reader no
VM 0%
Extensions (2)
Extension Author (truncated) Version
cpptools ms- 0.20.0
cmake-tools vec 1.1.2
@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label Oct 31, 2018
@JacobStewart64
Copy link
Author

I run this command 'source run'

the run file contains contents:

#!/usr/bin

rm -rf build
mkdir build
cd build
cmake ..
make
cd ..

@JacobStewart64
Copy link
Author

I believe this issue started when I installed the latest update during a restart.

@JacobStewart64
Copy link
Author

Running the source run command in twice usually gets my gui updated correctly, not if I wait a long time.

@Tyriar Tyriar added file-watcher File watcher bug Issue identified by VS Code Team member as probable bug and removed terminal General terminal issues that don't fall under another label labels Oct 31, 2018
@Tyriar Tyriar added this to the Backlog milestone Oct 31, 2018
@dotnetCarpenter
Copy link

@JacobStewart64 Sounds like you're running out of file watchers, especially if you get ENOSPC, which is #45295. Unfortunately, there is nothing you can do if you're using multi-root (#40898), but if not, you can set "files.useExperimentalFileWatcher": false and ignore the folders with a lot of files that you don't need to auto watch, with "files.watcherExclude".

If your hardware got a lot of memory, then you can also try to up the inode notifiction setting as described here: https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc.

@bpasero explain the situation the best in issue 45295:

The file watcher we have needs 1 file handle per file on Linux to support the watching (unfortunately). When the list of file handles exceeds the OS limit, VS Code will still function but some file events will not be recorded and be missing. E.g. if you delete a file in the Linux explorer, you will not see that file go away from the VS Code explorer.

Your current limit can be viewed by running: cat /proc/sys/fs/inotify/max_user_watches
Or:

echo "MAX file watches allowed on system"
cat /proc/sys/fs/inotify/max_user_watches

echo "Current files in project - excluding node_modules"
find . -type f -not -path '**/node_modules/**' | wc -l

echo "Current files in project - including node_modules"
find . -type f | wc -l

@Tyriar Tyriar added *question Issue represents a question, should be posted to StackOverflow (VS Code) and removed bug Issue identified by VS Code Team member as probable bug labels Jan 27, 2019
@vscodebot
Copy link

vscodebot bot commented Jan 27, 2019

Please ask your question on StackOverflow. We have a great community over there. They have already answered thousands of questions and are happy to answer yours as well. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Jan 27, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
file-watcher File watcher *question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants