1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-13 07:54:20 +01:00

530 Commits

Author SHA1 Message Date
Cristian Maglie
f4f98cf25e Fixed wrong translation 2021-04-08 15:16:27 +02:00
Cristian Maglie
e915f4d356 Downloaded new translations from transifex 2021-04-08 13:55:17 +02:00
Cristian Maglie
ea84e7383a Starting Arduino IDE 1.8.14 2020-06-24 12:48:12 +02:00
Cristian Maglie
5693423bfe Updated translations 2020-06-15 17:29:51 +02:00
Matthijs Kooijman
149aa529e7 PreferencesData: Recreate PreferencesMap in init
Normally, init is only called once during startup, so this does not add
anything. However, when running the testsuite, PreferencesData could be
initialized multiple times in a single test run. To prevent preferences
from a previous test from interfering with subsequent tests, always
start with a clean slate when calling init.
2020-05-11 17:13:17 +02:00
Martino Facchin
156d5d8956 Update arduino-core/src/processing/app/debug/LegacyTargetPlatform.java
Co-Authored-By: Matthijs Kooijman <matthijs@stdin.nl>
2020-04-27 17:04:49 +02:00
Martino Facchin
8c91692845 Boards Menu: add hint if core lives in sketchbook 2020-04-27 17:04:49 +02:00
Richard Körber
ca20093472 Remove Java version evaluation
According to JEP223, Java versions do not include trailing zero
elements. This means that e.g. Java 14.0.0 reports its version just as
"14". The changed code part expected at least three characters, so it
failed to start on such "zero-zero" Java releases. The evaluated java
version was not used anywhere, so the code block was removed.
2020-04-21 11:43:09 +02:00
Cristian Maglie
931c2b7f21 Do not translate labels of boards submenus
Otherwise it may happen some weird sorting when untraslated and
translated labels are sorted together:

    Arduino megaAVR Boards
    Arduino nRF52 Board
    ESP32 Arduino
    ESP8266 Modules
    Schede Arduino AVR   <-- the localized string falls to the bottom

Also there is no way for 3rd party boards developers to actually provide
a translation, so let's just remove them.
2020-03-25 15:26:53 +01:00
Matthijs Kooijman
a1d6da9dfe Prevent bytes from lingering in the serial buffer
This fixes a problem with the Serial UTF-8 decoder. This decoding moves
data from char[] buf, into a ByteBuffer inFromSerial, then decodes them
into a CharBuffer outToMessage and converts to a char[] to pass on.

When the buf read contained just over a full buffer worth of bytes and
contained some multi-byte characters, a situation could arise where two
decodes were needed to fill up outToMessage, leaving some data in
inFromSerial. If in this case no data would be left in buf, decoding
would stop until more data came in from serial.

This commit fixes this problem by:
 - Changing the outer loop to continue running when buf is empty, but
   inFromSerial is not.
 - Changing the inner loop to run at least once (so it runs when buf is
   empty, but inFromSerial is no).
 - Breaking out of the outer loop when no characters were produced (this
   handles the case where only an incomplete UTF-8 character remains in
   inFromSerial, which would otherwise prevent the loop from
   terminating.
 - Removes a `if (outToMessage.hasRemaining()` check that is now
   necessarily true if the break was not done.

This fixes #9808.
2020-03-24 15:24:50 +01:00
Matthijs Kooijman
d244a45c4a Use Math.min instead of ternary if in Serial data copy
This makes the code slightly more compact and easier to read.
2020-03-24 15:24:50 +01:00
Cristian Maglie
d6667dd4ca Added unit testing for UTF8 decoder in Serial 2020-03-24 15:24:50 +01:00
Martino Facchin
d154120f0e Fix bogus port disconnection during serial event
Fixes https://github.com/arduino/Arduino/issues/9785 and probably many others

This commit strongly simplyfies the serial list code

Pluggable discovery introduced a bug since BoardPort.toString() started reporting only the name of the port, not the complete name_vid_pid needed to match liblistserial output.
Adding .toCompleteString() almost solves the bogus disconnection part alone, but resolveDeviceByVendorIdProductId() uses "0x" prefixes VID/PID, breaking it again.

In addition, all the logic used to match a board with its bootloader (to obtain a serial number on 32u4 boards) has been completely removed since it is currently useless (and unused).
2020-03-23 17:37:01 +01:00
Cristian Maglie
15133a0720 Starting Arduino IDE 1.8.13 2020-02-14 15:29:26 +01:00
per1234
33ff49566c Start Arduino IDE 1.8.12 2020-02-07 23:16:20 +01:00
Cristian Maglie
b59c91ebe2 Fixed failures in download tests 2020-02-06 16:04:39 +01:00
Cristian Maglie
ff26dd58f8 Updated translations from transifex 2020-01-20 15:59:26 +01:00
Martino Facchin
6116a8e920 Starting 1.8.11 2019-09-19 12:54:30 +02:00
Cristian Maglie
0ce5e1ea02 Updated translations 2019-09-13 12:13:14 +02:00
Cristian Maglie
6179b15449 Force python2 when running Transifex updates 2019-09-13 12:13:04 +02:00
Cristian Maglie
5bb9f87fae Do not fail abruptly if signature verification fails
If the package_index.json signature is not valid, a dialog box asking
the user to "update" the index is shown. Previously a java-exception
was printed if running from terminal or the IDE would not start at
all (with no apparent reason) if lanched from GUI.
2019-08-20 18:01:58 +02:00
Mattia Bertorello
94dd695355 Add areInsecurePackagesAllowed method 2019-08-20 17:06:36 +02:00
Cristian Maglie
da6c73102f fixed comment 2019-08-02 11:52:15 +02:00
Mattia Bertorello
bcb8e90534 Remove getBoardWithMatchingVidPidFromCloud and make a new class BoardCloudResolver 2019-08-02 11:48:07 +02:00
Martino Facchin
9ce5101df1
Merge branch 'master' into add-file-cache 2019-07-18 11:28:46 +02:00
Pieter12345
9aea65bee6 Use user-defined tab settings in new sketch generation
When creating a new sketch, it is initialized with the BareMinimum example sketch. This example sketch uses 2-width whitespace indentation, which might differ from the user-defined tab settings. This commit makes the generated example sketch consistent with the user-defined tab settings.
2019-07-18 10:40:19 +02:00
Cristian Maglie
d72cb2350d Renamed ContributedLibraryReference to ContributedLibraryDependency 2019-07-18 10:37:36 +02:00
Mattia Bertorello
636f93058b
Fix linter problems 2019-07-12 15:40:53 +02:00
Mattia Bertorello
85e91ef079
Change builder domain with https and add logging 2019-07-12 14:36:15 +02:00
Mattia Bertorello
fa77c15e8e
Not delete the file if the signature fail 2019-07-05 17:00:12 +02:00
Mattia Bertorello
d089323342
Fix possible empty files during the download of the package index 2019-06-28 17:44:17 +02:00
Mattia Bertorello
8ca093b945
Add slf4j, optimize some code and fix reported lint problem 2019-06-28 13:02:50 +02:00
Martino Facchin
d518d7683c Fix NPEs if no hardware core is installed
Fixes #8229
2019-05-06 15:10:42 +02:00
Mattia Bertorello
eb055cc4c0 Add user agent in the connection to api-builder.arduino.cc/builder/v1/boards/ 2019-04-02 15:32:37 +02:00
Martino Facchin
05de5c9593 Follow symlinks when saving sketch
Fixes #8535
2019-04-02 15:05:08 +02:00
Pieter12345
442007a926 Remove unused FileUtils methods
Remove unused FileUtils methods without obvious use case or for which a replacement exists in the Files or File class.
2019-03-26 18:46:09 +01:00
Pieter12345
4c2fca6457 Replace some FileUtils calls with direct methods
Not wrapping these calls in FileUtils methods makes the code cleaner and easier to understand (FileUtils is very poorly documented, whereas direct calls contain proper documentation).
2019-03-26 18:46:09 +01:00
Pieter12345
6d9dd975be Remove StringUtils class
The functionality in this class has been replaced with the Apache commons.lang3 dependency.
2019-03-26 18:46:09 +01:00
Pieter12345
09e466a4a2 Replace StringUtils.join() with library call
Use Apache commons.lang3 instead of own implementation.
2019-03-26 18:46:09 +01:00
Pieter12345
a08908a90f Replace StringUtils.stringContainsOneOf() with library call
Use Apache commons.lang3 instead of own implementation.
2019-03-26 18:46:09 +01:00
Martino Facchin
f119590d84 Starting 1.8.10 2019-03-25 11:25:48 +01:00
Cristian Maglie
82a6a404c2 Update translations 2019-03-15 14:23:43 +01:00
Martino Facchin
be1a8403f0 Add TargetBoard.getFQBN helper 2019-03-07 14:11:06 +01:00
Cristian Maglie
e1caaf1c45 Perform port selection after initializing packages
Fix #8400
2019-01-23 15:46:41 +01:00
Cristian Maglie
f81798badf Pluggable discovery: search in platform.txt (WIP) 2019-01-23 13:51:41 +01:00
Martino Facchin
e9ecaa70f7 Check for containing folder existence before listing files
Fix #8389
2019-01-18 10:12:16 +01:00
Sandeep Mistry
b3b62d0c44
Only display touch bar on macOS 10.12 and higher (#8281) 2018-12-11 09:37:41 -05:00
Martino Facchin
56f0e96912 Starting 1.8.9 2018-12-06 15:12:00 +01:00
Cristian Maglie
09158c6d7f updated translations 2018-12-05 12:17:48 +01:00
Cristian Maglie
503ebd6a48 Fixed possible NPE 2018-11-27 17:06:18 +01:00