-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
1.37 Explorer not showing any files or folders #78743
Comments
/needsMoreInfo Please update this issue after reading https://github.com/Microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions#writing-good-bug-reports-and-feature-requests. Thanks. |
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue. Happy Coding! |
I have the same issue when using sshfs. But not for all mounted directories. |
Need exact steps how to reproduce. |
I do not know how to reproduce, it appears to only happen in one of my dev env at work (it runs on suse enterprise sever 12 linux os), in all workspaces and folders i tried to open there. On a different work computer (also suse enterprise sever 12) i don't have this problem at all. The symptom is that when i open any workspace or folder in vscode, the explorer tree only shows a list the folders themselves, nothing in the folders shows (files or sub-dirs). when i revert back to 1.36 then it's all good. so i guess i can stay on 1.36 until 1.38 comes out. hopefully if other people experience the same problem maybe they could provide more info. |
Is there anything printed to the log? Can you try to open the developer tools (from Help menu) and then click on Console? |
The insider version (linux) is good. |
i toggled on the developer tools but i don't see anything suspicious. here is what i see: |
@huili80 can we conduct a little experiment? It is important to run it on the machine where you see the issue:
const fs = require("fs");
fs.readdir(process.cwd(), { withFileTypes: true }, (error, dirs) => {
console.log(dirs);
}); |
ah... i'm not allowed to install node.js on my work computer, sorry. |
@huili80 easy, no problem. We can do this much easier:
I just did that and it shows: |
const fs = require("fs"); fs.readdir(process.cwd(), { withFileTypes: true }, (error, dirs) => { |
@bpasero I have a similar issue. I did the same stuff you asked @huili80 and here what I have.
I run
and the output is correct
However when I run the same of FolderB
Nothing is shown. In addition if I run the same on a subfolder of the FolderB (i.e. "/path/to/FolderB/subfolder"), the results is correct. EDIT:
the result is correct and displays the correct folders and files of FolderB. HTH |
On the VM (the "remote" machine I mount with sshfs) the output is
On the host (my local machine), I
|
For anyone looking for a workaround while hoping this can be fixed swiftly here are two that have worked for me:
In my case, I only had one symlink, a |
@vfdev-5 @chaoticgoo thanks for the testing. So I would think that we just found a bug in The next step would be to:
Can anyone of you do that? As for VSCode: I can only think of reverting that change I did to use this new API back to how it was before. We will consider this change for our recovery release. |
Turns out i had dangling symlinks in my workspace, after i cleaned them up, it's all good now. |
@huili80 is that a symbolic link that was pointing to a non existing target or what specifically? |
Outside of VS Code, my My VS Code info is:
Output from your script from a non-VS Code terminal with
To be clear to anyone just stumbling across this who hasn't read all the related issue threads, this symlink is not actually dangling on the remote Linux system where these files really live. It only appears to be dangling when viewed from my local Linux machine. I have mounted the remote parent folder over sshfs and the latest VS Code no longer copes with these remote symlinks. Thanks for your help @bpasero ! |
@chaoticgoo to clarify:
Is that different from what you see inside VSCode or the same? I am wondering if your node version already contains a fix. |
Hm, I do wonder if nodejs/node#22808 (which came exactly right after our node.js version) is the fix for this. To try it out, can anyone try the scenario from our exploration builds? They ship with a much newer node.js version: |
Both the VS Code terminal and a normal Linux terminal (both on the local machine) give the output I pasted but I reread your instructions and ran the commands in Dev Tools inside VS Code and it fails on a folder with these remote symlinks (returns Undefined). It returns a list of files and properties as above on folders that don't have remote symlinks. See below: I'll take a stab at that .deb next. |
@bpasero you are correct, the bug is not present in Exploration version -- see the two side by side with About info in the screenshot below. The Exploration version shows the folder's full contents with the exception of the unfollowable symlink, which seems like a fine logical behaviour to me. In my case there is a config.json symlink that a local file manager shows but is not appearing in the VS Code treeview. Fine with me, way better than the version on the left! |
@chaoticgoo great. I think the consequence will be that I will revert that change for our current release and take it in once we go with the version of the exploration build. |
Can anyone confirm this is fixed with our latest insider version (where the reverted change is in)? You can give our preview releases a try from: https://code.visualstudio.com/insiders/ |
@bpasero I had the same issue (couldn't see any files in a directory mounted with sshfs) and I can confirm it is fixed in this insider build. Thanks ! |
Great, setting verified label thereby. |
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes/No
The text was updated successfully, but these errors were encountered: