Skip to content

Support for editing library code #4085

Closed
@lmihalkovic

Description

@lmihalkovic

Libraries are a great way to enhance the platform popularity. There is not good technical reason why the IDE cannot be altered to support editing them.

feature should cove

  • initial creation
  • source code editing
  • community submission

Proposed reference design
arduino-2015-11-02 at 1 26 08 pm

(ps: this is actually a limited but working implementation)

Activity

matthijskooijman

matthijskooijman commented on Nov 5, 2015

@matthijskooijman
Collaborator

Cool! I might have missed it, but did you have a PR open with this code? Or do you perhaps just have it pushed to github somewhere so I can take a peek?

lmihalkovic

lmihalkovic commented on Nov 5, 2015

@lmihalkovic
Author

As I wrote somewhere else, I was having some technical challenges (read: I was twisting myself in the ropes) with altering arduino-builder to support that feature and the customizable link priority scheme I also described, so I had to back-track and implement my own compiler. The redeeming factor is that I made it a config param to switch between all 3 compilers.

matthijskooijman

matthijskooijman commented on Nov 5, 2015

@matthijskooijman
Collaborator

What changes do you need in arduino-builder for this? To allow modified-but-not-saved library files to be included in the build?

lmihalkovic

lmihalkovic commented on Nov 5, 2015

@lmihalkovic
Author

At the moment the IDE uses CTL-L to go to a given line of code. In eclipse the default is to use CTRL-G (goto). In the library editor I was thinking about (read: am currently) using CTRL-L for opening the library's folder in the OS navigator (Finder/Explorer/... on Linux).

arduino-2015-11-05 at 11 05 52 am

Does anyone have a better suggestion for OpenLib, or might it be possible to switch CTRL-L to CTRL-G instead?!

PS: the files list is gone because the outline view is more practical, and "show build folder" is for opening the location where the builder is compiling everything (powerHackers might find it easier than to grad it from the console after a compile finishes). So the last section of the menu is for context-dependent (lib, ........) contributed menu items.

self-assigned this
on Nov 5, 2015
lmihalkovic

lmihalkovic commented on Nov 26, 2015

@lmihalkovic
Author

Done

modified the milestone: Release 1.6.7 on Nov 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature requestA request to make an enhancement (not a bug fix)

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @matthijskooijman@ffissore@lmihalkovic

      Issue actions

        Support for editing library code · Issue #4085 · arduino/Arduino