Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent error when saving file on fresh Starlight instance in WSL #13044

Open
1 task done
Azim-Palmer opened this issue Jan 22, 2025 · 0 comments
Open
1 task done
Labels
needs triage Issue needs to be triaged

Comments

@Azim-Palmer
Copy link

Azim-Palmer commented Jan 22, 2025

Astro Info

Astro                    v5.1.8
Node                     v23.1.0
System                   Linux (x64)
Package Manager          pnpm
Output                   static
Adapter                  none
Integrations             @astrojs/starlight

Describe the Bug

Note : This only seems to occur when running in WSL

I intermittently see this error when saving files on a fresh starlight install (~1 out of 4-5 times)

InvalidContentEntryDataError: **docs → welcome/welcome** data does not match collection schema.
**title**: Required
    at getEntryDataAndImages (file:///home/azim/code/hero/core/apps/hero-docs/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/content/utils.js:163:26)
    at async parseData (file:///home/azim/code/hero/core/apps/hero-docs/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/content/content-layer.js:192:40)
    at async syncData (/home/azim/code/hero/core/apps/hero-docs/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/content/loaders/glob.js:94:28)
    at async FSWatcher.onChange (/home/azim/code/hero/core/apps/hero-docs/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/content/loaders/glob.js:233:9)
    at process.handleUnhandledRejection (file:///home/azim/code/hero/core/apps/hero-docs/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/vite-plugin-astro-server/plugin.js:69:23)
    at process.emit (node:events:507:28)
    at emitUnhandledRejection (node:internal/process/promises:252:13)
    at throwUnhandledRejectionsMode (node:internal/process/promises:388:19)
    at processPromiseRejections (node:internal/process/promises:475:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:106:32)

If I save the file again without making any changes it goes away, but often then doesn't update the page with additional edits until after I manually perform a full page reload

I've tried reproducing :

  • on a fresh instance of Astro inside WSL
  • on a fresh instance of Astro outside WSL
  • on a fresh instance of Starlight outside WSL
  • on a fresh instance of Starlight on stackblitz

and cannot repro in those environments, suggesting it's something to do with running it inside WSL

What's the expected result?

Edit cycle works as expected on a fresh install

Link to Minimal Reproducible Example

See notes : I can't repro this on stackblitz

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Jan 22, 2025
@Azim-Palmer Azim-Palmer changed the title Intermittent error when saving file on fresh Starlight instance Intermittent error when saving file on fresh Starlight instance in WSL Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant