Giter VIP home page Giter VIP logo

Comments (5)

johnlindquist avatar johnlindquist commented on August 16, 2024 1

There's now an "error prompt" which should appear when errors are thrown:
CleanShot 2021-07-22 at 15 33 32

from kit.

johnlindquist avatar johnlindquist commented on August 16, 2024

Does the log at ~/.kit/logs/kit.log give any more info? It may be an error being caught in the App itself

from kit.

kentcdodds avatar kentcdodds commented on August 16, 2024

There's nothing about "replace" in that file and it doesn't appear to have any useful logs around that same time.

from kit.

johnlindquist avatar johnlindquist commented on August 16, 2024

I'm in the middle of a refactor, so I'll just info dump on you :D. If you don't figure it out, I'll definitely try on Thursday (big family day tomorrow)

Looks like Kit is swallowing uncaught exceptions without logging the stack.

You can play around with the following process.on("uncaughtException")lines:
https://github.com/johnlindquist/kit/blob/beta/api/kit.js#L108

On your machine, that's ~/.kit/api/kit.js

  1. Any changes you make to that file will automatically be picked up in the next run. So feel free to tweak/play as if you're just writing a script.
  2. On the next update, the .kit dir is completely wiped, so don't do any "real work"
  3. Worst case scenario, you can quit Kit.app, rm -rf ~/.kit, then open Kit.app to recreate the .kit dir
  4. You can run npm run dev in the root of .kit if you'd prefer to use TypeScript (it's all in src)
  5. Please don't worry about PRs for now. You'd have to clone kit to ~/.kit, submit PRs on the alpha branch, then manually pull from the beta branch on each new Kit.app update.

Or just wait until Thursay 😅

from kit.

kentcdodds avatar kentcdodds commented on August 16, 2024

Thanks for that info @johnlindquist! If I bump into this again then I'll do some digging with that 👍

from kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.