Checklist
Relevant Version Numbers
- Tide:
v5.1.3
- TypeScript:
tsc --version Version 5.5.4
- Emacs:
29.4
Steps to Reproduce the Bug
Not a bug but I have done some debugging for errors very similar to #438 and #87.
Expected Behavior
When the tsserver process cannot start, it would be good to see why in the message buffer.
Actual Behavior
In many occasions this does happen.
I was able to get good output by setting this:
(set-process-sentinel process #'tide-net-sentinel)
In my case the error was:
Couldn’t locate project root folder with a tsconfig.json or jsconfig.json file. Using ’/home/user/.config/emacs/lib/tide/’ as project root.
At the point I kind of asked myself why that's the case and stumble across Emacs Async Processes page. It might be the case that start-process, being a wrapper, does not do much with regards to :stderr (see make-process).
I am not sure cause haven't tried (yet) but probably using make-process would give more control over the output and will end up showing the right message.
Checklist
M-x tide-restart-serverin the buffer where I had the problem.M-x tide-verify-setupare correct.tsc(andtslint, if applicable) without the error or warning I'm seeing in tide.tsc(ortslint, if applicable) reports the error or warning I was expecting to see.typescript-modeortsserver.Relevant Version Numbers
v5.1.3tsc --version Version 5.5.429.4Steps to Reproduce the Bug
Not a bug but I have done some debugging for errors very similar to #438 and #87.
Expected Behavior
When the
tsserverprocess cannot start, it would be good to see why in the message buffer.Actual Behavior
In many occasions this does happen.
I was able to get good output by setting this:
(set-process-sentinel process #'tide-net-sentinel)In my case the error was:
Couldn’t locate project root folder with a tsconfig.json or jsconfig.json file. Using ’/home/user/.config/emacs/lib/tide/’ as project root.At the point I kind of asked myself why that's the case and stumble across Emacs Async Processes page. It might be the case that
start-process, being a wrapper, does not do much with regards to:stderr(seemake-process).I am not sure cause haven't tried (yet) but probably using
make-processwould give more control over the output and will end up showing the right message.