You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Blink * * Turns on an LED on for one second, * then off for one second, repeatedly.*/
#include"Arduino.h"voidsetup()
{
// initialize LED digital pin as an output.pinMode(LED_BUILTIN, OUTPUT);
}
voidloop()
{
// turn the LED on (HIGH is the voltage level)digitalWrite(LED_BUILTIN, HIGH);
// wait for a seconddelay(1000);
// turn the LED off by making the voltage LOWdigitalWrite(LED_BUILTIN, LOW);
// wait for a seconddelay(1000);
}
Additional info
I guess the main questions are:
The neomake linter wants to use clang++ by default. Is this correct, or should neomake be using a different system for linting?
If clang++ is the correct linter, what is the best way to tell clang++ where the platformio libraries are located?
If clang++ is not the correct linter, what commands should neomake be running instead?
The text was updated successfully, but these errors were encountered:
I'm sure you've already found a suitable answer, @lynndylanhurley, but for future readers, I've written a simple plugin for solving this problem in a general way.
Configuration
Operating system:
Mac OS X 10.11.6
PlatformIO Version (
platformio --version
):3.1.0
Description of problem
Using Vim, the neomake linter plugin can't seem to find the Arduino libs. Here is the complete output of the error.
This is the command that is run:
And this is the error:
platformio run
works just fine.Steps to Reproduce
platformio init --board megaatmega2560
src/main.cpp
Actual Results
The following error:
Expected Results
There should be no linter errors.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
I guess the main questions are:
neomake
linter wants to useclang++
by default. Is this correct, or shouldneomake
be using a different system for linting?clang++
is the correct linter, what is the best way to tellclang++
where theplatformio
libraries are located?clang++
is not the correct linter, what commands shouldneomake
be running instead?The text was updated successfully, but these errors were encountered: