- 12 Oct, 2023 1 commit
-
-
Cristian Maglie authored
* Allow non-sequential properties list * Command 'debug info' choose between "script" and "scripts" configs exclusively * Updated docs * Added test for mixed old and new-style openocd script definition * Update docs/platform-specification.md Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com> --------- Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com>
-
- 11 Oct, 2023 1 commit
-
-
dependabot[bot] authored
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.35 to 3.1.37. - [Release notes](https://github.com/gitpython-developers/GitPython/releases) - [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES) - [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.35...3.1.37) --- updated-dependencies: - dependency-name: gitpython dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 09 Oct, 2023 1 commit
-
-
Cristian Maglie authored
* Improved specification of debug configuration * Added integration test * Added the possibility to provide cortex-debug custom configs * Added svd-file debug option * Added textual print of custom cortex-debug config * Updated docs * Apply suggestions from code review Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com> * Added integration test for programmer selection --------- Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com>
-
- 02 Oct, 2023 3 commits
-
-
Alessio Perugini authored
-
Cristian Maglie authored
-
Alessio Perugini authored
-
- 27 Sep, 2023 1 commit
-
-
Alessio Perugini authored
-
- 26 Sep, 2023 1 commit
-
-
Cristian Maglie authored
* Use paths.ReadDirRecursive filtered where possible * Do not add sketch files from known build paths * Improved builder globals * Added integration test
-
- 25 Sep, 2023 3 commits
-
-
Cristian Maglie authored
-
Alessio Perugini authored
[breaking] Eliminate BoardListWatchRequest `Interrupt` from the grpc api and make it server streaming only (#2330)
-
Zach Vonler authored
-
- 22 Sep, 2023 1 commit
-
-
Umberto Baldi authored
* replace deprecated openpgp lib (https://github.com/golang/go/issues/44226) * update license
-
- 21 Sep, 2023 1 commit
-
-
Cristian Maglie authored
* Removed logger as a field of BuildOptionManager * Made BuildOptionsManager a field of Builder * Renamed BuildOptionsManager -> BuildOptions * Made WipeBuildPath a method of Builder * Removed unused currentBuildOptionsJSON field * Separated wipeBuildPath and createBuildOptionsJSON actions * Made wipe() a proper method -> Buidler.wipeBuildPath() * Made BuildOptions private * Made SketchLibrariesDetector a private field of Buidler * Made BuildArtifacts private * Made all builder subpackages internal * Moved initialization of private structs inside NewBuilder
-
- 20 Sep, 2023 3 commits
-
-
Alessio Perugini authored
When compiling with --output-dir pointing to the same directory of --build-path do not copy file
-
MatteoPologruto authored
* Move WarnDeprecatedFiles to commands/sketch * Change FindPlatform's signature to avoid references to the Package Manager * Replace direct access to the package manager with a call to PlatformSearch function
-
Cristian Maglie authored
-
- 18 Sep, 2023 1 commit
-
-
MatteoPologruto authored
* Add skip_pre_uninstall parameter to gRPC platform requests * Add pre-uninstall flags to CLI arguments * Run pre-uninstall script when a platform or tool is uninstalled * Document the changes * Include pre-uninstall script run into the unit test
-
- 16 Sep, 2023 1 commit
-
-
dependabot[bot] authored
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.34 to 3.1.35. - [Release notes](https://github.com/gitpython-developers/GitPython/releases) - [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES) - [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.34...3.1.35) --- updated-dependencies: - dependency-name: gitpython dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 15 Sep, 2023 6 commits
-
-
Alessio Perugini authored
-
Alessio Perugini authored
* Move Preprocess and Build in arduino/builder * Move the detector inside arduino/builder * remove legacy targets from TaskFile * inline some variable declaration * remove no longer used builder getters * make only necessary function public in the new builder * fix CR: avoid mutating internal state * fix CR: only print normaloutput when is not verbose
-
Alessio Perugini authored
* ported SketchThatIncludesArduinoH from legacy into integration test * ported SketchWithStaticAsserts from legacy into integration test * ported SketchWithEnumClass from legacy into integration test * ported SketchWithExternC from legacy into integration test * ported testBuilderSketchWithMultilinePrototypes from legacy into integration test * ported SketchWithExternCMultiline from legacy into integration test * ported SketchWithMultilineTemplate from legacy into integration test * ported SketchWithFakeFunctionPointer from legacy into integration test * fix wrong templating * ported SketchWithMinMaxDefinitions from legacy into integration test * ported SketchWithFastledsLibrary from legacy into integration test * ported sketch with merged sketch and bootloader from legacy into integration test * temporary disable legacy test, before porting them to the new infra * update .gitignore * ported CheckBuildOptionsFile from legacy into integration test * ported SketchClassFunction from legacy into integration test * ported SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet from legacy into integration test * remove legacy builder test folder * remove unsued fields from context
-
Alessio Perugini authored
* move customBuildProperties to arduino/builder * remove BuildProperties from context * remove BuildPath from context * remove sketch,libraries,core build path from Context * remove buildPath parameter to PrepareSketchBuildPath func * Make CoreBuilder a method recevier of arduino/builder * Add BuilderLogger in arduino/builder * Remove BuilderLogger from CoreBuild parameter * Make getCachedCoreArchiveDirName unexported * heavily refactored the ContainerBuildOptions * remove fqbn from Context * remove clean from Context * remove unsued properties in Context * remove sourceOverrides from Context * make SketchBuilder a method recevier of arduino/builder * make BuildLibraries a method recevier of arduino/builder * make RunRecipe a method recevier of arduino/builder * make RemoveUnusedCompiledLibraries a method recevier of arduino/builder * make MergeSketchWithBootloader a method recevier of arduino/builder * make WarnAboutArchIncompatibleLibraries a method recevier of arduino/builder * make PrintUsedLibraries a method recevier of arduino/builder * make ExportCmake and PreprocessorSketch a method recevier of arduino/builder * remove legacy/constans pkg * make Linker a method recevier of arduino/builder * make Size a method recevier of arduino/builder * remove onlyUpdateCompilationDatabase from Context * remove Progress from Context * remove ExecutableSectionSize from Context * remove CompilationDatabase from Context * remove LineOffset from Context * introduce BuilderArtifacts to better isolate write operations * remove ActualPlatform and TargetPlatform from Context * directly pass the remaining properties of Context in the builder constructor The remaning fields is used only by legacy tests * polish legacy test
-
Akos Kitta authored
Logging with `info` generates too much noise. Closes arduino/arduino-cli#2313 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
-
github-actions[bot] authored
Related to #2301 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
-
- 11 Sep, 2023 3 commits
-
-
Alessio Perugini authored
* move CoreBuilder in arduino/builder and move CompilationDatabase in compilation pkg * rename CompilationDatabse in Database * move libraries phases in arduino/builder * move linker phases in arduino/builder * move sketch_builder phases in arduino/builder * move sizer phases in arduino/builder/sizer * create bulder logger * use builder logger in the sketLibrariesDetector * replace context Info logger with BuilderLogger * replace context Warn logger with BuilderLogger * replace context WriteStdout logger with BuilderLogger * replace context WriteStderr logger with BuilderLogger * directly pass the BuilderLogger to RecipeByPrefixSuffixRunner func * directly pass the BuilderLogger to part2 * directly pass the BuilderLogger to Linker func * directly pass the BuilderLogger to sizer.Size func * remove Stdout, Stderr and stdlock from Context * appease golint * add missinig license headers * remove WarningsLevel from context * remove Verbose from context
-
Cristian Maglie authored
* Fixed weird error message in 'core install' if invalid platform is specified * Fixed integration test
-
Alessio Perugini authored
* refactor RecipeRunner in a function * refactor CreateBuildOptionsMap in a function * refactor LoadPreviousBuildOptionsMap in a function * refactor StoreBuildOptionsMap in a function * refactor WipeoutBuildPathIfBuildOptionsChanged in a function * refactor ContainerBuildOptions in a function * refactor MergeSketchWithBootloader in a function * refactor PrintUsedLibrariesIfVerbose in a function * refactor UnusedCompiledLibrariesRemover in a function * refactor WarnAboutArchIncompatibleLibraries in a function * refactor CreateMakeRule in a function * move include finder with regex tests under detector * move jobs properites in arduino/builder component * remove sketch property from context * apply CR suggestion
-
- 08 Sep, 2023 3 commits
-
-
Cristian Maglie authored
* Slightly de-entangled makeSourceFile * Moved some initializations directly into NewBuilder * Pruned constants * Pruned more constants * Fixed lint warnings
-
Alessio Perugini authored
* remove unused LibraryDir from legacy context * remove unused WatchedLocation from legacy context * remove unused IgnoreSketchFolderNameErrors from legacy context * remove CanUseCachedTools from legacy context * remove UseArduinoPreprocessor from legacy context * make the CoreBuilder command a function * remove the use of context from builder_utils * mvoe types.ProgressStruct in a dedicated pkg * move ExecCommand under arduino/utils * move LogIfVerbose from utils to legacy builder * move some legacy constans in builder package * move builder_utils under arduino/builder/utils pkg * appease golint * move coreBuildCachePath in the arduino Builder * refactor Linker command in a function * refactor SketchBuilder in a function * refactor LibrariesBuilder in a function * refactor Sizer in a function * remove empty file * remove unused struct FailIfBuildPathEqualsSketchPath
-
Cristian Maglie authored
* Ported TestCoreCaching to current integration test infra * Removed useless TestBuilderEmptySketch The same features are already tested in a number of other integration tests. * Ported TestBuilderWithBuildPathInSketchDir to current integration test infra * Ported TestLoadHardware to current integration test infra * Moved user_hardware testdata resources * Ported TestLoadHardwareMixingUserHardwareFolder to current integration test infra * Removed redundant legacy tests * Removed useless 'sleep' helper function * Removed unused LoadAndInterpolate function * Removed useless NoError helper function * Grouped tests inside the same correct sub-group * Ported TestFailIfBuildPathEqualsSketchPath and TestFailIfBuildPathEqualsSketchPathSketchPathDiffers to current integration test infra
-
- 06 Sep, 2023 5 commits
-
-
dependabot[bot] authored
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.32 to 3.1.34. - [Release notes](https://github.com/gitpython-developers/GitPython/releases) - [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES) - [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.32...3.1.34) --- updated-dependencies: - dependency-name: gitpython dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Cristian Maglie authored
* Simplified compileFiles * Starting new Builder (part 1/n) * builder: renamed variable and moved dir creation up * builder: made a sketch-prepress function part of Builder * Removed ctx dependency in PreprocessSketchWithArduinoPreprocessor * uniform parameters between preprocesors * Moved PreprocessSketchWithArduinoPreprocessor into proper place * Inlined function * Converted sketchCopyAdditionalFiles into a Builder method * Made SetupBuildProperties a method of the new Builder * Refactor AddAdditionalEntriesToContext https://github.com/cmaglie/arduino-cli/pull/32 * refactor AddAdditionalEntriesToContext in a function * use the new function in all the tests * Move the assignaton of LibrariesResolutionResults inside the ResolveLibrary func The ResolveLibrary func is only called by the ContainerFindIncludes * rename bPath to buildPath * cleanup usless tests * remove shadowed variable * Refactor legacy LibrariesLoader command * move LibrariesLoader under arduino/builder * remove usless nil check * remove AddAdditionalEntries func, in favour of initializing them in the compile command * move a check directly in the compile command * create the SketchLibrariesDetector struct * move all the logic of ContainerSetupHardwareToolsLibsSketchAndProps in the compile command * remove container_setup and adjust relative tests * remove LibraryResolver property from context * remove UseCachedLibrariesResolution for context * remove ImportedLibraries from context * remove LibrariesResolutionResults from context * remove LibrariesManager from context * fix regression exceeding 100% status bar * refactor find_includes * refactoring the cmd.Exec in favour of executils * use detector FindIncludes in tests * add comments and make some plubic methods private --------- Co-authored-by: Alessio Perugini <alessioper.98@gmail.com>
-
MatteoPologruto authored
* Change GetPort's returned type to rpc.Port * Use LoadSketch in runUploadCommand
-
MatteoPologruto authored
-
Cristian Maglie authored
* Removed useless tty abstraction * Print 'Connected to...' message immediatly after connection * Added terminal raw mode * Make local the argument/flags of 'monitor' command * Applied code suggestion
-
- 05 Sep, 2023 1 commit
-
-
Cristian Maglie authored
* Ported legacy TestIncludesToIncludeFolders test * Ported legacy TestIncludesToIncludeFoldersANewLibrary test * Ported legacy TestIncludesToIncludeFoldersDuplicateLibs* test Also improved build options in test
-
- 04 Sep, 2023 3 commits
-
-
dependabot[bot] authored
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout 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>
-
Cristian Maglie authored
* Simplified table.Render method * Removed right padding from tables
-
Cristian Maglie authored
* Moved out from legacy some TryBuild* integration tests * Ported sketch_with_config integration tests out of legacy * Ported sketch_no_functions integration tests out of legacy * Ported sketch_with_backup_files integration tests out of legacy * Ported sketch_with_old_lib integration tests out of legacy * Ported sketch_with_subfolders integration tests out of legacy * Ported sketch_with_class integration tests out of legacy * Simplified integrationtest of preprocessor * Ported sketch_with_typename integration tests out of legacy * Ported sketch_with_namespace integration tests out of legacy * Ported sketch_with_default_args integration tests out of legacy * Ported sketch_with_inline_function_args integration tests out of legacy * Ported sketch_with_function_signature_inside_ifdef integration tests out of legacy * Ported sketch_with_usbcon integration tests out of legacy * Ported sketch_with_const integration tests out of legacy * Ported sketch_with_templates_and_shift integration tests out of legacy * Ported sketch eol_processing integration tests out of legacy * Ported SketchWithIfdef integration tests out of legacy * Ported sketch_with_ifdef integration tests out of legacy * Ported Bridge integration tests out of legacy * Ported more Bridge integration tests out of legacy * Ported even more Bridge integration tests out of legacy * Better subtesting categorization * Ported yet another Bridge integration tests out of legacy * Ported Balanduino integration tests out of legacy * Ported CharWithEscapedDoubleQuote integration tests out of legacy * Ported IncludeBetweenMultilineComment integration tests out of legacy * Ported LineContinuations integration tests out of legacy * Ported StringWithComment integration tests out of legacy * Ported SketchWithStruct integration tests out of legacy * Ported SketchNoFunctionsTwoFiles integration tests out of legacy * Ported SketchWithClassAndMethodSubstring integration tests out of legacy * Ported SketchThatChecksIfSPIHasTransactions integration tests out of legacy * Ported sketch_with_dependend_libraries integration tests out of legacy * Ported sketch_with_function_pointer integration tests out of legacy * Ported sketch_usbhost integration tests out of legacy * Removed sketch1 from try_build* test It's already compiled many times in other tests. * Ported sketch9 integration tests out of legacy * Removing no more used functions * Ported USBHost test * Removed no more useful test from legacy * Removed no more needed tests
-
- 29 Aug, 2023 1 commit
-
-
Cristian Maglie authored
* Replaced copyRecursive with go-paths library calls * Simplified download functions * Removed no more needed functions * Replaced some calls with go-paths library * Replaced some calls with go-paths library * Isolated some function into the (soon-to-be-removed) CMake generator This change will not break the CMake generator but will remove the CopyDir implementation from the public API space. * Removed now dead code * Moved md5 function to proper place * Refactor findAllFilesInFolder to use more go-paths function * Refactor findAllFilesInFolder to use more go-paths function * Made FilesAreOlderThan function to rationalize code * Yet another code-factorization of findAllFilesInFolder * Further simplified version of FilesAreOlderThan * Inlined CoreOrReferencedCoreHasChanged function * Inlined TXTBuildRulesHaveChanged function
-