Mbed-os: Stream.h missing from mbed.h

Created on 25 Jul 2020  路  6Comments  路  Source: ARMmbed/mbed-os

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 error not a class or struct name
because Stream.h is missing

IOTOSM-2138 OPEN mirrored bug

All 6 comments

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neilt6 picture neilt6  路  4Comments

bcostm picture bcostm  路  4Comments

cesarvandevelde picture cesarvandevelde  路  4Comments

chrissnow picture chrissnow  路  4Comments

ghost picture ghost  路  4Comments