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

7322 Commits

Author SHA1 Message Date
Cristian Maglie
c62f62c9dc Store temporary sketch in a folder named as the sketch
Previously the sketch was saved directly in the temporary folder:

  /tmp/arduino_modified_sketch_66288/Blink.ino

this is not a correct Arduino sketch, now it is saved in:

  /tmp/arduino_modified_sketch_66288/Blink/Blink.ino
2020-07-24 12:37:53 +02:00
Cristian Maglie
95ccb804d5 Fixed wrong check for LibraryLocation enum 2020-07-24 12:37:53 +02:00
Cristian Maglie
f0d30575dd Fixed wrong managedByIndex check 2020-07-24 12:37:53 +02:00
Cristian Maglie
64c53afa20 Added script to automatically update arduino-cli 2020-07-24 12:37:53 +02:00
Cristian Maglie
9eb535e375 Updated arduino-cli to 0.11.0-rc1-62-g72c9655f 2020-07-24 12:37:53 +02:00
Cristian Maglie
6983be0bda Updated arduino-cli and java bindings to 0.11.0 2020-07-24 12:37:53 +02:00
Cristian Maglie
52b54b386a Proxy configuration is now properly handled 2020-07-24 12:37:53 +02:00
Cristian Maglie
0a3370ccc6 Added method to extract Proxy URI from configuration 2020-07-24 12:37:53 +02:00
Cristian Maglie
6dd8ec8665 Setting are applied automatically when preferences dialog is closed 2020-07-24 12:37:53 +02:00
Cristian Maglie
7b79ec848e Compiler now read progress through GRPC 2020-07-24 12:37:53 +02:00
Cristian Maglie
b8e8e7842d Updated java bindings 2020-07-24 12:37:53 +02:00
Cristian Maglie
727e3694c4 Slightly simplified loop 2020-07-24 12:37:53 +02:00
Cristian Maglie
b306f84038 Removed testing/debugging leftvoers 2020-07-24 12:37:53 +02:00
Cristian Maglie
8f1f4be95c compile/verify now uses arduino-cli daemon
The build options are now passed through GRPC.
There should be no need to pass library or hardware paths anymore.
By default the daemon compiles and export the hex in the sketch folder
but this is disallowed by the IDE unless the user explicitly run
the "Export .hex" command.

