formulahendry / formulahendry/vscode-code-runner
Running ts-node does not print any output when trying to use local ts-version
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 351
- PR merge metrics
- No merged PRs in 30d
Description
I have a ts project that use ts-node
- VS Code Version: 1.77.3
- OS Version: Mac Ventura
- Code Runner Version: 0.12
**Describe the bug**
I want to execute some code, but output is always blank
**To Reproduce**
Steps to reproduce the behavior:
1. console.log(42)
2. ctrl+option+n
**Actual behavior**
Description of what happened actually.
**Expected behavior**
The output should print result
**Screenshots**
with terminal output false

with terminal output true

I've tried different settings:
1.
"typescript": {
"command": "node_modules/.bin/ts-node",
"cwd": "${workspaceFolder}",
"shell": "/usr/local/bin/fish"
},
2.
"typescript": {
"command": "node -r ts-node/register",
"cwd": "${workspaceFolder}",
"shell": "/usr/local/bin/fish"
},
only "typescript": "npx ts-node" works
if i just use "typescript": "node_modules/.bin/ts-node" or "typescript": "node -r ts-node/register" got an error `No such file or directory`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.