Terminal Crash

Every time I stop a sapphire project using watch my terminal crash
Solution:
Terminal version was the problem thank you !
Jump to solution
10 Replies
Favna
Favna•6mo ago
Please provide more info - what terminal - what shell - what operating system - what's your watch script - do you mean actual crashing or does it just exit.
simnJS
simnJSOP•6mo ago
No description
simnJS
simnJSOP•6mo ago
"watch:start": "tsc-watch --onSuccess "npm run start"", I'm on windows 11
Favna
Favna•6mo ago
Installing PowerShell on Windows - PowerShell
Information about installing PowerShell on Windows
Terminal Profiles in Visual Studio Code
Visual Studio Code's integrated terminal allows configuring various profiles to make launching various shells easier.
How to Change the default Terminal in Visual Studio Code | bobbyhadz
A step-by-step illustrated guide on how to change the default terminal in Visual Studio Code, on Windows, macOS and Linux.
Favna
Favna•6mo ago
Either way this will not be related to sapphire. This can only happen if you call process.exit(5) in your own code, in a library used, or similar. Sapphire doesn't execute such code.
Solution
simnJS
simnJS•6mo ago
Terminal version was the problem thank you !
Favna
Favna•6mo ago
Kyra did some investigating in the background and it turns out that windows is misleading and despite the path saying v1.0 the actual version was 5.1. That said, that's still old deprecated powershell as opposed to modern v7.
simnJS
simnJSOP•6mo ago
Yeah I installed latest version I never had this problem with next nest etc, I don't know why it appen with sapphire
Favna
Favna•6mo ago
No idea either but like I said not related to sapphire. I would assume that if you use tsc-watch in another project the problem exists there too
MRDGH2821
MRDGH2821•6mo ago
On a side note, I still wonder why Microsoft bundles PS 5.1, while it advertises PS 7, especially for non-business users 🤔
Want results from more Discord servers?
Add your server