Does anyone know what to do when PyCharm loads, is visible in TaskManager, but there is no window?

I have an issue with PyCharm not starting properly.
No matter, how I open it, even as Admin:
start from exe

It shows the loading screen for a couple of seconds: loading screen

The icon in the taskbar flashes for a second, indicates an open window, but a window never opens. Or maybe it disappears again so quickly?

PyCharm is visible in TaskManger:
PyCharm in TaskManager

And afterwards just sits idle:
PyCharm in TaskManager idle

This issue suddenly started happening yesterday with the previous up-to-date installed version of PyCharm Professional.
I then uninstalled it and installed the newest version.
This is now PyCharm Professional 2021.1 – and the issue still persists.

I have no clue what to do about it, or where to look, since it is apparently running.

Best regards, and thank you.

after the last two updates my gsa ser loads my vps CPU at 100% β€” πŸ‘‰ GSA SEO and Marketing Forum πŸ‘ˆ

I’ve been running gsa ser on my vps for last couple days with no problem until today. after I update the software twice as recommended. GSA SER has slow down dramatically and my cpu usage has gone thru the roof. GSA gotta get this fix man,NOT GOOD FOR BUSINESS. I dont have the extra money to dish out more memory and ram in my vps service.

navigation – Menu link tree only loads enabled elements in subtree regardless of parameters

When loading a menu tree without any custom parameters:

$tree = Drupal::menuTree()->load('my-menu-name', new MenuTreeParameters());

The returned tree DrupalCoreMenuMenuLinkTreeElement() includes disabled items, which is what I want. I did not set onlyEnabledLinks() or addCondition('enabled', 1) to the MenuTreeParameters.

For some reason, though, every subtree returned beyond the root level excludes disabled items. Even if I re-query each subtree, it still happens:

foreach ($tree as $element) {
    
    // Do stuff
    
    $parameters = new MenuTreeParameters();
    $parameters->setRoot($element->link->getPluginId())->excludeRoot();
    $subtree = Drupal::menuTree()->load('my-menu-name', $parameters);
}

The only way I have found to include disabled items so far has been to re-query each subtree twice with $parameters->addCondition('enabled', 1); and $parameters->addCondition('enabled', 0);, which is ridiculous.

I can’t find anything in the documentation to suggest this is the correct behavior of Drupal, but I’m hoping someone can spot something I’m missing before I submit a bug report. This is in Drupal 9.1.

windows server 2019 – Missing loads of tabs on active directory

I was working inside of AD UC and all of a sudden, loads of tabs from the properties menu have disappeared for everything, OU’s etc.. Now these are the only options:

properties tabs

Even with advanced mode I still don’t get ‘Members’ tab.

Any ideas? Thanks.

terminal – Gvim loads incorrect colorscheme unless I run the command again

In my ~/.vimrc file, I have my colors set up like this:

" Access colors present in 256 colorspace
let base16colorspace=256

" Vim colorscheme
colorscheme default

" Lightline colorscheme
let g:lightline = { 'colorscheme': 'base16' }

default refers to a colorscheme file generated by base16-universal-manager. The UI and syntax highlighting loads fine in vim. :colorscheme reports base16-onedark.

vim with base16 theme

However, when Gvim loads, it seems like the UI has correct colors, but the syntax highlighting has different colors. :colorscheme reports base16-onedark.

gvim with incorrect colors

I couldn’t figure out what was wrong. I didn’t have a ~/.gvimrc file. I tried creating one with the colorscheme setting. I tried shortening the setting name to color. I deleted that file since it didn’t help.

I found out that the correct colors get applied when I select the theme in the menu under Edit > Color Scheme. I ended up figuring out that did the same thing as specifying the theme as a command. I entered the same thing in ~/.vimrc and it worked. :colorscheme default. :colorscheme reports base16-onedark.

gvim with correct colors

Except when I exit and restart Gvim, it goes back to the wrong colors.

~/.vimrc in its entirety:

" ~/.vimrc ======================================

" Plugins ---------------------------------------

" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')

" Sensible universal defaults
Plug 'tpope/vim-sensible'

" Lightline statusline/tabline
Plug 'itchyny/lightline.vim'

" base16 lightline
Plug 'daviesjamie/vim-base16-lightline'

" Language pack
Plug 'sheerun/vim-polyglot'

" Indent guides
Plug 'nathanaelkane/vim-indent-guides'

" Comment stuff out
Plug 'tpope/vim-commentary'

" Git gutter
Plug 'airblade/vim-gitgutter'

" Tree explorer
Plug 'scrooloose/nerdtree'

" Iconify vim plugins; Needs to be loaded last
Plug 'ryanoasis/vim-devicons', { 'on': 'NERDTreeToggle' }

" Initialize plugin system
call plug#end()

" Colors ----------------------------------------

" Access colors present in 256 colorspace
let base16colorspace=256

" Vim colorscheme
colorscheme default

" Lightline colorscheme
let g:lightline = { 'colorscheme': 'base16' }

" Spaces & tabs ---------------------------------

" Number of visual spaces per TAB
set tabstop=2

" Number of spaces in tab when editing
set softtabstop=2

" Convert tabs to spaces
set expandtab

" Indent size
set shiftwidth=2

" Show indent guides by default
" let g:indent_guides_enable_on_vim_startup = 1

" UI config -------------------------------------

" Show line numbers
set number

" Show command in bottom bar
set showcmd

" Highlight current line
set cursorline

" Redraw only when we need to
set lazyredraw

" Hide mode information already shown in Lightline
set noshowmode

" Configure encoding
set encoding=UTF-8

" GUI font
if has("gui_running")
    set guifont=Iosevka 11
endif

" Folding ---------------------------------------

" Enable folding
set foldenable

" 99 = all folds are open; 0 = all folds are closed
set foldlevelstart=99

" Nested fold max
set foldnestmax=10

" Space open/closes folds
nnoremap <space> za

" Fold based on indent level
set foldmethod=indent

" Other -----------------------------------------

" Enable mouse support
set mouse=a

" Put these in an autocmd group, so that you can revert them with:
" ":augroup vimStartup | au! | augroup END"
augroup vimStartup
  au!

  " When editing a file, always jump to the last known cursor position.
  " Don't do it when the position is invalid, when inside an event handler
  " (happens when dropping a file on gvim) and for a commit message (it's
  " likely a different one than last time).
  autocmd BufReadPost *
     if line("'"") >= 1 && line("'"") <= line("$") && &ft !~# 'commit'
     |   exe "normal! g`""
     | endif
augroup END

" Clipboard as default register
set clipboard=unnamedplus

" NERDTree --------------------------------------

" Open automatically when vim starts with no file specified
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif

" Open automatically when vim starts by opening a directory
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()(0)) && !exists("s:std_in") | exe 'NERDTree' argv()(0) | wincmd p | ene | endif

" Keyboard shortcut
map <C-n> :NERDTreeToggle<CR>

" Close vim if the only window left open is NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

" Icons
let g:NERDTreeDirArrowExpandable = 'ο‘Š'
let g:NERDTreeDirArrowCollapsible = 'ο‘‹'

~/.vim/colors/default.vim generated by base16-universal-manager:

" vi:syntax=vim

" base16-vim (https://github.com/chriskempson/base16-vim)
" by Chris Kempson (http://chriskempson.com)
" OneDark scheme by Lalit Magant (http://github.com/tilal6991)

" This enables the coresponding base16-shell script to run so that
" :colorscheme works in terminals supported by base16-shell scripts
" User must set this variable in .vimrc
"   let g:base16_shell_path=base16-builder/output/shell/
if !has("gui_running")
  if exists("g:base16_shell_path")
    execute "silent !/bin/sh ".g:base16_shell_path."/base16-onedark.sh"
  endif
endif

" GUI color definitions
let s:gui00        = "282c34"
let g:base16_gui00 = "282c34"
let s:gui01        = "353b45"
let g:base16_gui01 = "353b45"
let s:gui02        = "3e4451"
let g:base16_gui02 = "3e4451"
let s:gui03        = "545862"
let g:base16_gui03 = "545862"
let s:gui04        = "565c64"
let g:base16_gui04 = "565c64"
let s:gui05        = "abb2bf"
let g:base16_gui05 = "abb2bf"
let s:gui06        = "b6bdca"
let g:base16_gui06 = "b6bdca"
let s:gui07        = "c8ccd4"
let g:base16_gui07 = "c8ccd4"
let s:gui08        = "e06c75"
let g:base16_gui08 = "e06c75"
let s:gui09        = "d19a66"
let g:base16_gui09 = "d19a66"
let s:gui0A        = "e5c07b"
let g:base16_gui0A = "e5c07b"
let s:gui0B        = "98c379"
let g:base16_gui0B = "98c379"
let s:gui0C        = "56b6c2"
let g:base16_gui0C = "56b6c2"
let s:gui0D        = "61afef"
let g:base16_gui0D = "61afef"
let s:gui0E        = "c678dd"
let g:base16_gui0E = "c678dd"
let s:gui0F        = "be5046"
let g:base16_gui0F = "be5046"

" Terminal color definitions
let s:cterm00        = "00"
let g:base16_cterm00 = "00"
let s:cterm03        = "08"
let g:base16_cterm03 = "08"
let s:cterm05        = "07"
let g:base16_cterm05 = "07"
let s:cterm07        = "15"
let g:base16_cterm07 = "15"
let s:cterm08        = "01"
let g:base16_cterm08 = "01"
let s:cterm0A        = "03"
let g:base16_cterm0A = "03"
let s:cterm0B        = "02"
let g:base16_cterm0B = "02"
let s:cterm0C        = "06"
let g:base16_cterm0C = "06"
let s:cterm0D        = "04"
let g:base16_cterm0D = "04"
let s:cterm0E        = "05"
let g:base16_cterm0E = "05"
if exists("base16colorspace") && base16colorspace == "256"
  let s:cterm01        = "18"
  let g:base16_cterm01 = "18"
  let s:cterm02        = "19"
  let g:base16_cterm02 = "19"
  let s:cterm04        = "20"
  let g:base16_cterm04 = "20"
  let s:cterm06        = "21"
  let g:base16_cterm06 = "21"
  let s:cterm09        = "16"
  let g:base16_cterm09 = "16"
  let s:cterm0F        = "17"
  let g:base16_cterm0F = "17"
else
  let s:cterm01        = "10"
  let g:base16_cterm01 = "10"
  let s:cterm02        = "11"
  let g:base16_cterm02 = "11"
  let s:cterm04        = "12"
  let g:base16_cterm04 = "12"
  let s:cterm06        = "13"
  let g:base16_cterm06 = "13"
  let s:cterm09        = "09"
  let g:base16_cterm09 = "09"
  let s:cterm0F        = "14"
  let g:base16_cterm0F = "14"
endif

" Neovim terminal colours
if has("nvim")
  let g:terminal_color_0 =  "#282c34"
  let g:terminal_color_1 =  "#e06c75"
  let g:terminal_color_2 =  "#98c379"
  let g:terminal_color_3 =  "#e5c07b"
  let g:terminal_color_4 =  "#61afef"
  let g:terminal_color_5 =  "#c678dd"
  let g:terminal_color_6 =  "#56b6c2"
  let g:terminal_color_7 =  "#abb2bf"
  let g:terminal_color_8 =  "#545862"
  let g:terminal_color_9 =  "#e06c75"
  let g:terminal_color_10 = "#98c379"
  let g:terminal_color_11 = "#e5c07b"
  let g:terminal_color_12 = "#61afef"
  let g:terminal_color_13 = "#c678dd"
  let g:terminal_color_14 = "#56b6c2"
  let g:terminal_color_15 = "#c8ccd4"
  let g:terminal_color_background = g:terminal_color_0
  let g:terminal_color_foreground = g:terminal_color_5
  if &background == "light"
    let g:terminal_color_background = g:terminal_color_7
    let g:terminal_color_foreground = g:terminal_color_2
  endif
