microsoft / microsoft/pxt-arcade

Syncing a project from github without a pxt.json file hangs the editor

Open
#498 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

extension p2
Dominant language
TypeScript
Stars
546
Forks
263
Avg merge
7h 35m
Merged PRs (30d)
46

Description

Describe the bug
If your project doesn't have a pxt.json file, and you import it. It'll appear in the projects list, but clicking on it will cause the loading screen to show forever.

To Reproduce
Steps to reproduce the behavior:

  1. Create a github repo that contains a main.blocks & main.ts file, but no pxt.json
  2. Set up the arcade with you GitHub token
  3. Try to import the code from the repo that you've created

Result
The loading screen remains forever.

Expected behavior
Either an option to add a pxt.json or an error message indicating that this project cannot be imported because it's missing a pxt.json file. I would probably only invest in the second as this seems like a relatively small scenario.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the import using a GitHub repository containing main.blocks and main.ts but no pxt.json, after setting up the Arcade GitHub token. Trace the project import and editor-loading path to identify where the missing file is handled. Done means the import reports that pxt.json is missing instead of leaving the loading screen indefinitely.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.