Open core-ai-bot opened 3 years ago
Comment by tomByrer Monday Apr 28, 2014 at 15:06 GMT
I've noticed this also while editing HTML & hoping to open the Quick Edit CSS:
I'm rather certain that col-sm-3
is in bootstrap.min.css.
Comment by lkcampbell Monday Apr 28, 2014 at 15:19 GMT
@
MiguelCastillo, I tried out the scenario you described above and it is working correctly for me on Brackets 38, Mac OS Mavericks. Also works correctly on my latest dev build of 39.
What is happening when you try to bring the Quick Edit? Nothing? Or are you getting the red twipsy that says that the quick edit can't be opened?
Comment by lkcampbell Monday Apr 28, 2014 at 15:27 GMT
@
tomByrer, it might be failing because the file is minified. I'm not even sure that Quick Editing a minified file would be useful for you anyway. Can you get a regular version of the file and use that for your development instead?
Comment by tomByrer Monday Apr 28, 2014 at 19:18 GMT
it might be failing because the file is minified
Urm CSS minification only takes out whitespace, so you're telling me Bracket's CSS parser depends on whitespace?!? But since you requested, I used the unminified version, & still no rules.
Does Brackets use a CSS parser like mensch?
Comment by lkcampbell Monday Apr 28, 2014 at 19:33 GMT
@
tomByrer, I don't know for sure, would have to dig into the code. I'm just doing some quick troubleshooting to rule in or rule out the source of the problem. I will play with it a bit and see if I can repro the problem as well.
Comment by tomByrer Monday Apr 28, 2014 at 19:45 GMT
More testing:
css/form-entry.css
. Save As.. new file.main.css
which I did have in my previous .HTM but I deleted that <link>
! I did a Find on main.css
, & there were 0 references in my current HTM.main.css
, & it found the correct rule (still no <link href="css/main.css"...>
in my HTM remember)link
ed css/form-entry.css
, & Brackets could not find it.I hope this narrows down the problem?
Comment by lkcampbell Monday Apr 28, 2014 at 19:46 GMT
@
tomByrer, you are correct, the minified file does pop up in the Quick Edit. It's not pretty, but it does work.
However, I am not reproducing your problem. Let me look through the info you just posted and see if I can find anything.
Comment by tomByrer Monday Apr 28, 2014 at 19:54 GMT
Thanks for your persistent research!
After more testing, it seems only rules in my main.css
can be found via Quick Edit, but not my other CSS files.
Comment by TomMalbran Monday Apr 28, 2014 at 19:55 GMT
Brackets looks for the CSS files that are in the folder currently open in the project tree/sidebar. It doesn't look if the files are actually linked or looks for files that are not in the current folder, even if the files are open.
Comment by lkcampbell Monday Apr 28, 2014 at 19:55 GMT
@
tomByrer, it doesn't look like you need to have a link in your HTML to have the CSS pop up in your list of possible CSS. I created a project with only two files: test.html and test.css. No links in the HTML file. test.css still shows up. I believe it just goes through the project. Is bootstrap in your current project?
Comment by tomByrer Monday Apr 28, 2014 at 20:09 GMT
Brackets looks for the CSS files that are in the folder currently open in the project tree/sidebar
I don't have any folders open in the Project Tree; I didn't know this was needed. Either way, how is Brackets finding css/main.css
? But that does 'fix' the issue at hand sort of...; I can now Quick Edit the first reference Brackets finds. But that means there are other bugs:
main.css
if the folder is not open in Project Tree, which may be unlinked.<link>
s.Should all these have separate issues opened? Thanks for all you help guys!
Comment by lkcampbell Monday Apr 28, 2014 at 20:23 GMT
@
tomByrer, Yes, it would probably be a good idea to get your suggestions posted. The "only show CSS files that are linked to the current HTML" is an intriguing idea. Don't know if it has been considered before or not.
I would do a good search of existing issues before you file them. There may be some good history available on these problems as well.
At the very least, we should stop hijacking@
MiguelCastillo's bug ;). Get some of these discussions put in there own postings.
Comment by lkcampbell Monday Apr 28, 2014 at 20:26 GMT
@
MiguelCastillo, sorry for the temporary departure. To get back to the original bug, my last question to you is:
What is happening when you try to bring the Quick Edit? Nothing? Or are you getting the red twipsy that says that the quick edit can't be opened?
Comment by tomByrer Monday Apr 28, 2014 at 20:28 GMT
we should stop hijacking MiguelCastillo's bug ;).
I was thinking they were related; he might not have the file in his Project Tree either :)
Comment by TomMalbran Monday Apr 28, 2014 at 20:39 GMT
Actually "only show CSS files that are linked to the current HTML" will break lots of workflows:
Responding to the other questions/suggestions:
Notice that in Brackets there is always an open project, so maybe there was a main.css file in the folder you were working on, even if it actually was from another project, or you where in a sub-folder inside your project.
Comment by lkcampbell Monday Apr 28, 2014 at 20:41 GMT
@
tomByrer, his issue involves only a single file. Quick editing a function contained in the same file. Also a Quick Edit issue but a different kind of issue.
@
MiguelCastillo, also, are you getting any dev tools console errors when you try to use Quick Edit?
Comment by MiguelCastillo Monday Apr 28, 2014 at 20:41 GMT
Weird, it is coming up now! I am not sure what happened... But, good news is that just showed that themes is applying to inline editors. I need to do some thorough testing of this. @
lkcampbell I know you have some feedback on this... Any particular use case you think I should look into?
Comment by lkcampbell Monday Apr 28, 2014 at 21:00 GMT
@
MiguelCastillo, the main issue is: https://github.com/MiguelCastillo/Brackets-Themes/issues/63.
I confirmed that it is a problem on Mac OS as well; however, on Windows it is a much more serious issue. With Mac, the inline editor simply opens once more then shuts. On Windows, according to the bug report, it never shuts.
If you are able to see the inline editor now, we should probably close this issue, since you can now work on https://github.com/MiguelCastillo/Brackets-Themes/issues/63.
Comment by MiguelCastillo Monday Apr 28, 2014 at 21:14 GMT
YIKES! I have been soo busy I have put that in the back burner. I will try to fix that Wednesday, which is when I have some "free" cycles... :/
@
lkcampbell if you found a solution, you would become the new WWW sensation :D
Comment by peterflynn Monday Apr 28, 2014 at 21:18 GMT
Just to clarify the officially expected behavior here:
<link>
tags are in the HTML file. If you'd like to see this change, please upvote https://trello.com/c/SdihjjmS/645-css-quick-edit-improved-heuristics-filtering (or send us a PR!).a .b > span.c
only the span.c
part is loooked at)@
MiguelCastillo@
tomByrer If you're seeing cases that don't match these rules, please make a small, simple project that illustrates the problem, post the entire project as a Gist, and then post a link to it here so we can investigate.
Comment by lkcampbell Monday Apr 28, 2014 at 21:39 GMT
@
tomByrer, see, you didn't even have to do any research, the history came right to you :). As@
peterflynn said, if you still have any issues after reviewing the information provided, you can file them per his criteria above.
@
MiguelCastillo, if I have some time, I will look into the Quick Edit themes problem, although I don't have access to a Windows machine so I can't confirm any fix I create for Windows. Regardless, I am closing this issue since the original problem no longer exists for@
MiguelCastillo.
Issue by MiguelCastillo Saturday Apr 26, 2014 at 15:10 GMT Originally opened as https://github.com/adobe/brackets/issues/7660
So, maybe I am missing something. But I have tried getting inline editors to come up based on the description here. https://github.com/adobe/brackets/wiki/How-to-Use-Brackets
I have tried sprint 38 vanilla with no extensions... I have also tried running from git:master.
I haven't had any luck getting inline editors to come up. So, I expect inline editor to come up if I place the cursor in
update
in script below below in linescrollbarsApply.update(themeManager);
.