Serial Error in VS Code

Hello all,
I have two copies of Visual Code with PlatfromIO. I am writing code for Arduino UNO board. On one computer all is fine. On the second computer the same code give me an error on the “Serial” code word. It says it is not part of the language. Both computers are running Windows 10.

Thanks
Peter

1 Like

Please show a screenshot of VSCode on the computer that’s not working that shows the error, and a screenshot of the installed extension list.

1 Like

Hello Maxgerhardt,
I found the issue. The files though showing in the workspace in VS were not files that PlatformIO recognised as being files belonging to it. I had to add the projects to PlatformIO and then they worked correctly.

Thank You
Peter Cook