Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/arduino/Arduino.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
AgeCommit message (Collapse)Author
2022-02-23Moving asciilogo.txt to a different domainstevisco-asciilogoStefano Visconti
we are moving asciilogo.txt to arduino.tips domain so examples need to be updated
2021-12-20Removed log4jCristian Maglie
Fix #11727
2021-12-14Updated log4j to version 2.16.0Cristian Maglie
2021-12-11Upgrade log4j to 2.15.0 - CVE-2021-44228Russell Howe
2021-08-23Merge pull request #11650 from cmaglie/fix_font_resize_hide_tabsCristian Maglie
Fix: Font size change corrupts inactive tabs
2021-08-18Removed bundled offline docsCristian Maglie
The offline documentation is hard to update and gets outdated very quickly. Fix #8860
2021-08-18Removed (apparently never activated) DocLinkGeneratorCristian Maglie
2021-08-18makeup: factor call to tabs.get(index)Cristian Maglie
2021-08-18Force font metrics recalculation when changing tabsCristian Maglie
Fix #7321
2021-05-19Removed unused importsCristian Maglie
2021-05-11Filter ContributedPlatformReleases after fully building themCristian Maglie
2021-05-11Board Manager: searching returns also near matchesMartino Facchin
The original filter would only populate the contribution list with perfect matches. Previously, if a core was installed but didn't match the search it wouldn't appear in the results (due to a board being added or the description changed); the user could then install (not upgrade) the core, triggering a confusing situation. When moving to arduino-cli backend we should take care of this issue, at least visually (the cli logic would correctly update/downgrade the core)
2021-05-10Merge pull request #11508 from cmaglie/deprecation_fieldCristian Maglie
Added basic "deprecation" support for platforms
2021-05-10Typo in SerialPlotter.javaQuocViet Le
2021-05-10Show maintainer instead of author in lib managerCristian Maglie
2021-05-10Added 'deprecated' labelCristian Maglie
2021-05-10Deprioritize deprecated contributionsCristian Maglie
2021-05-10Propagate deprecated flag in ContributedPlatformReleasesCristian Maglie
2021-05-06Do not delete unused 3rd party index filesCristian Maglie
2021-04-26Preserve all menu items for restoring when the menu is closedCristian Maglie
2021-04-12Make Custom menus scrollableMartino Facchin
Fixes #11416 The patch on MenuScroller.java is needed to avoid a clash between custom menus with the same label. This behaviour artificially increases the amount of objects that the scroller will calculate. Eg. if two boards share the same custom menu, that menu will contain the properties for both the boards (since it's parsed twice).
2021-04-09Merge pull request #11414 from cmaglie/i18n-updateCristian Maglie
Some small URL fix and updates to translations
2021-04-09Optimize applyFilter() to Avoid Redundant String Operations (#11284)Adrian Hughes
if 'showingHint' == true, then many potentially expensive String operations are being executed on an empty string. This change wraps these operations in an if block which will only run them when needed.
2021-04-08Removed translation and updated some URLsCristian Maglie
2021-01-24Fix status bar custom board preferences disappearingmaged
2020-12-03Add shift+click to serial monitor button on the toolbar to open serial plotterNicola Elia
2020-11-05rebuildProgrammerMenu: Handle no current boardMatthijs Kooijman
This can happen happen in some unlikely cases (such as when renaming a platform in a way that breaks the "select a board when none is selected logic"). Even though a board should always be selected, code should still handle no selected board gracefully (rather than raising a NullPointerException like this used to do). See #10887 for the underlying issue that caused no board to be selected.
2020-09-07Move built-in examples to dedicated repositoryper1234
A dedicated repository for the examples will make it easier for them to be built in to arbitrary development tools. It will make it easier to use them for compilation testing of boards platforms. It provides a dedicated location for issue reports and pull requests that are specific to the examples. It continues the work done by moving the AVR and SAM boards platforms and built-in libraries towards making the arduino/Arduino repository solely a place to host the GUI code of the Arduino IDE.
2020-07-23Lib manager: added getContribModel() as in Boards managerCristian Maglie
2020-07-23Lib manager GUI is updated after installing/upgrading libraryCristian Maglie
2020-07-23Boards Manager: update UI after an install/removeCristian Maglie
2020-07-23Board manager: Update filters UI only if categories changesCristian Maglie
2020-07-23Fixed NPE in buildProgrammersMenuCristian Maglie
Some platforms may not define directly 'build.core' because it may be defined through a custom menu. For example, the arduboy platform has in the boards.txt: [...] menu.core=Core [...] # core # arduboy-homemade.menu.core.arduboy-core=Arduboy optimized core arduboy-homemade.menu.core.arduboy-core.build.core=arduboy arduboy-homemade.menu.core.arduino-core=Standard Arduino core arduboy-homemade.menu.core.arduino-core.build.core=arduino:arduino [...] the build.core is determined only after applying the submenu options.
2020-06-29LibraryManager: correctly apply "type" and "category" filters togetherCristian Maglie
Previously changing "Category" would filter libraries by the selected category but without applying the "Type" previously selected. For instance selecting Type="Installed" and Category="Communication" will display *all* the libraries belonging to "communication" instead of the installed only. This commit fix this behavior.
2020-06-29Removed unused include and clueless whitespacesCristian Maglie
2020-06-29Library manager: update filters combo box only if there are changesCristian Maglie
The filters content is unlikely to change, so just prevent it from live updating it because it has some side effects: - it's slow - it changes the selection back to the default and it's very tricky to make it re-select the previous selection. Fixes #10439
2020-06-03Update jmdns to 3.5.5Martino Facchin
2020-05-25Avoid usueless double calls to rescanLibraries()Ricardo JL Rufino
Previously rescanLibraries() was automatically called internally in setLibrariesFolder(). This lead to double calls to rescanLibraries() when setLibrariesFolder() was used in combination with an explicit call to rescanLibraries(). This commit adds a new method setLibrariesFoldersAndRescan(..) and removes the internal call to rescanLibraries() from setLibrariesFolder(). The existing setLibrariesFolder()+rescanLibraries() combos have been replaced with setLibrariesFoldersAndRescan(). Fix #10228
2020-05-20[IDE] Title of sketch is misaligned on Linux (#10210)Ricardo JL Rufino
Fix #10209
2020-05-12Handle CR without NL printed in EditorConsoleMatthijs Kooijman
Previously, any CR without NL was treated just like a NL. For tools that used single CRs to update a progress bar (such as dfu-util), this would end up printing the subsequent versions of the progress bar below each other, instead of updating a single line as intended. Additionally, since ConsoleOutputStream only scrolled the view on \n, these updates would end up outside of the main view, making the upload progress quite unclear. This commit makes EditorConsole support lone CRs by resetting the insert position to the start of the current line, so subsequent writes overwrite existing content. If subsequent lines are shorter than an earlier line, only part of the earlier line will be overwritten (this mimics what terminal emulators do).
2020-05-12EditorConsole: Set up System.out/err redirection in setCurrentEditorConsoleMatthijs Kooijman
Previously, the redirection would be triggered in the EditorConsole constructor. However, this was problematic for unittests, which do not need this redirection. Since the redirection really is not useful intul there is a current EditorConsole anyway, it can just be delayed a bit until setCurrentEditorConsole is called.
2020-05-12EditorConsole: Allow base to be nullMatthijs Kooijman
This allows testing this class without going to a full initialization.
2020-05-12EditorConsole: Do not trim getText() resultMatthijs Kooijman
Not trimming makes this method usable for unittesting. Since this method is not currently used anywhere, it should not affect any behaviour.
2020-05-11AbstractWithPreferencesTest: Disable update checksMatthijs Kooijman
This prevents the Arduino instance in tests from checking for updates. I have not seen any problems resulting from this, but disabling network requests is generally a good idea in tests (to prevent external factors from influencing the test results). In addition to update checks, there is also the CloudBoardResolver that could do network requests, but there does not seem to be a preference for disabling that.
2020-05-11HittingEscapeOnCloseConfirmationDialogTest: Match dialog by titleMatthijs Kooijman
This would match the "Close" dialog, by looking for any JDialog on screen. However, in some cases, there could be a second dialog (I have seen a "Install this package to use your xxx board" popup because I happened to have an Arduino Zero connected, presumably an "Updates are available" popup could cause this as well). By matching not just the type of the dialog, but also the title, only one dialog is matched and the testcase runs more reliably.
2020-05-11Tests: Do not read system user's dataMatthijs Kooijman
The tests would initialize Base, PreferencesData with default settings and/or run the arduino executable, without specifying any settings to use. In practice, this would read settings from e.g. `~/.arduino15`, load libraries from the user's sketchbook, etc. This is not a good idea, since this can be influence the test. For example, the presence of invalid libraries would cause extra output to be generated, which breaks the `--version` test. Or having the "Use external editor" setting set would break tests that try to edit a sketch. This commit fixes this. The core of this commit is in `AbstractWithPreferencesTest`, which sets up a clean settings dir (to replace `~/.arduino15`) with a sketchbook and `preferences.txt` file inside before every test (and removes it again after the test. For some tests, this is enough, but some tests create an instance of `Base`, which again initializes everything, including preferences, from the default location. To prevent that, `--preferences-file` is passed to the `Base` constructor, loading the previously set up preferences. This is handled by the new `AbstractWithPreferencesTest.createBase()` method. Furthermore, CommandLineTest calls the actual Arduino executable, which has the same problem. This is fixed by passing the same `--preferences-file` option on the commandline (generated by `AbstractWithPreferencesTest.getBaseArgs()`). This should prevent all tests from reading the the default settings files, fixing some tests on my system and even speeding up the tests somewhat (due less libraries and cores to load, probably).
2020-05-11AbstractWithPreferencesTest: Clean up files after every testMatthijs Kooijman
Previously, this used the DeleteFilesOnShutdown class and a shutdown hook, which would delete the files only after shutdown. However, the shutdown handler would be re-added for every testcase, potentially leading to a lot of threads trying to delete the same files. This uses an alternative: Just keep a list of files to delete inside the testcase and use an @After handler to delete the files directly after each usecase.
2020-05-11AbstractGUITest: Make a subclass of AbstractWithPreferencesTestMatthijs Kooijman
Both classes contained some duplicate code, so unify that by making one a subclass of the other. This also prepares for further additions that should be inherited by both.
2020-05-11CommandLineTest: Print commands being ranMatthijs Kooijman
This makes the test output a bit more easier to read.
2020-05-11CommandLineTest: Produce less verbose outputMatthijs Kooijman
In one test, `--get-pref` is passed on the commandline to prevent starting the full GUI. When ran without arguments, `--get-pref` causes *all* preferences to be printed. Using `--version` achieves the same (no GUI is started) with just a single line of output.