Skip to content

Examples aren't available for contributed libraries installed manually #602

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

Closed
kengregson opened this issue Nov 12, 2021 · 1 comment
Closed
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@kengregson
Copy link

Examples included with libraries installed manually (copied into the sketchbook libraries directory) aren't available in the File->Examples dropdown menu.

Examples from Custom libraries installed via the library manager are available. The examples are displayed and accessible when using version 1.8.16 of rhe IDE.

The Contributed libraries themselves are visible and available to include in the sketch from the menu Sketch->Include Library.

To Reproduce
Steps to reproduce the behavior:

  1. Download a third-party library
  1. Copy the libraries to ~/Arduino/libraries
  • cp -r ~/Downloads/github.com/jrowberg/i2cdevlib/Arduino/I2Cdev ~/Arduino/libraries
  • cp -r ~/Downloads/github.com/jrowberg/i2cdevlib/Arduino/MPU6050 ~/Arduino/libraries
  1. Start a new project in the arduino2 IDE
  • select a board (I'm using a UNO)
  1. Observe contributed libraries are available and can be included in sketch as shown in screenshot via:
  • Sketch->Include LIbrary->I2Cdev
  • Sketch->Include Library->MPU6050
  1. The error: however library examples are not available in File->Examples as shown in second screenshot
  • Examples from libraries installed via the library manager are available (eg. the Adafruit Motor Shield library seen on the screenshot)

Screenshots attached

Desktop (please complete the following information):

  • OS: linux
  • Version: ubuntu 20.04
  • Arduino IDE: 2.0.0-beta.12, Date: 2021-10-07T07:55:21.158Z
  • CLI Version: 0.19.1 alpha [718bbbf2]

MPU6050_test | Arduino IDE 2 0 0-beta 12_001
MPU6050_test | Arduino IDE 2 0 0-beta 12_003

@kengregson kengregson added the type: imperfection Perceived defect in any part of project label Nov 12, 2021
@per1234
Copy link
Contributor

per1234 commented Nov 12, 2021

Thanks for taking the time to submit an issue.

I see we already have a prior issue report about this at #40

It's best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.


As mentioned in #40, you'll find the examples all in this untitled menu item:

image

@per1234 per1234 closed this as completed Nov 12, 2021
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Nov 12, 2021
@per1234 per1234 self-assigned this Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants