mikaeljorhult / brackets-todo

Brackets/Edge Code extension that displays all TODO comments in current document or project.
144 stars 37 forks source link

Brackets Crash Ruby Truncating Files #157

Open KevinJCLi opened 6 years ago

KevinJCLi commented 6 years ago

When I use Windows PowerShell to open a Ruby file that contains a script to open a text file and truncate it, brackets will crash. This can either by from opening the file in write mode open(filename, 'w') or with filename.truncate(x).

I have confirmed this has to do with the Todo extension by only having this extension running and performing the test.

Steps to Reproduce

  1. Write a ruby script that involves opening a file in write mode target = open(filename, 'w')

  2. Run the script in your terminal while having brackets with the Todo extension loaded,

  3. Boom

Versions

Windows: 10 Brackets: 1.12 Todo: 0.9.7 PowerShell: 5.1.16299.251