Commit Graph

209 Commits

Author SHA1 Message Date
Federico Fissore 4748e9df5e Avoid warning about SCCS folders in libraries, just ignore them. Fixes #3237 2015-05-27 11:26:00 +02:00
Federico Fissore 56e0349287 Allowing editing .S files. Fixes #1616 and #3059 2015-05-26 12:04:12 +02:00
Federico Fissore 8a1e6c8a9b CollectStdOutExecutor and CollectStdOutStdErrExecutor were plain wrong, were losing data and were blocking compilation. Fixes #3124 and #3115 2015-05-25 16:34:25 +02:00
Federico Fissore ab7b7351f5 Removed lots of calls to BaseNoGui.getPlatform(): static is evil 2015-05-22 15:58:47 +02:00
Federico Fissore 76c5d99123 ZipFile and Socket are not Closable in java 1.6 2015-05-22 09:21:20 +02:00
Federico Fissore 94b16a550e Faster library list downloading by downloading gzipped version 2015-05-21 17:02:21 +02:00
Federico Fissore 365b0bdc94 Closing streams using IOUtils.closeQuietly
Fixed badly handled stream found in the meanwhile
2015-05-21 16:50:49 +02:00
Federico Fissore 9ddb72b519 Moved DownloadableContribution and DownloadableContributionDownloader to parent package 2015-05-21 15:37:58 +02:00
Federico Fissore 37adee2553 Merge pull request #3194 from ffissore/windows-jna
Got rid on JNA
2015-05-21 10:25:54 +02:00
Federico Fissore 9166828bfe Due to website configuration changes, every url starting with http://arduino.cc has been changed to http://www.arduino.cc. Fixes #3191 2015-05-20 17:10:06 +02:00
Federico Fissore f6546aea45 Windows: got rid on JNA, thus no more UnsatisfiedLinkError (at least when accessing native OS functions). Fixes #3190 2015-05-20 16:33:33 +02:00
Federico Fissore 026210564d Several File.list() calls missed check for null return value. Fixed 2015-05-20 16:32:27 +02:00
Federico Fissore 0b4a4fb0b5 No need to use static variables 2015-05-20 11:42:44 +02:00
Chris--A b2f8b9b6c1 IDE: prevent multiple bad name notifications.
This patch will prevent the IDE from informing the user about a bad
sketch folder name multiple times.

Now the user is informed once at start up only, or once when it is
detected during a rescan of the folders.
2015-05-20 11:35:46 +02:00
Chris--A af812a551b Added support for .hh and .hpp libraries 2015-05-20 01:36:11 +10:00
Federico Fissore 9191442aea Libraries: fixed incorrect handling of null types 2015-05-19 16:26:03 +02:00
Federico Fissore 42b07f0337 Libraries bundled with cores will take the type of that core, instead of relying on an undocumented 'types' property. Fixes #2875 2015-05-19 12:24:11 +02:00
Federico Fissore 4c3de26631 Don't export sketch if the underlying core does not support it. Fixes #3171 2015-05-18 13:34:29 +02:00
Federico Fissore d008d9de81 Merge pull request #3141 from cmaglie/fix-recursive-delete
Fix for FileUtils.recursiveDelete() when dealing with symbolic links
2015-05-15 16:50:22 +02:00
Federico Fissore 7816ee3f10 New Preferences window: renders fine on every OS and it's easier to adapt using NetBeans as visual editor. Fixes #3140 2015-05-15 15:52:52 +02:00
Cristian Maglie 971bd77058 Removed redundant call to File.deleteIfExists()
file is already checked for being not null, no need to check again.
2015-05-14 19:36:37 +02:00
Cristian Maglie 956ddda98e Removed buggy redundant check in FileUtils.deleteIfExists()
The documentation for File.delete() says that the method return true
if the the file is successfully deleted, otherwise false is returned.
An exception is thrown only when the file is not accessible (for
permission problem).

Removing the extra check solves another problem, for example in a
folder with the following situation:

    linkToFileA -> FileA
    FileA

