Cristian Maglie
bca77163fb
Merge branch 'upload-without-verify' of https://github.com/gh-megabit/Arduino
2016-04-28 15:09:27 +02:00
gh-megabit
4b64ef74ba
Implement Do-Not-Verify-After-Upload preference for Serial Uploads
2016-04-15 21:15:34 +01:00
Martino Facchin
2ddbf01334
Do not drop serial ports with underscore in the name
...
solves #4857
2016-04-15 10:01:47 +02:00
Sandeep Mistry
c99ab12446
Add "runtime." prefix to "build_properties_custom.*" preferences
2016-04-13 09:03:03 -04:00
Sandeep Mistry
9c741885e0
Revert "Do not save build_properties_custom.* preferences to disk"
...
This reverts commit f47165db64
.
2016-04-13 08:58:35 -04:00
Sandeep Mistry
f47165db64
Do not save build_properties_custom.* preferences to disk
2016-04-12 10:15:01 -04:00
Cristian Maglie
2b18d1fba0
Merge remote-tracking branch 'arduino/master'
2016-04-08 20:17:26 +02:00
Cristian Maglie
95f5b52420
Added flag to allow ignoring signature check on package_index.json
2016-04-08 18:55:00 +02:00
Martino Facchin
643f8479e3
Restore serial.port.iserial field
...
uses 2893c2d643
2016-04-08 17:58:01 +02:00
Martino Facchin
f6880fe617
Merge pull request #4792 from facchinm/solve_serial_windows
...
Rework serial ports handling
2016-04-06 18:03:45 +02:00
Martino Facchin
bf11c7f395
avoid queuing a lot of threads while waiting for platform
2016-04-06 17:52:24 +02:00
Martino Facchin
72c337d88d
avoid losing the sketch serial port on 1200bps touch
2016-04-06 17:51:48 +02:00
Martino Facchin
c28c854936
Filter examples based on contributed libraries by architecture
...
Solves #4762
2016-04-06 14:41:12 +02:00
Cristian Maglie
0c453355f4
Merge branch 'fix-annoying-popup'
2016-04-04 13:34:14 +02:00
Cristian Maglie
8d7ee63c70
Autoclose notification popup after 10 seconds.
2016-04-04 13:30:42 +02:00
Martino Facchin
42ff604f1e
Fix NPE when replacing unexisting strings
2016-04-01 12:52:19 +02:00
Martino Facchin
34b0813530
try to avoid NPE if two threads modify library list
2016-04-01 12:39:01 +02:00
Martino Facchin
0584b2c2bd
initialize the error string as empty (not null)
2016-04-01 12:07:15 +02:00
Martino Facchin
63de1cccfb
Avoid generating an exception if upload fails
...
The current method of reporting upload errors is based on an exoteric combination of exceptions which makes return error code useless
The Uploader.java message() implementation is too avrdude-dependant to allow easy portability since the upload tools are becoming a lot and very different
With this commit we try to avoid exceptions and only use the external uploader's exit code to decide the status bar message.
The message can be:
- the last line containing "error" string (any case) or
- the usual avrdude message parsing (to keep compatibility with translations)
Needs testing with all platform and all supported upload tools
2016-04-01 12:06:21 +02:00
Martino Facchin
8f524e14a5
fix exception if remote upload fails on newer ssh client
2016-04-01 12:05:57 +02:00
Martino Facchin
c5d88f09ae
add a flag to pause polling for serial port
2016-04-01 11:38:54 +02:00
Martino Facchin
ea405ea534
avoid NPE for synchronization issues on board list
2016-04-01 11:38:54 +02:00
Martino Facchin
ad74288e5a
Fix randomic NPE when pressing menus during operations
2016-04-01 11:38:54 +02:00
Martino Facchin
e23bbf76c1
avoid NPE in CLI mode (boardInfo not yet initialized)
2016-04-01 11:38:53 +02:00
Martino Facchin
243fc68763
Rework Serial ports handling and add Board info menu
...
This commit introduces the concept of stateful board list (vs. original stateless) and board serial number.
The board is now an "entity" composed by the triplet port/vid/pid. These informations come from libListSerial "light" function. When the board list changes, it triggers a request for the additional infos to libListSerial. These information contains the serial number of the boards.
These brings a lighter and faster scanning process. Some logic has been introduced to handle a board with the S/N only exposed in the bootloader (like 32u4).
In this case the disappearing port acquires the bootloader's S/N
A menu (under Ports menu) shows the currently connected port info and can be used for bugreporting
2016-04-01 11:38:53 +02:00
Martino Facchin
c11ceb7dae
Fix NPE when replacing unexisting strings
2016-04-01 11:38:53 +02:00
Martino Facchin
6d5597b070
Avoid multiple concurrent compile/upload operations
...
Disable Compile/Run buttons as they get press, and reenable only on function exit.
The launched upload process has now a 2minutes timeout before being terminated forcefully.
10 second after pressing "Upload" the button comes pressable again, but this time the previous upload command gets killed explicitely
2016-04-01 11:38:52 +02:00
Martino Facchin
629509f302
Merge pull request #4515 from sandeepmistry/wait-for-upload-port-timeout-bump
...
Increase wait for upload port timeout to 5s on all platforms
2016-04-01 11:15:57 +02:00
Cristian Maglie
9a6bb8420d
Added string to translations resources
2016-03-17 13:09:27 +01:00
Sandeep Mistry
9dba7f0da0
Catch and report errors parsing contributed index files
2016-03-14 17:28:30 -04:00
Sandeep Mistry
7cb1399381
Apply extra 250ms after waitForUploadPort to all platforms
2016-03-10 09:44:24 -05:00
Sandeep Mistry
7a535d9c40
Add OS X specific delay after waiting for upload port, to prevent "Resource busy" errors on open
2016-03-10 09:37:27 -05:00
Sandeep Mistry
de412656ec
Increase wait for upload port timeout to 5s on all platforms
...
OS X 10.11 seems to be slower, increasing timeout to 5s on all
platforms to keep things simple.
2016-03-10 09:37:27 -05:00
Martino Facchin
9a8dd2a4a2
starting version 1.6.9
2016-03-09 17:14:24 +01:00
Cristian Maglie
1f6462d59b
Updated translations
2016-03-09 10:08:18 +01:00
Cristian Maglie
1f3c8b9f6c
Set correct user-agent when performing HTTP requests
2016-03-08 11:31:59 +01:00
Cristian Maglie
31187cbcc1
Updated base translations
2016-03-07 19:46:30 +01:00
Cristian Maglie
452d05825b
Import new translations
2016-03-07 19:34:49 +01:00
Cristian Maglie
8d995d73f3
Show board name on generic "Error compiling" message
...
Close #4658
2016-03-07 19:26:32 +01:00
Cristian Maglie
6b4c018740
Merge branch 'java-warnings' of https://github.com/matthijskooijman/Arduino
2016-01-25 11:06:47 +01:00
Me No Dev
2893c2d643
Fix adding NULL value to the preferences when iserial is not defined
2016-01-25 09:52:43 +01:00
Matthijs Kooijman
3d47995915
Remove unused imports
...
This silences some java warnings.
2016-01-21 17:18:55 +01:00
Matthijs Kooijman
82d3985f6f
Remove I18n._()
...
This function was already deprecated and still triggers a java warning.
Removing it silences that.
2016-01-21 17:16:50 +01:00
Matthijs Kooijman
40e9aa17b3
Fix file descriptor leak when downloads are interrupted
...
This fixes a java warning.
2016-01-21 17:15:42 +01:00
Cristian Maglie
6398cde1c8
Added 'arm' architecture support in Boards Manager
...
This is a necessary step to fully support ARM builds of the Arduino IDE
See #3549
2016-01-19 18:05:41 +01:00
Cristian Maglie
9e5dc5ce3b
Merge branch 'renaming' of https://github.com/matthijskooijman/Arduino
2016-01-19 13:53:50 +01:00
Hasso Tepper
d05b375810
Fix some incorrect I18n.format()/tr() usage
2016-01-18 09:47:05 +02:00
Martino Facchin
4fa57be5c7
partly revert commit 3c16ac02
to pass legacy tests
...
all this code will be replaced/removed as soon as the native library is fully validated
2016-01-07 15:47:04 +01:00
Martino Facchin
a1c79ce188
Merge pull request #4211 from facchinm/iserial_field
...
cross-platform jni implementation for serial port details discovery
2016-01-07 12:25:10 +00:00
Martino Facchin
2a677b4bcd
avoid NPE if serial port gets discovered too early
2016-01-07 12:41:56 +01:00
Martino Facchin
7e17b5c318
Move vid/pid resolving to cross platform jni lib
2016-01-07 12:41:51 +01:00
Matthijs Kooijman
9e4243bc7e
Add FileUtils.splitFilename()
...
This allows splitting a filename into a basename and extension.
`FileUtils.hasExtension()` is updated to use it, in favour of the
String.split-based approached it used before.
2016-01-05 14:49:22 +01:00
Cristian Maglie
232f434ca8
Updated translations for translators
2016-01-05 12:54:17 +01:00
Cristian Maglie
37726c6150
Translations update
2016-01-05 12:28:17 +01:00
Cristian Maglie
d1455a070d
Added Thai language
2016-01-05 12:25:18 +01:00
Hasso Tepper
7aa384db7c
Add necessary spaces
2016-01-04 20:09:29 +02:00
Hasso Tepper
7d7a654bd9
Make "Retired" translatable
2016-01-04 20:09:29 +02:00
Hasso Tepper
503cbbd745
Use formatted i18n string to ease a translation
2016-01-04 20:09:18 +02:00
Martino Facchin
9d676a71c8
Specify SSH authentication methods
...
Solves upload to particularly configured SSH servers which wrongly chooses Kerberos auth method
2016-01-04 10:58:18 +01:00
Martino Facchin
3c16ac025a
Add iSerial to reported VID_PID string
...
serial.port.iserial holds the iSerial value
2016-01-04 10:58:18 +01:00
Cristian Maglie
cce61f6aad
Remove unnecessary rename in GZippedJsonDownloader
...
See #4361
2015-12-30 10:08:29 +01:00
Cristian Maglie
29912a0ac9
Remove temporary files when updating library_index.json
...
Fix #4272 #4332
2015-12-28 19:17:29 +01:00
Matthijs Kooijman
1029e0b78d
Delete temporary sketch copy after build
...
When a sketch has unsaved changes, a temporary copy of the sketch is
made with those changes applied. This copy is then passed to
arduino-builder.
Previously, this temporary copy was kept around and only deleted when
the IDE was closed. However, all files were written to it again on every
build, so keeping the old files around did not serve any real purpose.
When a file was renamed in the IDE, the original name would still be
present in the temporary copy, and could cause linker errors because
both were compiled.
This commit makes sure the temporary copy is deleted after every build,
instead of at IDE exit, which fixes this problem with renames.
When a file is deleted from the sketch, the file would also be deleted
from the temporary copy, presumably to fix this same problem for
deletes (but renames were forgotten). With this commit, this special
handling for deleting files is no longer needed, so it is removed.
This fixes #4335
2015-12-28 15:19:55 +01:00
Cristian Maglie
7c089c96d3
Fixed NPE in some rare combinations of JSON files
...
The error triggered inside ContributioIndexer.mergeContributions()
while trying to remove a platform:
if (platform != null) {
targetPackage.getPlatforms().remove(platform);
}
remove() method calls ContributedPlatform.equals() to find the
element to remove but since the parentPackage fields are resolved
*after* merging contributions, the equls() method will fail with
a NullPointerException.
2015-12-21 18:15:52 +01:00
Martino Facchin
376cb56fc0
Starting version 1.6.8
2015-12-21 12:05:04 +00:00
Martino Facchin
767867bacb
Revert "Moved -Dawt.useSystemAAFontSettings=on out of java code, where, apparently,"
...
Fonts on Windows became ugly, reverting whole the commit since it brings no visible changes to Linux and OSX
This reverts commit 6c5e584454
.
2015-12-16 10:02:37 +01:00
Martino Facchin
22a37ea41e
Merge pull request #4107 from me-no-dev/esp8266-ota
...
Enable OTA Update mechanism for any mDNS enabled platform
2015-12-16 09:28:13 +01:00
Federico Fissore
85a79b4a98
Updated translations
2015-12-14 11:19:34 +01:00
Federico Fissore
6c5e584454
Moved -Dawt.useSystemAAFontSettings=on out of java code, where, apparently,
...
has no effect
2015-12-14 10:03:16 +01:00
Federico Fissore
f702f1a4e7
Updated translations
2015-12-11 17:35:04 +01:00
Federico Fissore
98d5ff79eb
Upgrading arduino-builder to 1.3.7, which changes the way messages are sent
...
back to the IDE. Instead of having just stdour and stderr, stdout only is
used, but each message has a log level: info, warn, debug, error
Plain stdout/stderr are still used by child processes
2015-12-11 14:25:13 +01:00
Federico Fissore
9a39e5e6ac
Some configuration may totally miss network interfaces, even localhost. Fixes #4249
2015-12-04 09:55:32 +01:00
Federico Fissore
1e074cce42
Whoops, a debuggin call to "peek" was committed. Removed.
2015-12-01 15:23:51 +01:00
Federico Fissore
5fcf5e3eb7
Updated translations
2015-12-01 12:21:30 +01:00
Federico Fissore
46d1c89073
Windows: even old settings folder may be missing from the registry. Fixes #4124
2015-12-01 11:36:45 +01:00
Federico Fissore
d9f9081f3c
Updated translations
2015-11-30 14:02:17 +01:00
Federico Fissore
e224698ecf
Files weren't deleted from temp unsaved sketch folder. Fixes #4233
2015-11-30 10:17:29 +01:00
Federico Fissore
aaebb0a4d6
Stored some regexps in static finals, given names to threads, and slightly
...
optimized ConsoleOutputStream
2015-11-27 15:07:44 +01:00
Federico Fissore
89a36cad0a
Updated translations
2015-11-26 11:38:03 +01:00
Federico Fissore
6855e91883
Fixed various Board/Library managers glitches, in particular when removing/upgrading
2015-11-24 16:14:16 +01:00
Federico Fissore
7dd6e8f57d
Windows: proper, non blurry, icon displayed. Fixes #3473
2015-11-24 09:53:27 +01:00
Federico Fissore
d5a0476948
Installing tools from packager (eg: arduino) in packager folder, thus avoiding
...
tools duplication and disk space wasting. Fixes #4193
2015-11-20 17:15:53 +01:00
Federico Fissore
a1e223ad62
License headers fixes
2015-11-20 15:17:32 +01:00
Federico Fissore
d0d9dfcfa8
If package doesn't have that tool, it probably comes from another package, so we consult the resolvedTools instead
2015-11-20 14:58:54 +01:00
Federico Fissore
80fec38a25
Updated translations
2015-11-20 09:25:23 +01:00
Federico Fissore
5e585135ce
Updated translations
2015-11-19 13:52:30 +01:00
Federico Fissore
1862827c25
Portable folder can now be set to any arbitrary path, not just subfolders
...
of "portable". Fixes #4103
2015-11-19 13:43:49 +01:00
Federico Fissore
907af81ff9
Fixed NPE when "tools" key was missing in package_*_index.json file
2015-11-19 12:41:53 +01:00
Federico Fissore
960918796e
Added support to file:// protocol. Fixes #4098
2015-11-19 12:08:17 +01:00
Federico Fissore
2747fddd10
Windows: when finding default Documents folder, if registry keys are missing,
...
fallback to environment variable. See #4124
2015-11-19 10:09:06 +01:00
Federico Fissore
20ddeb0fe3
Updated translations
2015-11-18 17:27:51 +01:00
Federico Fissore
b450a2743e
Allowing boards/libs types and categories to be translated. Fixes #3646
2015-11-18 17:27:35 +01:00
Federico Fissore
04cfe0c36d
Windows: inverted folder entries, as Shell Folders is more reliable (when
...
present)
2015-11-18 16:00:11 +01:00
Federico Fissore
9729b1b069
Windows: in case Shell Folders entry is missing, attempts to discover Documents folder using User Shell Folders. See #4124
2015-11-18 15:55:26 +01:00
Federico Fissore
13d8fa4dd0
Fixed typo
2015-11-18 09:49:46 +01:00
Federico Fissore
73e857fda9
Removed some warnings which are emitted from arduino-builder at compile time
...
Fixes #4177
2015-11-18 09:40:04 +01:00
Federico Fissore
1328f3a9e2
Library and Boards Managers were using old copies of library/boards indeces. thus making the UI show old data. Fixes #4139 #3904 #3795
2015-11-17 12:24:28 +01:00
Federico Fissore
0fb04b3180
Updating arduino-builder to 1.2.1
2015-11-16 15:38:21 +01:00
Me No Dev
2b75aec6a6
Enable OTA Update mechanism for any mDNS enabled platform
...
Adds ability to update the firmware of non-SSH boards using TXT
parameters from mDNS
Three new TXT keys are added (defaults are capital):
ssh_upload=YES/no
tcp_check=YES/no
auth_upload=yes/NO
"ssh_upload" controls which Uploader should be used. Defaults to
SSHUploader
"tcp_check" controls wether TCP reachability test should be performed.
Defaults to "yes". Boards that have few TCP ports available, can use
"no" to skip the check and update over UDP (ESP8266 for example).
"auth_upload" controls wether authentication is required (only for
"ssh_upload=no").
One new pattern and two new variables are available.
Var "network.port" resolves to the advertised by mDNS device port.
Var "network.password" resolves to the entered device password if
upload authentication is used, else it's empty string.
Pattern "upload.network_pattern" is usable if the platform is using
different tool/command to do network updates. If not defined,
"upload.pattern" will be used instead.
2015-11-07 20:05:42 +02:00
Federico Fissore
2e80ee5bbd
Testing translation for proper formatting. This test will fail when a
...
translation uses wrong syntax, thus avoiding any future issue similar to #4095
2015-11-06 17:24:26 +01:00
Federico Fissore
fd8cb4649b
Updating translations
2015-11-06 16:11:18 +01:00
Federico Fissore
eb732def4f
Updating version in BaseNoGui
2015-11-04 15:24:54 +01:00
Federico Fissore
20dad1eed6
Updating translations
2015-11-02 13:09:55 +01:00
Federico Fissore
5ceca65fe2
'.ino' extension of sketch file was hardcoded. But IDE supports '.pde' files as well. Fixes #4021
2015-11-02 12:56:04 +01:00
Federico Fissore
67e32ff8fa
FileUtils.copy now filters out source control folders. Also, dir is checked for existence before creating it. Fixes #4034
2015-11-02 12:29:12 +01:00
Federico Fissore
df2ae88469
Updating arduino-builder to 1.0.3
2015-10-30 09:11:01 +01:00
Federico Fissore
f5c1084f5f
Fixed wrong i18n function name
2015-10-29 14:09:51 +01:00
Cristian Maglie
ec7cc8c5cf
Added check when setting serial port parameters
...
This allows to detect for invalid baud rate settings in
particular on Linux where the kernel do not allow non-standard
baud rates on some devices.
See #3389
See #3351
2015-10-29 13:58:29 +01:00
Federico Fissore
a51723fe79
Updated and add libs
2015-10-28 16:43:33 +01:00
Federico Fissore
6a5ec40ca3
Updated translations
2015-10-27 17:18:52 +01:00
Federico Fissore
aaf86b4a50
arduino-builder: sketchbook libraries specified as last param, because they
...
are more important
2015-10-27 15:55:01 +01:00
Federico Fissore
d8d70ee0bd
Windows: ":" is an illegal char for a file name. Fixes #4026
2015-10-26 18:14:05 +01:00
Federico Fissore
0102a58122
"static" makes sense for constants and few other things. Avoid it if you don't have a specific reason for using it.
2015-10-26 15:49:31 +01:00
Jesse Vincent
5b64cebdc5
Simplify and clarify new HID error messages.
...
The libraries in question are supported on a number of official Arduino boards. The new error message tries to be a bit more helpful.
2015-10-22 15:27:12 -07:00
Cristian Maglie
2ae36940c6
Fixed parsing for SystemProfiler on Macosx El Capitan
...
Should alleviate #3928
2015-10-20 23:36:56 +02:00
Cristian Maglie
28ad89d694
Make SystemProfilerParser.extractVIDAndPID() static
...
There is no need to instantiate a SystemProfilerParser object
each time extractVIDAndPID is invoked.
Added also `synchronized` keword to avoid reentrance problems
if the method is being used in multiple threads.
2015-10-20 23:34:27 +02:00
Cristian Maglie
9f5efe210a
Removed a bunch of unused variables
2015-10-20 18:38:34 +02:00
Cristian Maglie
38701678b2
Specialized some Iterators with correct inferred type
2015-10-20 18:31:58 +02:00
Cristian Maglie
635de01975
Suppress java 'serial' warning in SignatureVerificationFailedException class
2015-10-20 18:30:27 +02:00
per1234
c1ce649554
Fix typos in ArchiveExtractor.java error messages
2015-10-12 14:34:52 -07:00
Federico Fissore
688c406cb9
Checking every candidate path when exporting, instead of assuming one is good if the other is not. Fixes #3905
2015-10-07 15:40:34 +02:00
Federico Fissore
5c7b8e6587
Don't stop downloading package*index.json files if ONE fails for whatever reason. Fixes #3906
2015-10-07 15:32:34 +02:00
Federico Fissore
417857ee45
Fixed a crashed when user attempted to delete a tab of a not yet compiled sketch. Fixes #3913
2015-10-07 15:17:33 +02:00
Federico Fissore
aa654ba242
Updating arduino-builder to 1.0.0-beta24
2015-10-06 10:52:02 +02:00
Federico Fissore
69f3f9f807
Updated translations
2015-09-30 09:42:01 +02:00
Richard Wackerbarth
d8f30549bc
Extend platforms with Boards.local.txt
2015-09-29 07:36:36 -05:00
Federico Fissore
f511c2451f
Fallback to stock library_index.json file if the copy in .arduino15 is missing/corrupted or if it the downloaded one if corrupted. Fixes #3778
2015-09-25 12:54:50 +02:00
Federico Fissore
3872f5d315
Whoops, local packages were loaded at all. Fixed
2015-09-25 12:28:57 +02:00
Federico Fissore
b82aebd99a
If a package is already defined, don't replace it with the one found (for example) in sketchbook/hardware, but merge their contents. Fixes #3851
2015-09-25 12:05:19 +02:00
Federico Fissore
71c81e30a7
Allow highlighting line with error even if gcc reports full path to file
2015-09-24 16:24:48 +02:00
Federico Fissore
fc8f84f06b
Adding .elf extension to compiled sketch list
2015-09-24 15:37:49 +02:00
Federico Fissore
2f586e2a88
Updated translations
2015-09-23 15:38:57 +02:00
Federico Fissore
9421e1ceb5
Updating arduino-builder to 1.0.0-beta12
2015-09-23 14:11:32 +02:00
Federico Fissore
ccb7dd2974
Made an arduino-builder message easier to understand
2015-09-22 15:03:19 +02:00
Federico Fissore
6128dace42
Removed some old code, including PdePreprocessor and OldCompiler
2015-09-21 15:20:31 +02:00
Federico Fissore
4f2621bd31
Updated translations. Some new languages graduated
2015-09-21 11:07:36 +02:00
Federico Fissore
8767cd51b4
Returning a copy of installed libraries list, so clients can deal with it without incurring in concurrent list changes. See #3814
2015-09-18 17:03:59 +02:00
Federico Fissore
5b84aef301
Build path is now a function of sketch path. This allows to recycle previously
...
compiled files even when working with different sketches at the same time. In
such cases, recompiling is way faster
2015-09-18 10:47:23 +02:00
Federico Fissore
682a5ec331
Faster recompilation of unsaved sketches
2015-09-16 14:51:37 +02:00
Federico Fissore
f906d45de0
Better to separate arguments only when specifying paths, otherwise we can't specify empty args like "-warnings="
2015-09-16 11:30:48 +02:00
Federico Fissore
6847c52428
arduino-builder arguments must be passed in separate cmd.addArgument calls, otherwise special chars will break it. Fixes #3798
2015-09-16 10:45:52 +02:00
Federico Fissore
e5ddd0be3b
New compiler
2015-09-14 15:21:15 +02:00
Federico Fissore
dedbb2cc6e
Update translations
2015-09-14 09:13:08 +02:00
Federico Fissore
57bff44d0a
Boards Manager: if a tool is not resolvable, print a warning and DON'T add a null ref
2015-09-11 14:02:32 +02:00
Federico Fissore
43d855c28b
Proxy selection was using old logic when url resulted in 302
2015-09-09 11:21:22 +02:00
Federico Fissore
a4a7e3ec96
Libraries in unknown categories get set as Uncategorized. Fixes #3732
2015-09-08 15:30:34 +02:00
Sandeep Mistry
7fa355a702
Call on onBoardOrPortChange after selectBoard in no GUI mode
...
Like GUI mode does when a board is changed.
2015-09-01 18:08:12 -04:00
Federico Fissore
d6ea1c05a6
Cleanup
2015-08-31 08:45:58 +02:00
Federico Fissore
f2427b47f0
LoadVIDPIDSpecificPreferences was giving for granted that the attached board provided VID & PID. This is not always true, especially with counterfeits. Fixes #3738
2015-08-28 09:01:47 +02:00
Federico Fissore
f605d1d99b
Added support to VID+PID specific build properties
2015-08-27 10:40:02 +02:00
Federico Fissore
d9bb8965eb
Update translations
2015-08-25 16:00:49 +02:00
Federico Fissore
47451c0f82
Update translations
2015-08-24 16:42:13 +02:00
Federico Fissore
6b9048751e
Proxy PAC support: SubnetUtils is not IPv6 aware, using CIDRUtils to check if IP is in range
2015-08-21 10:38:42 +02:00
Federico Fissore
5e518b9929
Added missing license headers
2015-08-21 08:41:50 +02:00
Federico Fissore
17032ec543
Added proxy PAC file support functions
2015-08-21 08:41:50 +02:00
Federico Fissore
0c7e0d6bb4
CustomProxySelector: auto proxy (PAC) needs login info too
2015-08-21 08:41:50 +02:00
Federico Fissore
916de939e6
Using new CustomProxySelector in FileDownloader
2015-08-21 08:41:50 +02:00
Federico Fissore
708da3bd86
Introducing CustomProxySelector
2015-08-21 08:41:50 +02:00
Federico Fissore
e45f07d507
Added missing license headers
2015-08-13 11:33:35 +02:00
Federico Fissore
bd93add964
Update translations
2015-08-07 17:30:12 +02:00
Federico Fissore
ae857efa78
Updating translations
2015-08-06 14:27:57 +02:00
Federico Fissore
64bf90fec4
Translations: fixed a nasty bug that prevented new translations to be included
2015-08-06 13:19:08 +02:00
Federico Fissore
2daf330c09
LibraryInstaller and ContributionInstaller are now singletons: members of Base, they get passed to dependents, thus allowing a synchronized method execution, needed to avoid race conditions when accessing files
2015-08-06 10:27:51 +02:00
Federico Fissore
dc93bb93d0
ProgressListener is now a method arg (was an instance arg)
2015-08-06 10:27:51 +02:00
Federico Fissore
b3baa27435
ContributionInstaller.onProgress is now a collaborator: ProgressListener
2015-08-06 10:27:51 +02:00
Federico Fissore
c61c39f5d9
Canceling self check timer when opening boards/libs manager
2015-08-06 10:27:51 +02:00
Federico Fissore
f9612bcdbd
Updatable boards support and libraries notification
2015-08-06 10:27:51 +02:00
Federico Fissore
59dfede5ac
Libraries with a .development file in their root are flagged as "OnDevelopment".
...
This allows users to edit and save those libraries examples: they won't be flagged as read-only any more
2015-08-05 16:26:21 +02:00
Federico Fissore
52fd3845ca
Working on how sketches are marked readonly.
...
Initial refactorings: stopped using static members (static is evil)
2015-08-05 16:01:10 +02:00
Federico Fissore
cb292d6114
Got rid of Guava lib: java 8 has its features builtin
2015-08-05 12:09:24 +02:00
Federico Fissore
50cacc1756
Got rid of Java 8 warnings about _ as a method name
2015-08-05 09:12:40 +02:00
Federico Fissore
5dd73a1828
Updating translations
2015-08-05 09:07:59 +02:00
Federico Fissore
ce595ce818
Updating translations
2015-07-10 12:31:43 +02:00
Federico Fissore
5d388e1646
Cleanup and java8 goodness
2015-07-09 15:20:38 +02:00
Federico Fissore
43f33d8220
Tools marked as installed but missing (as when you want to use a system installed avr-gcc) sets to "" the final build preference. Fixes #3074
2015-07-09 15:16:19 +02:00
Federico Fissore
444babdcb8
Merge pull request #3483 from sandeepmistry/issue-2911
...
Hide stack trace when the SerialUploader cannot find the selected board
2015-07-09 09:25:41 +02:00
Chris--A
7f061ccb0c
This adds 'hh' and 'hpp' as valid sketch files.
...
For completeness a sketch should allow the same extensions as a
library. These missing sketch extensions have already been enabled for
libraries in #3186 .
2015-07-09 04:23:33 +10:00
Federico Fissore
0ad73ebed3
Boards manager, nightly core support: missing negation on String.empty() made check report an opposite result
2015-07-08 14:46:48 +02:00
Federico Fissore
03a66b1035
Applying code inspection suggestions
2015-07-08 14:46:44 +02:00
Federico Fissore
dae6e4fff7
Dropping Guava predicates in favour of java.util.function.Predicate
2015-07-08 14:20:25 +02:00
Federico Fissore
bf3fc880ac
Compiler: compiled sketch discovery was missing merged sketch
2015-07-07 17:15:39 +02:00
Sandeep Mistry
40c8c067b6
Hide stack trace when the SerialUploader cannot find the selected board ( #2911 )
2015-07-04 09:47:46 -04:00
Federico Fissore
14586afcf5
Fixed possible NPE
2015-07-03 18:09:56 +02:00
Federico Fissore
987cad2633
Added core "post install" and "pre uninstall" script support.
...
If a core has a post/pre install/uninstall script, it will be execute at the appropriate time IF:
1) source (package_*_index) is trusted (GPG signed)
2) or users have explicitly added line "contributions.trust.all=true" to their preferences.txt
Some minor refactor and clean up while I was at it
2015-07-03 16:35:08 +02:00
Federico Fissore
d02cdfdb07
If a contribution misses its checksum, consider it a development build: force re-downloading by deleting previously downloaded files and skip checksum verification
2015-07-02 15:04:10 +02:00
Federico Fissore
fef4e56044
Tools path unversioned properties are adjusted right before compiling.
...
This way, when multiple versions of, e.g., bossac are installed and
a platform uses bossac 1.5, core author will be able to specify just
tools.bossac.path={runtime.tools.bossac.path}
and the IDE will set it to right version of bossac
Fixes #3325
2015-07-01 17:11:25 +02:00
Federico Fissore
32cf196271
"Merge sketch with bootloader" and "save hex" should work flawlessly with cores that save binaries in both buildpath/sketch and plain buildpath
2015-07-01 15:23:17 +02:00
Federico Fissore
259fefecb2
Updating translations
2015-07-01 12:59:36 +02:00
Federico Fissore
f1bed21d1a
Pulling from transifex: waiting 3 seconds before retrying
2015-07-01 12:58:28 +02:00
Federico Fissore
8e2c3c777c
Compiler: #3435 introduced a bug: you needed to save a file for it to be copied to build path. Hence, restored previous "copy sketch file" logic, couples with a recursive one, used only for files external to the sketch (in subfolders)
2015-06-30 15:32:33 +02:00
Federico Fissore
9a01e30675
Compiler: don't filter out existing sketch files, overwrite them. Fixes #3440
2015-06-30 15:18:19 +02:00
Federico Fissore
4313f2ab42
Updating translations
2015-06-30 14:39:54 +02:00
Federico Fissore
d5253e1690
Transifex pull: made script more kind when networks fails
2015-06-30 14:39:03 +02:00
Federico Fissore
c4de750253
Added library version to "Using library X..." verbose notification
2015-06-30 10:41:32 +02:00
Federico Fissore
ecb4eaf861
Compiler: additional files with allowed extentions are recursively copied to build folder. Fixes #3080
2015-06-30 09:36:43 +02:00
Federico Fissore
a853372872
Compiler: fixed wrong check against non existent folder and a possible NPE
2015-06-29 15:32:32 +02:00
Federico Fissore
e097439eab
Compiler: sketch files get compiled into "sketch"
2015-06-29 15:11:45 +02:00
Federico Fissore
5a35be06da
Compiler: cores files get compiled under "core", libraries under "libraries". Fixes #2997
2015-06-29 15:11:45 +02:00
Federico Fissore
46058a5bf6
BaseNoGui.currentDirectory needs to be initialized before anything else
2015-06-29 15:10:42 +02:00
Federico Fissore
f169ef95aa
Windows: using BaseNoGui.getContentFile instead of directly using "user.dir" property
2015-06-29 14:47:19 +02:00
Federico Fissore
6e8e3a7bad
Falling back to "user.dir" in case "APP_DIR" is missing
2015-06-29 14:47:13 +02:00
Federico Fissore
b8b1dc2327
Dropping --curdir CLI argument support
2015-06-29 14:28:16 +02:00
Federico Fissore
85ae80b6f9
Introducing APP_DIR property. Allows the IDE to know its installation folder.
...
Also upgrading appbundler with a patched version: https://bitbucket.org/ffissore/appbundler It allows to know the current working directory
These two put together, we can now rely on APP_DIR when loading IDE resources while being sure current working directory is properly set, thus being much more friendly when run from CLI
Fixes #1493
2015-06-29 14:28:16 +02:00
Federico Fissore
16e18467dd
Updating translations
2015-06-26 13:18:01 +02:00
Federico Fissore
b844011c1d
saveHex must work with multiple recipe.output recipes
2015-06-26 12:24:15 +02:00
Cristian Maglie
c08d4fde5c
Using static import to reduce code bloat in Serial.java
2015-06-25 12:51:14 +02:00
Cristian Maglie
1f175e9f1a
Updated eclipse project files
2015-06-25 12:47:38 +02:00
Federico Fissore
ea55a2edc3
Windows: migrating from AppData\Roaming\Arduino15 to AppData\Local\Arduino15.
...
Migration occurs when NO preferences file location is provided (CLI only), when new location does not exist and when there is something to migrate. Fixes #2902
2015-06-25 11:36:43 +02:00
Federico Fissore
62e5e0186f
Code cleanup
2015-06-25 10:40:29 +02:00
Federico Fissore
ea92393569
CLI: fail if selected board does not exist. Fixes #3417
2015-06-25 10:40:28 +02:00
Federico Fissore
edd6999a86
Merge pull request #3410 from Chris--A/test_url
...
Fix missing trailing parameters when opening URL's (WIN)
2015-06-25 09:54:10 +02:00
Federico Fissore
ca6724ad96
Merge pull request #3415 from martinjos/legacy-lib-link-bug-3412
...
Handle duplicates of legacy libs correctly. (#3412 )
2015-06-25 09:29:31 +02:00
Federico Fissore
c5b1d866de
Code cleanup
2015-06-25 09:29:05 +02:00
Martin Sidaway
ba09c7511c
Handle duplicates of legacy libs correctly. ( #3412 )
2015-06-24 17:58:31 +01:00
Federico Fissore
98eb1a9ee2
Re-introducing JNA, used only on Windows and only to access Windows Registry. Should fix #3360
2015-06-23 12:46:58 +02:00
Federico Fissore
5d3e4c185e
Compiler: merge sketch must look for the bootloader file under runtime.platform.path, not build.platform.path. Fixes #3395
2015-06-22 11:56:56 +02:00
Chris--A
cac568f44c
Fix missing trailing parameters when opening URL's
2015-06-22 19:28:19 +10:00
Federico Fissore
978c8fc682
Compiler: don't merge if bootloader file is specified but missing. Print a warning instead. Fixes #3394
2015-06-22 11:11:09 +02:00
Federico Fissore
8e76fb87dc
An empty string could still be returned when a non empty string is required. Related to #3381
2015-06-22 11:00:50 +02:00
Federico Fissore
a49f1b264a
Added default fallback values to serial parameters used in Serial constructor. Fixes #3381
2015-06-22 10:35:28 +02:00
Federico Fissore
380b147dae
Code cleanup
2015-06-22 09:24:43 +02:00
Federico Fissore
6558afa21d
Libraries: if missing header files, a lib doesn't even get listed. Fixes #3374
2015-06-22 09:19:11 +02:00
Federico Fissore
9089fecbe4
Windows: working on reg query encoding issue #3360 . German encoding is Cp852
2015-06-19 17:44:28 +02:00
Federico Fissore
f16bbaa91d
SSHUploader: if verbose, prints the actual command run on the remote board
2015-06-19 17:44:28 +02:00
Federico Fissore
9165af4751
By omitting curly braces, your code won't run faster. Your colleague will run slower.
2015-06-19 17:44:28 +02:00
Federico Fissore
fbb61ffd3c
Code cleanup
2015-06-18 15:43:14 +02:00
Federico Fissore
88e8019419
Extending remote upload. Sketch merge with bootloader is done by the IDE (using "noblink" bootloader if board definition provides one). If platform provides a "remote" upload tool, that tool is used, otherwise falls back to hardcoded "run-avrdude"
2015-06-18 15:43:10 +02:00
Federico Fissore
8c60054af0
Windows: ListComPortsParser was reporting the same VID/PID for both COM12 and COM1. Fixes #3333
2015-06-18 09:23:29 +02:00
Federico Fissore
80fa3451be
Updating translations
2015-06-17 16:52:41 +02:00
Federico Fissore
7d5442b059
Serial class clean up
2015-06-17 12:31:04 +02:00
Federico Fissore
c4e1458b1d
Providing a more meaningful error message when attempting to open serial monitor and linux user misses permission on device. Fixes #2100
2015-06-17 12:26:50 +02:00
Federico Fissore
ad8046dab5
Starting 1.6.6
2015-06-16 12:45:05 +02:00
Federico Fissore
4813e573c2
Fixed typo
2015-06-16 10:52:08 +02:00
Federico Fissore
91df9b1901
Switching to Java 8
2015-06-16 09:33:48 +02:00
Federico Fissore
64fcc716c9
MacOSX: SystemProfilerParser nows claims to have found the device even if the name is not exactly the same
2015-06-12 14:21:08 +02:00
Federico Fissore
54971e451f
SerialUploader: actualUploadPort may still be null, in that case fall back to userSelectedUploadPort
2015-06-12 14:21:08 +02:00
Federico Fissore
c138628c00
When ports "move", they move in mysterious ways. Watching them closely so we don't miss the catch
2015-06-12 14:21:08 +02:00
Federico Fissore
a755dd7694
SerialBoardsLister now waits indefinitely before starting. BaseNoGui.packages
...
will eventually be set to at least an empty HashMap, even if no hardware is
present. Fixes #3311
2015-06-12 09:55:33 +02:00
Federico Fissore
2f4485d06b
Added missing license headers, added missing blank line between license header
...
and package declaration, organized imports
2015-06-12 09:55:25 +02:00
Federico Fissore
3153d0b5d8
Fixed typo. Fixes #3323
2015-06-12 08:41:36 +02:00
Federico Fissore
0a6577f85c
If parsing a core fails, don't crash but report a warning. Fixes #3307
2015-06-10 15:42:47 +02:00
Federico Fissore
fec9fb4d0e
Tab deletion confirmation now shows the complete file name IF it's not a .ino. Fixes #2350
2015-06-08 15:32:15 +02:00
Federico Fissore
bef09e4d03
MacOSX: Platform cleanup
2015-06-08 15:05:10 +02:00
Federico Fissore
ccd7fdc0a3
By using syntax like file://./docs/index.html, editor will open file index.html stored in folder SKETCH_FOLDER/docs/. Fixes #224
2015-06-08 15:05:07 +02:00
Federico Fissore
84d10a8ea0
Some CLI args are parsed before initializing packages. --board argument is parsed after. Fixes #3261
2015-06-05 17:18:50 +02:00
Federico Fissore
0cb6b48e24
Boards/Lib managers: use system proxy settings (got rid of our proxy settings
...
in File > Preferences)
2015-06-04 13:34:44 +02:00
Federico Fissore
e9d66015a4
Windows: reg query uses different separators on xp, fooling parser. Fixed
2015-06-04 11:44:56 +02:00
Federico Fissore
bede6967d5
Installation folder check both at startup and when user attempts to change
...
sketchbook location. Fixes #2719
2015-06-03 17:46:01 +02:00
Federico Fissore
b0cb2c4e52
Added File > Recent menu: shows last 5 opened sketches, sorted in reverse chronological order
2015-06-01 17:08:10 +02:00
Federico Fissore
e55d4145d0
SerialMonitor suspend/resume: dealing with boards that change serial port
...
between uploads. Fixes #3255
Fixed a missing status management, leading IDE to believe Serial Monitor
was opened while it was not. See #3268
2015-06-01 12:14:30 +02:00
Federico Fissore
740a14e638
UploadFactory: removed duplication
2015-06-01 12:08:43 +02:00
Federico Fissore
935becec64
Command line --get-pref may be used without name of the target pref.
...
If pref name is missing, all prefs are printed on stdout.
Should fix/mitigate #2982
2015-05-29 15:16:51 +02:00
Federico Fissore
a48906e0c2
ContributedPlatform.toString() is used as item in dropdown, so it should print only its version
2015-05-29 15:12:32 +02:00
Federico Fissore
5933a7e8d3
Changing order of boards in boards menu: built-in first, boards manager second,
...
sketchbook hardware folder third. Each group if sorted by alpha, case
insensitive. Fixes #2650
2015-05-29 14:22:45 +02:00
Federico Fissore
1b7574a8b9
Boards Manager: contributions MAY miss tools, but we missed to consider this case. Fixes #3248
2015-05-29 14:22:45 +02:00
Federico Fissore
b11d54e503
Compiler: adding hooks (custom recipes) between the main phases. New hooks are:
...
hooks.sketch.prebuild, hooks.sketch.postbuild, hooks.libraries.prebuild,
hooks.libraries.postbuild, hooks.core.prebuild, hooks.core.postbuild,
hooks.linking.prelink, hooks.linking.postlink, hooks.objcopy.preobjcopy,
hooks.objcopy.postobjcopy, hooks.savehex.presavehex, hooks.savehex.postsavehex
2015-05-28 17:28:24 +02:00
PaulStoffregen
c1002e247f
Add build symbols for compile time and sketch path
2015-05-28 17:28:24 +02:00
Federico Fissore
4748e9df5e
Avoid warning about SCCS folders in libraries, just ignore them. Fixes #3237
2015-05-27 11:26:00 +02:00
Federico Fissore
56e0349287
Allowing editing .S files. Fixes #1616 and #3059
2015-05-26 12:04:12 +02:00
Federico Fissore
8a1e6c8a9b
CollectStdOutExecutor and CollectStdOutStdErrExecutor were plain wrong, were losing data and were blocking compilation. Fixes #3124 and #3115
2015-05-25 16:34:25 +02:00
Federico Fissore
ab7b7351f5
Removed lots of calls to BaseNoGui.getPlatform(): static is evil
2015-05-22 15:58:47 +02:00
Federico Fissore
76c5d99123
ZipFile and Socket are not Closable in java 1.6
2015-05-22 09:21:20 +02:00
Federico Fissore
94b16a550e
Faster library list downloading by downloading gzipped version
2015-05-21 17:02:21 +02:00
Federico Fissore
365b0bdc94
Closing streams using IOUtils.closeQuietly
...
Fixed badly handled stream found in the meanwhile
2015-05-21 16:50:49 +02:00
Federico Fissore
9ddb72b519
Moved DownloadableContribution and DownloadableContributionDownloader to parent package
2015-05-21 15:37:58 +02:00
Federico Fissore
37adee2553
Merge pull request #3194 from ffissore/windows-jna
...
Got rid on JNA
2015-05-21 10:25:54 +02:00
Federico Fissore
9166828bfe
Due to website configuration changes, every url starting with http://arduino.cc has been changed to http://www.arduino.cc . Fixes #3191
2015-05-20 17:10:06 +02:00
Federico Fissore
f6546aea45
Windows: got rid on JNA, thus no more UnsatisfiedLinkError (at least when accessing native OS functions). Fixes #3190
2015-05-20 16:33:33 +02:00
Federico Fissore
026210564d
Several File.list() calls missed check for null return value. Fixed
2015-05-20 16:32:27 +02:00
Federico Fissore
0b4a4fb0b5
No need to use static variables
2015-05-20 11:42:44 +02:00
Chris--A
b2f8b9b6c1
IDE: prevent multiple bad name notifications.
...
This patch will prevent the IDE from informing the user about a bad
sketch folder name multiple times.
Now the user is informed once at start up only, or once when it is
detected during a rescan of the folders.
2015-05-20 11:35:46 +02:00
Chris--A
af812a551b
Added support for .hh and .hpp libraries
2015-05-20 01:36:11 +10:00
Federico Fissore
9191442aea
Libraries: fixed incorrect handling of null types
2015-05-19 16:26:03 +02:00
Federico Fissore
42b07f0337
Libraries bundled with cores will take the type of that core, instead of relying on an undocumented 'types' property. Fixes #2875
2015-05-19 12:24:11 +02:00
Federico Fissore
4c3de26631
Don't export sketch if the underlying core does not support it. Fixes #3171
2015-05-18 13:34:29 +02:00
Federico Fissore
d008d9de81
Merge pull request #3141 from cmaglie/fix-recursive-delete
...
Fix for FileUtils.recursiveDelete() when dealing with symbolic links
2015-05-15 16:50:22 +02:00
Federico Fissore
7816ee3f10
New Preferences window: renders fine on every OS and it's easier to adapt using NetBeans as visual editor. Fixes #3140
2015-05-15 15:52:52 +02:00
Cristian Maglie
971bd77058
Removed redundant call to File.deleteIfExists()
...
file is already checked for being not null, no need to check again.
2015-05-14 19:36:37 +02:00
Cristian Maglie
956ddda98e
Removed buggy redundant check in FileUtils.deleteIfExists()
...
The documentation for File.delete() says that the method return true
if the the file is successfully deleted, otherwise false is returned.
An exception is thrown only when the file is not accessible (for
permission problem).
Removing the extra check solves another problem, for example in a
folder with the following situation:
linkToFileA -> FileA
FileA
if we remove FileA, we remain with a broken link that can't be removed
using FileUtils.deleteIfExists() because calling File.exists() on a
broken link returns *false*. This commit solve this problem.
2015-05-14 19:18:24 +02:00
PaulStoffregen
0210c6b53a
Fix Uncategorized warning message
2015-05-13 14:00:30 -07:00
Federico Fissore
74ace6674a
Better naming and use of File constructor (avoids hardcoding system dependent path separator)
2015-05-13 10:21:57 +02:00
Federico Fissore
90a533b82c
Using FileUtils.copyFile instead of dealing with raw streams
2015-05-13 10:16:09 +02:00
Federico Fissore
96b7c5ec6b
MacOSX: fixed some failing tests
2015-05-12 15:23:22 +02:00
Federico Fissore
e8c4980c4e
Added BaseNoGui.VERSION_NAME_LONG: it includes "Hourly Build DATE" in case of a hourly build
2015-05-11 10:48:52 +02:00
Federico Fissore
5064af486f
Added .editorconfig files http://editorconfig.org/
2015-05-08 10:18:43 +02:00
ricardo.jl.rufino
c3e1a9443c
simple code refactor on PdePreprocessor
2015-05-07 17:15:49 +02:00
Arnav Gupta
4d029de000
saveHex: rename recipe.hex -> recipe.output
...
Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
2015-05-07 11:57:12 +02:00
Arnav Gupta
78936541b7
update Sketch menu, add Save hex option
...
* Moving Upload options from "File" menu to "Sketch" menu as those
are sketch actions more than file actions.
Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
2015-05-07 11:57:12 +02:00
Federico Fissore
11327bb3a6
Starting 1.6.5
2015-05-07 11:56:38 +02:00
Federico Fissore
d0d9aa82d1
Merge pull request #3017 from cmaglie/programmer-pref-override
...
programmer.txt definitions must have priority over platforms.txt tools definitions
2015-05-06 15:49:33 +02:00
Federico Fissore
e2bf41ddd9
MacOSX: fixed error when clicking on https urls. Fixes #3083
2015-05-06 09:11:00 +02:00
Federico Fissore
03a43370b7
Added missing license headers to files added with the last commits
2015-05-05 14:29:15 +02:00
Federico Fissore
85b2298ca7
When IDE is started and built in core is newer than installed one and this check hasn't been notified before, show "please update" modal
2015-05-05 13:03:28 +02:00
Federico Fissore
de95ef6c41
Predicates: extracting anonymous inner classes for better reuse
2015-05-05 11:56:56 +02:00
Federico Fissore
9b58812d1d
Preparing the ground for rewriting Preferences GUI code (and hopefully fixing the tiny-pref-window bug on macosx)
2015-05-05 10:02:12 +02:00
Federico Fissore
7e7a9d0fe8
Disabling uncertified boards warning even in java code, for good measure
2015-05-05 09:17:50 +02:00
Federico Fissore
060ec30e1c
GPGSignatureVerification: better error handling when reading signature
2015-05-05 08:49:01 +02:00
Federico Fissore
0c123d7d14
Deleting json files if they are some how corrupted. Fixes #3015
2015-05-04 17:44:16 +02:00
Federico Fissore
875a775e93
Mitigates #3074 by avoiding NPE. Making the IDE work with system toolchains remains to be fixed
2015-05-04 17:28:39 +02:00
Federico Fissore
cd49d29e52
Lots of unclosed input and output streams now properly closed. They were preventing Boards Manager from working on Windows
2015-05-04 15:44:34 +02:00
Federico Fissore
19bb40cbb1
ContributionInstaller: downloadIndex -> download
2015-05-04 12:54:12 +02:00
Federico Fissore
a214564952
Boards Manager: platforms listed in non-signed package index files goes under "Contributed" category
2015-05-04 12:05:50 +02:00
Federico Fissore
cddfa2891e
Boards Manager: package index file with name starting with "test_package_" are preserved
2015-05-04 12:05:50 +02:00
Federico Fissore
ecf432fadc
Boards Manager: downloading additional files as specified in preference 'boardsmanager.additional.urls'
2015-05-04 12:05:50 +02:00
Federico Fissore
1f1f5b5c0e
Copying bundled signature file if missing from user's preferences folder
2015-05-04 12:05:50 +02:00
Federico Fissore
cf1879f948
Introducing GPG signature verification when loading main package_index file
2015-05-04 12:05:50 +02:00
Federico Fissore
804480ce53
ContributionIndexer now loads and merges content of files named package_SOMETHING_index.json
2015-05-04 12:05:49 +02:00
Federico Fissore
7552636bd1
File.listFiles() can return null
2015-04-29 11:57:27 +02:00
Federico Fissore
b10417505f
Windows: added comment to DoubleQuotedArgumentsOnWindowsCommandLine to explain the need for such a char replacement
2015-04-24 12:20:42 +02:00
Federico Fissore
f54851ecfa
Windows: Compiler wasn't supplying Windows command line with the correct double quotes
2015-04-24 12:03:41 +02:00
Federico Fissore
d805fb4e1f
Renamed compiler.warning_flags pref to compiler.warning_level
...
Provided a default value for compiler.warning_flags
Releasing avr core 1.6.5
2015-04-24 09:27:28 +02:00
Federico Fissore
4cf77cd90d
If previously downloaded package_index.json is older than the bundled one, the bundled one wins
2015-04-23 11:10:54 +02:00
Cristian Maglie
a7e6a39f4e
programmer.txt has now priority over platforms.txt tools definitions
...
This allows properties defined in programmers.txt to override generic
configurations in platform.txt where needed, for example in the
following configuration:
programmers.txt:
myprog.name=My New Programmer
[...]
myprog.program.tool=avrdude
myprog.config.path={runtime.platform.path}/myprog_avrdude.conf
[...]
platform.txt:
tools.avrdude.path={runtime.tools.avrdude.path}
tools.avrdude.cmd.path={path}/bin/avrdude
tools.avrdude.config.path={path}/etc/avrdude.conf
[...]
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} -p{build.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
the generic tools.avrdude.config.path value
{path}/etc/avrdude.conf
is replaced by the more specific myprog.config.path used in "myprog" programmer
{runtime.plaform.path}/myprog_avrdude.conf
2015-04-22 14:33:20 +02:00
Cristian Maglie
5af390b5e2
Added missing eclipse classpath entries
2015-04-21 18:28:26 +02:00
Federico Fissore
96c4576962
Added --preserve-temp-files command line option
2015-04-15 11:00:01 +02:00
Federico Fissore
3465fcf97b
File.deleteOnExit is not recursive. Replaced by DeleteFilesOnShutdown shutdown hook. Fixes #2971
2015-04-15 10:21:37 +02:00
Federico Fissore
eacddd6120
Block discovery threads until packages is not null, otherwise boards discovered during startup will miss model name
2015-04-13 15:36:17 +02:00
Federico Fissore
350adb99cb
Also SerialDiscovery was affected by bug found at 40535dfc55
. Fixes #2892
2015-04-13 13:38:55 +02:00
Federico Fissore
40535dfc55
NetworkDiscovery was silently failing because packages werenìt ready yet. Fixes #2837
2015-04-13 13:29:05 +02:00
Federico Fissore
b42c6667e1
Better preference for setting warnings level. See 61592d78fa (commitcomment-10668365)
2015-04-13 12:22:37 +02:00
Federico Fissore
c740f251f4
SAM boards stop compiling due to way of handling params with spaces on different OSs. Fixed
2015-04-13 12:05:00 +02:00
Federico Fissore
4c9e5fc564
Restored error messages. Got rid of MessageSyphon as ther were losing some error messages. Fixes #2737
2015-04-10 17:44:13 +02:00
Federico Fissore
61592d78fa
New preference: enable all compiler warnings, off by default. Fixes #1728 and #2415 . Also affects #2634 and #2207
2015-04-10 15:29:15 +02:00
Federico Fissore
7d0ffe92b2
Lib/Board Manager CRC check is now case insensitive. Fixes #2953
2015-04-10 09:52:31 +02:00
Federico Fissore
3c67e74382
Library Manager: better error message
2015-04-09 16:04:56 +02:00
Federico Fissore
b35ab60ea2
Library Manager: some lib names end with numbers, hence separate version with 'version'
2015-04-09 15:56:15 +02:00
Federico Fissore
f0cc644d8f
Library installer: made messages play nicer with i18n
2015-04-09 15:30:40 +02:00
Kristian Sloth Lauszus
26ae4d13b8
Don't throw exception if library is already installed
2015-04-09 14:56:24 +02:00
Kristian Sloth Lauszus
ada7b41063
Print library name when installing library via library manager
2015-04-09 14:47:58 +02:00
Federico Fissore
87e2e68b85
CLI: Board and Lib Manager, syntax change: --install-boards (plural) and arduino:avr:1.6.2 (with the arch, not the name of the selected platform)
2015-04-09 13:03:43 +02:00
Federico Fissore
6d46bd0bde
Useless DropdownBuiltInLibrariesItem removed
...
Moved LibraryInstaller from app to arduino-core
Moved InstallerJDialogUncaughtExceptionHandler to the generic contributions.ui package
2015-04-09 12:17:56 +02:00
Federico Fissore
a7024791cd
download.php was used to distribute downloads across multiple server. we use dns round robin now
2015-04-09 12:12:10 +02:00
Federico Fissore
6b6866370a
Preliminary support to online help/reference
2015-04-08 16:38:36 +02:00
Federico Fissore
ba3ecff13c
Added missing license headers
2015-04-08 15:38:22 +02:00
Federico Fissore
dd3f9fe66c
CLI: board manager install latest if version is not specified
2015-04-08 15:35:03 +02:00
Federico Fissore
09255254d7
Preliminary command line support to boards manager and library manager
2015-04-08 15:15:41 +02:00
Federico Fissore
643d9515ac
Starting 1.6.4
2015-04-07 17:47:52 +02:00
Federico Fissore
b9a90f69d5
Invalid versions don't cause IDE to crash and exit any more. They are reported and contributions are considered missing version. Fixes #2926
2015-04-07 12:05:05 +02:00
Federico Fissore
99fa19c36c
Letting postInstallScript fails gracefully
2015-04-02 11:20:53 +02:00
Federico Fissore
3a916633b1
https links were not working properly on mac and win
2015-04-02 09:51:26 +02:00
Federico Fissore
7a97be43a5
Uniformly using versions parsed through semver
2015-04-01 17:11:48 +02:00
Federico Fissore
d94e279fdf
Showing post install script errors AFTER the installation is completed
2015-04-01 13:23:57 +02:00
Federico Fissore
f76d1d5678
Merge pull request #2850 from PaulStoffregen/duplicate-library-detect
...
Advise of duplicate libraries after compiling
2015-04-01 09:31:10 +02:00
Federico Fissore
5dd49352df
Don't add keys (and display a warning) if the missing key doesn't make sense in target platform.txt. For a key to make sense, two tree level must be present already, eg: tools.avrdude
2015-04-01 09:03:17 +02:00
Federico Fissore
6e9d0e5f99
Ignoring rewrite rules if rewriting=disabled is present in target platform.txt
2015-04-01 09:01:31 +02:00
Federico Fissore
29cb42eb50
Bundled core is again inside the hardware folder.
...
Fixed a handful of glitches when dealing with multiple installed cores
2015-03-31 17:42:41 +02:00
PaulStoffregen
b5367bcdbe
Advise of duplicate libraries after compiling
2015-03-30 10:24:18 -07:00
Federico Fissore
1fcd6ff1ce
ArchiveExtractor was not making symlinks the right way
2015-03-30 17:12:38 +02:00
Federico Fissore
ecde17b6e2
Platform.txt in-memory rewrite rules: whenever loaded, if a property is set to a value known to be wrong/old, that property is replaced with the current/right value.
...
This happens in-memory, no platform.txt file were harmed during rewriting
Mitigate #2838
2015-03-30 16:18:08 +02:00
Federico Fissore
ea5155656a
Starting 1.6.3
...
Updated toolchains: linux statically compiled, added gcc lto plugin (disabled)
2015-03-30 15:06:59 +02:00
Federico Fissore
fe739de2ad
Getting rid of other unused jna stuff
2015-03-30 13:55:48 +02:00
Federico Fissore
b65b576eb0
Getting rid of native stuff. Avoid native stuff: it will break. Fixes #2828 , #2829 , #2830
2015-03-30 10:46:37 +02:00
Federico Fissore
c21b8b7445
Versions: replacing ending "b" with .1
2015-03-27 14:51:20 +01:00
Federico Fissore
3bcbf22a2a
Libraries under "contributed" in lib menu are those that have types "contributed"
2015-03-27 14:51:20 +01:00
Federico Fissore
6e498ee5b9
LibraryManager: better type filtering
2015-03-27 14:51:19 +01:00
Federico Fissore
74a8ccdeb4
Introducing bundled_library_index.json
2015-03-27 14:51:19 +01:00
Federico Fissore
a1d99b9a9b
LibraryManager: category is now topic, type added to list official/contributed/recommended libs
2015-03-27 14:51:19 +01:00
Federico Fissore
b0a357f5d3
Library Manager: added Type filter dropdown
2015-03-27 14:51:19 +01:00
Federico Fissore
6679393b7a
Assuming the bundled version is an AVR bundle, force unpacking the default package if it's missing
2015-03-27 14:51:19 +01:00
Federico Fissore
9b5fa9fb9a
Added commons-compress license
2015-03-27 14:51:19 +01:00
Federico Fissore
ac4aea47b0
json deserializer: don't fail on unknown props, thus allowing us to upgrade the schemas without breaking running IDEs
2015-03-27 14:51:18 +01:00
Federico Fissore
24b32422e2
Fixed a bunch of code inspection warnings
2015-03-27 14:51:18 +01:00
Federico Fissore
ed3d467329
DownloadableContributionsDownloader: fixed wrong math when downloading partially downloaded files
2015-03-27 14:51:18 +01:00
Federico Fissore
e646ca2525
ContributionInstaller OS check: MacOSX now uses real arch rather than JVM one
2015-03-27 14:51:18 +01:00
Federico Fissore
a19cdf1492
ArchiveExtractor: allowing symlinks with absolute paths, still printing a warning
2015-03-27 14:51:18 +01:00
Federico Fissore
02b7fa87eb
Leave relative symlinks as they are
2015-03-27 14:51:17 +01:00
Federico Fissore
59b8177916
Separate HTTPS proxy support (server and port)
2015-03-27 14:51:17 +01:00
Federico Fissore
29d20f297c
Fixed missing symlinks after extraction
2015-03-27 14:51:17 +01:00
Federico Fissore
fc4179f1f7
Cores manager:
...
added post install script support
absolute path symlinks are converted to relative to the local folder and a warning is printed
2015-03-27 14:51:16 +01:00
Federico Fissore
6b5244eafe
Some ArchiveExtractor bugs fixed and its code formatted
2015-03-27 14:51:16 +01:00
Federico Fissore
323458c8d8
Added HTTPS proxy properties
2015-03-27 14:51:16 +01:00
Federico Fissore
b32dc93506
Ported UX of library manager to core manager
2015-03-27 14:51:16 +01:00
Federico Fissore
17d3729426
Package names refactoring: contributions is the main package, libs and cores are subpackages
2015-03-27 14:51:16 +01:00
Federico Fissore
fe85083f0b
Setting preferences.txt permissions to 600 on linux and mac
2015-03-27 14:51:16 +01:00
Federico Fissore
4db6c737be
Preferences: added proxy settings
2015-03-27 14:51:16 +01:00
Federico Fissore
103f2e433a
Continuing improving library manager
2015-03-27 14:51:15 +01:00
Federico Fissore
8e5a04f6a9
Various improvements on library manager
2015-03-27 14:51:15 +01:00
Federico Fissore
6d55c6ea03
FileDownloader: made it play nice with 301 status code
2015-03-27 14:51:15 +01:00
Federico Fissore
0489585c3e
Now using semantic versioning
2015-03-27 14:51:14 +01:00
Federico Fissore
251bb76ece
Splashscreen
2015-03-27 14:51:13 +01:00
Federico Fissore
e5e5880a15
HostDependentDownloadableContribution better handles Macosx
2015-03-27 14:51:13 +01:00
Federico Fissore
d050c4ee4a
AVR bundle: by default the IDE is built bundled with the avr toolchain and cores
...
By passing -Dlight_bundle=1 to ant, an light/empty IDE is built
2015-03-27 14:51:13 +01:00
Cristian Maglie
2c234a09f1
Libraries Installer UI refactor
2015-03-27 14:51:12 +01:00
Federico Fissore
f833ff84a7
Base and BaseNoGui: removed uncaught exception handler
...
ContributionManagerUI: after install/upgrade/remove, cell updated and not in edit mode
2015-03-27 14:51:12 +01:00
Cristian Maglie
1f564d6709
Cores Installer UI refactor (WIP)
2015-03-27 14:51:12 +01:00
Federico Fissore
56b9fd7d93
LibraryIndex: removed cateogories field, generating it every time
...
LibrariesIndexer: setting category to Uncategorized when missing
2015-03-27 14:51:11 +01:00
Federico Fissore
86f84c8a3e
Changed package_index and library_index json urls to use download.php proxy
...
Installed a ESC key listener: it allows to close the dialog pressing the ESC key
2015-03-27 14:51:11 +01:00
Federico Fissore
589f514a47
ContributedPlatform.getResolvedTools returns a copy of the original list (otherwise violating inner state)
2015-03-27 14:51:11 +01:00
Federico Fissore
6007403834
Removed some printStackTrace in favour of throwing RuntimeExceptions. DefaultUncoughtExceptionHandler will handle them
2015-03-27 14:51:11 +01:00
Federico Fissore
fe6718ce4f
Removing previously installed platform on upgrade
2015-03-27 14:51:11 +01:00
Cristian Maglie
b1e0249a4f
Tools path are now always available through preferences
...
The preference key is:
{runtime.tools.TOOLNAME.path}
{runtime.tools.TOOLNAME-VERSION.path}
For example the tool "avrdude" is now available through
{runtime.tools.avrdude.path}
or if a specific version is needed:
{runtime.tools.avrdude-5.11.path}
2015-03-27 14:51:11 +01:00
Cristian Maglie
12a2d872d6
Added empty library_index.json if default is not available.
2015-03-27 14:51:10 +01:00
Cristian Maglie
98fec7222b
Use Downloader* helper classes on ContributionInstaller.
...
This rationalize and simplify a lot of code.
2015-03-27 14:51:10 +01:00
Cristian Maglie
0755c7c004
Library installer UI
2015-03-27 14:51:10 +01:00
Cristian Maglie
0b9223c158
Added Contributions for libraries
2015-03-27 14:51:10 +01:00
Cristian Maglie
75d1cb874d
Available boards are updated right after closing "Boards Installer"
...
Boards menu list has been moved into Base class where it looks a more
appropriate place to reduce interactions between Editor class and Base
class.
Probably shared menus can be moved in a separate, specific, class.
2015-03-27 14:51:10 +01:00
Cristian Maglie
0783f40ba5
Added VersionComparator to be used for comparing versions numbers (WIP)
2015-03-27 14:51:10 +01:00
Cristian Maglie
fe2d087ebd
Implemented "Update List" button of Boards Installer.
2015-03-27 14:51:10 +01:00
Cristian Maglie
5d1e4e3f70
Inverted MVC logic on installer to get a cleaner code.
...
Part of the control logic was moved from listeners to GUI class methods.
This goes against a pure MVC but makes the code much more cleaner.
2015-03-27 14:51:10 +01:00
Cristian Maglie
56ae061d7e
Improved platforms installer GUI. Platforms are now downloaded from network.
2015-03-27 14:51:09 +01:00