Commit Graph

412 Commits

Author SHA1 Message Date
Federico Fissore 67e32ff8fa FileUtils.copy now filters out source control folders. Also, dir is checked for existence before creating it. Fixes #4034 2015-11-02 12:29:12 +01:00
Federico Fissore df2ae88469 Updating arduino-builder to 1.0.3 2015-10-30 09:11:01 +01:00
Federico Fissore f5c1084f5f Fixed wrong i18n function name 2015-10-29 14:09:51 +01:00
Cristian Maglie ec7cc8c5cf Added check when setting serial port parameters
This allows to detect for invalid baud rate settings in
particular on Linux where the kernel do not allow non-standard
baud rates on some devices.

See #3389
See #3351
2015-10-29 13:58:29 +01:00
Federico Fissore a51723fe79 Updated and add libs 2015-10-28 16:43:33 +01:00
Federico Fissore 6a5ec40ca3 Updated translations 2015-10-27 17:18:52 +01:00
Federico Fissore aaf86b4a50 arduino-builder: sketchbook libraries specified as last param, because they
are more important
2015-10-27 15:55:01 +01:00
Federico Fissore d8d70ee0bd Windows: ":" is an illegal char for a file name. Fixes #4026 2015-10-26 18:14:05 +01:00
Federico Fissore 0102a58122 "static" makes sense for constants and few other things. Avoid it if you don't have a specific reason for using it. 2015-10-26 15:49:31 +01:00
Jesse Vincent 5b64cebdc5 Simplify and clarify new HID error messages.
The libraries in question are supported on a number of official Arduino boards. The new error message tries to be a bit more helpful.
2015-10-22 15:27:12 -07:00
Cristian Maglie 2ae36940c6 Fixed parsing for SystemProfiler on Macosx El Capitan
Should alleviate #3928
2015-10-20 23:36:56 +02:00
Cristian Maglie 28ad89d694 Make SystemProfilerParser.extractVIDAndPID() static
There is no need to instantiate a SystemProfilerParser object
each time extractVIDAndPID is invoked.

Added also `synchronized` keword to avoid reentrance problems
if the method is being used in multiple threads.
2015-10-20 23:34:27 +02:00
Cristian Maglie 9f5efe210a Removed a bunch of unused variables 2015-10-20 18:38:34 +02:00
Cristian Maglie 38701678b2 Specialized some Iterators with correct inferred type 2015-10-20 18:31:58 +02:00
Cristian Maglie 635de01975 Suppress java 'serial' warning in SignatureVerificationFailedException class 2015-10-20 18:30:27 +02:00
per1234 c1ce649554 Fix typos in ArchiveExtractor.java error messages 2015-10-12 14:34:52 -07:00
Federico Fissore 688c406cb9 Checking every candidate path when exporting, instead of assuming one is good if the other is not. Fixes #3905 2015-10-07 15:40:34 +02:00
Federico Fissore 5c7b8e6587 Don't stop downloading package*index.json files if ONE fails for whatever reason. Fixes #3906 2015-10-07 15:32:34 +02:00
Federico Fissore 417857ee45 Fixed a crashed when user attempted to delete a tab of a not yet compiled sketch. Fixes #3913 2015-10-07 15:17:33 +02:00
Federico Fissore aa654ba242 Updating arduino-builder to 1.0.0-beta24 2015-10-06 10:52:02 +02:00
Federico Fissore 69f3f9f807 Updated translations 2015-09-30 09:42:01 +02:00
Richard Wackerbarth d8f30549bc Extend platforms with Boards.local.txt 2015-09-29 07:36:36 -05:00
Federico Fissore f511c2451f Fallback to stock library_index.json file if the copy in .arduino15 is missing/corrupted or if it the downloaded one if corrupted. Fixes #3778 2015-09-25 12:54:50 +02:00
Federico Fissore 3872f5d315 Whoops, local packages were loaded at all. Fixed 2015-09-25 12:28:57 +02:00
Federico Fissore b82aebd99a If a package is already defined, don't replace it with the one found (for example) in sketchbook/hardware, but merge their contents. Fixes #3851 2015-09-25 12:05:19 +02:00
Federico Fissore 71c81e30a7 Allow highlighting line with error even if gcc reports full path to file 2015-09-24 16:24:48 +02:00
Federico Fissore fc8f84f06b Adding .elf extension to compiled sketch list 2015-09-24 15:37:49 +02:00
Federico Fissore 2f586e2a88 Updated translations 2015-09-23 15:38:57 +02:00
Federico Fissore 9421e1ceb5 Updating arduino-builder to 1.0.0-beta12 2015-09-23 14:11:32 +02:00
Federico Fissore ccb7dd2974 Made an arduino-builder message easier to understand 2015-09-22 15:03:19 +02:00
Federico Fissore 6128dace42 Removed some old code, including PdePreprocessor and OldCompiler 2015-09-21 15:20:31 +02:00
Federico Fissore 4f2621bd31 Updated translations. Some new languages graduated 2015-09-21 11:07:36 +02:00
Federico Fissore 8767cd51b4 Returning a copy of installed libraries list, so clients can deal with it without incurring in concurrent list changes. See #3814 2015-09-18 17:03:59 +02:00
Federico Fissore 5b84aef301 Build path is now a function of sketch path. This allows to recycle previously
compiled files even when working with different sketches at the same time. In
such cases, recompiling is way faster
2015-09-18 10:47:23 +02:00
Federico Fissore 682a5ec331 Faster recompilation of unsaved sketches 2015-09-16 14:51:37 +02:00
Federico Fissore f906d45de0 Better to separate arguments only when specifying paths, otherwise we can't specify empty args like "-warnings=" 2015-09-16 11:30:48 +02:00
Federico Fissore 6847c52428 arduino-builder arguments must be passed in separate cmd.addArgument calls, otherwise special chars will break it. Fixes #3798 2015-09-16 10:45:52 +02:00
Federico Fissore e5ddd0be3b New compiler 2015-09-14 15:21:15 +02:00
Federico Fissore dedbb2cc6e Update translations 2015-09-14 09:13:08 +02:00
Federico Fissore 57bff44d0a Boards Manager: if a tool is not resolvable, print a warning and DON'T add a null ref 2015-09-11 14:02:32 +02:00
Federico Fissore 43d855c28b Proxy selection was using old logic when url resulted in 302 2015-09-09 11:21:22 +02:00
Federico Fissore a4a7e3ec96 Libraries in unknown categories get set as Uncategorized. Fixes #3732 2015-09-08 15:30:34 +02:00
Sandeep Mistry 7fa355a702 Call on onBoardOrPortChange after selectBoard in no GUI mode
Like GUI mode does when a board is changed.
2015-09-01 18:08:12 -04:00
Federico Fissore d6ea1c05a6 Cleanup 2015-08-31 08:45:58 +02:00
Federico Fissore f2427b47f0 LoadVIDPIDSpecificPreferences was giving for granted that the attached board provided VID & PID. This is not always true, especially with counterfeits. Fixes #3738 2015-08-28 09:01:47 +02:00
Federico Fissore f605d1d99b Added support to VID+PID specific build properties 2015-08-27 10:40:02 +02:00
Federico Fissore d9bb8965eb Update translations 2015-08-25 16:00:49 +02:00
Federico Fissore 47451c0f82 Update translations 2015-08-24 16:42:13 +02:00
Federico Fissore 6b9048751e Proxy PAC support: SubnetUtils is not IPv6 aware, using CIDRUtils to check if IP is in range 2015-08-21 10:38:42 +02:00
Federico Fissore 5e518b9929 Added missing license headers 2015-08-21 08:41:50 +02:00
Federico Fissore 17032ec543 Added proxy PAC file support functions 2015-08-21 08:41:50 +02:00
Federico Fissore 0c7e0d6bb4 CustomProxySelector: auto proxy (PAC) needs login info too 2015-08-21 08:41:50 +02:00
Federico Fissore 916de939e6 Using new CustomProxySelector in FileDownloader 2015-08-21 08:41:50 +02:00
Federico Fissore 708da3bd86 Introducing CustomProxySelector 2015-08-21 08:41:50 +02:00
Federico Fissore e45f07d507 Added missing license headers 2015-08-13 11:33:35 +02:00
Federico Fissore bd93add964 Update translations 2015-08-07 17:30:12 +02:00
Federico Fissore ae857efa78 Updating translations 2015-08-06 14:27:57 +02:00
Federico Fissore 64bf90fec4 Translations: fixed a nasty bug that prevented new translations to be included 2015-08-06 13:19:08 +02:00
Federico Fissore 2daf330c09 LibraryInstaller and ContributionInstaller are now singletons: members of Base, they get passed to dependents, thus allowing a synchronized method execution, needed to avoid race conditions when accessing files 2015-08-06 10:27:51 +02:00
Federico Fissore dc93bb93d0 ProgressListener is now a method arg (was an instance arg) 2015-08-06 10:27:51 +02:00
Federico Fissore b3baa27435 ContributionInstaller.onProgress is now a collaborator: ProgressListener 2015-08-06 10:27:51 +02:00
Federico Fissore c61c39f5d9 Canceling self check timer when opening boards/libs manager 2015-08-06 10:27:51 +02:00
Federico Fissore f9612bcdbd Updatable boards support and libraries notification 2015-08-06 10:27:51 +02:00
Federico Fissore 59dfede5ac Libraries with a .development file in their root are flagged as "OnDevelopment".
This allows users to edit and save those libraries examples: they won't be flagged as read-only any more
2015-08-05 16:26:21 +02:00
Federico Fissore 52fd3845ca Working on how sketches are marked readonly.
Initial refactorings: stopped using static members (static is evil)
2015-08-05 16:01:10 +02:00
Federico Fissore cb292d6114 Got rid of Guava lib: java 8 has its features builtin 2015-08-05 12:09:24 +02:00
Federico Fissore 50cacc1756 Got rid of Java 8 warnings about _ as a method name 2015-08-05 09:12:40 +02:00
Federico Fissore 5dd73a1828 Updating translations 2015-08-05 09:07:59 +02:00
Federico Fissore ce595ce818 Updating translations 2015-07-10 12:31:43 +02:00
Federico Fissore 5d388e1646 Cleanup and java8 goodness 2015-07-09 15:20:38 +02:00
Federico Fissore 43f33d8220 Tools marked as installed but missing (as when you want to use a system installed avr-gcc) sets to "" the final build preference. Fixes #3074 2015-07-09 15:16:19 +02:00
Federico Fissore 444babdcb8 Merge pull request #3483 from sandeepmistry/issue-2911
Hide stack trace when the SerialUploader cannot find the selected board
2015-07-09 09:25:41 +02:00
Chris--A 7f061ccb0c This adds 'hh' and 'hpp' as valid sketch files.
For completeness a sketch should allow the same extensions as a
library. These missing sketch extensions have already been enabled for
libraries in #3186.
2015-07-09 04:23:33 +10:00
Federico Fissore 0ad73ebed3 Boards manager, nightly core support: missing negation on String.empty() made check report an opposite result 2015-07-08 14:46:48 +02:00
Federico Fissore 03a66b1035 Applying code inspection suggestions 2015-07-08 14:46:44 +02:00
Federico Fissore dae6e4fff7 Dropping Guava predicates in favour of java.util.function.Predicate 2015-07-08 14:20:25 +02:00
Federico Fissore bf3fc880ac Compiler: compiled sketch discovery was missing merged sketch 2015-07-07 17:15:39 +02:00
Sandeep Mistry 40c8c067b6 Hide stack trace when the SerialUploader cannot find the selected board (#2911) 2015-07-04 09:47:46 -04:00
Federico Fissore 14586afcf5 Fixed possible NPE 2015-07-03 18:09:56 +02:00
Federico Fissore 987cad2633 Added core "post install" and "pre uninstall" script support.
If a core has a post/pre install/uninstall script, it will be execute at the appropriate time IF:
1) source (package_*_index) is trusted (GPG signed)
2) or users have explicitly added line "contributions.trust.all=true" to their preferences.txt
Some minor refactor and clean up while I was at it
2015-07-03 16:35:08 +02:00
Federico Fissore d02cdfdb07 If a contribution misses its checksum, consider it a development build: force re-downloading by deleting previously downloaded files and skip checksum verification 2015-07-02 15:04:10 +02:00
Federico Fissore fef4e56044 Tools path unversioned properties are adjusted right before compiling.
This way, when multiple versions of, e.g., bossac are installed and
a platform uses bossac 1.5, core author will be able to specify just
tools.bossac.path={runtime.tools.bossac.path}
and the IDE will set it to right version of bossac
Fixes #3325
2015-07-01 17:11:25 +02:00
Federico Fissore 32cf196271 "Merge sketch with bootloader" and "save hex" should work flawlessly with cores that save binaries in both buildpath/sketch and plain buildpath 2015-07-01 15:23:17 +02:00
Federico Fissore 259fefecb2 Updating translations 2015-07-01 12:59:36 +02:00
Federico Fissore f1bed21d1a Pulling from transifex: waiting 3 seconds before retrying 2015-07-01 12:58:28 +02:00
Federico Fissore 8e2c3c777c Compiler: #3435 introduced a bug: you needed to save a file for it to be copied to build path. Hence, restored previous "copy sketch file" logic, couples with a recursive one, used only for files external to the sketch (in subfolders) 2015-06-30 15:32:33 +02:00
Federico Fissore 9a01e30675 Compiler: don't filter out existing sketch files, overwrite them. Fixes #3440 2015-06-30 15:18:19 +02:00
Federico Fissore 4313f2ab42 Updating translations 2015-06-30 14:39:54 +02:00
Federico Fissore d5253e1690 Transifex pull: made script more kind when networks fails 2015-06-30 14:39:03 +02:00
Federico Fissore c4de750253 Added library version to "Using library X..." verbose notification 2015-06-30 10:41:32 +02:00
Federico Fissore ecb4eaf861 Compiler: additional files with allowed extentions are recursively copied to build folder. Fixes #3080 2015-06-30 09:36:43 +02:00
Federico Fissore a853372872 Compiler: fixed wrong check against non existent folder and a possible NPE 2015-06-29 15:32:32 +02:00
Federico Fissore e097439eab Compiler: sketch files get compiled into "sketch" 2015-06-29 15:11:45 +02:00
Federico Fissore 5a35be06da Compiler: cores files get compiled under "core", libraries under "libraries". Fixes #2997 2015-06-29 15:11:45 +02:00
Federico Fissore 46058a5bf6 BaseNoGui.currentDirectory needs to be initialized before anything else 2015-06-29 15:10:42 +02:00
Federico Fissore f169ef95aa Windows: using BaseNoGui.getContentFile instead of directly using "user.dir" property 2015-06-29 14:47:19 +02:00
Federico Fissore 6e8e3a7bad Falling back to "user.dir" in case "APP_DIR" is missing 2015-06-29 14:47:13 +02:00
Federico Fissore b8b1dc2327 Dropping --curdir CLI argument support 2015-06-29 14:28:16 +02:00
Federico Fissore 85ae80b6f9 Introducing APP_DIR property. Allows the IDE to know its installation folder.
Also upgrading appbundler with a patched version: https://bitbucket.org/ffissore/appbundler It allows to know the current working directory
These two put together, we can now rely on APP_DIR when loading IDE resources while being sure current working directory is properly set, thus being much more friendly when run from CLI
Fixes #1493
2015-06-29 14:28:16 +02:00
Federico Fissore 16e18467dd Updating translations 2015-06-26 13:18:01 +02:00