Closed muhghazaliakbar closed 7 years ago
Today I have the same issue
Same issue at atom 1.13.1 x64, macOS Sierra 10.12.3
Thanks for letting me know. I looked in the less file for gtm and I don't see any uses of the two pseudo selectors. I also upgraded to Atom 1.13.1 (osx) and I'm not seeing either any exceptions or warnings in the console.
How does the issue manifest itself for you?
Hi, I have seen my deprecation count jump from 3 to 4 when running Git Time Machine: Toggle (I have bound a custom key Ctrl+G though I do not believe this would alter anything).
I also see the count jump from 4 to 6 when clicking a previous commit in order to open a diff. I believe these increases in count occur the first time such a selector is matched, as it would be inefficient for Deprecation Cop to pre-emptively match all stylesheets.
Win10 Pro, 64-bit
Running a grep
in the git-time-machine package, as installed, reveals the following:
Scott@DARSANA MINGW64 ~/.atom/packages
$ grep --recursive "::shadow" git-time-machine/
git-time-machine/node_modules/split-diff/styles/split-diff.less:atom-text-editor, atom-text-editor::shadow {
So this may actually be part of split-diff, a dependency, and not part of git-time-machine itself.
My Deprecation Cop stats:
git-time-machine\styles\git-time-machine.less
Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host
and ::shadow pseudo-selectors
, and prepend all your syntax selectors with syntax--
. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:
atom-text-editor .gutter .line-number.split-diff-added, atom-text-editor::shadow .gutter .line-number.split-diff-added, atom-text-editor .line.split-diff-added, atom-text-editor::shadow .line.split-diff-added => atom-text-editor .gutter .line-number.split-diff-added, atom-text-editor.editor .gutter .line-number.split-diff-added, atom-text-editor .line.split-diff-added, atom-text-editor.editor .line.split-diff-added
atom-text-editor .gutter .line-number.split-diff-removed, atom-text-editor::shadow .gutter .line-number.split-diff-removed, atom-text-editor .line.split-diff-removed, atom-text-editor::shadow .line.split-diff-removed => atom-text-editor .gutter .line-number.split-diff-removed, atom-text-editor.editor .gutter .line-number.split-diff-removed, atom-text-editor .line.split-diff-removed, atom-text-editor.editor .line.split-diff-removed
atom-text-editor .gutter .line-number.split-diff-selected, atom-text-editor::shadow .gutter .line-number.split-diff-selected, atom-text-editor .line.split-diff-selected, atom-text-editor::shadow .line.split-diff-selected => atom-text-editor .gutter .line-number.split-diff-selected, atom-text-editor.editor .gutter .line-number.split-diff-selected, atom-text-editor .line.split-diff-selected, atom-text-editor.editor .line.split-diff-selected
atom-text-editor .split-diff-word-added .region, atom-text-editor::shadow .split-diff-word-added .region => atom-text-editor .split-diff-word-added .region, atom-text-editor.editor .split-diff-word-added .region
atom-text-editor .split-diff-word-removed .region, atom-text-editor::shadow .split-diff-word-removed .region => atom-text-editor .split-diff-word-removed .region, atom-text-editor.editor .split-diff-word-removed .region
atom-text-editor .split-diff-offset, atom-text-editor::shadow .split-diff-offset => atom-text-editor .split-diff-offset, atom-text-editor.editor .split-diff-offset
Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.
Thank you all for the reports and follow up information. This has been fixed in version 1.5.5 of git-time-machine.
cool :)
In
git-time-machine/styles/git-time-machine.less
:Starting from Atom v1.13.0, the contents of
atom-text-editor
elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using:host
and::shadow
pseudo-selectors, and prepend all your syntax selectors withsyntax--
. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:atom-text-editor .gutter .line-number.split-diff-added, atom-text-editor::shadow .gutter .line-number.split-diff-added, atom-text-editor .line.split-diff-added, atom-text-editor::shadow .line.split-diff-added
=>atom-text-editor .gutter .line-number.split-diff-added, atom-text-editor.editor .gutter .line-number.split-diff-added, atom-text-editor .line.split-diff-added, atom-text-editor.editor .line.split-diff-added
atom-text-editor .gutter .line-number.split-diff-removed, atom-text-editor::shadow .gutter .line-number.split-diff-removed, atom-text-editor .line.split-diff-removed, atom-text-editor::shadow .line.split-diff-removed
=>atom-text-editor .gutter .line-number.split-diff-removed, atom-text-editor.editor .gutter .line-number.split-diff-removed, atom-text-editor .line.split-diff-removed, atom-text-editor.editor .line.split-diff-removed
atom-text-editor .gutter .line-number.split-diff-selected, atom-text-editor::shadow .gutter .line-number.split-diff-selected, atom-text-editor .line.split-diff-selected, atom-text-editor::shadow .line.split-diff-selected
=>atom-text-editor .gutter .line-number.split-diff-selected, atom-text-editor.editor .gutter .line-number.split-diff-selected, atom-text-editor .line.split-diff-selected, atom-text-editor.editor .line.split-diff-selected
atom-text-editor .split-diff-word-added .region, atom-text-editor::shadow .split-diff-word-added .region
=>atom-text-editor .split-diff-word-added .region, atom-text-editor.editor .split-diff-word-added .region
atom-text-editor .split-diff-word-removed .region, atom-text-editor::shadow .split-diff-word-removed .region
=>atom-text-editor .split-diff-word-removed .region, atom-text-editor.editor .split-diff-word-removed .region
atom-text-editor .split-diff-offset, atom-text-editor::shadow .split-diff-offset
=>atom-text-editor .split-diff-offset, atom-text-editor.editor .split-diff-offset
Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.