Skip to content

Caching issue when deleting and recreating a project with the same nameΒ #47

@WolfGreyDev

Description

@WolfGreyDev

Branch: next

When deleting a project and recreating it with the same name, a caching issue occurs that prevents proper project initialization.

Steps to Reproduce

  1. Create a project using sy create (e.g., name it "cache-test")
  2. Delete the project
  3. Attempt to recreate a project with the same name ("cache-test") in the same location
  4. See the error: Project cache has not been created

Expected Behavior

The project should be recreated successfully without caching issues, similar to creating a new project.

Actual Behavior

The command fails with a cache-related error. The issue appears to stem from cached files/folders in .syncify that aren't properly cleared when a project is deleted.

Additional Context

➜  playground sy create

β”Œβ”€ Syncify ~ 12:25:54
β”‚
β”‚  v1.0.0-unstable.2
β”‚
β”‚  Hello Hacker πŸ‘‹
β”‚
β”‚  This command prompt can be used to jump start a new project. Choose one of the
β”‚  open source themes or usage examples available. Alternatively, you can import a
β”‚  theme from a store and Syncify will strap it for you.
β”‚
β”‚  Strap Source:     βž”  themes
β”‚  Choose Strap:     βž”  dusk
β”‚  Project Name:     βž”  cache-test
β”‚  Storage Method:   βž”  env
β”‚  Shopify Domain:   βž”  wolfgrey-playground.myshopify.com
β”‚  API Admin Token:  βž”  shpat_55e3f3c1e8***8ef56**5085d1
β”‚  Installation:     βž”  pnpm
β”‚  ERROR
β”‚
β”‚  Project cache has not been created
β”‚
└─ Syncify ~ 12:26:22

Temporary Workaround

Manually remove any existing .syncify cache folders before recreating the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    unstableAny issue that relates to the unstable/next branch

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions