Skip to content

corrupt json config files cause cathastrophic chain failure #13829

Closed

Description

@edolis

Just wanted to share this, as I came out of a day of debugging and attempts and reinstalling activity

In a project in Platformio, using cpp files, a json file got corrupted in some way and became binary.
effect is that the extension fails to load, which in turns caused platformio to fail to load.
You might consider handling these cases gracefully.

Discovered after spotting this message in the Help Developer tools of Vstudio
Activating extension 'ms-vscode.cpptools' failed: cannot open file:///d%3A/MyStuff/........er/.vscode/c_cpp_properties.json. Detail: File seems to be binary and cannot be opened as text.

Activity

  1. sean-mcmanus commented on Aug 6, 2025

    @sean-mcmanus
    Contributor

    edolis I see the error appear in a popup. Do you know why you didn't see that popup? Have you disabled those or what version of VS Code are you using?

    Image
  2. sean-mcmanus commented on Aug 6, 2025

    @sean-mcmanus
    Contributor

    edolis I have a fix at #13832 .

  3. moved this from Pull Request to Done in cpptoolson Aug 7, 2025
  4. edolis commented on Aug 7, 2025

    @edolis
    Author

    Image I did not see any popup, nothing modal for sure, cannot remember any floating notification as well. I came to discover just looking at the VScode Help>Toggle Developer Tool>Console.
    No idea what version was the cpptools - but I think it was on autoupdate so I assume the latest.

  5. locked and limited conversation to collaborators on Sep 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions