Skip to content

V5.0 Sloeber wrongfully adds pde from the library OSC to the sloeber.ino.cpp #1701

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
jantje opened this issue Dec 14, 2024 · 3 comments
Closed
Assignees
Labels
status: workaround documented A workaround has been confirmed to solve this issue.

Comments

@jantje
Copy link
Member

jantje commented Dec 14, 2024

As reported in #1694

When including the library OSC (version 1.3.7 in my test) you will find these lines in sloeber.ino.cpp which should not be there.

#include "D:\arduinoPlugin\libraries\OSC\1.3.7\Applications\Processing\SLIPSerialToUDP\GUI.pde"
#include "D:\arduinoPlugin\libraries\OSC\1.3.7\Applications\Processing\SLIPSerialToUDP\SLIPSerialToUDP.pde"
#include "D:\arduinoPlugin\libraries\OSC\1.3.7\Applications\Processing\SLIPSerialToUDP\Serial.pde"
#include "D:\arduinoPlugin\libraries\OSC\1.3.7\Applications\Processing\SLIPSerialToUDP\UDP.pde"
#include "D:\arduinoPlugin\libraries\OSC\1.3.7\Applications\Processing\UDPReceiveBundle\UDPReceiveBundle.pde"
#include "D:\arduinoPlugin\libraries\OSC\1.3.7\Applications\Processing\UDPReceiveMessage\UDPReceiveMessage.pde"
#include "D:\arduinoPlugin\libraries\OSC\1.3.7\Applications\Processing\serialSend\serialSend.pde"

Due to sloeber thinking these files are part of your sketch other stuff is added to the sloeber.ino.cpp which causes " a whole slew of errors"

Workaround: exclude arduino/[your config probably Release]/libraries/OSC/Applications from the build by right clicking the Applications folder->resource configurations->exclude from build->select all the configs->ok

Note that the OSC library did not cause this problem in Sloeber V4 because Sloeber V4 only processed .ino/.pde files in the root of the project where V5 allows you to have .ino/.pde files anywhere in the project.

@jantje jantje added the status: workaround documented A workaround has been confirmed to solve this issue. label Dec 14, 2024
@jantje jantje self-assigned this Dec 14, 2024
@jantje
Copy link
Member Author

jantje commented Dec 14, 2024

This should be fixed

@jantje jantje closed this as completed Dec 14, 2024
@TrippyLighting
Copy link

I can confirm that this has been fixed and works as expected. Thank You!

@jantje
Copy link
Member Author

jantje commented Jan 3, 2025

Thanks for confirming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: workaround documented A workaround has been confirmed to solve this issue.
Projects
None yet
Development

No branches or pull requests

2 participants