All the business logic to compose board properties and command line
for the build is now embedded in the daemon and has been removed from
the IDE. \o/
2020-07-24 12:37:53 +02:00
Cristian Maglie
8cf4d20493 Updated cli java bindings 2020-07-24 12:37:53 +02:00
Cristian Maglie
a27aad37fd Using GRPC enumerations for LibraryLayout 2020-07-24 12:37:53 +02:00
Martino Facchin
8757f7c6ed INITIAL: integrate compile with arduino-cli 2020-07-24 12:37:53 +02:00
Martino Facchin
a0d73d3bf6 LibManager: avoid throwing an exception to allow correct error handling 2020-07-24 12:37:53 +02:00
Cristian Maglie
11847e6677 Fixed 'Installed' drop-down menu condition in library manager 2020-07-24 12:37:53 +02:00
Cristian Maglie
108a0c0994 Added missing fields in ContributedLibrary 2020-07-24 12:37:53 +02:00
Cristian Maglie
33d522fccf Added paths to grpc lib in build.xml 2020-07-24 12:37:53 +02:00
Cristian Maglie
60dd0945d6 Using enumerations for LibraryLocation 2020-07-24 12:37:53 +02:00
Cristian Maglie
decf40813c Update GRPC/arduino-cli to 0.8.0 2020-07-24 12:37:53 +02:00
Cristian Maglie
cdf8213558 Updated arduino-cli to 0.8.0 2020-07-24 12:37:53 +02:00
Cristian Maglie
b30379dfbc Updated GRPC/arduino-cli to version 0.7.2 2020-07-24 12:37:53 +02:00
Cristian Maglie
197992c8f5 Updated arduino-cli to 0.7.2 2020-07-24 12:37:53 +02:00
Cristian Maglie
2fd0d35a6e Small update to ProgressWrapper 2020-07-24 12:37:53 +02:00
Cristian Maglie
ce05a6831b Removed no more needed UserLibrary constructor/parser 2020-07-24 12:37:53 +02:00
Cristian Maglie
5295e106db Use Library.RealName for installed libraries 2020-07-24 12:37:53 +02:00
Cristian Maglie
3ba507ab43 Lib manager GUI: removed some static access to ArduinoCoreService 2020-07-24 12:37:53 +02:00
Cristian Maglie
bdd621786a Removed no more needed LibraryInstaller (it's now done via GRPC) 2020-07-24 12:37:53 +02:00
Cristian Maglie
401fe65418 Removed, no more needed, LibraryInstaller::updateIndex method 2020-07-24 12:37:53 +02:00
Cristian Maglie
0056cbc545 Removed the now useless UserLibraryFolder 2020-07-24 12:37:53 +02:00
Cristian Maglie
3c46af8d2c Removed the, now useless, library folder handling 2020-07-24 12:37:53 +02:00
Cristian Maglie
56bd779288 Installed libraries are now detected via GPRC calls 2020-07-24 12:37:53 +02:00
Cristian Maglie
7da6bd91aa Using Collection instead of List on some Library types
This helps in transitioning to GRPC on next commits.
2020-07-24 12:37:53 +02:00
Cristian Maglie
e5e1892037 Added GRPC libraryList command 2020-07-24 12:37:53 +02:00
Cristian Maglie
f6ca1f7b16 Library manager through arduino-cli (WIP, part 1)
- library index is now fetched arduino-cli
- ContributedLibraries and derivatives classes have been adapted
  to arduino-cli structure
- install/update/remove are temporary disabled
- library index updated is now done trough arduino-cli
- added progress wrapper

Next steps:

- detect installed libraries using arduino-cli
- implement install/update/remove using arduino-cli
2020-07-24 12:37:53 +02:00
Cristian Maglie
cc26e75e96 GRPC: Added lib index update command with progress wrapper 2020-07-24 12:37:53 +02:00
Cristian Maglie
84b9518776 GRPC: removed limit to max message size 2020-07-24 12:37:53 +02:00
Cristian Maglie
310a5df5e1 Rename ContributeLibrary and ContributeLibraryReleases
the classes have been renamed as:

  ContributedLibrary -> ContributedLibraryRelease
  ContributedLibraryReleases -> ContributedLibrary

The reason is that a ContributedLibrary will have a name and a list of
releases, each one containing the relative metadata. The changes to
reflect that will be made in the next commits.
2020-07-24 12:37:53 +02:00
Cristian Maglie
9500b34719 Added more GRPC commands 2020-07-24 12:37:52 +02:00
Cristian Maglie
a9681bd833 Added arduino-cli daemon startup and some basic control code 2020-07-24 12:37:52 +02:00
Cristian Maglie
6c7c24f25b GRPC binding to arduino-cli (EXPERIMENTAL) 2020-07-24 12:37:52 +02:00
Cristian Maglie
a381235aa0 Added arduino-cli 0.6.0 to the build 2020-07-24 12:37:52 +02:00
Cristian Maglie
8625b14de3 fixed some trivial warnings 2020-07-24 12:37:52 +02:00
Cristian Maglie
ab9ba6ad4b Use Optional<> for getting selected Board/Platform
Optionals should make explicit the possibility to get empty results from
BaseNoGui.getTargetBoard/Platform methods.
2020-07-24 12:37:52 +02:00
Cristian Maglie
bbb81671d6 Removed TargetBoard parameter from newUploader factory
The parameter is not used.
2020-07-24 12:37:52 +02:00
Cristian Maglie
80dc652ceb
Merge pull request #10541 from cmaglie/board-lib-manager-fixes
Fixed Boards and Libraries Manager "filters" persistence
2020-07-23 15:59:55 +02:00
Cristian Maglie
10bee204e6 Lib manager: added getContribModel() as in Boards manager 2020-07-23 12:10:45 +02:00