jung6717 / arduino

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

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 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 8 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

GoogleCodeExporter commented 8 years ago

Original comment by federico...@gmail.com on 1 Jul 2015 at 8:04

GoogleCodeExporter commented 8 years ago
A WontFix after 4 years of ignoring the issue and no comment? Great. If I will 
ever be into Arduino stuff again, I'd use a better IDE, thank you very much.

Original comment by byt...@gmail.com on 1 Jul 2015 at 3:56