Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Avoid "Debug > Open Brackets Source" hitting symlink bug #6692 - #9399

Merged
JeffryBooher merged 2 commits into
releasefrom
pflynn/avoid-symlink-bug
Oct 2, 2014
Merged

JeffryBooher merged 2 commits into
releasefrom
pflynn/avoid-symlink-bug

Conversation

@peterflynn

Copy link
Copy Markdown
Member

Just spotted this... the new "Open Brackets Source" command added in #8859 is somewhat dangerous, because in developer setups it'll open a symlink alias to the actual git source tree. On Macs, this means hitting #6692 -- file watching stops working, but Brackets doesn't realize it and keeps caching files anyway. It's a fairly nasty bug to hit in a folder where you're quite likely to have external changes (e.g. git syncing).

Proposed fix here is to open the folder as an OS folder view instead of switching projects within Brackets. The original use case in #8795 (what #8859 was addressing) was just to be able to double-check where the 'set up for hacking' copy of the source is coming from, and I think this still covers that quite well. (Plus it avoids any potential confusion -- the first time I clicked it, it was surprising that I was getting prompted about unsaved changes, etc., since it's not obvious that the action includes closing your current project).

…ead of

opening it in Brackets, to avoid opening a symlink path and hitting #6692.
@peterflynn

Copy link
Copy Markdown
Member Author

Nominating for 0.44 since it's an easy fix to prevent the bug going into the wild.

@JeffryBooher

Copy link
Copy Markdown
Contributor

Change looks good. Tested on OSX 10.8 -- brackets folder opened in Finder

This was causing a travis build failure
JeffryBooher added a commit that referenced this pull request Oct 2, 2014
Avoid "Debug > Open Brackets Source" hitting symlink bug #6692
@JeffryBooher
JeffryBooher merged commit 893efc2 into release Oct 2, 2014
@JeffryBooher
JeffryBooher deleted the pflynn/avoid-symlink-bug branch October 2, 2014 11:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants