1. 14 May, 2024 1 commit
    • per1234's avatar
      [skip-changelog] Correct profile dependency version constraint format in demo... · 21c58031
      per1234 authored
      [skip-changelog] Correct profile dependency version constraint format in demo sketch project file (#2590)
      
      The Sketch Project File documentation includes a demonstration of a complete project file.
      
      Sketch project files use Arduino CLI's `<dependency ID> (<constraint>)` version constraint format but previously an
      unsupported `<dependency ID>@<version>` format was used in some of the dependencies specified in the demonstration
      project file. This would cause a panic if used in a project file:
      
      panic: profiles parsing err: invalid 'platform' directive
      
      goroutine 1 [running]:
      github.com/arduino/arduino-cli/arduino/sketch.(*projectRaw).getProfiles(0xc0003f2000)
              E:/git/arduino/arduino-cli/arduino/sketch/profiles.go:84 +0x1fe
      github.com/arduino/arduino-cli/arduino/sketch.LoadProjectFile(0xc0002fac40?)
              E:/git/arduino/arduino-cli/arduino/sketch/profiles.go:265 +0xb6
      github.com/arduino/arduino-cli/arduino/sketch.New(0xc00022d6c0?)
              E:/git/arduino/arduino-cli/arduino/sketch/sketch.go:90 +0x587
      github.com/arduino/arduino-cli/commands/sketch.LoadSketch({0xc000150060?, 0xc000000004?}, 0xc00022d9b8?)
              E:/git/arduino/arduino-cli/commands/sketch/load.go:30 +0x58
      github.com/arduino/arduino-cli/internal/cli/compile.runCompileCommand(0xc0003aa000?, {0xc0003029c0, 0x1, 0x15c1559?})
              E:/git/arduino/arduino-cli/internal/cli/compile/compile.go:162 +0x1dc
      github.com/spf13/cobra.(*Command).execute(0xc0003aa000, {0xc000302990, 0x1, 0x1})
              C:/Users/per/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:944 +0x863
      github.com/spf13/cobra.(*Command).ExecuteC(0xc00019e300)
              C:/Users/per/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5
      github.com/spf13/cobra.(*Command).Execute(0x0?)
              C:/Users/per/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992 +0x13
      main.main()
              E:/git/arduino/arduino-cli/main.go:31 +0xda
      21c58031
  2. 09 May, 2024 1 commit
  3. 06 May, 2024 1 commit
  4. 03 May, 2024 2 commits
  5. 30 Apr, 2024 1 commit
  6. 26 Mar, 2024 1 commit
  7. 25 Mar, 2024 5 commits
  8. 22 Mar, 2024 1 commit
    • Cristian Maglie's avatar
      [breaking] gRPC `UpdateIndex` and `UpdateLibrariesIndex` improvements (#2569) · 6faca0f7
      Cristian Maglie authored
      * gRPC UpdateIndex and UpdateLibrariesIndex improvements
      
      The two calls now have the update_if_older_than_secs field that allows
      to avoid updating the index if it has been already updated.
      
      Also the response is more explicit with oneof(..) clause and the status
      of each update (in case of multiple index update) is returned in the response.
      
      * Do not make any output in case of skipped/already-up-to-date
      
      * Added json output to 'core update index'
      
      * Added json output to 'lib update index'
      
      * Removed unused function
      
      * Workaround for Windows paths in URI
      6faca0f7
  9. 20 Mar, 2024 1 commit
  10. 19 Mar, 2024 1 commit
  11. 18 Mar, 2024 1 commit
  12. 08 Mar, 2024 1 commit
  13. 05 Mar, 2024 2 commits
  14. 29 Feb, 2024 1 commit
  15. 27 Feb, 2024 2 commits
  16. 26 Feb, 2024 1 commit
  17. 21 Feb, 2024 1 commit
  18. 20 Feb, 2024 1 commit
  19. 19 Feb, 2024 3 commits
  20. 16 Feb, 2024 2 commits
  21. 15 Feb, 2024 2 commits
  22. 14 Feb, 2024 1 commit
    • ardnew's avatar
      Add `config get` command to print settings values (#2307) · 8314f87f
      ardnew authored
      * add "config get" command to print settings values
      
      * use RPC for "config get" and add test cases
      
      * update imports for changed internal layout
      
      * config/get: do not wrap JSON output in YAML
      
      * fix formatting with gofmt
      
      * config/get: unmarshal JSON RPC response
      
      * Apply suggestions from code review
      Co-authored-by: default avatarCristian Maglie <c.maglie@bug.st>
      
      * use same default format as "config dump"
      
      * fix import missing after merging review changes remotely
      
      * test (config): fix expected error message with "get <unknown-key>"
      
      ---------
      Co-authored-by: default avatarCristian Maglie <c.maglie@bug.st>
      8314f87f
  23. 13 Feb, 2024 2 commits
  24. 08 Feb, 2024 1 commit
  25. 06 Feb, 2024 2 commits
  26. 05 Feb, 2024 2 commits
    • Cristian Maglie's avatar
      ec157a88
    • MatteoPologruto's avatar
      Add `programmer` field to sketch profile and `--profile` flag to `debug` command (#2505) · 4a5585e9
      MatteoPologruto authored
      * Add programmer field to rpc.SketchProfile
      
      * Add programmer to the sketch profile
      
      * Retrieve programmer's information from the profile if the flag is not used
      
      * Add profile flag to debug command
      
      * Add default_programmer field to sketch project
      
      * Add default_programmer to rpc.Sketch
      
      * Add methods to set and retrieve default_programmer from a sketch
      
      * Modify SetSketchDefaults function to set a programmer if specified
      
      * Modify board attach command to set a default programmer
      
      * Use default programmer if no other value is specified
      
      * Update docs
      
      * Update TestBoardAttach to test that a programmer is correctly written to sketch.yaml
      
      * Add TestDebugProfile to integration tests
      4a5585e9