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
{{ message }}
Repository navigation
Replace LDF deep with native GCC Preprocessor #3113
@ivankravets Is there any current PRs/work on this issue? Or, is it no longer a priority since explicit declaration into lib_deps and using a different LDF mode is a valid workaround?
JustTryingToGetSomeWorkDone commented on Dec 1, 2023
I'm still experiencing this issue and it prevents me from using VS Code\PlatformIO for embedded programming. If I can't compile, it's useless. I'm not going to spend hours setting up every library with workarounds for every little project that comes my way. My time spent working around my libraries not working will quickly outpace my time spent programming.
Running into this issue. compiling header files that aren't used and have other dependancies means I have to download the lib, put it in my project libs folder and delete the files I'm not using and aren't required.
When building, WebSerialStream.h /cpp are included, though not needed for this build, adding another library dependancy for WebServer.h which is also not required.
In file included from .pio/libdeps/client/TLog/src/WebSerialStream.cpp:21: .pio/libdeps/client/TLog/src/WebSerialStream.h:28:10: fatal error: WebServer.h: No such file or directory
Makes the built in library management a lot less useful.
Activity
italocjs commentedon Sep 3, 2023
Hello, i have seen multiple issues (mentioned here), and the only workaround that worked for me was adding lib_ldf_mode = deep
Is this the best approach for an workaround? Is there any planning to work on this issue?
ivankravets commentedon Sep 4, 2023
@italocjs, yes, this is a good temporary solution. Another way is to directly declare dependencies in
lib_deps. See https://docs.platformio.org/en/latest/projectconf/sections/env/options/library/lib_deps.htmlbrentru commentedon Sep 26, 2023
@ivankravets Is there any current PRs/work on this issue? Or, is it no longer a priority since explicit declaration into lib_deps and using a different LDF mode is a valid workaround?
JustTryingToGetSomeWorkDone commentedon Dec 1, 2023
I'm still experiencing this issue and it prevents me from using VS Code\PlatformIO for embedded programming. If I can't compile, it's useless. I'm not going to spend hours setting up every library with workarounds for every little project that comes my way. My time spent working around my libraries not working will quickly outpace my time spent programming.
ivankravets commentedon Dec 1, 2023
@JustTryingToGetSomeWorkDone , could you provide more details on your issue?
ScaredyCat commentedon May 31, 2024
Running into this issue. compiling header files that aren't used and have other dependancies means I have to download the lib, put it in my project libs folder and delete the files I'm not using and aren't required.
Example: including TLog library ( https://registry.platformio.org/libraries/makerspaceleiden/TLog ):
`#include <TLog.h>
#include <TelnetSerialStream.h>
TelnetSerialStream telnetSerialStream = TelnetSerialStream();`
When building, WebSerialStream.h /cpp are included, though not needed for this build, adding another library dependancy for WebServer.h which is also not required.
In file included from .pio/libdeps/client/TLog/src/WebSerialStream.cpp:21: .pio/libdeps/client/TLog/src/WebSerialStream.h:28:10: fatal error: WebServer.h: No such file or directoryMakes the built in library management a lot less useful.