Commit Graph

438 Commits

Author SHA1 Message Date
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
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
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