Closed PointedEars closed 6 years ago
looks like @font-family is one of the ui-variables a theme should define. (https://github.com/atom/atom/blob/master/static/variables/ui-variables.less#L84) which ui theme are you currently using @PointedEars ?
I am using Seti-UI and Monokia Seti
[Enter steps to reproduce:]
Atom: 1.22.1 x64 Electron: 1.6.15 OS: Mac OS X 10.13.1 Thrown From: nuclide-ui package 0.0.0
Failed to activate the nuclide-ui package
At variable @font-family is undefined in /Users/jameswlane/.atom/packages/nuclide/modules/nuclide-commons-ui/styles/TextEditorBanner.less:15:15
LessError: variable @font-family is undefined
at /packages/nuclide/modules/nuclide-commons-ui/styles/TextEditorBanner.less:15:15
advanced-open-file 0.16.7
atom-beautify 0.30.9
atom-jest-snippets 1.2.0
atom-pair 2.0.13
atom-reverser 2.6.0
atom-spotify2 2.1.2
atom-terminal 0.8.0
atom-ternjs 0.18.3
atom-transpose 0.3.5
atom-typescript 11.0.10
atom-wrap-in-tag 0.6.0
auto-detect-indentation 1.3.0
autoclose-html 0.23.0
autocomplete-module-import 0.1.3
autocomplete-modules 1.8.0
autocomplete-paths 2.12.1
build 0.69.0
build-tsc 0.7.2
busy-signal 1.4.3
case-keep-replace 0.6.1
change-case 0.6.5
code-peek 1.4.21
color-picker 2.2.5
copy-path 0.4.2
docblockr 0.13.2
duplicate-line-or-selection 0.9.0
editorconfig 2.2.2
es6-javascript 1.0.0
expose 0.15.0
file-icons 2.1.14
git-blame 1.3.1
git-plus 7.10.0
git-projects 1.17.0
git-time-machine 1.5.9
highlight-selected 0.13.1
hyperclick 0.1.5
imdone-atom 2.3.10
intentions 1.1.5
javascript-snippets 1.2.1
js-hyperclick 1.12.2
language-babel 2.80.1
language-docker 1.1.8
language-markdown 0.25.1
linter 2.2.0
linter-eslint 8.4.0
linter-pylama 0.9.5
linter-rubocop 2.2.0
linter-tslint 1.9.0
linter-ui-default 1.6.10
local-history 4.3.1
local-server-express 0.3.1
lodash-snippets 2.0.0
merge-conflicts 1.4.5
minimap 4.29.7
minimap-highlight-selected 4.6.1
minimap-pigments 0.2.2
monokai-seti 0.9.0
nuclide 0.270.0
open-recent 5.0.0
pane-layout-plus 0.7.4
pigments 0.40.2
prettier-atom 0.41.0
project-manager 3.3.5
project-plus 1.0.0
react 0.17.0
react-es7-snippets 0.3.13
related 0.3.5
set-syntax 0.4.0
seti-ui 1.9.0
sort-lines 0.18.0
sorter 1.1.0
Sublime-Style-Column-Selection 1.7.4
sync-settings 0.8.3
tab-foldername-index 3.2.2
tasks 2.6.7
teletype 0.2.3
term3 0.22.1
test-navigator 1.0.2
todo-show 2.1.0
toggle-quotes 1.0.1
tool-bar 1.1.0
tree-view-copy-relative-path 1.2.0
tree-view-search-bar 1.0.2
[…] which ui theme are you currently using @PointedEars ?
@pelmers I am using seti-ui
.
[…] @font-family is one of the ui-variables a theme should define
How so? AFAICS there is no LESS in any built-in theme that defines @font-family
in Atom 1.22.1 (maybe in earlier versions):
$ dpkg -s atom | grep ^Version:
Version: 1.22.1
$ dpkg -L atom | cut -d / -f 1-4 | sort | uniq
/.
/usr
/usr/bin
/usr/bin/apm
/usr/bin/atom
/usr/share
/usr/share/applications
/usr/share/atom
/usr/share/doc
/usr/share/lintian
/usr/share/pixmaps
$ dpkg -L atom | grep '\.less'
/usr/share/atom/resources/app/apm/templates/package-javascript/styles/__package-name__.less.template
/usr/share/atom/resources/app/apm/templates/package-coffeescript/styles/__package-name__.less.template
/usr/share/atom/resources/app/apm/templates/theme/index.less
/usr/share/atom/resources/app/apm/templates/theme/styles/syntax-variables.less
/usr/share/atom/resources/app/apm/templates/theme/styles/base.less
/usr/share/atom/resources/app/apm/templates/theme/styles/colors.less
$ ack '@font-family\s*:' ~/.atom/ /usr/share/atom/
/home/…/.atom/packages/xkcd-comics/styles/ui-variables.less
91:@font-family: 'Lucida Grande', 'Segoe UI', Ubuntu, Cantarell, sans-serif;
$
AFAICS there is no LESS in any built-in theme that defines @font-family in Atom 1.22.1
I just realized that it is defined in the packed LESS files (asar list /usr/share/atom/resources/app.asar | grep '\.less'
). Sorry for the noise.
echo '@font-family: @seti-font-family;' >> ~/.atom/packages/seti-ui/styles/ui-variables.less
WFM.
Issue and Steps to Reproduce
Reinstalling Nuclide and restarting Atom did not help.
Expected Behavior
No error
Actual Behavior
LessError, see below.
The file
ui-variables(.less)
referred inTextEditorBanner.less
appears to be missing (there is one inseti-ui
andxkcd-comics
, but I do not think that either is meant), and the@font-family
variable is only defined inxckd-comics/styles/ui-variables.less
, but I do not think that is meant.Versions
Atom: 1.22.1 x64 Electron: 1.6.15 OS: Debian GNU/Linux Thrown From: nuclide-ui package 0.270.0 (nuclide version number only obtainable through “Settings”, error reporting button not functional)
Stack Trace
Failed to activate the nuclide-ui package
Commands
Non-Core Packages