arduino / arduino/Arduino

Save sketch recreate the sketch file and break the hard link

Open
#8,535 10 comments 0 reactions 0 assignees View on GitHub
Component: IDE Type: Bug
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

OS: macOS 10.14.6
IDE: 1.8.10
We create a hard link to a sketch:
```console
$ ln ~/Documents/Arduino/test/test.ino ~
$ ls -li ~/Documents/Arduino/test/test.ino ~/test.ino
12898678091 -rw-r--r-- 2 45gfg9 staff 225 2 14 13:21 /Users/45gfg9/Documents/Arduino/test/test.ino
12898678091 -rw-r--r-- 2 45gfg9 staff 225 2 14 13:21 /Users/45gfg9/test.ino
```
Go to IDE and change the sketch, then

```console
$ ls -li ~/Documents/Arduino/test/test.ino ~/test.ino
12898678261 -rw-r--r-- 1 45gfg9 staff 221 2 14 13:23 /Users/45gfg9/Documents/Arduino/test/test.ino
12898678091 -rw-r--r-- 1 45gfg9 staff 225 2 14 13:21 /Users/45gfg9/test.ino
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the save operation on macOS 10.14.6 with Arduino IDE 1.8.10 using the hard-link commands from the report. Trace the sketch-file save path and verify that saving preserves the original inode and hard link; confirm this with the reported ls -li comparison.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.