-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Difficult to synchronise libraries across multiple code revisions #3793
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
Comments
Use git for version control, then you never need to move them. Just switch branches. The compilation process grabs the whole directory for each library so its best to keep a single version accessible at a time. The main library folder being documents\Arduino\libraries? I'm not sure I follow your second issue. I develop all my libraries from the main library folder. I have my lib open in N++, my sketch in the IDE, and Git running in the background. A desktop/taskbar shortcut is what you're looking for, no? |
You assume I'm technical enough to install and use git, or that thousands of others are. Why can't the Arduino IDE just take care of this for me? Load up my sketch, select 'show libraries' or something like that, and get them opened up at the same time. |
By looking at your profile, which I did before posting, game me the impression that you would at least have the basic usage of Git/GitHub IDE already sussed out. Regardless of your capabilities, the IDE is not designed to look after version control of custom libraries. It can only update/revert libraries installed via the library manager. The IDE's role is to build sketches, libraries are essentially pre-built expansions. Editing these from the IDE has been discussed, and a possibility for the future, however at the moment it is a project based environment requiring an .ino file. You can create your library as a sketch first then move it over to the library folder. Having the IDE show the libraries folder may be useful, but creating your own desktop shortcut is sufficient, and is something that is incredibly easy to find information on how to do. You also need to realize that there is more than one location containing libraries. If you want to know what is installed, the library manager will provide this information for you too. Not to mention the examples drop-down lists everything available. |
If library management isn't meant to be a function of the IDE then I understand. Still frustrating though when you want to develop libraries for a new chip and test it blow-by-blow. |
Related to #3512. In particular see #3512 (comment). As @Chris--A said, as of now, the IDE is a tool for building sketches. With |
Had the issue that my tabs were not visible because I had too many of them. Needed to be able to search inside the source of libraries as well a my code. Wanted to write my code cleanly as libraries... short version: #4050. I keep the libs code in a separate folder and symlink them into "sketchabc/libraries/LIBxxxx" "sketchdef/libraries/LIBxxxx". Then in the editor I can open sketchabc and see/edit the source code for the sketch as well as for LIBxxxx. seems like a workable workflow so far.. |
Hi all,
Been using Arduino now for years. Problem is I like to have my libraries open alongside my main program during development. And I keep different versions as I go along.
So...my directory structure ends up quite messy, with multiple copies of my libraries at various stages of development as my project progresses.
Is there any way you could let me just select a 'show libraries' button so I can keep my libraries in the main library folder yet still have them ready to view and edit?
The text was updated successfully, but these errors were encountered: