bluelovers / idea-run-typescript

IntelliJ IDEA (and WebStorm...) plugin to support 'TypeScript' as a run configuration
https://plugins.jetbrains.com/plugin/10841-run-configuration-for-typescript
75 stars 14 forks source link

There is redundant content output in the terminal console when running TS files #42

Open Shadow-XT opened 2 years ago

Shadow-XT commented 2 years ago

When I run the TS file, the terminal will display redundant content such as "] 0; D: RunEnv NodeJS node. exe", which outputs the location and redundant characters of my node executable file. Although this has no impact on the running result of the program, the redundant content will still appear ugly on the terminal, affecting my observation of the results. The specific results are shown in the figure below.The red box is the redundant output content.

image

Zxilly commented 1 year ago

Same problem image

SteinwaySons commented 1 year ago

Luckily, I solve this problem! First, a special thanks to "intellij-support.jetbrains.com" engineer's support! Here is part of my request communicated with the engineer. And this link (TypeScript programming issue with WebStorm) towards my request website page.

image

We might as well go over what happened. I told the engineer what npm packages I have already installed. What I have done to my WebStorm IDE. Finally, the engineer found out that this question you asked caused by the plugin - Run Configuration for TypeScript! Those his exact words are shown in the snapshot below. image

I put the related document link here. Hope it works for you. ws_ts_run_debug_server_side_ts_node

After reading the document carefully, I reconfigure my WS Run/Debug Configuration dialog. It works! Here is my configurations. image image

And here is my code and running result. image image

And the end, let's make a joke that we are victims of the plugin indeed. XD~~

SteinwaySons commented 1 year ago

@Shadow-XT Does my solution works to you?

Shadow-XT commented 1 year ago

@SteinwaySons The method you mentioned does work, and running ts can be achieved through configuration. If it's not a bug in this plugin, I still think this plugin is more convenient to use, because with this plugin, a single ts file can be run directly by right-clicking without configuration.

SteinwaySons commented 1 year ago

@SteinwaySons The method you mentioned does work, and running ts can be achieved through configuration. If it's not a bug in this plugin, I still think this plugin is more convenient to use, because with this plugin, a single ts file can be run directly by right-clicking without configuration.

Yeah! I couldn't agree more. Hope someone one official could take this issue seriously!

bluelovers commented 3 months ago

https://github.com/bluelovers/idea-run-typescript/issues/49#issuecomment-2290995885