MySensors icon indicating copy to clipboard operation
MySensors copied to clipboard

minor improvement: Windows path length limitations and example sketches

Open mkaiser opened this issue 5 years ago • 0 comments

Hi, I have a minor suggestion due to a problem I came across in windows using Visual Studio Code with platformio. I use the development of the MySensors library directly from the git (platformio.ini config: lib_deps = https://github.com/mysensors/MySensors.git#development).

My working folder is F:\Projekte\MySensors\git_ffs\src\My_RS_Node_bringup

Platformio tries to checks out the git to the subfolder \.pio\libdeps\rollerShutterAtmega328\_

which results in having a looooong path, which exceeds the magic 256 character windows path length

--> F:\Projekte\MySensors\git_ffs\src\My_RS_Node_bringup\.pio\libdeps\rollerShutterAtmega328\_tmp_installing-vwbplf-package\tests\Arduino\sketches\serial_gw_no_transport_soft_signing_whitelisting_full_debug\serial_gw_no_transport_soft_signing_whitelisting_full_debug.ino

Error message: Cloning into 'f:\Projekte\MySensors\git_ffs\src\My_RS_Node_bringup.pio\libdeps\rollerShutterAtmega328_tmp_installing-vwbplf-package'... error: unable to create file tests/Arduino/sketches/serial_gw_no_transport_hard_signing_whitelisting_full_debug/serial_gw_no_transport_hard_signing_whitelisting_full_debug.ino: Filename too long error: unable to create file tests/Arduino/sketches/serial_gw_no_transport_soft_signing_whitelisting_full_debug/serial_gw_no_transport_soft_signing_whitelisting_full_debug.ino: Filename too long fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry the checkout with 'git checkout -f HEAD'

Sure I can (and have!) change my working directory to have less path characters, but I think it would be good idea to have shorter names for the folders in tests/Arduino/sketches, especially for

serial_gw_no_transport_soft_signing_whitelisting_full_debug/serial_gw_no_transport_soft_signing_whitelisting_full_debug.ino

mkaiser avatar Nov 15 '19 12:11 mkaiser