Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
297 views
in Technique[技术] by (71.8m points)

docker - VSCode "Unable to open <HASH> Unable to read file"

I'm using VSCode (1.52.1) for a while on my Fedora 33 machine. I'm using Docker extension (v1.9.0) but for some reason, in the past few days when I'm trying to attach the VSCode to the Docker container, it failed to resolve the workspace folder.

I've tried to reinstall VSCode and the Docker extension but it did not help

I think this issue is related

Screenshot: enter image description here

As you can see, the files explorer does not show any files, instead, it shows a hash-like string.

question from:https://stackoverflow.com/questions/65651193/vscode-unable-to-open-hash-unable-to-read-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Accourding to this vs-code issue

You might have had that folder open before and it now no longer exists. Can you use File > Open Folder to open a different folder in the container?

All you need to do is go to File --> Open Folder in the top menu open the wanted folder and that it.

enter image description here

That worked for me


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...