1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00
Commit Graph

473 Commits

Author SHA1 Message Date
Sandeep Mistry
1a6be715ab Merge pull request #4794 from facchinm/upload_fail_handling
Handling gracefully upload failure
2016-07-20 10:18:57 -04:00
Sandeep Mistry
afe204f97f Merge pull request #4828 from facchinm/issue_4762
Filter examples based on contributed libraries by architecture
2016-07-19 10:00:18 -04:00
Martino Facchin
830fe765b8 Refresh serial port list after loading contributed packages
Soves nameless boards if contributed cores loading is slow
2016-07-13 18:42:31 +02:00
Cristian Maglie
c63ae04420 Made Serial.write(byte[]) method public
This method turns out to be useful.
2016-07-06 16:53:01 +02:00
Cristian Maglie
8f20f4d98b "Include library" now checks for includes property
A new property "includes" has been added to library.properties.
This property contains a comma-separated list of the files to be included when
the user selects the "Include library" command on the Arduino IDE.

If the property is missing the old behaviour is used.
2016-06-23 13:04:56 +02:00
Martino Facchin
7e4144b3fa starting version 1.6.10 2016-05-11 16:42:34 +02:00
Cristian Maglie
a0aa3e6a04 Updated translations 2016-05-10 10:35:55 +02:00
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