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

No such file error when saving local network folders inside a LAN #533

Open
Total-Reality opened this issue Jan 14, 2025 · 1 comment
Open

Comments

@Total-Reality
Copy link

Do you read the FAQ?

  • [x ] Yes.

Describe the bug
I have web projects on a local server. I connect to this local server with Windows 11. The problem did not exist in Windows 10.
There is a problem if you add a new project which is located in a folder of a network device. Connect via SFTP and you get errors when you save.

To Reproduce
Steps to reproduce the behavior:

  1. Use a network folder inside your LAN (the name of my network device is X)
  2. Add a project with "Project Dashboard" extension ( https://marketplace.visualstudio.com/items?itemName=kruemelkatze.vscode-dashboard )
  3. Choose a folder on the device X - my folder has the following path: is x:\Web-Projects\Project1\Website
  4. Connect with SFTP Extension
  5. Open a file on the FTP Server, e.g. test.php
  6. Change sth. in this file
  7. Save the file -> "no such file or directory" error appeared / "config failed"

Expected behavior
When you change a file in Windows 10, it will be saved and uploaded correctly.

**Errorlog **

[01-14 16:36:56] [info] config at x:\Web-Projects\Project1\Website {"remotePath":"/home/www/project1/contao","uploadOnSave":true,"useTempFile":false,"openSsh":false,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"sftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"remoteExplorer":{"order":0},"name":"Project1","host":"example.host","port":22,"username":"******","password":"******","showHiddenFiles":true,"hiddenFiles":true}
[01-14 16:37:09] [warn] ENOENT: no such file or directory, open 'C:\Users\xxx\.ssh\config' load C:\Users\xxx\.ssh\config failed
[01-14 16:37:18] [info] remote ➞ local x:\Web-Projects\Project1\Website\templates\be_main.html5
[01-14 16:37:24] [info] [file-save] \\192.168.13.37\Server\Web-Projects\Project1\Website\templates\be_main.html5
[01-14 16:37:24] [error] Error: Config Not Found. (file://192.168.13.37/Server/Project1/Website/templates/be_main.html5)
	at l (c:\Users\ms\.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:296202)
	at Object.<anonymous> (c:\Users\ms\.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:296960)
	at Generator.next (<anonymous>)
	at c:\Users\ms\.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:295920
	at new Promise (<anonymous>)
	at n (c:\Users\ms\.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:295665)
	at Object.<anonymous> (c:\Users\ms\.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:296899)
	at c:\Users\ms\.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:324013
	at Generator.next (<anonymous>)
	at s (c:\Users\ms\.vscode\extensions\natizyskunk.sftp-1.16.3\dist\extension.js:2:323056) download \\192.168.13.37\Server\Project1\Website\templates\be_main.html5

My solution to solve the problem:
I need to change the local url of every project.

Before: x:\Web-Projects\Project1\Website

After: \192.168.13.37\Server\Web-Projects\Project1\Website

When I change this, I won't have errors. However changing every url of every project takes so much time and additionally I will lose my list of currently opened files in this project.

@usmrip
Copy link

usmrip commented Feb 2, 2025

Don't use the map network drive, please use the server like \192.168.1.100\xxxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants