Skip to content

Importing project adds extra incomplete lines in CMakeLists.txt #207

@maqifrnswa

Description

@maqifrnswa

Describe the bug
Importing project adds extra incomplete lines in CMakeLists.txt that will cause builds to fail. This was observed on 4 different Apple silicon macbooks out of a class of 65.

To Reproduce

  1. Create a minimal project (e.g., "Create C project" with just Console over UART)
  2. Delete .vscode, .build, .gitignore, pico_sdk_import.cmake.
  3. import the project
  4. there will be extra mangled lines in CMakeLists.txt that cause builds to fail

Expected behavior
Those extra characters shouldn't be there

Screenshots
Photo from a student's computer. 4 different students observed the same behavior.

Image

Platform (please complete the following information):

  • OS: macOS
  • Architecture: Arm64

Additional context
Maybe the original content is longer than the new content - so the old content is being written out even though it should be done?

file.write(content)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions