Cristian Maglie
101677bba2
Fixed NPE introduced in 125846f5
...
Fix #6552
2017-07-25 23:03:25 +02:00
Cristian Maglie
cbbac9dbda
code makeup: use String.isEmpty() method
2017-07-18 13:02:13 +02:00
Cristian Maglie
93fc220c55
Fix simple java error in LIBRARY_INDEX_URL_GZ assignment
...
Being a final variable it must be assigned only once.
2017-07-18 13:01:03 +02:00
David Gauchard
125846f55d
per-board generic option in config file boards.txt for disabling control of dtr+rts from IDE, allowing board specific use of these lines for example for reset or programming mode. Currently used by esp8266/Arduino.
2017-07-18 10:59:06 +02:00
Peter Gren
c7b412ca3f
Fixed ignoring of LIBRARY_INDEX_URL of system property
2017-07-18 10:47:15 +02:00
Martino Facchin
cba0435367
Add missing translation string (cached core)
2017-06-23 17:00:49 +02:00
Matthijs Kooijman
beadf8fe63
Fix renaming of newly added files
...
Before 72f815bcf
(Refactor file adding and renaming, and save as handling)
renaming a file would first save it and then rename it. Since that
commit, renaming an unsaved, newly added file would try to rename a
non-existing file on disk, causing an error message.
This is fixed by only moving the on-disk file if it exists, otherwise
just the in-memory filename is updated and the file will be written
during the next save.
Fixes : #6265
2017-06-16 21:58:11 +02:00
Cristian Maglie
a06fa27558
Added new translations
2017-05-30 17:48:00 +02:00
Cristian Maglie
8f53860607
Updated translations
2017-05-30 17:21:53 +02:00
Cristian Maglie
d65e6ffc3d
Merge pull request #6331 from cmaglie/jssc-no-unpack
...
Two fix for future Windows compatibility
2017-05-30 15:58:10 +02:00
Cristian Maglie
bb41ad791f
Use win32 ShellExecute API to open URL with default browser
2017-05-22 12:25:58 +02:00
Cristian Maglie
229c32ccad
Avoid dll unpacking within JSSC
...
This requires a custom build of JSSC.
https://github.com/scream3r/java-simple-serial-connector/pull/105
2017-05-18 15:36:17 +02:00
Cristian Maglie
e500c7c41f
Enabling "external editor" now requires to save all sketches.
...
Fix #6196
2017-05-16 14:53:27 +02:00
Cristian Maglie
00c1a3b3eb
Renamed editor.auto_close_braces pref and set default value
2017-04-13 11:38:23 +02:00
Michael michael.sytko
d5a73dc419
added setting to show always file extensions
2017-04-10 14:24:26 +02:00
Martino Facchin
647a1b0aaa
Starting IDE 1.8.3
2017-03-23 09:26:56 +01:00
Cristian Maglie
acf17ec305
Updates to translations
2017-03-22 13:27:36 +01:00
Cristian Maglie
674419a464
Fixed a bunch of trivial javac warnings
2017-03-22 12:12:46 +01:00
Cristian Maglie
b4a1a03eb5
Updated translations resources
2017-03-21 12:47:10 +01:00
Cristian Maglie
b81059f616
Updates to translations
2017-03-21 11:40:53 +01:00
Martino Facchin
5b6adec95f
add preference checkbox for core cache
2017-03-20 17:31:38 +01:00
Martino Facchin
14b3f9b1d6
Merge pull request #6041 from delftswa2017/bug/data-folder
...
Fix "save as" operation for the data folder of a sketch
2017-03-16 09:46:23 +01:00
tomneutens
938df21778
Added a CompilerProgressListenerList to the EditorStatus class so you can add a listener for compiler progress from an external tool. To enable this the build method in the compiler class had to be changed
2017-03-15 19:32:53 +02:00
jeroenoverman
7714a41c0c
Fix copy data folder when performing save as operation
...
Changed the location where the variable `folder` gets updated. The
function `getDataFolder()` uses this variable to return the data folder.
It was looking for the data folder of the original sketch in the folder
of the new created sketch.
Furthermore the data folder will now be created if it does not exist yet
in the new sketch before copying the files of the original sketch.
2017-03-07 17:14:00 +01:00
Cristian Maglie
241df10c85
Merge branch 'handle_UTF-8_serial' of https://github.com/aknrdureegaesr/Arduino
2017-02-20 16:12:50 +01:00
Cristian Maglie
0b297d2906
Fixed fields hidden by local variable warnings
2017-02-20 15:22:27 +01:00
Martino Facchin
e9e24bd369
Merge pull request #5879 from facchinm/better-mdns
...
Update jmdns to 3.5.1
2017-02-10 18:36:14 +01:00
Andreas Krüger
ba302ee9c8
Properly decode UTF-8 characters comming in from serial one byte at a time.
...
This fixes #2430 .
2017-02-10 01:39:33 +01:00
Cristian Maglie
2048ae264b
Small makeup for ContributedLibrary.equals()
2017-01-25 16:28:54 +01:00
Cristian Maglie
ff5b9f6660
Consider sketchbook and bundled libraries folders only if they exists
2017-01-25 16:24:35 +01:00
Cristian Maglie
a044f59634
Allow empty bundle hardware folder
2017-01-25 16:24:35 +01:00
Martino Facchin
b2241dadf8
Greatly simplify Network discovery code
...
use jmmdns to simplyfy the code and automatically take care of interfaces switching
2017-01-23 16:09:27 +01:00
Martino Facchin
44c0c7300e
Merge pull request #5444 from kevans91/freebsd-platform-tag
...
Add FreeBSD Platform Tag -- supports x86_64-freebsd, arm*-freebsd, an…
2017-01-20 17:49:27 +01:00
Martino Facchin
0c8aebd6e8
Port fixes for upstream jmdns
2017-01-19 17:02:50 +01:00
Martino Facchin
0df438b817
Update jmdns to 3.5.1
2017-01-19 11:47:53 +01:00
Martino Facchin
6fc0379298
Starting IDE 1.8.2
2017-01-17 12:11:04 +01:00
Cristian Maglie
e00e7bc427
Updated translations
2017-01-09 12:20:07 +01:00
Martino Facchin
548320f998
Fix transiflex scripts to explicitly require python2
2017-01-04 16:31:14 +01:00
Martino Facchin
35ee2499aa
Readd translatable strings
...
Fixes #5757
2017-01-04 16:31:14 +01:00
Kyle Evans
ba42280fba
Simply arch matching
2016-12-28 23:37:10 -06:00
Cristian Maglie
da97506adf
Started IDE 1.8.1
2016-12-24 00:14:33 +01:00
Martino Facchin
d115f44a31
Update IDE version to 1.8.0
2016-12-21 16:12:44 +01:00
Martino Facchin
e9709689de
Add extra field to serial discovery targeting Tian board
2016-12-16 10:59:00 +01:00
Martino Facchin
8098196083
Kill programmer if upload takes more than 5 minutes
...
Fixes #5672
2016-12-15 18:57:21 +01:00
Cristian Maglie
bd4c79fbac
Updated translations
2016-12-15 17:36:32 +01:00
Martino Facchin
6dacb6b0bf
Clear Modified flag on Save As...
...
Fixes #5550 (in the proper way this time)
2016-12-12 14:14:36 +01:00
Martino Facchin
a93b45d9c8
Merge pull request #5573 from facchinm/fix_symlink_5478
...
Fix symlinks being replaced with files on save
2016-12-07 13:17:28 +01:00
Martino Facchin
1a97ec4481
Remove sketch size calculation from Java IDE
...
It is now performed by arduino-builder (>= 1.3.22)
2016-11-28 15:09:46 +01:00
Cristian Maglie
39c3e8bb8b
Merge branch 'x11-fix'
2016-11-25 15:12:05 +01:00
Cristian Maglie
c363777f06
Reduce verbosity during downloads in text-only mode
2016-11-25 15:10:38 +01:00
Cristian Maglie
8eae64181e
Removed old prototype code from #2328 that is now in Base
2016-11-25 15:10:38 +01:00
Martino Facchin
2d1f49a077
Fix symlinks being replaced with files on save
...
Fixes #5478
Backported from Processing 0abee5af6a/app/src/processing/app/Util.java (L174)
2016-11-24 09:58:27 +01:00
Martino Facchin
c209e33e97
Starting version 1.6.14
2016-11-23 10:48:13 +01:00
Cristian Maglie
de65c3d89f
Updated translations
2016-11-21 18:14:40 +01:00
Cristian Maglie
954941c0aa
Updated string
2016-11-21 18:14:38 +01:00
Cristian Maglie
27d1b8d9a1
Merge branch 'windows-dpi-awareness'
2016-11-21 12:43:01 +01:00
Cristian Maglie
5b690b9b9e
Win32: use legacy SHGetFolderPath if SHGetKnownFolderPath is not available
...
This ensure windows XP compatibility
2016-11-21 12:42:58 +01:00
Cristian Maglie
1f1092fb3a
Removed debug messages in 39577072
2016-11-21 11:50:24 +01:00
Cristian Maglie
3957707218
Use Win10 API SetThreadDpiAwarenessContext to force DPI Awareness
...
This commit contains debug messages used for testing purposes.
2016-11-10 16:14:25 +02:00
Cristian Maglie
41092be596
Merge branch 'editor-refactor-fixup'
2016-11-09 14:25:45 +01:00
Cristian Maglie
650840381f
Small cleanup, no code change
2016-11-07 14:51:25 +01:00
Cristian Maglie
5b4af28f47
Removed dead code
2016-11-07 14:47:33 +01:00
Cristian Maglie
5244daa5d1
Use the same Comparator to sort EditorTab and SketchFile
2016-11-07 12:13:30 +01:00
Cristian Maglie
c35469ea81
Updated translations strings
2016-11-07 10:48:18 +01:00
Cristian Maglie
8c5b064956
Added error message if a referenced core is not found
2016-11-07 10:48:04 +01:00
Cristian Maglie
03225e787f
Windows: Autodetection of display resolution
2016-11-04 10:23:49 +02:00
Cristian Maglie
d63162b5a1
Added Platform.getSystemDPI() API
2016-11-04 10:23:48 +02:00
Cristian Maglie
af70053218
Improved Plaftorm.openUrl(..) for Windows
...
If a local file is being opened, now the function tries to convert
the path into a URI. This seems to be a more reliable way to open file
on Windows 10 that has a more strict permission policy on cmd.exe.
2016-11-03 19:37:52 +02:00
Cristian Maglie
21ff728c59
Merge remote-tracking branch 'cmaglie/fix-win-paths'
2016-11-03 12:10:24 +01:00
Martino Facchin
12eb09f0b9
Fix NPE if referred core is nonexistent
...
Fixes #5502
2016-10-27 12:46:44 +02:00
Cristian Maglie
3af99c0847
Use Documents/ArduinoData when running as a Windows UWP
...
LocalAppData is restricted for Windows Apps, so we are forced to use
a document folder.
2016-10-19 16:28:21 +02:00
Cristian Maglie
cb50ebc9c1
Slightly simplified argument passing to arduino-builder
2016-10-19 16:28:21 +02:00
Cristian Maglie
2856600463
Windows: Use Shell32 utility to determine known paths
2016-10-19 16:28:21 +02:00
Cristian Maglie
cbf3cdcfbb
Added Win32KnownFolders class
2016-10-19 16:28:21 +02:00
Cristian Maglie
7d9ec39ca9
Update jna.jar to 4.2.2
2016-10-19 16:28:20 +02:00
Cristian Maglie
31a9029c1d
Updated i18n strings
2016-10-05 15:55:32 +02:00
Cristian Maglie
7883835b84
If an archive is corrupted (CRC error) retry the download
...
Previously the CRC error was quite annoying to recover because
the user needed to manually delete the corrupted file from the
staging folder (without knowing the exact path of the file to
remove).
Now the IDE tries autonomously to resolve the situation by
removing the file and downloading it again.
Fixes #5394 #4303
2016-10-05 12:56:40 +02:00
Kyle Evans
481fd94ac6
Add FreeBSD Platform Tag -- supports x86_64-freebsd, arm*-freebsd, and i386-freebsd with optional extension for tagging specific release (e.g. freebsd11)
2016-10-03 23:37:27 -05:00
Cristian Maglie
653a05273d
Check sanitaryName only on basename without extension
...
This regression originates from:
8725bb1e
Clean up sketch loading
before this commit the sketch name sanitization was made on the sketch
name without the extension.
After 8725bb1e
instead the name sanitization is made on the filename, so
including the ".ino" extension.
This lead to a weird corner case, caused by the limit of 63 characters
on the sketch name: before 8725bb1e
it would be possible to save a sketch
with a name of exactly 63 characters, but after 8725bb1e
this sketch will
suddenly becomes invalid becuase the 63 chars name + extension would exceed
the 63 characters limit.
This commit fix this regression.
Fix #5431
2016-10-03 17:00:08 +02:00
Martino Facchin
0a8e7a14f1
Make sure DiscoveryManager is not null when calling it
...
Solves #5413
2016-10-03 11:07:10 +02:00
Cristian Maglie
ec2e9a642a
Added all missing @Override annotations
2016-09-29 20:15:57 +02:00
Cristian Maglie
46dfd7603c
Removed warning about accessing a non-accessible member of an enclosing type
2016-09-29 20:15:56 +02:00
Cristian Maglie
bd7e76533a
Removed redundant type specifiers for generics
2016-09-29 20:15:56 +02:00
Cristian Maglie
72a1d928b4
Removed useless cast
2016-09-29 20:15:56 +02:00
Cristian Maglie
4d579f7652
Removed extra semicolon
2016-09-29 20:15:56 +02:00
Cristian Maglie
53e456936d
Silenced lint warnings in ContributedLibrary
...
Comparing strings with `==` operator triggers a lint4j warning.
This refactoring avoids the use of `thisVersion == otherVersion`.
2016-09-29 20:15:55 +02:00
Cristian Maglie
5c097c03c5
Fixed regression: trivial error on String comparison
...
Fix #5423
The regression has been introduced in:
72f815b
Refactor file adding and renaming, and save as handling
2016-09-29 18:21:09 +02:00
Martino Facchin
69fd6debbd
Starting version 1.6.13
2016-09-22 12:42:35 +02:00
Cristian Maglie
e1c2d0dfcd
Updated translations from transifex
2016-09-21 10:07:01 +02:00
Cristian Maglie
0ddc8e6300
Fixed wrong string check
2016-08-31 19:12:09 +02:00
Cristian Maglie
7d27c43ff2
Launch DiscoveryManager after populating indexes
2016-08-31 19:11:24 +02:00
Martino Facchin
84ede60df8
Start board discovery after loading all platforms
2016-08-30 16:22:40 +02:00
Martino Facchin
e3177a5ed8
Starting version 1.6.12
2016-08-26 18:27:00 +02:00
Martino Facchin
29e79c8157
update API to v1
2016-08-26 16:42:44 +02:00
Martino Facchin
efc07a1c0e
Add Cloud API integration
...
This method discovers if a connected board needs an additional core and helps the user downloading it via BoardManager
2016-08-26 16:42:44 +02:00
Matthijs Kooijman
59b70c8373
Randomize the the build path name
...
Previously, this used a hash of the sketch filename, so the same build
path would be generated for the same sketch between multiple
compilations. Now that the build path is stored, this requirement has
disappeared, so a random filename can be generated again. While here,
this commit also changes the prefix from "build" to "arduino_build_",
which makes it a bit more clear what the directory's purpose is.
2016-08-26 16:42:44 +02:00
Matthijs Kooijman
4f0af2af57
Store the build path used in Sketch
...
Previously, everywhere where it was needed, the path was requested from
BaseNoGui. Because the path is based on a hash of the sketch filename,
every caller would get the same path for the same sketch.
However, it makes more sense to store the path used for a given sketch
inside the Sketch object. This prevents having to pass around or
regenerate the build path everywhere, and no longer requires the build
path to be deterministic (though it still is in this commit).
This allows removing some methods and constructors of which two versions
were available - one with a build path argument and one without.
2016-08-26 16:42:44 +02:00
Matthijs Kooijman
c4e77a7c3c
Let SketchFile figure out if it is primary by itself
...
Previously, the caller of the constructor did this, but now that
SketchFile keeps a reference to its containing sketch, it can figure it
out itself.
2016-08-26 16:42:44 +02:00
Matthijs Kooijman
1d15c434dc
Let SketchFile.delete()
call Sketch.removeFile()
...
Previously, callers of `SketchFile.delete()` would also call
`Sketch.removeFile()`, but letting SketchFile handle this is more
robust.
This is possible now that SketchFile keeps a reference to Sketch and
makes updating the Sketch file list less fragile.
Eventually this might be further decoupled by letting SketchFile
broadcast a "deleted" event instead.
2016-08-26 16:42:44 +02:00
Matthijs Kooijman
aae0bc4c47
Rename SketchFile.deleteFile()
to delete()
...
The extra "File" in the name was a bit redundant, and this is more
consistent with `Sketch.delete()`.
2016-08-26 16:42:44 +02:00