You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ls -al x y z w
lrwxrwxrwx 1 user user 1 Sep 22 17:25 y -> x <- y is a symbolic link to x
w:
-rw-r--r-- 1 user user 35 Sep 24 00:48 w.ino
x:
-rw-r--r-- 1 user user 35 Sep 24 00:48 y.ino
z:
drwxr-xr-x 2 user user 4096 Sep 24 00:41 z.ino <- z.ino is a directory
$ cat y/y.ino
void setup () { }
void loop () { }
$ cat w/w.ino
void setup () { }
void loop () { }
$ arduino-cli compile --fqbn arduino:avr:nano y
(segfaults)
$ arduino-cli compile --fqbn arduino:avr:nano z
(segfaults)
$ arduino-cli compile --fqbn arduino:avr:nano w
(works)
Symbolic link as sketch directory fails with a segmentation fault.
Directory instead of a file fails with a segmentation faults (dup #358)
Expected behavior
Symbolic link as sketch directory should work.
Directory instead of a file may fail with an error message.
Environment
CLI version (output of arduino-cli version): arduino-cli Version: 0.0.0-git Commit: git describe --tag: 0.3.7-alpha.preview-143-gafdf609
OS and platform: Linux avr
Additional context
none
The text was updated successfully, but these errors were encountered:
…onality (#462)
* add testcases to cover #358 (Symbolic link as sketch directory) and #424 (folder with .ino extension)
* add test to check error throw on symlink loop detection
* create symlink via test code to ensure cross platform creation
* fixed assert to make the check cross platform
* fixed all symlink check asserts to make the check cross platform
* nitpicking
Bug Report
Current behavior
Symbolic link as sketch directory fails with a segmentation fault.
Directory instead of a file fails with a segmentation faults (dup #358)
Expected behavior
Symbolic link as sketch directory should work.
Directory instead of a file may fail with an error message.
Environment
arduino-cli version
):arduino-cli Version: 0.0.0-git Commit:
git describe --tag: 0.3.7-alpha.preview-143-gafdf609
Additional context
none
The text was updated successfully, but these errors were encountered: