-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
ts-node executable hangs, won't enter repl #690
Comments
Okay, it looks like if I pass the It seems like |
I have the same problem
never gets to prompt. It seems to be doing something. I can see that by CPU usage. I am running global ts-node
|
@thehappycoder not sure if you saw my follow up comments here, pass the -P option and give it a blank config perhaps and you should be fine |
(obviously not ideal and clearly this is an actual problem) |
This is, unfortunately, how TypeScript works with an empty project. If you're initializing on a huge directory it will traverse the entire thing looking for all |
@whistlerbrk Would you like to comment on what you feel the correct solution is? |
options:
I think 1 or 2 is best. People want to install something and use it, not configure it first, it isn't a great experience for newcomers. |
@whistlerbrk And what is "sane defaults"? Why isn't the current configuration "sane"? |
Because it hangs? and provides no error message? Are we seriously debating whether launching an executable and it not doing anything, not returning access to the REPL, and not failing is okay behaviour? I must be missing something here |
@whistlerbrk I'm not debating anything, I'm just wanted to understand what sane behaviour is to you so I don't waste time implementing something you don't think is sane. You didn't exactly specify any behaviour in your comment, you just said "sane defaults". Obviously, when originally implemented, it appears this was sane (as opposed to insane). |
@blakeembrey fair enough, apologies for the tone. There is no current configuration essentially. Further, A confused user may then see I say |
That makes sense. Generally it is an option because I tried to make
|
Interesting, I suppose the first makes more sense if the goal is to mock tsc, however, I think of REPLs as interactive playgrounds first, so I still think the second is best. |
Thank you @blakeembrey ! |
@whistlerbrk It won't be released for a bit until 8.0, since it is a breaking change (with the others). I did, unfortunately, notice an issue with my fix since |
It would be great if there was a command+args (for example, I'm not 100% clear on what change #700 makes. Let me know if it addresses this. |
I think it addresses that. It just loads the default REPL without any config. This issue was a problem with TypeScript treating no file input as search all directories. If you do |
I never reach the repl, only
ts-node -h
works, I can't even print a version.maybe some useful debugging information?
It appears to failing here:
which is a call made in
readConfig
the arguments provided to this
parseJsonConfigFileContent
function are as follows:That's as far as I've taken the debug. Hoping someone can point me in the right direction
The text was updated successfully, but these errors were encountered: