jdtsmith / indent-bars

Fast, configurable indentation guide-bars for Emacs
GNU General Public License v3.0
374 stars 14 forks source link

Freezing on open file (makefile major mode) #86

Open snoopier opened 10 hours ago

snoopier commented 10 hours ago

Window 10 Emacs V30.0.92

If o can help to find the issue your welcome to ask...

Toggle-Debug-On-Quit

Debugger entered--Lisp error: (quit) indent-bars--blank-string(#s(indent-bars-style :tag nil :main-color "#f466fbeefab9" :depth-palette ["#d998d998d998" "#d998d998d998" "#e85ae3d6dce8" "#d998d998d998" "#dd5ce1bae941" "#d998d998d998" "#eac3dc01e3fc" "#d998d998d998" "#dfebe5a4e3fc" "#d998d998d998" "#ecb8d998d998" "#d998d998d998" "#e315e6b2ef21" "#d998d998d998" "#e6ffe6ffe6ff" "#d998d998d998"] :faces [indent-bars-1 indent-bars-2 indent-bars-3 indent-bars-4 indent-bars-5 indent-bars-6 indent-bars-7 indent-bars-8 indent-bars-9 indent-bars-10 indent-bars-11 indent-bars-12 indent-bars-13 indent-bars-14 indent-bars-15 indent-bars-16 indent-bars-17 indent-bars-18 indent-bars-19 indent-bars-20 indent-bars-21 indent-bars-22 indent-bars-23 indent-bars-24 indent-bars-25 indent-bars-26 indent-bars-27 indent-bars-28 indent-bars-29 indent-bars-30 indent-bars-31 indent-bars-32 indent-bars-33 indent-bars-34 indent-bars-35 indent-bars-36 indent-bars-37 indent-bars-38 indent-bars-39 indent-bars-40 indent-bars-41 indent-bars-42 indent-bars-43 indent-bars-44 indent-bars-45 indent-bars-46 indent-bars-47 indent-bars-48 indent-bars-49 indent-bars-50 ...] :stipple-face indent-bars-face :no-stipple-chars [#("│" 0 1 (face indent-bars-1)) #("│" 0 1 (face indent-bars-2)) #("│" 0 1 (face indent-bars-3)) #("│" 0 1 (face indent-bars-4)) #("│" 0 1 (face indent-bars-5)) #("│" 0 1 (face indent-bars-6)) #("│" 0 1 (face indent-bars-7))] :current-stipple-face nil :current-bg-color nil :current-depth-palette ["#7fff7fff7fff" "#7fff7fff7fff" "#b130a2218b0a" "#7fff7fff7fff" "#8c8c9b1ab433" "#7fff7fff7fff" "#b9388807a2a2" "#7fff7fff7fff" "#9514a827a2a2" "#7fff7fff7fff" "#bfbf7fff7fff" "#7fff7fff7fff" "#9f9fababc7c7" "#7fff7fff7fff" "#acacacacacac" "#7fff7fff7fff"]) 0 0 1 2 nil nil) apply(indent-bars--blank-string #s(indent-bars-style :tag nil :main-color "#f466fbeefab9" :depth-palette ["#d998d998d998" "#d998d998d998" "#e85ae3d6dce8" "#d998d998d998" "#dd5ce1bae941" "#d998d998d998" "#eac3dc01e3fc" "#d998d998d998" "#dfebe5a4e3fc" "#d998d998d998" "#ecb8d998d998" "#d998d998d998" "#e315e6b2ef21" "#d998d998d998" "#e6ffe6ffe6ff" "#d998d998d998"] :faces [indent-bars-1 indent-bars-2 indent-bars-3 indent-bars-4 indent-bars-5 indent-bars-6 indent-bars-7 indent-bars-8 indent-bars-9 indent-bars-10 indent-bars-11 indent-bars-12 indent-bars-13 indent-bars-14 indent-bars-15 indent-bars-16 indent-bars-17 indent-bars-18 indent-bars-19 indent-bars-20 indent-bars-21 indent-bars-22 indent-bars-23 indent-bars-24 indent-bars-25 indent-bars-26 indent-bars-27 indent-bars-28 indent-bars-29 indent-bars-30 indent-bars-31 indent-bars-32 indent-bars-33 indent-bars-34 indent-bars-35 indent-bars-36 indent-bars-37 indent-bars-38 indent-bars-39 indent-bars-40 indent-bars-41 indent-bars-42 indent-bars-43 indent-bars-44 indent-bars-45 indent-bars-46 indent-bars-47 indent-bars-48 indent-bars-49 indent-bars-50 ...] :stipple-face indent-bars-face :no-stipple-chars [#("│" 0 1 (face indent-bars-1)) #("│" 0 1 (face indent-bars-2)) #("│" 0 1 (face indent-bars-3)) #("│" 0 1 (face indent-bars-4)) #("│" 0 1 (face indent-bars-5)) #("│" 0 1 (face indent-bars-6)) #("│" 0 1 (face indent-bars-7))] :current-stipple-face nil :current-bg-color nil :current-depth-palette ["#7fff7fff7fff" "#7fff7fff7fff" "#b130a2218b0a" "#7fff7fff7fff" "#8c8c9b1ab433" "#7fff7fff7fff" "#b9388807a2a2" "#7fff7fff7fff" "#9514a827a2a2" "#7fff7fff7fff" "#bfbf7fff7fff" "#7fff7fff7fff" "#9f9fababc7c7" "#7fff7fff7fff" "#acacacacacac" "#7fff7fff7fff"]) 0 0 1 2 (nil nil)) indent-bars--tab-display(#s(indent-bars-style :tag nil :main-color "#f466fbeefab9" :depth-palette ["#d998d998d998" "#d998d998d998" "#e85ae3d6dce8" "#d998d998d998" "#dd5ce1bae941" "#d998d998d998" "#eac3dc01e3fc" "#d998d998d998" "#dfebe5a4e3fc" "#d998d998d998" "#ecb8d998d998" "#d998d998d998" "#e315e6b2ef21" "#d998d998d998" "#e6ffe6ffe6ff" "#d998d998d998"] :faces [indent-bars-1 indent-bars-2 indent-bars-3 indent-bars-4 indent-bars-5 indent-bars-6 indent-bars-7 indent-bars-8 indent-bars-9 indent-bars-10 indent-bars-11 indent-bars-12 indent-bars-13 indent-bars-14 indent-bars-15 indent-bars-16 indent-bars-17 indent-bars-18 indent-bars-19 indent-bars-20 indent-bars-21 indent-bars-22 indent-bars-23 indent-bars-24 indent-bars-25 indent-bars-26 indent-bars-27 indent-bars-28 indent-bars-29 indent-bars-30 indent-bars-31 indent-bars-32 indent-bars-33 indent-bars-34 indent-bars-35 indent-bars-36 indent-bars-37 indent-bars-38 indent-bars-39 indent-bars-40 indent-bars-41 indent-bars-42 indent-bars-43 indent-bars-44 indent-bars-45 indent-bars-46 indent-bars-47 indent-bars-48 indent-bars-49 indent-bars-50 ...] :stipple-face indent-bars-face :no-stipple-chars [#("│" 0 1 (face indent-bars-1)) #("│" 0 1 (face indent-bars-2)) #("│" 0 1 (face indent-bars-3)) #("│" 0 1 (face indent-bars-4)) #("│" 0 1 (face indent-bars-5)) #("│" 0 1 (face indent-bars-6)) #("│" 0 1 (face indent-bars-7))] :current-stipple-face nil :current-bg-color nil :current-depth-palette ["#7fff7fff7fff" "#7fff7fff7fff" "#b130a2218b0a" "#7fff7fff7fff" "#8c8c9b1ab433" "#7fff7fff7fff" "#b9388807a2a2" "#7fff7fff7fff" "#9514a827a2a2" "#7fff7fff7fff" "#bfbf7fff7fff" "#7fff7fff7fff" "#9f9fababc7c7" "#7fff7fff7fff" "#acacacacacac" "#7fff7fff7fff"]) 20288 0 1 1 nil nil) indent-bars--draw-line(nil 1 20286 20289 nil nil nil) indent-bars--display(20286 20289) indent-bars--draw-all-bars-between(1 29445) indent-bars--fontify(1 29445 nil) font-lock-fontify-region(1 29445)

f(compiled-function (beg end) #<bytecode -0xd52be9b7d50d480>)(1 29445)

font-lock-ensure() my-todo-minor-mode() todo-mode() run-hooks(change-major-mode-after-body-hook prog-mode-hook makefile-mode-hook makefile-gmake-mode-hook) apply(run-hooks change-major-mode-after-body-hook (prog-mode-hook makefile-mode-hook makefile-gmake-mode-hook)) run-mode-hooks(makefile-gmake-mode-hook) makefile-gmake-mode() set-auto-mode-0(makefile-gmake-mode nil) set-auto-mode--apply-alist((("\(?:\.\(?:p\(?:th\|y[iw]?\)\)\|/\(?:SCons\(?:\(?:crip\|truc\)t\)\)\)\'" . python-mode) ("\.tsv\'" . tsv-mode) ("\.[Cc][Ss][Vv]\'" . csv-mode) ("\.ys\'" . fpga-yosys-ys-mode) ("\.xdc\'" . fpga-xilinx-vivado-xdc-mode) ("\.vsif\'" . fpga-cadence-vsif-mode) ("/git-rebase-todo\'" . git-rebase-mode) ("\.log\|.rct\'" . text-mode) ("\.\(?:md\|markdown\|mkd\|mdown\|mkdn\|mdwn\)\'" . markdown-mode) ("\.bin\|\.hex" . nhexl-mode) ("\.f16" . asm-mode) ("\.sdc\'" . fpga-altera-quartus-sdc-mode) ("\.qsf\'" . fpga-altera-quartus-qsf-mode) ("\.csv\'" . csv-mode) ("\.\(e?ya?\|ra\)ml\'" . yaml-mode) ("\.rs\'" . rust-mode) ("\.ps[dm]?1\'" . powershell-mode) ("\.vhdl" . vhdl-mode) ("\.vhd" . vhdl-mode) ("\.lpc" . text-mode) ("\.lpf" . text-mode) ("\.prj" . text-mode) ("\.xdc" . text-mode) ("\.ucf" . text-mode) ("\.xrr" . text-mode) ("\.xst" . text-mode) ("\.qsys" . text-mode) ("\.qsf" . text-mode) ("\.sdc" . text-mode) ("\.gpg\(~\|\.~[0-9]+~\)?\'" nil epa-file) ("\.elc\'" . elisp-byte-code-mode) ("\.zst\'" nil jka-compr) ("\.dz\'" nil jka-compr) ("\.xz\'" nil jka-compr) ("\.lzma\'" nil jka-compr) ("\.lz\'" nil jka-compr) ("\.g?z\'" nil jka-compr) ("\.bz2\'" nil jka-compr) ("\.Z\'" nil jka-compr) ("\.vr[hi]?\'" . vera-mode) ("\(?:\.\(?:rbw?\|ru\|rake\|thor\|axlsx\|jbuilder\|rabl\|gemspec\|podspec\)\|/\(?:Gem\|Rake\|Cap\|Thor\|Puppet\|Berks\|Brew\|Fast\|Vagrant\|Guard\|Pod\)file\)\'" . ruby-mode) ("\.re?st\'" . rst-mode) ("/\(?:Pipfile\|\.?flake8\)\'" . conf-mode) ("\.py[iw]?\'" . python-mode) ("\.m\'" . octave-maybe-mode) ("\.less\'" . less-css-mode) ("\.editorconfig\'" . editorconfig-conf-mode) ("\.scss\'" . scss-mode) ("\.cs\'" . csharp-mode) ("\.awk\'" . awk-mode) ...) nil nil) set-auto-mode() normal-mode(t) after-find-file(nil t)

jdtsmith commented 5 hours ago

Are you on the latest version? Do M-x trace-function indent-bars--blank-string then load the problem file and tell me what you see in the trace buffer. Does it always quit in that function?

snoopier commented 5 hours ago

The following output appears infinitely often. Endless Loop...

====================================================================== 1 -> (indent-bars--blank-string #s(indent-bars-style :tag nil :main-color "#f466fbeefab9" :depth-palette ["#d998d998d998" "#d998d998d998" "#e85ae3d6dce8" "#d998d998d998" "#dd5ce1bae941" "#d998d998d998" "#eac3dc01e3fc" "#d998d998d998" "#dfebe5a4e3fc" "#d998d998d998" "#ecb8d998d998" "#d998d998d998" "#e315e6b2ef21" "#d998d998d998" "#e6ffe6ffe6ff" "#d998d998d998"] :faces [indent-bars-1 indent-bars-2 indent-bars-3 indent-bars-4 indent-bars-5 indent-bars-6 indent-bars-7 indent-bars-8 indent-bars-9 indent-bars-10 indent-bars-11 indent-bars-12 indent-bars-13 indent-bars-14 indent-bars-15 indent-bars-16 indent-bars-17 indent-bars-18 indent-bars-19 indent-bars-20 indent-bars-21 indent-bars-22 indent-bars-23 indent-bars-24 indent-bars-25 indent-bars-26 indent-bars-27 indent-bars-28 indent-bars-29 indent-bars-30 indent-bars-31 indent-bars-32 indent-bars-33 indent-bars-34 indent-bars-35 indent-bars-36 indent-bars-37 indent-bars-38 indent-bars-39 indent-bars-40 indent-bars-41 indent-bars-42 indent-bars-43 indent-bars-44 indent-bars-45 indent-bars-46 indent-bars-47 indent-bars-48 indent-bars-49 indent-bars-50 indent-bars-51 indent-bars-52 indent-bars-53] :stipple-face indent-bars-face :no-stipple-chars [#("│" 0 1 (face indent-bars-1)) #("│" 0 1 (face indent-bars-2)) #("│" 0 1 (face indent-bars-3)) #("│" 0 1 (face indent-bars-4)) #("│" 0 1 (face indent-bars-5)) #("│" 0 1 (face indent-bars-6)) #("│" 0 1 (face indent-bars-7))] :current-stipple-face nil :current-bg-color nil :current-depth-palette ["#7fff7fff7fff" "#7fff7fff7fff" "#b130a2218b0a" "#7fff7fff7fff" "#8c8c9b1ab433" "#7fff7fff7fff" "#b9388807a2a2" "#7fff7fff7fff" "#9514a827a2a2" "#7fff7fff7fff" "#bfbf7fff7fff" "#7fff7fff7fff" "#9f9fababc7c7" "#7fff7fff7fff" "#acacacacacac" "#7fff7fff7fff"]) 0 0 1 2 nil nil) 1 <- indent-bars--blank-string: " "

snoopier commented 5 hours ago

I'm on Version: 0.8.1

jdtsmith commented 2 hours ago

Why so many bar depths (58?). What is indent-bars-spacing in the buffer? If you want to prepare a small Makefile that shows this and work up a reproduction from emacs -Q I can try to help; not much to go on here.