if we remove FileA, we remain with a broken link that can't be removed
using FileUtils.deleteIfExists() because calling File.exists() on a
broken link returns *false*. This commit solve this problem.
2015-05-14 19:18:24 +02:00
PaulStoffregen 0210c6b53a Fix Uncategorized warning message 2015-05-13 14:00:30 -07:00
Federico Fissore 74ace6674a Better naming and use of File constructor (avoids hardcoding system dependent path separator) 2015-05-13 10:21:57 +02:00
Federico Fissore 90a533b82c Using FileUtils.copyFile instead of dealing with raw streams 2015-05-13 10:16:09 +02:00
Federico Fissore 96b7c5ec6b MacOSX: fixed some failing tests 2015-05-12 15:23:22 +02:00
Federico Fissore e8c4980c4e Added BaseNoGui.VERSION_NAME_LONG: it includes "Hourly Build DATE" in case of a hourly build 2015-05-11 10:48:52 +02:00
Federico Fissore 5064af486f Added .editorconfig files http://editorconfig.org/ 2015-05-08 10:18:43 +02:00
ricardo.jl.rufino c3e1a9443c simple code refactor on PdePreprocessor 2015-05-07 17:15:49 +02:00
Arnav Gupta 4d029de000 saveHex: rename recipe.hex -> recipe.output
Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
2015-05-07 11:57:12 +02:00
Arnav Gupta 78936541b7 update Sketch menu, add Save hex option
* Moving Upload options from "File" menu to "Sketch" menu as those
     are sketch actions more than file actions.

Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
2015-05-07 11:57:12 +02:00
Federico Fissore 11327bb3a6 Starting 1.6.5 2015-05-07 11:56:38 +02:00
Federico Fissore d0d9aa82d1 Merge pull request #3017 from cmaglie/programmer-pref-override
programmer.txt definitions must have priority over platforms.txt tools definitions
2015-05-06 15:49:33 +02:00
Federico Fissore e2bf41ddd9 MacOSX: fixed error when clicking on https urls. Fixes #3083 2015-05-06 09:11:00 +02:00
Federico Fissore 03a43370b7 Added missing license headers to files added with the last commits 2015-05-05 14:29:15 +02:00
Federico Fissore 85b2298ca7 When IDE is started and built in core is newer than installed one and this check hasn't been notified before, show "please update" modal 2015-05-05 13:03:28 +02:00
Federico Fissore de95ef6c41 Predicates: extracting anonymous inner classes for better reuse 2015-05-05 11:56:56 +02:00
Federico Fissore 9b58812d1d Preparing the ground for rewriting Preferences GUI code (and hopefully fixing the tiny-pref-window bug on macosx) 2015-05-05 10:02:12 +02:00
Federico Fissore 7e7a9d0fe8 Disabling uncertified boards warning even in java code, for good measure 2015-05-05 09:17:50 +02:00
Federico Fissore 060ec30e1c GPGSignatureVerification: better error handling when reading signature 2015-05-05 08:49:01 +02:00
Federico Fissore 0c123d7d14 Deleting json files if they are some how corrupted. Fixes #3015 2015-05-04 17:44:16 +02:00
Federico Fissore 875a775e93 Mitigates #3074 by avoiding NPE. Making the IDE work with system toolchains remains to be fixed 2015-05-04 17:28:39 +02:00
Federico Fissore cd49d29e52 Lots of unclosed input and output streams now properly closed. They were preventing Boards Manager from working on Windows 2015-05-04 15:44:34 +02:00
Federico Fissore 19bb40cbb1 ContributionInstaller: downloadIndex -> download 2015-05-04 12:54:12 +02:00
Federico Fissore a214564952 Boards Manager: platforms listed in non-signed package index files goes under "Contributed" category 2015-05-04 12:05:50 +02:00
Federico Fissore cddfa2891e Boards Manager: package index file with name starting with "test_package_" are preserved 2015-05-04 12:05:50 +02:00
Federico Fissore ecf432fadc Boards Manager: downloading additional files as specified in preference 'boardsmanager.additional.urls' 2015-05-04 12:05:50 +02:00
Federico Fissore 1f1f5b5c0e Copying bundled signature file if missing from user's preferences folder 2015-05-04 12:05:50 +02:00
Federico Fissore cf1879f948 Introducing GPG signature verification when loading main package_index file 2015-05-04 12:05:50 +02:00
Federico Fissore 804480ce53 ContributionIndexer now loads and merges content of files named package_SOMETHING_index.json 2015-05-04 12:05:49 +02:00