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

730 Commits

Author SHA1 Message Date
Cristian Maglie
afc0e0240e Override desktop check when setting look and feel on linux
The swing UIManager class detects the correct look and feel settings by
looking inside the `sun.desktop` system property, here's the extract of
the JDK:

    String desktop = AccessController.doPrivileged(new GetPropertyAction("sun.desktop"));
    Toolkit toolkit = Toolkit.getDefaultToolkit();
    if ("gnome".equals(desktop) &&
            toolkit instanceof SunToolkit &&
            ((SunToolkit) toolkit).isNativeGTKAvailable()) {
        // May be set on Linux and Solaris boxs.
        return "com.sun.java.swing.plaf.gtk.GTKLookAndFeel";
    }

Since we want always the GTK look and feel (even if the desktop is not
strictly a GNOME desktop) we force the `sun.desktop` property always to
`gnome`.
2018-11-05 11:46:49 +01:00
Cristian Maglie
045877094b Fix LookAndFeel loader
Fix #8119
Close #8122
2018-11-05 11:46:49 +01:00
per1234
5217912d58 Start Arduino IDE 1.8.8 2018-11-03 06:56:41 -07:00
Cristian Maglie
db2dd8f003 Download indexes using https instead of http 2018-10-24 16:20:04 +02:00
Cristian Maglie
b7728beb52 Updated translation strings 2018-10-08 12:57:25 +02:00
Cristian Maglie
8ba209a64d Improved PreferencesMap toString output 2018-09-28 01:42:41 +02:00
Cristian Maglie
6da3e5fe20 Updated translations 2018-09-11 16:22:10 +02:00
Cristian Maglie
9c4d52c50a Release 1.8.7 2018-09-10 14:45:54 +02:00
Cristian Maglie
27eca6b3d9 Regression: fixed wrong BUILTIN_AS_LAST comparator
This bug has been introduced with b3d01d8281

Fix #7973
2018-09-07 15:03:25 +02:00
Cristian Maglie
0951efb711 Updated i18n resources with new strings 2018-09-06 16:01:19 +02:00
Cristian Maglie
2fa42dc08e Updated translations 2018-09-06 16:01:19 +02:00
Cristian Maglie
0b4c4bbcf2 Immediately re-parse library_index.json after updating it 2018-09-06 11:57:21 +02:00
Cristian Maglie
34baa40953 Removed useless I18n reference in call to format 2018-09-06 11:57:21 +02:00
Cristian Maglie
fe424ae39b Do not fail if the data folder can't be read
Fix #7937
2018-09-06 11:57:21 +02:00
Cristian Maglie
fd28ded160 Get a better error message if the library_index.json can't be parsed
See #7937
2018-09-06 11:57:21 +02:00
Cristian Maglie
6ed7934ee1 Do not fail if library_index.json can't be parsed
Fix #7937
2018-09-06 11:57:21 +02:00
PaulStoffregen
e6bf0f24eb Delete leftover comments & question 2018-09-03 16:39:39 +02:00
PaulStoffregen
4ccf9bbd90 Show a helpful message when no Port is selected 2018-09-03 16:39:39 +02:00
Martino Facchin
b99d55ba92 Add missing tools checksums 2018-08-28 17:54:40 +02:00
Martino Facchin
6080907ba3 Update jscc to 2.8.0-arduino2 (aarch64 support) 2018-08-28 17:53:04 +02:00
Martino Facchin
418e3def10 Add runtime tool with version to board preferences
If two vendors declare the same tool (name and version) and platform.txt requires {runtime.tool-version.path}, the tool is chosen randomly.
This patch completes 6f24fa6cec
2018-08-28 17:51:14 +02:00
Cristian Maglie
d2a251c066 Improved error message when no library headers are found 2018-08-28 16:07:35 +02:00
Cristian Maglie
f58f8d3c4b Fix NPE crash after installing a library with invalid version
Fix #7917
2018-08-28 16:07:35 +02:00
Cristian Maglie
86217a4fb4 Slightly refactored VersionComparator (WIP 2/3) 2018-08-28 16:07:35 +02:00
Cristian Maglie
3092e03bec VersionHelper.valueOf now returns an Optional (WIP 1/3)
This helps to avoid bugs similar to #7917
2018-08-28 16:07:35 +02:00
Cristian Maglie
4f1ff2a42f Update translations 2018-08-23 10:47:39 +02:00
Cristian Maglie
13c3750ecf Revert "Moving a sketch to another folder should move all files"
This reverts commit c4f5cafd33.
2018-08-23 10:39:20 +02:00
Cristian Maglie
4b59dbae24 Removed unused function 2018-08-14 22:01:04 +02:00
Cristian Maglie
2f6d2112cf Simplified overly complicated error handling in PApplet.createWriter 2018-08-13 20:19:25 +02:00
Cristian Maglie
9eeb79fed4 Do not crash if preferences.txt can't be written 2018-08-13 20:19:25 +02:00
Cristian Maglie
99fe051c4a Added preferences.txt option to disable preferences save
Fix #5668
2018-08-13 20:19:25 +02:00
Cristian Maglie
daefdc9d7d Updated translations 2018-08-10 11:17:38 +02:00
Cristian Maglie
8fd17d44a7 Fixed error message 2018-08-10 11:05:08 +02:00
Cristian Maglie
62511c0889 Fixed error message 2018-08-10 11:01:06 +02:00
Cristian Maglie
bd770ae949 Updated translations 2018-08-10 10:56:19 +02:00
per1234
19bfd2ada9 Correct messages re: sketch/library folder name restrictions
- Specify that library name error is about folder name.
  - We would normally expect "library name" to mean the "fancy name" (as defined by the library.properties name field).
- Specify exactly which characters are allowed.
- State that spaces are prohibited in sketch folder name.
- Remove outdated message about library folders not being allowed to start with a number.
  - This restriction was removed by 4545283ae7.
- State library folder name length restriction.
- Make sketch and library messages consistent with each other.
2018-08-10 10:53:15 +02:00
Cristian Maglie
3a3bc5be84 Ignore empty "includes" field in library.properties
This allows to avoid empty include lines like:

   #include <>

for libraries declaring:

   includes=

in their library.properties file.

Fix #7854
2018-08-08 14:49:49 +02:00
Cristian Maglie
1db3aabaab Added collector to LibraryList 2018-05-27 13:38:14 +02:00
Yohsuke FURUTA
24029c5ace CLI: Add --version to CLI option (#7549)
* CLI: Add --version to CLI option

I added to get the Arduino IDE version from the command line
It will allow to check easily if the new Arduino is already installed.

This feature makes it easier to build external systems linked to specific versions of Arduino.

1. I added `--version` action, which shows version name and exit
  1. Currently, VERSION_NAME_LONG (like `1.8.5`, `1.9.0-beta`, `1.8.6 Hourly Build XXX`, etc...) is used. Because I want to know its version number and stable/beta/hourly.
  2. Finish with `0`. Because it is `SUCCESSFLLY FINISHED`.
2. Updated man page.

* Split "parse" and "action".
Move print action to probably suitable place.

This commit will fix the behavior of multiple actions about --version.

* add testcase
2018-05-22 17:46:11 +02:00
Cristian Maglie
60021c1e63 Library search now works also for headers (.h) provided by libraries
Fixes #7604
2018-05-22 16:28:52 +02:00
Cristian Maglie
d4a12205fa Highlight 'fatal' errors during build
Fix #7614
2018-05-21 17:01:16 +02:00
Cristian Maglie
901d8c77fe Fixed UpdatableLibrarieyTest 2018-05-21 12:04:01 +02:00
Cristian Maglie
8dd9a3e999 If a language resource is missing, fallback to system default 2018-05-21 11:28:36 +02:00
Cristian Maglie
a64d1cbeb1 Fixed Override warning 2018-05-21 11:28:09 +02:00
Cristian Maglie
b4efa5589b Moved cc.arduino.i18n.Language* classes in arduino-core project 2018-05-21 11:27:53 +02:00
Cristian Maglie
b70e876c0c Removed et_EE localization.
Fix #4747
2018-05-21 10:43:19 +02:00
Cristian Maglie
ada9e50b64 Updated translations 2018-05-21 10:39:59 +02:00
Martino Facchin
2d6e974b12 Removed useless classpaths from eclipse project file 2018-05-21 10:25:53 +02:00
Cristian Maglie
77ec25de61 Fixed NPE when setting Types field in core-libraries
The core libraries may come from platforms installed inside the
"sketchbook/hardware" directory. Those platforms are not indexed
and doesn't have a category field to propagate in the core-libraries.
2018-05-21 10:00:47 +02:00
Cristian Maglie
3bce82092e Command line: added more verbosity and made output coherent 2018-05-17 09:14:25 +02:00