kbfs icon indicating copy to clipboard operation
kbfs copied to clipboard

Visual Studio Code not saving files properly

Open Tenrys opened this issue 6 years ago • 15 comments

Trying to write a .txt file in my public folder, I get the following error. I can safely open files from Explorer or other programs, I can save in Notepad. Error

Keybase GUI Version: 1.0.38-20171220134904+a7fe25d

Tenrys avatar Jan 19 '18 22:01 Tenrys

Hi @Tenrys, I think we need a bit more context. Have you installed the file system drivers for Windows via the Folder tab in the Keybase GUI? Do you have a K:\ drive? Are you trying to write directly to K:\public (which won't work) or to your actual public folder (K:\public\tenrys)?

If you still think you're doing everything right, please run keybase log send from the terminal and let us know the log ID, and we'll take a look. Thanks.

strib avatar Jan 19 '18 22:01 strib

I believe I have.

Log ID: 46b117a3198428af5ea13f1c

Tenrys avatar Jan 19 '18 22:01 Tenrys

Thanks. You get that error above when you are trying to save a .txt file using Visual Studio Code? Can you share the name of the txt file you tried to create, so I can look for it in the log? (If you don't want to share the name publicly, feel free to chat with me on Keybase, username strib.)

strib avatar Jan 19 '18 22:01 strib

The current file name is test.txt. I tried to save it under that name and it did not work either. It is created but I cannot save it with Visual Studio Code if I make changes to it using that.

Tenrys avatar Jan 19 '18 22:01 Tenrys

Are you running it in cygwin or WSL or something that might not have access to the k:\ drive? I don't think KBFS works nicely in those environments.

strib avatar Jan 19 '18 22:01 strib

Not that I know? Not sure what WSL is, but rings a bell. I don't know how I would run VS Code in a specific environment? (nevermind, that's the Linux subsystem. I don't think I am?)

Tenrys avatar Jan 19 '18 22:01 Tenrys

WSL is "Windows subsystem for Linux". I don't have experience with it, but I'd guess if you were using it, you'd know it.

Sorry I don't have a Windows system available to test, and I'm out of ideas. It seems like VSC can't see the K:\ drive at all for some reason. @zanderz @taruti any ideas?

strib avatar Jan 19 '18 22:01 strib

I do have WSL installed but I rarely use it, don't know how I would have made VSCode use it.

Tenrys avatar Jan 19 '18 22:01 Tenrys

Logs show mounting K: without errors. I just double checked that I can write new files with visual studio code on windows. Maybe also include the exact time so we can narrow down the logs we're looking for?

zanderz avatar Jan 19 '18 23:01 zanderz

Sent another log. 09161961d48cb1c4489f441c I don't know how to check them or the time.

Tenrys avatar Jan 20 '18 01:01 Tenrys

I just saw this: Open File does not show the KBFS at all.

Tenrys avatar Jan 20 '18 01:01 Tenrys

Suspect conflicting drivers causing K: to be hidden, even though the mount was succesfull.

@Tenrys are you running any AV/backup/filesystem software that could be causing conflicts?

taruti avatar Jan 23 '18 16:01 taruti

Nope, nothing.

Tenrys avatar Jan 23 '18 16:01 Tenrys

I do have WSL installed but I rarely use it, don't know how I would have made VSCode use it.

bash-prompt$ code test.txt

It will open test.txt in VSCode.

dubfactor avatar Jan 31 '19 13:01 dubfactor

@Tenrys What I mean by exact time is to reproduce your problem, note the exact time you experienced it, and then send a log, along with a mention of what time you noted.

zanderz avatar Jan 31 '19 18:01 zanderz