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

7195 Commits

Author SHA1 Message Date
Sebastian Hunkeler
42336ace32 Add new app icon 2020-03-09 11:31:55 +01:00
Thomas L. Kjeldsen
b40f54af06 Declare fields at the top of the class
Improve Codacy PR quality requirements:
Fields should be declared at the top of the class, before any method
declarations, constructors, initializers or inner classes.
2020-02-19 15:13:47 +01:00
Thomas L. Kjeldsen
488388050e Remove "MrBean" dependency
Sacrifice abstract classes and interfaces to reduce the amount of magic
performed by MrBean.

Refs https://github.com/HuayraLinux/pkg-arduino/issues/4
2020-02-19 15:13:47 +01:00
Cristian Maglie
15133a0720 Starting Arduino IDE 1.8.13 2020-02-14 15:29:26 +01:00
Cristian Maglie
4bbd63a2ed Update revision log 2020-02-13 10:30:39 +01:00
Cristian Maglie
d8cd264a2d Fixed shasum of arduino-builder for macosx 2020-02-12 13:00:38 +01:00
Cristian Maglie
4cc3e72fa2 Removed some debugging leftovers... 2020-02-12 12:47:21 +01:00
Cristian Maglie
7ae377d3e9 Do not clear serial monitor when disabled for upload (@PaulStoffregen)
Fix #9234
2020-02-12 12:47:21 +01:00
Cristian Maglie
00641691b6 fixed some warnings 2020-02-12 12:47:21 +01:00
jenkins
d19ee30be8 update arduino-builder to 1.5.2 2020-02-12 12:24:00 +01:00
Cristian Maglie
8793a6d351 Fix libraries comparator logic
Previously it could lead to contract violations for example consider
this:

A = Library{ Name:"A", Types: ["Sensors"] }
B = Library{ Name:"B", Types: null        }
C = Library{ Name:"C", Types: ["Arduino"] }

it results in:

A<B (because B has Types==null and compare("A","B")<0)
B<C (because B has Types==null and compare("B","C")<0)
C<A (becuase C has Types=="Arduino" and the comparator returns -1)

This commit fix this behavior
2020-02-12 09:54:38 +01:00
Cristian Maglie
678420cd47 Revert "Replaced JFileChooser with FileDialog in 'Add .zip library'"
This reverts commit 7cb1440006.
2020-02-11 14:50:44 +01:00
per1234
33ff49566c Start Arduino IDE 1.8.12 2020-02-07 23:16:20 +01:00
Thomas
f62b5db908
Print log4j store directory only when operating in GUI mode (#9695)
This fixes CommandLineTest.testCommandLineVersion()

Looks like the test was broken by the System.out.println statement in Base.java
824567d763
2020-02-07 18:57:15 +01:00
Cristian Maglie
b59c91ebe2 Fixed failures in download tests 2020-02-06 16:04:39 +01:00
Cristian Maglie
efdd341e0e Run github actions on pull request 2020-02-06 16:04:39 +01:00
Cristian Maglie
3c7c0e46e9 Merge branch 'tlk/fail-on-test-errors' of https://github.com/tlk/Arduino into tlk-tlk/build-on-github-hosted-runners 2020-02-06 12:45:31 +01:00
Cristian Maglie
7dfcc7310c Merge branch 'tlk/build-on-github-hosted-runners' of https://github.com/tlk/Arduino into tlk-tlk/build-on-github-hosted-runners 2020-02-06 12:32:58 +01:00
Cristian Maglie
768c659f9d
Merge pull request #9722 from cmaglie/msstore-hotfix
Replaced JFileChooser with FileDialog in 'Add .zip library'
2020-02-05 18:29:14 +01:00
Cristian Maglie
7cb1440006 Replaced JFileChooser with FileDialog in 'Add .zip library'
For some reason the combination of the AdoptJDKJre 8 and Microsoft store
do not like JFileChooser.

This commit replace JFileChooser with a FileDialog that seems to work
without issues.
2020-02-05 15:56:37 +01:00
Cristian Maglie
2ed953ad5b Updated arudino-builder build with Apple SDK 10.9+
Fix https://github.com/arduino/arduino-builder/issues/349
2020-02-03 18:31:33 +01:00
Thomas L. Kjeldsen
ac6688de59 Treat JUnit errors as failures to increase visibility
Before this change `cd app; ant test` would return "BUILD SUCCESS"
even when unit tests were returning errors.
2020-01-31 16:00:04 +01:00
Thomas L. Kjeldsen
b4e5a8f7de Run tests with an X virtual framebuffer (1024x768)
The GitHub-hosted runner is a virtual machine hosted by GitHub.

Xvfb on that setup defaults to a virtual screen size of 640x480
(XVFBARGS='-screen 0 640x480x16') which in turn makes the Arduino user
interface tests fail with exceptions like this:

    [junit] org.fest.swing.exception.ActionFailedException: The component to click is out of the boundaries of the screen
    [junit] 	at org.fest.swing.exception.ActionFailedException.actionFailure(ActionFailedException.java:33)
    [junit] 	at org.fest.swing.core.RobotEventGenerator.pressMouse(RobotEventGenerator.java:74)

Setting the xvfb screen size to 1024x768 solves this error.
2020-01-31 12:52:27 +01:00
Thomas L. Kjeldsen
ab8471d562 Don't require user interaction when building the dist target 2020-01-31 12:52:19 +01:00
Thomas L. Kjeldsen
c630dc0b92 Build and run tests on GitHub-hosted runners
A GitHub-hosted runner is a virtual machine hosted by GitHub with the GitHub
Actions runner application installed.
2020-01-31 12:52:10 +01:00
Martino Facchin
67f35cedd5
Merge pull request #9692 from arduino/appdata-1.8.11
Update linux/appdata.xml to 1.8.11
2020-01-31 09:27:18 +01:00
Gianluca Varisco
063c518830 Update linux/appdata.xml to 1.8.11 2020-01-31 08:34:17 +01:00
Martino Facchin
88fa134d07
Merge pull request #9683 from matthijskooijman/compiler-errors-without-column
Compiler errors without column
2020-01-30 09:28:04 +01:00
Matthijs Kooijman
3d4b026b50 Preserve "fatal" in compiler errors
When transforming compiler errors (to make filenames more friendly), it
would match "fatal error" or "error" but then always reconstruct as
"error", modifying the compiler error in a way that is not intended.

This commit fixes that, as well as the previous hardcoding of the
"error: " prefix when rebuilding the error message, by capturing this
entire prefix and simply reproducing it in the resulting error message.
2020-01-29 19:38:03 +01:00
Matthijs Kooijman
e387c23b60 Slightly simplify error message rebuilding
This removes some duplicate code for with and without column number by
building the column number string separately first.
2020-01-29 19:04:43 +01:00
Matthijs Kooijman
8e9f7a630a Fix exception on compiler errors with column numbers
Error messages are detected and parsed using a regex. Part of this regex
matches the optional column number.

The code that handled this assumed that a missing column would result in
less elements in the matches array, but a regex always results in one
element per set of parenthesis in the regex, which will be null if no
capture was made for that element.

In practice, this meant that if no column was present in the error
message, a NullPointerException would be raised. Furthermore, gcc 9
seems to have started outputting omitting column numbers (instead of
printing 0) for some errors (such as unterminated #ifdef), which exposed
this problem.

This commit fixes this by simply using the fixed match numbers to take
apart the regex match, and by checking for a null column number (all
other captures are non-optional, so no need to check there).
2020-01-29 19:04:43 +01:00
Cristian Maglie
0dbff59b13 Release 1.8.11 2020-01-27 17:52:12 +01:00
jenkins
2d4f8f011b update arduino-builder to 1.5.1 2020-01-23 19:13:57 +01:00
Cristian Maglie
d74e0f5b77 Updated some bundled libraries
SpacebrewYun 1.0.2
SD 1.2.4
Servo 1.1.6
Adafruit_CircuitPlayground 1.10.4
2020-01-23 10:32:26 +01:00
Cristian Maglie
ab864cfa09 Updated revision log 2020-01-22 17:23:55 +01:00
Cristian Maglie
113c56d657 Even stricter sanity checks 2020-01-21 14:39:02 +01:00
Cristian Maglie
b811689e97 Improved sanity checks on filenames in package_index.json 2020-01-21 14:39:02 +01:00
PaulStoffregen
0f5d22c67c Allow Pluggable Discovery recipes to use {runtime.platform.path} 2020-01-21 11:35:18 +01:00
Cristian Maglie
ff26dd58f8 Updated translations from transifex 2020-01-20 15:59:26 +01:00
Maged Ahmed Rifaat
586e7d5fe8 Fix wrong bracket match rectangle on auto format
This commit fixes instances when setText is called on editorTab and the rectangle that highlights the bracket match becomes incorrect.
This is because text is inserted to the document without notifying the textarea.
Calling setLineWrap internally fires an event that recalculates the bracket match rectangle and thus solves the problem.
2020-01-20 12:41:58 +01:00
Cristian Maglie
0dde85e417 Removed reference for retired Edison and Galileo boards 2020-01-16 09:31:57 +01:00
Luigi
5c8c3538ee Changing URLs from HTTP to HTTPS
I have changed the URLs from `http` to `httpst`. In particular the page `latest.txt` can be reached on both port 80 and port 443.
2020-01-08 11:42:16 +01:00
Cristian Maglie
b029b2a0e1 macosx notarization: fixed build for non-mac targets 2020-01-08 11:41:34 +01:00
Cristian Maglie
76699fd464 macosx notarization: signed appbundler 2020-01-08 11:41:34 +01:00
Cristian Maglie
ac80175723 macosx notarization: signed arduino-builder and tools 2020-01-08 11:41:34 +01:00
Cristian Maglie
e3c7eb4a49 macosx notarization: removed old avr-gcc and avrdude 2020-01-08 11:41:34 +01:00
Cristian Maglie
495f35683f macosx notarization: signed liblistSerials 2020-01-08 11:41:34 +01:00
Cristian Maglie
235b60b4b8 macosx notarization: signed arduinoOTA 2020-01-08 11:41:34 +01:00
Cristian Maglie
7230f09860 macosx notarization: signed libjtouchbar 2020-01-08 11:41:34 +01:00
Cristian Maglie
b1c3493a91 macosx notarization: rebuild of libastyle 2020-01-08 11:41:34 +01:00