Vscode-code-runner: tempCodeRunnerFile.js not being deleted

Created on 29 Mar 2019  路  6Comments  路  Source: formulahendry/vscode-code-runner


  • VS Code Version: 1.32.3
  • OS Version: Windows 10 Pro 1809
  • Code Runner Version: 0.9.7

Describe the bug
If I highlight a code snippet -> right click -> Run Code the tempCodeRunnerFile.js is created but not deleted after it's executed

To Reproduce
Steps to reproduce the behavior:

  1. Highlight Code Snippet
  2. Right Click
  3. Run Code
  4. tempCodeRunnerFile.js is not deleted

Actual behavior
tempCodeRunnerFile.js is executed and not deleted after execution

Expected behavior
tempCodeRunnerFile.js is executed and deleted

Screenshots
Untitled

Untitled2

bug

Most helpful comment

@alanlunspace Are you running code in terminal? If yes, it will not be deleted.

All 6 comments

This issue has been fixed. Please try the latest v0.9.9 version

This comes back for latest v0.9.15 on macOS 10.14.6.

@alanlunspace Are you running code in terminal? If yes, it will not be deleted.

Thanks for your prompt reply @formulahendry .
May I know how can I run code in terminal and also delete the temp file?

I'd also like to know how I can run code in terminal whilst also deleting the temp file.

@formulahendry

If not run in the terminal, when output Chinese characters will garbled.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spacesuitdiver picture spacesuitdiver  路  3Comments

bhavinkamani picture bhavinkamani  路  4Comments

ElektroStudios picture ElektroStudios  路  4Comments

N2ITN picture N2ITN  路  5Comments

rana picture rana  路  5Comments