elseif has("terminal")
  let g:terminal_ansi_colors = (
         "#282c34",
         "#e06c75",
         "#98c379",
         "#e5c07b",
         "#61afef",
         "#c678dd",
         "#56b6c2",
         "#abb2bf",
         "#545862",
         "#e06c75",
         "#98c379",
         "#e5c07b",
         "#61afef",
         "#c678dd",
         "#56b6c2",
         "#c8ccd4",
         )
endif

" Theme setup
hi clear
syntax reset
let g:colors_name = "base16-onedark"

" Highlighting function
" Optional variables are attributes and guisp
function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, ...)
  let l:attr = get(a:, 1, "")
  let l:guisp = get(a:, 2, "")

  if a:guifg != ""
    exec "hi " . a:group . " guifg=#" . a:guifg
  endif
  if a:guibg != ""
    exec "hi " . a:group . " guibg=#" . a:guibg
  endif
  if a:ctermfg != ""
    exec "hi " . a:group . " ctermfg=" . a:ctermfg
  endif
  if a:ctermbg != ""
    exec "hi " . a:group . " ctermbg=" . a:ctermbg
  endif
  if l:attr != ""
    exec "hi " . a:group . " gui=" . l:attr . " cterm=" . l:attr
  endif
  if l:guisp != ""
    exec "hi " . a:group . " guisp=#" . l:guisp
  endif
endfunction


fun <sid>hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp)
  call g:Base16hi(a:group, a:guifg, a:guibg, a:ctermfg, a:ctermbg, a:attr, a:guisp)
endfun

" Vim editor colors
call <sid>hi("Normal",        s:gui05, s:gui00, s:cterm05, s:cterm00, "", "")
call <sid>hi("Bold",          "", "", "", "", "bold", "")
call <sid>hi("Debug",         s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Directory",     s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Error",         s:gui00, s:gui08, s:cterm00, s:cterm08, "", "")
call <sid>hi("ErrorMsg",      s:gui08, s:gui00, s:cterm08, s:cterm00, "", "")
call <sid>hi("Exception",     s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("FoldColumn",    s:gui0C, s:gui01, s:cterm0C, s:cterm01, "", "")
call <sid>hi("Folded",        s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("IncSearch",     s:gui01, s:gui09, s:cterm01, s:cterm09, "none", "")
call <sid>hi("Italic",        "", "", "", "", "none", "")
call <sid>hi("Macro",         s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("MatchParen",    "", s:gui03, "", s:cterm03,  "", "")
call <sid>hi("ModeMsg",       s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("MoreMsg",       s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("Question",      s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Search",        s:gui01, s:gui0A, s:cterm01, s:cterm0A,  "", "")
call <sid>hi("Substitute",    s:gui01, s:gui0A, s:cterm01, s:cterm0A, "none", "")
call <sid>hi("SpecialKey",    s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("TooLong",       s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Underlined",    s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Visual",        "", s:gui02, "", s:cterm02, "", "")
call <sid>hi("VisualNOS",     s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("WarningMsg",    s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("WildMenu",      s:gui08, s:gui0A, s:cterm08, "", "", "")
call <sid>hi("Title",         s:gui0D, "", s:cterm0D, "", "none", "")
call <sid>hi("Conceal",       s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "")
call <sid>hi("Cursor",        s:gui00, s:gui05, s:cterm00, s:cterm05, "", "")
call <sid>hi("NonText",       s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("LineNr",        s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("SignColumn",    s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("StatusLine",    s:gui04, s:gui02, s:cterm04, s:cterm02, "none", "")
call <sid>hi("StatusLineNC",  s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "")
call <sid>hi("VertSplit",     s:gui02, s:gui02, s:cterm02, s:cterm02, "none", "")
call <sid>hi("ColorColumn",   "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("CursorColumn",  "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("CursorLine",    "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("CursorLineNr",  s:gui04, s:gui01, s:cterm04, s:cterm01, "", "")
call <sid>hi("QuickFixLine",  "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("PMenu",         s:gui05, s:gui01, s:cterm05, s:cterm01, "none", "")
call <sid>hi("PMenuSel",      s:gui01, s:gui05, s:cterm01, s:cterm05, "", "")
call <sid>hi("TabLine",       s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "")
call <sid>hi("TabLineFill",   s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "")
call <sid>hi("TabLineSel",    s:gui0B, s:gui01, s:cterm0B, s:cterm01, "none", "")

" Standard syntax highlighting
call <sid>hi("Boolean",      s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Character",    s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Comment",      s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("Conditional",  s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("Constant",     s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Define",       s:gui0E, "", s:cterm0E, "", "none", "")
call <sid>hi("Delimiter",    s:gui0F, "", s:cterm0F, "", "", "")
call <sid>hi("Float",        s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Function",     s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Identifier",   s:gui08, "", s:cterm08, "", "none", "")
call <sid>hi("Include",      s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Keyword",      s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("Label",        s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Number",       s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Operator",     s:gui05, "", s:cterm05, "", "none", "")
call <sid>hi("PreProc",      s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Repeat",       s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Special",      s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("SpecialChar",  s:gui0F, "", s:cterm0F, "", "", "")
call <sid>hi("Statement",    s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("StorageClass", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("String",       s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("Structure",    s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("Tag",          s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Todo",         s:gui0A, s:gui01, s:cterm0A, s:cterm01, "", "")
call <sid>hi("Type",         s:gui0A, "", s:cterm0A, "", "none", "")
call <sid>hi("Typedef",      s:gui0A, "", s:cterm0A, "", "", "")

" C highlighting
call <sid>hi("cOperator",   s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("cPreCondit",  s:gui0E, "", s:cterm0E, "", "", "")

" C# highlighting
call <sid>hi("csClass",                 s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("csAttribute",             s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("csModifier",              s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("csType",                  s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("csUnspecifiedStatement",  s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("csContextualStatement",   s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("csNewDecleration",        s:gui08, "", s:cterm08, "", "", "")

" CSS highlighting
call <sid>hi("cssBraces",      s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("cssClassName",   s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("cssColor",       s:gui0C, "", s:cterm0C, "", "", "")

" Diff highlighting
call <sid>hi("DiffAdd",      s:gui0B, s:gui01,  s:cterm0B, s:cterm01, "", "")
call <sid>hi("DiffChange",   s:gui03, s:gui01,  s:cterm03, s:cterm01, "", "")
call <sid>hi("DiffDelete",   s:gui08, s:gui01,  s:cterm08, s:cterm01, "", "")
call <sid>hi("DiffText",     s:gui0D, s:gui01,  s:cterm0D, s:cterm01, "", "")
call <sid>hi("DiffAdded",    s:gui0B, s:gui00,  s:cterm0B, s:cterm00, "", "")
call <sid>hi("DiffFile",     s:gui08, s:gui00,  s:cterm08, s:cterm00, "", "")
call <sid>hi("DiffNewFile",  s:gui0B, s:gui00,  s:cterm0B, s:cterm00, "", "")
call <sid>hi("DiffLine",     s:gui0D, s:gui00,  s:cterm0D, s:cterm00, "", "")
call <sid>hi("DiffRemoved",  s:gui08, s:gui00,  s:cterm08, s:cterm00, "", "")

" Git highlighting
call <sid>hi("gitcommitOverflow",       s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("gitcommitSummary",        s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("gitcommitComment",        s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("gitcommitUntracked",      s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("gitcommitDiscarded",      s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("gitcommitSelected",       s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("gitcommitHeader",         s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("gitcommitSelectedType",   s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("gitcommitUnmergedType",   s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("gitcommitDiscardedType",  s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("gitcommitBranch",         s:gui09, "", s:cterm09, "", "bold", "")
call <sid>hi("gitcommitUntrackedFile",  s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("gitcommitUnmergedFile",   s:gui08, "", s:cterm08, "", "bold", "")
call <sid>hi("gitcommitDiscardedFile",  s:gui08, "", s:cterm08, "", "bold", "")
call <sid>hi("gitcommitSelectedFile",   s:gui0B, "", s:cterm0B, "", "bold", "")

" GitGutter highlighting
call <sid>hi("GitGutterAdd",     s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "")
call <sid>hi("GitGutterChange",  s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "")
call <sid>hi("GitGutterDelete",  s:gui08, s:gui01, s:cterm08, s:cterm01, "", "")
call <sid>hi("GitGutterChangeDelete",  s:gui0E, s:gui01, s:cterm0E, s:cterm01, "", "")

" HTML highlighting
call <sid>hi("htmlBold",    s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("htmlItalic",  s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("htmlEndTag",  s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("htmlTag",     s:gui05, "", s:cterm05, "", "", "")

" JavaScript highlighting
call <sid>hi("javaScript",        s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("javaScriptBraces",  s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("javaScriptNumber",  s:gui09, "", s:cterm09, "", "", "")
" pangloss/vim-javascript highlighting
call <sid>hi("jsOperator",          s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("jsStatement",         s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("jsReturn",            s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("jsThis",              s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("jsClassDefinition",   s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("jsFunction",          s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("jsFuncName",          s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("jsFuncCall",          s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("jsClassFuncName",     s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("jsClassMethodType",   s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("jsRegexpString",      s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("jsGlobalObjects",     s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("jsGlobalNodeObjects", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("jsExceptions",        s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("jsBuiltins",          s:gui0A, "", s:cterm0A, "", "", "")

" Mail highlighting
call <sid>hi("mailQuoted1",  s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("mailQuoted2",  s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("mailQuoted3",  s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("mailQuoted4",  s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("mailQuoted5",  s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("mailQuoted6",  s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("mailURL",      s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("mailEmail",    s:gui0D, "", s:cterm0D, "", "", "")

" Markdown highlighting
call <sid>hi("markdownCode",              s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("markdownError",             s:gui05, s:gui00, s:cterm05, s:cterm00, "", "")
call <sid>hi("markdownCodeBlock",         s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("markdownHeadingDelimiter",  s:gui0D, "", s:cterm0D, "", "", "")

" NERDTree highlighting
call <sid>hi("NERDTreeDirSlash",  s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("NERDTreeExecFile",  s:gui05, "", s:cterm05, "", "", "")

" PHP highlighting
call <sid>hi("phpMemberSelector",  s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("phpComparison",      s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("phpParent",          s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("phpMethodsVar",      s:gui0C, "", s:cterm0C, "", "", "")

" Python highlighting
call <sid>hi("pythonOperator",  s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("pythonRepeat",    s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("pythonInclude",   s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("pythonStatement", s:gui0E, "", s:cterm0E, "", "", "")

" Ruby highlighting
call <sid>hi("rubyAttribute",               s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("rubyConstant",                s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("rubyInterpolationDelimiter",  s:gui0F, "", s:cterm0F, "", "", "")
call <sid>hi("rubyRegexp",                  s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("rubySymbol",                  s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("rubyStringDelimiter",         s:gui0B, "", s:cterm0B, "", "", "")

" SASS highlighting
call <sid>hi("sassidChar",     s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("sassClassChar",  s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("sassInclude",    s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("sassMixing",     s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("sassMixinName",  s:gui0D, "", s:cterm0D, "", "", "")

" Signify highlighting
call <sid>hi("SignifySignAdd",     s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "")
call <sid>hi("SignifySignChange",  s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "")
call <sid>hi("SignifySignDelete",  s:gui08, s:gui01, s:cterm08, s:cterm01, "", "")

" Spelling highlighting
call <sid>hi("SpellBad",     "", "", "", "", "undercurl", s:gui08)
call <sid>hi("SpellLocal",   "", "", "", "", "undercurl", s:gui0C)
call <sid>hi("SpellCap",     "", "", "", "", "undercurl", s:gui0D)
call <sid>hi("SpellRare",    "", "", "", "", "undercurl", s:gui0E)

" Startify highlighting
call <sid>hi("StartifyBracket",  s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("StartifyFile",     s:gui07, "", s:cterm07, "", "", "")
call <sid>hi("StartifyFooter",   s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("StartifyHeader",   s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("StartifyNumber",   s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("StartifyPath",     s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("StartifySection",  s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("StartifySelect",   s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("StartifySlash",    s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("StartifySpecial",  s:gui03, "", s:cterm03, "", "", "")

" Java highlighting
call <sid>hi("javaOperator",     s:gui0D, "", s:cterm0D, "", "", "")

" Remove functions
delf <sid>hi

" Remove color variables
unlet s:gui00 s:gui01 s:gui02 s:gui03  s:gui04  s:gui05  s:gui06  s:gui07  s:gui08  s:gui09 s:gui0A  s:gui0B  s:gui0C  s:gui0D  s:gui0E  s:gui0F
unlet s:cterm00 s:cterm01 s:cterm02 s:cterm03 s:cterm04 s:cterm05 s:cterm06 s:cterm07 s:cterm08 s:cterm09 s:cterm0A s:cterm0B s:cterm0C s:cterm0D s:cterm0E s:cterm0F

error – Require.js loads the function (it exists in bundle.js), but console throws “not defined”

Having an issue with one of the plugins recently installed.

My DEV server and local DEV servers both are working normal, not throwing errors, but PRODUCTION server throws “Uncaught ReferenceError: tmlsOwlCarousel is not defined”.

Both PRODUCTION and DEV are running in the PRODUCTION mode. Local DEV runs in DEVELOPMENT mode.

Here is the code that executes it:

require((
'jquery',
 // tried DOM READY, didn't work.
'domReady!',
"Ves_All/lib/owl.carousel/owl.carousel.min",
'Ves_Testimonial/js/testimonial-carousel',
), function ($) {
    $( document ).ready(function() {            
    // tried to see if it ever loads the function - it doesnt
    //setInterval(function(){ console.log(typeof tmlsOwlCarousel); }, 1000);

    tmlsOwlCarousel("#testimonial-carousel-10199329431611963779", ".owl-carousel");
        $('#testimonials10199329431611963779 .tmls-readmorelink').click(function() {
            var parent = $(this).parents('.tmls-testimonial');
            $(parent).find('.tmls-excerpttext').hide();
            $(parent).find('.tmls-fulltext').fadeIn('slow');
        });
        $('#testimonials10199329431611963779 .tmls-item').mouseleave(function() {
            $(this).find('.tmls-excerpttext').fadeIn('slow');
            $(this).find('.tmls-fulltext').hide();
        });
    });
});

I have looked inside of the bundle.js file and that function exists and is being loaded.

I also tried onLoad / onReady / domReady and setInterval to see if that function ever loads, but it doesn’t.

bundle.js file is about 2MB, so I’m not sure if it’s the file size or what is happening here.

Why would it never load if it does exist in the bundle file?

UPDATE:

The function that fails exists in: Ves_Testimonial/js/testimonial-carousel.js file. The file exists in the /static folder and is being loaded into the bundle.js

UPDATE:

requirejs-config.min.js also contains Ves_Testimonial/js/testimonial-carousel.js

(function () {
    var config = {
      map: {
        '*': {
          testimonial_fancybox: 'Ves_Testimonial/js/jquery.fancybox.pack',
          rating: 'Ves_Testimonial/js/rating',
          testimonial_rating: 'Ves_Testimonial/js/testimonial_rating',
          testimonial_carousel: 'Ves_Testimonial/js/testimonial-carousel',
          testimonialtowlcarousel: 'Ves_Testimonial/js/owl.carousel.min'
        }
      },
      shim: {
        'testimonial_carousel': {
          deps: (
            'jquery',
            'Ves_All/lib/owl.carousel/owl.carousel.min'
          )
        },
        'Ves_Testimonial/js/carouFredSel': {
          deps: (
            'jquery'
          )
        },
        'Ves_Testimonial/js/testimonial-carousel': {
          deps: (
            'jquery',
            'Ves_All/lib/owl.carousel/owl.carousel.min'
          )
        },
        'testimonialtowlcarousel': {
          deps: (
            'jquery'
          )
        }
      }
    };
    require.config(config);
  }) ();

insufficient memory – System storage taking up loads of space after adopting SD card

I recently adopted and SD card to my xaomi 7. Before I adopted the 64gb card I was using near 8gb. Now my file manager say I am only using 2% and under internal storage in settings I have 60gb of internal storage free. But under storage in settings it says system storage is using 55gb and I only have 500mb free. I’m also getting the old notifications saying my storage is running out.

I’m not sure I understand the difference between internal and system storage, but I definately can’t see how system storage is using 55gb when it previously was happy with 7.

If anyone can help I would be most grateful ☺️

troubleshooting – WordPress all php BUT index.php downloads instead of loads

I’ve looked around a couple other solutions, but none have worked so far (modifying .htaccess, emptying .htaccess, disabling themes,plugins).

My website works fine, the index.php in the root directory works. Any other php file tries to download instead of loading. Not sure why this started happening. I haven’t logged into the admin page in a few weeks, and now its not working. The server hasnt changed at all.

I am using firefox, but have tried other browsers, the same issue occurs.
All the permissions for all php files are still under www-data and rw-r–r–

What can I do to find/fix this problem?

plugins – Gutenberg: Block SelectControl saves attributes but after a reload of Gutenberg it loads its defaults. Why?

I thought I had it. I added an attribute “max_level” and a SelectControl element “SelectMaxLevel”. Everything works according to plan: I can set the max level and it is saved in the block. When I save the post and display the post see that the php part uses the “maximum level” variable. But when I edit the post the blocks loads it’s default value. Why does this happen?

   registerBlockType('simpletoc/toc', {
      title: __('SimpleTOC', 'simpletoc'),
      icon: simpletocicon,
      category: 'layout',
      attributes: {
            no_title: {
                type: 'boolean',
          default: false,
            },
        },
      attributes: {
            max_level: {
                type: 'integer',
          default: 6,
            },
        },
      edit: function(props) {
        const SelectMaxLevel = withState( {
            level: props.attributes.max_level,
        } )( ( { level, setState } ) => (
            <SelectControl
                label={__("Maximum Level", 'simpletoc')}
                help={__('Maximum depth of the headings.', 'simpletoc')}
                value= { props.attributes.max_level }
                options={ (
                    { label: __('Including', 'simpletoc') + ' H6 (' + __('Show all', 'simpletoc') + ')' , value: '6' },
                    { label: __('Including', 'simpletoc') + ' H5', value: '5' },
                    { label: __('Including', 'simpletoc') + ' H4', value: '4' },
                    { label: __('Including', 'simpletoc') + ' H3', value: '3' },
                    { label: __('Including', 'simpletoc') + ' H2', value: '2' },
                ) }
                onChange={ ( level ) => { setState( props.setAttributes( { max_level: level } )) } }
            />
        ) );
        return (
        <span>
        <InspectorControls>
          <Panel>
            <PanelBody>
              <PanelRow>
                <ToggleControl
                    label={__("Disable heading", 'simpletoc')}
                    help={__('Remove "Table of contents" block heading.', 'simpletoc')}
                    checked={ props.attributes.no_title }
                    onChange={ () => props.setAttributes( {  no_title: ! props.attributes.no_title } ) }
                />
              </PanelRow>
              <PanelRow>
                <SelectMaxLevel />
              </PanelRow>
            </PanelBody>
          </Panel>
        </InspectorControls>
        <BlockControls>
          <ToolbarGroup>
            <ToolbarButton
              className="components-icon-button components-toolbar__control"
              label={__('Update table of contents', 'simpletoc')}
              onClick={function() {
                sendfakeAttribute(props)
              }}
              icon="update"
            />
          </ToolbarGroup>
      </BlockControls>
      <p>
        <ServerSideRender block={props.name} attributes={props.attributes} />
      </p>
      </span>
        )
      },
      save: props => {
        return null;
      },
    });

The relevant php part:

register_block_type('simpletoc/toc', (
    'editor_script' => 'simpletoc-js',
    'editor_style' => 'simpletoc-editor',
        'attributes' => array(
                'no_title' => array(
                    'type' => 'boolean',
              'default' => false,
                ),
            'max_level' => array(
                    'type' => 'integer',
              'default' => 6,
                ),
            'updated' => array(
              'type' => 'number',
              'default' => 0,
              '_builtIn' => true,
            ),
    ),
    'render_callback' => __NAMESPACE__ . '\render_callback'
   ));