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.
STM32 Nucleo-F767ZI
PlatformIO ST STM32
mbed-os-6.2.0
toolchain-gccarmnoneeabi @ 9.2.1
#include TextLCD.h HD44780 library https://os.mbed.com/components/HD44780-Text-LCD/
class TextLCD : public Stream gives following error not a class or struct name
because Stream.h is missing
@sstaub thank you for raising this issue.Please take a look at the following comments:
What target(s) are you using?
What toolchain(s) are you using?
We cannot automatically identify a release based on the version of Mbed OS that you have provided.
Please provide either a single valid sha of the form #abcde12 or #3b8265d70af32261311a06e423ca33434d8d80de
or a single valid release tag of the form mbed-os-x.y.z .
E.g. '6.2' has not been matched as a valid tag or sha.It would help if you could also specify the versions of any tools you are using?
How can we reproduce your issue?
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.
Please update the issue header with the missing information, the issue will not be mirroredto our internal defect tracking system or investigated until this has been fully resolved.
I can't find a pull request that would remove Stream.h , was it included previously ?
My assumption would be this removed it via classes that depend on Stream.h: https://github.com/ARMmbed/mbed-os/pull/12410 . It was a clean up of deprecated functionality.
I can see USB drivers are using Stream.h.
@kjbracey-arm @rajkan01 do you remember any detail about Stream class
I can't find a pull request that would remove Stream.h , was it included previously ?
My assumption would be this removed it via classes that depend on Stream.h: #12410 . It was a clean up of deprecated functionality.
I can see USB drivers are using Stream.h.
@kjbracey-arm @rajkan01 do you remember any detail about Stream class
Yes, previously Stream.h header included via drivers/Serial.h header file. As part of the cleanup, the deprecated class was removed and Serial.h the header in #12410.
I am not sure why that header file was not included directly in mbed.h header file instead
I am not sure why that header file was not included directly in mbed.h header file instead
A missed bit. If the class is used (it is in USB drivers) so should be exposed, shouldn't be?
@rajkan01 worth fixing ? We can send a pull request
cc @adbridge if you got a chance to review this and fix?
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/IOTOSM-2138