Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

non-fatal error on Adafruit Feather M0: cannot open source file "sam.h" #749

Closed
pomplesiegel opened this issue Jan 10, 2019 · 4 comments
Closed

Comments

@pomplesiegel
Copy link

When attempting to compile example code or other code for the Adafruit Feather M0, the code successfully compiles. However, this is shown as a "problem" at the top of my project:

{
"resource": "/Users/michael/Desktop/tempDev/eepromTest/eepromTest.ino",
"owner": "generated_diagnostic_collection_name#0",
"severity": 8,
"message": "cannot open source file "sam.h" (dependency of "/Users/michael/Library/Arduino15/packages/adafruit/hardware/samd/1.2.9/cores/arduino/Arduino.h")",
"startLineNumber": 4,
"startColumn": 1,
"endLineNumber": 4,
"endColumn": 54
}

I am using the full intellisense feature and have disabled the fallback, as that is the only way I could get syntax highlighting to work.

Any thoughts? Thank you!

@LYWalker
Copy link

I have the same problem with the Adafruit Metro M0 Express

@LYWalker
Copy link

Fixed by adding:

"C:\\Users\\------\\AppData\\Local\\Arduino15\\packages\\**"

Into the includePath in my c_cpp_properties.json file

@stale
Copy link

stale bot commented Apr 16, 2019

This issue has been automatically marked as stale and closed because it has not had recent activity. Please feel free to open a new issue if you would like further discussion. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2019
@stale stale bot closed this as completed May 29, 2019
@rickoman
Copy link

I had the same problem fresh install. Adding the path recommended by LYWalker fixed the problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants