Sublime Forum

[BUG] Sublime reports incorrect window folder

#1

Hi,
I’ve encountered a bug in sublime, where under certain conditions the plugin API reports an incorrect folder for the active window.

Steps to Reproduce:

  1. Open Sublime
  2. Choose “File > Open Folder” and open any folder (this will open a new window)
  3. Close the old window
  4. Close the new window
  5. Delete the folder
  6. Re-open sublime
  7. Choose “View > Open Console” and type “sublime.active_window().folders()”

What happens:
The now deleted folder is reported

What should happen:
Some default folder should be reported

This issue triggers a bug in the popular anaconda package and may cause problems for other packages as well.

0 Likes