brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] Clicking file extension in Working Files always opens second file #3327

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by TuckerWhitehouse Tuesday Apr 23, 2013 at 00:13 GMT Originally opened as https://github.com/adobe/brackets/issues/3542


If I have more than 1 file open in the working set, and I click on the file extension of any items in the working set, it attempts to open, and then immediately open the second file.

core-ai-bot commented 3 years ago

Comment by jasonsanjose Tuesday Apr 23, 2013 at 02:26 GMT


I think I'm misreading your description. Clicking any part of a file name in "Working Files" (working set) will open that file. All we've done this sprint is change the styling of the file extension to be gray.@TuckerWhitehouse Can you clarify?

core-ai-bot commented 3 years ago

Comment by TuckerWhitehouse Tuesday Apr 23, 2013 at 02:51 GMT


Yea so, let's say I launch a clean install of brackets, and i've got index.html open from the Getting Started project, and then from the list, I open main.css, if I then click on ".html" in index.html in the working files list, the index.html will be opened, and then quickly, it will switch back to main.css. I attached a .gif so I hope that helps show what's happening.

You can see the title change to index.html for a brief moment on click (I click the extensions two time), and then I click the name (index) and the file changes as expected.

WorkingFiles

core-ai-bot commented 3 years ago

Comment by peterflynn Tuesday Apr 23, 2013 at 04:14 GMT


UTR for me, at least as of last time I synced with master (20184f2). Tagging Sprint 24 until we can figure it out for sure, though.

core-ai-bot commented 3 years ago

Comment by jasonsanjose Tuesday Apr 23, 2013 at 13:58 GMT


Interesting. Thanks for the .gif. Do you have any extensions installed?

core-ai-bot commented 3 years ago

Comment by TuckerWhitehouse Tuesday Apr 23, 2013 at 14:10 GMT


Nope, I removed them all to make sure, and still get the problem :/

core-ai-bot commented 3 years ago

Comment by jasonsanjose Tuesday Apr 23, 2013 at 20:28 GMT


I'm still only seeing 1 document change and nothing out of the ordinary at all.@TuckerWhitehouse If you don't mind, can you try clearing your cache (or temporarily renaming it) at /Users/TuckersUserName/Library/Application Support/Brackets and try to reproduce again?

You might also check if you have any extensions in your github repo under brackets/src/extensions/dev.

core-ai-bot commented 3 years ago

Comment by peterflynn Tuesday Apr 23, 2013 at 20:43 GMT


And if you're pulling the source from git, maybe double-check that you're run git submodule update --init recently...

core-ai-bot commented 3 years ago

Comment by TuckerWhitehouse Tuesday Apr 23, 2013 at 21:49 GMT


I actually wrote myself a script to fetch from github, build the shell, update the submodules, and clear the cache, so it's like i'm always working with a fresh build...

################################################################################
## brackets-shell
################################################################################
cd ~/Public/brackets-shell

## Fetch
git fetch upstream
git merge upstream/master
git submodule update --init
git push

## Setup
npm install
sudo npm install -g grunt-cli

## Build
grunt

################################################################################
## brackets
################################################################################
cd ~/Public/brackets

## Fetch
git fetch upstream
git merge upstream/master
git submodule update --init
git push

## Hacking
tools/setup_for_hacking.sh ~/Public/brackets-shell/xcodebuild/Release/Brackets.app

################################################################################
## Launch
################################################################################
# Delete Cache
rm -r ~/Library/Application\ Support/Brackets/cef_data/

# Open
open ~/Public/brackets-shell/xcodebuild/Release/Brackets.app

Update: Apparently only to an extent (a fresh build that is). I removed everything associated with brackets (source, shell, library folder, etc) and then set up again, and now the issue seems to have gone away.

core-ai-bot commented 3 years ago

Comment by jasonsanjose Tuesday Apr 23, 2013 at 21:56 GMT


Good news and nice work on your script. I'll close this issue. Thanks for the quick response.