Skip to content

Running MakeCode locally does not save projects on filesystem #6021

@lobodpav

Description

@lobodpav

Describe the bug

Following the official instructions I have run MakeCode locally.

The documentation states that

If you have created a PXT project from the web browser, you can go to its folder (it will sit under projects) and use the CLI to build and deploy it.

However, the project directory is empty.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a folder of your liking, say /Users/pavel/makecode
  2. As stated in the CLI documentation, run:
    npm install -g pxt
    mkdir microbit
    cd microbit
    pxt target microbit
    pxt serve
  3. The application opens up in Chrome at http://localhost:3232/index.html#editor
  4. Create a new project called test and do some changes
  5. Run ls -la /Users/pavel/makecode/microbit/projects

Expected behavior
The directory listing should show a test directory with the project content.

Actual behavior
The /Users/pavel/makecode/microbit/projects directory is empty.

Desktop (please complete the following information):

  • Computer: MacBook Pro M2 Max
  • OS: macOS Sequoia 15.1.1
  • Browser: Chrome v131.0.6778.86
  • pxt-core: v11.3.3

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