Skip to content

dev mode crashes poorly #17

@NfNitLoop

Description

@NfNitLoop

Saw an issue today when running in dev mode:

  • Saved a .ts file with invalid syntax.
  • ESBuild failed to bundle the files.
  • embedder.ts crashed.
  • But the deno task serve which was serving the dev assets was still running, serving old assets.

This has two problems:

  • Makes it hard to figure out why I'm not seeing my new code.
  • Even on discovering that it's broken, now I have to find a dangling deno process to kill to clean up the old server.

Should make sure to kill the inner task process when the main task exits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions