-
Notifications
You must be signed in to change notification settings - Fork 3k
Stream.h missing from mbed.h #13354
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
Comments
@sstaub thank you for raising this issue.Please take a look at the following comments: What target(s) are you using? NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered. |
I can't find a pull request that would remove My assumption would be this removed it via classes that depend on I can see USB drivers are using @kjbracey-arm @rajkan01 do you remember any detail about Stream class |
Yes, previously |
A missed bit. If the class is used (it is in USB drivers) so should be exposed, shouldn't be? |
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
@adbridge Can you look at this one? |
@rajkan01 So if stream.h was removed because previously it was in Serial.h , shouldn't stream.h instead be included in the replacement for Serial.h ? ie bufferedserial.h and/or unbufferedserial.h ? |
@sstaub while we debate if / where Stream.h should sit, one point to note is that the TextLCD you are using is actually from Mbed 2 and will have not been tested / ported to Mbed 5 or Mbed 6 so there are no guarantees of it working... |
I have made some LCD libraries which are updated for Mbed 6 I published also on my Mbed site, I included the Stream.h manually, but I think this class should included in mbed.h |
Thanks for the feedback, it looks to me it was previously exposed as @rajkan01 wrote and it's public API:
|
I've been pushing for a long time for Here was my attempt to do that deprecation: #5655 I didn't manage to win the debate then. We've since replaced Previously it would have been picked up accidentally by mbed.h getting it from Serial.h. As it is still public API, mbed.h should be including it explicitly now for anyone using it. I'd still like to deprecate it though. |
Sorry, this absolut ugly. Does anybody from ARM read the forum? Most people are not happy about the way Mbed goes. |
Description of defect
Stream.h is missing in mbed.h
This cause problems with libraries using the Stream classes, this problems comes up with v6.x
Before the Stream.h was included in mbed.h.
Target(s) affected by this defect ?
STM32 Nucleo-F767ZI
Toolchain(s) (name and version) displaying this defect ?
PlatformIO ST STM32
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.2.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
toolchain-gccarmnoneeabi @ 9.2.1
How is this defect reproduced ?
#include TextLCD.h
HD44780 library https://os.mbed.com/components/HD44780-Text-LCD/class TextLCD : public Stream
gives following errornot a class or struct name
because Stream.h is missing
The text was updated successfully, but these errors were encountered: