Using 1.11.0 running on Ubuntu 24.04 (but same thing happened a year or two ago):
The importer picks up many files that are in the sketchbook directory tree but ignored by Arduino’s build.
That is not so big a deal, but filetree,mk is read-only and I thought that it was to be editable so that things like this could be fixed.
Before I go into more detail on that there are a few problems that could be solved by embeetle not trying so hard to be helpful. One is the removal of what embeetle decided was a gratuitous extra wrapping of parens, for an expression that the author (not me) added to ensure that a macro worked correctly. The other was crlf->lf transformation on some files, a gratuitous operation and one that kicked off a bunch of trivial git diff’s.
Back to importing files that should not be referenced:
I have a shared library for my Arduino projects that includes some files that are particular to certain processors and as such cannot all be compiled into any Arduino project ever. I manage this by having them in a separate folder and then create links to just those files I am using. Embeetle’s importer created concrete copies of the linked files and also copied in the directory they came from since I had a convenience link to it within the Arduino project folder, while the git repo of them is beside it.
What I would have preferred: copy links as links, with perhaps a notice that the target of the link is not getting copied. This reconstruction of the filetree just as it was for Arduino seems like the always safer approach to the import, including leaving out the targets of links, those are expert tools and experts can deal with embeetle being cautious about them.
The reason for my file layout instead of Arduino’s library layout is that I often am ‘improving’ the library along with each project that uses it. Having separate branches for different processor specific bits would make it hard to manage the files common to all processors.
All the files relevant to this post are in public github repos, github user 980f.