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
PlatformIO Core. If you’ve found a bug, please provide an information below.
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: linux
PlatformIO Version (platformio --version): 3.3.1, tested on 3.0.4b12 also
Description of problem
Some automatically installed libraries do not compile, but they do compile normally if place them in "lib" dir manually.
My project uses "espressif8266" platform, but I don't think it matters.
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
const char *ssid = "xxxxxxxx"; // cannot be longer than 32 characters!
const char *pass = "yyyyyyyy"; //
// Update these with values suitable for your network.
IPAddress server(172, 16, 0, 2);
void callback(const MQTT::Publish& pub) {
// handle message arrived
}
WiFiClient wclient;
PubSubClient client(wclient, server);
void setup() {
// Setup console
Serial.begin(115200);
delay(10);
Serial.println();
Serial.println();
client.set_callback(callback);
}
void loop() {
if (WiFi.status() != WL_CONNECTED) {
Serial.print("Connecting to ");
Serial.print(ssid);
Serial.println("...");
WiFi.begin(ssid, pass);
if (WiFi.waitForConnectResult() != WL_CONNECTED)
return;
Serial.println("WiFi connected");
}
if (WiFi.status() == WL_CONNECTED) {
if (!client.connected()) {
if (client.connect("arduinoClient")) {
client.publish("outTopic","hello world");
client.subscribe("inTopic");
}
}
if (client.connected())
client.loop();
}
}
Additional info
The main misunderstanding is that if I place the same library to project "lib" directory and remove "lib_deps" from environment config - everything will compiles just great without any errors
The text was updated successfully, but these errors were encountered:
What kind of issue is this?
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: linux
PlatformIO Version (
platformio --version
): 3.3.1, tested on 3.0.4b12 alsoDescription of problem
Some automatically installed libraries do not compile, but they do compile normally if place them in "lib" dir manually.
My project uses "espressif8266" platform, but I don't think it matters.
Steps to Reproduce
Actual Results
error while compiling
Compiling .pioenvs/board/src/mqtt_basic.ino.o
Archiving .pioenvs/board/libFrameworkArduinoVariant.a
sh: 1: Syntax error: "(" unexpected
Indexing .pioenvs/board/libFrameworkArduinoVariant.a
Expected Results
compilation completes with no errors
If problems with PlatformIO Build System:
looks like it is, some logs in "actual results"
The content of
platformio.ini
:Source file to reproduce issue:
mqtt_basic.txt
Additional info
The main misunderstanding is that if I place the same library to project "lib" directory and remove "lib_deps" from environment config - everything will compiles just great without any errors
The text was updated successfully, but these errors were encountered: