- 06 Aug, 2021 3 commits
-
-
dependabot[bot] authored
Bumps [actions/github-script](https://github.com/actions/github-script) from 3 to 4.0.2. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v3...v4.0.2) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Bumps [rtCamp/action-slack-notify](https://github.com/rtCamp/action-slack-notify) from 2.1.0 to 2.2.0. - [Release notes](https://github.com/rtCamp/action-slack-notify/releases) - [Commits](https://github.com/rtCamp/action-slack-notify/compare/v2.1.0...v2.2.0) --- updated-dependencies: - dependency-name: rtCamp/action-slack-notify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 1 to 2.2.2. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v1...v2.2.2) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 05 Aug, 2021 3 commits
-
-
per1234 authored
* Bring Go code formatting into compliance * Expand i18n coverage to all relevant strings This provides internationalization of the strings of the Arduino CLI code base. It will now be possible to completely translate the primary Arduino CLI user interface. We decided that the log messages would be excluded from the internationalization scope for now. The reason is that the addition of these strings would significantly increase the workload on the community translators, while generally being of less visibility and/or importance to the users. Even though on an individual basis there are surely specific log messages of higher importance than specific non-log strings that were internationalized, the log/non-log dichotomy provided an objective criterion for determining which strings were in scope for this initial effort. Perhaps we will expand the i18n coverage at some time in the future after there has been good progress on the initial translation effort. Some techniques were employed to facilitate translation: - Code references were moved out of strings in cases where a translator might mistake them for prose and translate them. - Indices were added to printf verbs when multiple were present in a string. This allows the translator to easily insert them at the appropriate location in the sentence structure without being required to understand the Go printf syntax and without being restricted to their relative order in the English language source string. Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
-
per1234 authored
Dependabot will periodically check the versions of all actions used in the repository's workflows. If any are found to be outdated, it will submit a pull request to update them. NOTE: Dependabot's PRs will occasionally propose to pin to the patch version of the action (e.g., updating `uses: foo/bar@v1` to `uses: foo/bar@v2.3.4`). When the action author has provided a major version ref, use that instead (e.g., `uses: foo/bar@v2`). Dependabot will automatically close its PR once the workflow has been updated. More information: https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot
-
per1234 authored
Dependabot Preview shut down 2021-08-03. It is replaced by GitHub-native Dependabot, which uses the `.github/dependabot.yml` configuration file, with a different data format. From an investigation into how the obsolete configuration could be migrated to the new format, I determined that the specific "security updates only" configuration used by this repository is not provided by the new configuration file, which is for configuring updates of any outdated dependencies. The "security updates" feature is configured via the repository settings (Settings > Security & analysis). Since the old file is no longer used, and might cause confusion, it is best to remove it from the repository.
-
- 28 Jul, 2021 1 commit
-
-
per1234 authored
The user can configure their locale preference via the `locale` configuration key. This information is given priority by the `github.com/arduino/arduino-cli/configuration` package over the automatically detected locale. Previously, the `i18n` package got the configuration setting from the `github.com/arduino/arduino-cli/configuration` package, but this will result in an import cycle when the `i18n` package is used to enable translation of the output strings of the `configuration` package. To avoid this, the caller now reads the configuration and passes the locale code to the `i18n` package via its `Init` function: i18n.Init("it") The argument can be omitted if only automated locale detection is needed: i18n.Init()
-
- 22 Jul, 2021 1 commit
-
-
Cristian Maglie authored
* Cache board identification properties * Board details now shows pluggable discovery identification props * Use new methods in go-properties-orderedmap to calculate subsets * Updated i18n * Added migration docs * Improved tests * Update arduino/cores/board.go Co-authored-by: per1234 <accounts@perglass.com> * Update docs/UPGRADING.md Co-authored-by: per1234 <accounts@perglass.com>
-
- 20 Jul, 2021 1 commit
-
-
Cristian Maglie authored
-
- 19 Jul, 2021 1 commit
-
-
per1234 authored
For the sake of portability of tasks, Task uses `mvdan.cc/sh` to provide an command interpreter that is independent of the environment. While one of the great strengths of Task, this produces unexpected results in some rare cases. This is one of those cases. There is some unusual interaction between `mvdan.cc/sh`, Windows, and running the `rice embed-go` command from the subshell created by the parentheses in this command: ``` $ task i18n:update ←[32mtask: [i18n:update] go run ./i18n/cmd/main.go catalog generate . > ./i18n/data/en.po ←[0m←[32mtask: [i18n:generate] git add -N ./i18n/data ←[0m←[32mtask: [i18n:generate] git diff --exit-code ./i18n/data &> /dev/null || (cd ./i18n && rice embed-go) ←[0merror reading package: go/build: go list github.com/arduino/arduino-cli/i18n: exec: "go": executable file not found in %PATH% ``` It is my belief that the sole purpose of these parentheses was to group the commands and that there is no need to run these commands in a subshell. If so, the change to using braces to group the commands without the creation of a subshell will have no functional effect on the commands, but will allow the task to run on Windows.
-
- 15 Jul, 2021 1 commit
-
-
Cristian Maglie authored
Co-authored-by: Silvano Cerza <silvanocerza@gmail.com>
-
- 13 Jul, 2021 1 commit
-
-
Silvano Cerza authored
* Refactor codebase to use a single Sketch struct * Add back removed legacy test * Changed Sketch struct to not use pointers * Fix small comment * Fix checkSketchCasing to work with .pde files too * Add tests loading Sketch with symlinks * Update UPGRADING.md * Clarify a code comment * Add some more tests for Sketches with symlinks * Fix Sketch symlinks tests for Windows
-
- 12 Jul, 2021 1 commit
-
-
Silvano Cerza authored
-
- 06 Jul, 2021 2 commits
-
-
Cristian Maglie authored
* Implemented dry-run for upload and burn-bootloader * Reduced Reset timeout in dry-run mode
-
Cristian Maglie authored
* Fix discovery client * Fix client_example * Fixed BoardWatch message loop * Upgraded go-properties-orderedmap to v1.5.0
-
- 05 Jul, 2021 2 commits
-
-
Cristian Maglie authored
* Added a couple of utility functions * Update arduino/cores/packagemanager/package_manager.go Co-authored-by: per1234 <accounts@perglass.com> * Make linter happy Co-authored-by: per1234 <accounts@perglass.com>
-
Cristian Maglie authored
Also fixed a bug that prevented tools-reload after auto install in some rare circumstances (almost impossible to trigger actually).
-
- 02 Jul, 2021 3 commits
-
-
Cristian Maglie authored
-
Cristian Maglie authored
Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
-
ardnew authored
-
- 01 Jul, 2021 3 commits
-
-
per1234 authored
In the early days of Arduino CLI's gRPC interface, the protocol buffer compilation was done via `go generate`, configured by a directive comment. The `protoc:compile` task is now used instead, but the old directive was left in place, where it became outdated through changes to the repository structure. This directive no longer functions or serves a purpose and might cause confusion to contributors. So it should be removed.
-
Silvano Cerza authored
-
per1234 authored
The key names used in Arduino CLI's JSON output were made consistent and standardized. One of the helper functions for the integration tests was not updated accordingly. This was missed because it is only used when running the tests locally due to requiring a board to be connected to the computer.
-
- 23 Jun, 2021 1 commit
-
-
Silvano Cerza authored
-
- 22 Jun, 2021 1 commit
-
-
tshcherban authored
* added '.tpp' file ext to known list * Add support for .ipp Sketch files extension * Add tests for new .tpp and .ipp extensions suppport Co-authored-by: Silvano Cerza <silvanocerza@gmail.com>
-
- 21 Jun, 2021 1 commit
-
-
Cristian Maglie authored
* Implemented pluggable discovery board matching Added also a compatibility layer for existing platforms. * Fixed docs and linter warnings * Better comments * Added tests and fixed a bug
-
- 18 Jun, 2021 3 commits
-
-
Silvano Cerza authored
* Fix loading platforms with malformed boards.txt * [skip changelog] Fix legacy tests * [skip changelog] Remove unecessary sentence from documentation Co-authored-by: per1234 <accounts@perglass.com> * [skip changelog] Fix some docs and comments * Fix board skipping logic * [skip changelog] Fix unit tests * Fix panic if a board has a property that starts with menu Co-authored-by: per1234 <accounts@perglass.com>
-
Cristian Maglie authored
* Removed now useless boilerplate for BoardList * Fixed wrong 'break' I guess it was meant to exit from the outer loop and not the select.
-
Cristian Maglie authored
* Added Port object in grpc API * serial-discovery now talks Pluggable Discovery protocol v1
-
- 17 Jun, 2021 2 commits
-
-
Silvano Cerza authored
-
Silvano Cerza authored
-
- 16 Jun, 2021 3 commits
-
-
Silvano Cerza authored
* [breaking] Split rpc Init and remove Rescan function * [breaking] Refactored commands package to reflect gRPC changes * [breaking] Refactored cli package to reflect commands changes * Fix instance creation for CLI commands that update indexes * Fix unit tests * Change update indexes commands to not reload instance after * Fix installation of builtin tools * Fix integration tests * Fix code for linting * Update i18n files * Update UPGRADING.md with breaking changes * Update comment with correct information Co-authored-by: per1234 <accounts@perglass.com> * Using callback instead of channel+goroutine for Init * Enhance platform loading step * Update client_example to reflect new gRPC changes * Enhance Init docstring * Enhance builtin tools installation during Init * Fix unit test * Fix integration tests * [skip changelog] Fix after botched rebase * Fix issue when using Init to rescan installed core on already initialized instance * Update generated file from .proto Co-authored-by: per1234 <accounts@perglass.com> Co-authored-by: Cristian Maglie <c.maglie@arduino.cc>
-
Silvano Cerza authored
-
Silvano Cerza authored
* [skip changelog] Update proto files build step * Added missing go.sum * Update builders to 1.16.4 * Fixed crossbuild for Linux ARMv6/ARMv7 * Fixed macOS_64bit build Co-authored-by: Cristian Maglie <c.maglie@arduino.cc>
-
- 14 Jun, 2021 1 commit
-
-
Silvano Cerza authored
-
- 07 Jun, 2021 1 commit
-
-
Cristian Maglie authored
* Download gzipped version of the library index * Check gpg signature for library_index.json * Update docs/UPGRADING.md
-
- 04 Jun, 2021 1 commit
-
-
Cristian Maglie authored
* upgrade go-paths-helper to 1.6.0 * Fixed tests for new go-path library release
-
- 03 Jun, 2021 3 commits
-
-
Roberto Sora authored
* Replace "Arduino Pro IDE" with proper link to Arduino IDE 2.0 * Run prettier
-
Umberto Baldi authored
-
per1234 authored
The library.properties `includes` field specifies a custom list of files to be added to the sketch by the IDE as `#include` directives. Library authors sometimes add filenames from library dependencies to this field. However, that doesn't make any sense because all Arduino development software versions with support for the `includes` field have also had support for resolution of the dependencies of libraries, meaning that there is no need for these `#include` directives to be placed in the sketch. For this reason, Arduino Lint rule LP052 ("library.properties includes field item(s) not found in library.") was configured as an error when the tool is in the default "specification" compliance mode. Since the required rules in this mode are intended to match the official Arduino Library Specification, it is important that mention be made in the `includes` field that it should contain files of the library itself. Since this requirement is fairly common sense, and the format of the library.properties fields documentation somewhat constraining, I attempted to document it with minimal verbosity.
-