Go Down

Topic: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches (Read 338007 times) previous topic - next topic

Jantje

@hichhiker
Windows indeed has a problem with long path names. V4.2 warns wen starting up with a to long path
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

hichhiker

Any ways to work around it?

I made a stripdown example - if you create a simple cpp Sketch, create a directory called a and add empty files "aaa.h" and "aaaa.h", you can demo the issue by also adding a.cpp there with following content:

Code: [Select]

// a/a.cpp - expects a/aaa.h and a/aaaa.h to exist (can be empty)

//direct - 5 chars
#include "aaa.h"
//direct - 6 chars
#include "aaaa.h"

//indirect - 10 chars WORKS
#include "../a/aaa.h"

//indirect - 11 chars WORKS
#include "../a/aaaa.h"

//indirect long 200 chars - Works
#include "../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/aaa.h"
//indirect long 201 chars - DOES NOT WORK ON WINDOWS
#include "../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/../a/aaaa.h"


breakage seems to be at 201st character, but I think it may be a bit more involved as the path of to the file being compiled is part of it


Jantje

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

hichhiker

You are awesome. This is exactly what I needed. I made a reg file to include with code and it works great!

For what it's worth, they mention in this link that you can add a manifest to a windows app to make it automatically apply for the process only - but I have no idea how to do it and if it is feasible to add to  eclipse/sloeber

Thank you so much!

-HH

it is pretty well documented and there seems to be a workaround since windows 10 version 1607.
https://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#maxpath

Go Up