-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Deprecated selector warning for unmodified styles.less file #6869
Comments
Looks like the problem here is that it's including the |
Actually, what fixed this for me was adding |
Pasting the raw stylesheet @ajgreenb linked to into my personal |
Yeah, commenting out didn't work for me either. Weird! |
For those seeing this June 5, 2015 and after, here is a valid styles.less file. If anyone knows a better solution, please contribute!
Revised based on 50wliu's feedback (he has 8 commits to Atom) |
This worked for me
|
Please use |
I've just updated to version 1.0.0 and this is still happening. /*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
.tree-view {
}
atom-text-editor::shadow {
}
atom-text-editor .cursor {
} and /*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
.tree-view {
}
.atom-text-editor {
}
atom-text-editor::shadow .cursor {
} both work for me. |
Dear Atom Developers, Nobody should have to tweak their install simply to upgrade. This is a serious issue. I'm not sure why you aren't giving it priority. Perhaps it is super rare? Ken |
I just installed Atom for the first time (never had it before) and I have these messages as well on a clean install of 1.0. |
@globexdesigns can you paste in your styles.less? The styles.less generated from the current master seems to have the correct selectors.
What do you propose? Should we rewrite the styles.less, risking getting it wrong? |
I'll confess that I only poorly understand the problem, but I was imagining something happening at install time like "does styles.less contain certain required elements? If not, make them." but I could be way off base. |
Basically what happened is this: The editor contents are now beneath the shadow-dom to avoid pollution from the ui. So things like People who downloaded atom before the shadow dom conversion have selectors targeting the non-shadow-dom editor in their styles.less, but of course, they no longer work in the shadow-dom world. So we wrote a selector linter to catch the cases where these selectors will not work, and they are reported in the status bar by deprecation cop. This warning is not fatal. The worst thing that happens is that your user styles that modify things in the editor do not work. In the case here where everyone's user styles are empty, it's a non issue. Also note the correct form is this: .tree-view {
}
atom-text-editor {
}
atom-text-editor::shadow .cursor {
}
|
+1, |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
Howdy!
This issue cropped up (or at least I noticed it) around 0.199, but it remains in 0.200.
I have one deprecation warning (which sticks around even in safe mode):
If I click that error, I am taken to what appears to be an empty file:
If I go to the Atom menu and select "Open Your Stylesheet," this is what it looks like:
I thought maybe I had inherited this stylesheet from an older version, so I tried commenting out everything within it... but the deprecation warning remains.
(Apologies if this issue is duplicated, I swear I searched for it before creating a this one!)
Edit: I should also mention that I have my
.atom
directory symbolically linked to Dropbox (if you're wondering why my paths aren't simply/Users/tylersticka/.atom
).The text was updated successfully, but these errors were encountered: