Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically install libraries that a user imports, if not already installed #3155

Merged
merged 7 commits into from Mar 30, 2015

Conversation

joelmoniz
Copy link
Member

This fixes #2566. It basically checks for whether the imported libraries are already installed or not. If one or more of them aren't, and if any/all of them are available, a dialog menu is displayed to the user listing the available, not installed libraries. Selecting Yes installs the libraries and runs the sketch, while selecting No simply runs the sketch directly (which eventually displays an error due to the missing library).

Note: This adds a new field, imports, to the library.properties file, where the most commonly used headers of the library are listed.

@Manindra29
Copy link
Member

@joelmoniz Did you check with @prisonerjohn about adding new fields to library.properties? This modification shouldn't break compatibility with existing libraries.

@joelmoniz
Copy link
Member Author

joelmoniz commented Mar 18, 2015 via email

@benfry
Copy link
Contributor

benfry commented Mar 30, 2015

Looks like we need an update for this one so that I can merge it against the current repo.


if (contribution != null) {
contribListing.replaceContribution(ad, contribution);
if (base.getActiveEditor() != null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please always use { and } for all blocks, no single statements, please. Too prone to errors.

@joelmoniz
Copy link
Member Author

Whoops. Sorry about the formatting, lack of enclosing curly braces and the merge conflict. I shall update things and push up another commit right away.

@joelmoniz
Copy link
Member Author

@benfry Sorry about that. The brackets and indentation ought to be fixed now, and things should be auto-mergeable.

benfry added a commit that referenced this pull request Mar 30, 2015
Automatically install libraries that a user imports, if not already installed
@benfry benfry merged commit f61914b into processing:master Mar 30, 2015
@benfry
Copy link
Contributor

benfry commented Mar 30, 2015

Thank you; much appreciated!

@joelmoniz joelmoniz deleted the feature-autoInstallLibs branch April 5, 2015 12:27
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check if library is installed before running sketch; if not, prompt to install
3 participants