code8825 / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

(Linux) Arduino IDE shouldn't overwrite symlinks when saving #268

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a new sketch directory
2. Symbolically link a .pde sketch file from another directory into that one
3. Open the sketch in Arduino, then save it

What is the expected output? What do you see instead?

I would expect that the linked file be updated. Instead, the link is
deleted, and is replaced by a regular file containing the updated sketch.

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?

I am using Arduino 18, on 64-bit Ubuntu Linux.

Please provide any additional information below.
The code that handles this is the function saveFile() in Base.java.  Having
Arduino preserve symlinks would be nice when testing alternate versions of
programs that are located in external version control systems.

Original issue reported on code.google.com by Matt.M...@gmail.com on 28 May 2010 at 6:18

GoogleCodeExporter commented 9 years ago
I have the same problem with Arduino 22. This bug drives me insane everytime I 
want to commit my sketches in git, because I have to manually execute shell 
scripts that copy files. That's just wrong and silly.

Original comment by byt...@gmail.com on 14 May 2011 at 11:02