New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File tree collapses by itself #14616

Open
yzoned opened this Issue Dec 19, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@yzoned
Copy link

yzoned commented Dec 19, 2018

Prerequisites

  • Can you reproduce the problem with Debug -> Reload Without Extensions?
  • Did you perform a cursory search to see if your bug or enhancement is already reported?
  • Did you read the Troubleshooting guide?

Description

File tree collapses when clicking sub directory. Console shows the following error when clicking on a sub directory:

/preferences/PreferencesBase.js:666
Uncaught TypeError: Cannot create property 'C:/path/to/folder/here/' on string ''

brackets_bug

I can make the file tree work by changing line 266 in /project/ProjectManager.js

ActionCreator.prototype.setDirectoryOpen = function (path, open) {
  this.model.setDirectoryOpen(path, open).then(_saveTreeState);
};

to this

ActionCreator.prototype.setDirectoryOpen = function (path, open) {
  this.model.setDirectoryOpen(path, open);
};

Steps to Reproduce

  1. Click directory on the file tree
  2. Click sub directory

Expected behavior: The sub directory should expand.

Actual behavior: The parent directory collapsed.

Versions

Windows 10
Release 1.13 build 1.13.1-17699 (windows-release-1.13.1 fc2ebbe)

@shubhsnov

This comment has been minimized.

Copy link
Collaborator

shubhsnov commented Jan 4, 2019

Is this happening with all folders or just this one? I am not able to reproduce this.

@yzoned

This comment has been minimized.

Copy link

yzoned commented Jan 4, 2019

It's happening in all folders. I see this bug in my laptop but not in my desktop. Both have Windows 10 and similar software environment. Started having this issue after a Brackets update, but don't remember anymore which one was it unfortunatelly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment