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
Network problem on Windows #4117
Comments
Duplicate of #3926 Please re-test with |
Hi Ivan, |
Hi Ivan |
I've just re-tested and everything works. Please check that you don't have multiple PIO Cores in the system https://docs.platformio.org/en/latest/faq.html#multiple-platformio-cores-in-a-system |
Hi Ivan, |
Hello. I also found problems with a network drive, and Ivan suggested to place information here so we can improve this point. SCENARIO 1 So the drive letter P: is mapped to shared folder "\\ccsrv\Projetos" and in the c_cpp_properties.json we have the correct path using the P: drive letter, like “P:/Projects/Server Modbus/include” and similar. No more problems with incomplete UNC path inside c_cpp_properties.json , that is good. However, the CMD.EXE is started with the UNC path ‘\\CCSRV\Projetos\Projects\Server Modbus’ In my system, the provided registry hack did not work, and in fact the registry edit only supress the warnings. I expected the “current directory” to be ‘P:\Projects\Server Modbus’ with the cmd.exe, no UNC path. But for some reason, the system still uses the UNC path in the complilation.
SCENARIO 2: Now we have a network UNC path incomplete in the c_cpp_properties.json and a general compiler crash, similar issue reported by Koxo. The double \ in the UNC path disapear like magic... SUGGESTION: NOTE: Also quite hard to write \\ here too, you can see double \ but I had to type three times... Please let me know if I can help with something else. |
Hi, def to_unix_path(path): This function replaces the '\' by '/', i think that the "+" is the problem in the reg expression. def to_unix_path(path): i have try this : import re IS_WINDOWS = 1 def to_unix_path(path): def to_unix_path2(path): print("*** no modification ****") path = "P:\Documents\Platformio\Projects\Test" path = "\\dc1\ameunier$\Documents\Platformio\Projects\Test" print("*** with modification ****") path = "P:\Documents\Platformio\Projects\Test" path = "\\dc1\ameunier$\Documents\Platformio\Projects\Test" --> *** no modification **** Best regards. |
We have significantly improved support for network drives on Windows in the latest development version. See #3417 Please re-test with Does it work now without any issues? |
Hi Ivan, I have see the beta update. In fact you have modify function "to_unix_path" : def to_unix_path(path): So it's a little similar as my post above. (note that the two backslash of the reg expression were remove by github, i have modify this). So it's better to directly make a replace directly, reg expressions are not necessary. So it's good for me. Thank you. Koxo |
Hi,
I want to report a problem on projects using a network drive on Windows.
When i create my project, i tell to use a folder in a network drive : example : "X:\MyProject".
In "c_cpp_properties.json" i have :
So i get squiggles in the editor.
If add a library, i get : "/srv-nas/home/MyProject/MyProject/.pio/libdeps/uno/LiquidCrystal/src" instead of "//srv-nas/home/MyProject/MyProject/.pio/libdeps/uno/LiquidCrystal/src" (with two "/") or "X:/MyProject/MyProject/.pio/libdeps/uno/LiquidCrystal/src".
If i modify the lines : "/srv-nas/home/MyProject/MyProject/include" into "//srv-nas/home/MyProject/MyProject/include" (with two "/") or "X:/MyProject/MyProject/include" it's good.
If i tell a drive path, the project should keep a drive path, if i enter a unc path it should use a unc path.
Thank you for your help
Best Regards
The text was updated successfully, but these errors were encountered: