Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backend install crashing with indent-blankline installed #53

Open
prashantjoge opened this issue Jan 10, 2022 · 5 comments
Open

backend install crashing with indent-blankline installed #53

prashantjoge opened this issue Jan 10, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@prashantjoge
Copy link

This is my prosesetter.lua file

require("telescope").load_extension("prosesitter") -- Optionally, depends on telescope.nvim
require("prosesitter"):setup({
	vale_bin = vim.fn.stdpath("data") .. "/user/bin/vale",
	vale_cfg = vim.fn.stdpath("data") .. "$HOME/.config/vale/.vale.ini",
	--optional extra queries overrides existing queries
	queries = {
		-- see the piece on adding queries on how to use this
		-- (not needed if using an out of the box supported language
		py = {
			strings = "[(string) ] @capture",
			comments = "[(comment)+ ] @capture",
		},
	},
	-- highlight groups to use for lint errors, warnings and suggestions
	severity_to_hl = { error = "SpellBad", warning = "SpellRare", suggestion = "SpellCap" },
	-- weather to lint strings, comments or both for a language
	lint_targets = { py = "both", tex = "strings", sh = "comments" },
	disabled_ext = { "tex" }, -- do not ever lint tex files
	auto_enable = false, -- do not start linting files on open (default = true)
	default_cmds = false, -- do not add commands (default = true)
})

I am getting the following error

Language tool not installed, install language tool? y/n: yError detected while processing /home/aaron/.dotfiles/nvim/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ...ck/packer/start/impatient.nvim/lua/impatient/profile.lua:146: ...e/pack/packer/start/prosesitter/lua/prosesitter/util.
lua:16: Vim:E492: Not an editor command: IndentBlanklineRefresh

The language tool is already installed but it will still ask to be installed. Neverthless....

@dvdsk
Copy link
Owner

dvdsk commented Jan 10, 2022

Thanks for trying out my plugin!
I see the auto installer is giving you a bit of a problem. I recently worked on that, I have merged those changes. Could you try updating the plugin and see what happens?

Also can you check if you are using neovim 0.6 (neovim --version)?

The language tool is already installed but it will still ask to be installed.

I will make it possible to use your own install in the future once I get all bugs ironed out.

@prashantjoge
Copy link
Author

I am not sure how to update the plugin. I use lunarvim. So I disabled and enabled the plugin. Assuming it takes the latest from the repo. Please find everything related to my nvim install . nvim -v, and :checkhealth. By the way I still get the same error

NVIM v0.6.1
Build type: Release
LuaJIT 2.0.5
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

null-ls: require("null-ls.health").check()

  • INFO: spell: cannot verify if the command is an executable.
  • OK: misspell: the command "misspell" is executable.
  • OK: prettier: the command "prettier" is executable.
  • OK: stylua: the command "stylua" is executable.
  • OK: write_good: the command "write-good" is executable.
  • OK: vale: the command "vale" is executable.

nvim: health#nvim#check

Configuration

  • OK: no issues found

Performance

  • OK: Build type: Release

Remote Plugins

  • OK: Up to date

terminal

  • INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
  • INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
  • INFO: $COLORTERM='rxvt-xpm'

nvim-lsp-installer: require("nvim-lsp-installer.health").check()

nvim-lsp-installer report

  • OK: neovim version >= 0.6.0
  • WARNING: Ruby: not available
  • WARNING: RubyGem: not available
  • WARNING: Composer: not available
  • WARNING: javac: not available
  • OK: bash: GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
  • OK: tar: tar (GNU tar) 1.34
  • OK: gzip: gzip 1.11
  • OK: curl: curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/1.1.1m zlib/1.2.11 brotli/1.0.9 zstd/1.5.1 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.10.0 nghttp2/1.46.0
  • OK: wget: GNU Wget 1.21.2 built on linux-gnu.
  • OK: python3: Python 3.10.1
  • OK: node: v17.3.0
  • OK: PHP: PHP 8.0.14 (cli) (built: Dec 17 2021 14:16:47) ( NTS )
  • OK: Go: go version go1.17.6 linux/amd64
  • OK: sh: Ok
  • OK: java: Ok
  • OK: pip3: pip 21.3.1 from /home/aaron/.local/lib/python3.10/site-packages/pip (python 3.10)
  • OK: npm: 8.3.0

nvim-treesitter: require("nvim-treesitter.health").check()

Installation

  • OK: tree-sitter found 0.20.2 (parser generator, only needed for :TSInstallFromGrammar)
  • OK: node found v17.3.0 (only needed for :TSInstallFromGrammar)
  • OK: git executable found.
  • OK: cc executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
    Version: cc (GCC) 11.1.0
  • OK: Neovim was compiled with tree-sitter runtime ABI version 13 (required >=13). Parsers must be compatible with runtime ABI.

Parser/Features H L F I J

  • ocaml_interface✓ ✓ ✓ . ✓
  • beancount ✓ . ✓ . .
  • python ✓ ✓ ✓ ✓ ✓
  • sparql ✓ ✓ ✓ ✓ ✓
  • comment ✓ . . . .
  • lua ✓ ✓ ✓ ✓ ✓
  • ocaml ✓ ✓ ✓ . ✓
  • ninja ✓ . ✓ ✓ .
  • ql ✓ ✓ . ✓ ✓
  • glsl ✓ ✓ ✓ ✓ ✓
  • json ✓ ✓ ✓ ✓ .
  • pug ✓ . . . ✓
  • ledger ✓ . ✓ ✓ ✓
  • php ✓ ✓ ✓ ✓ ✓
  • clojure ✓ ✓ ✓ . ✓
  • supercollider ✓ ✓ ✓ ✓ ✓
  • heex ✓ . ✓ ✓ ✓
  • godot_resource ✓ ✓ ✓ . .
  • typescript ✓ ✓ ✓ ✓ ✓
  • fennel ✓ ✓ . . ✓
  • query ✓ ✓ ✓ ✓ ✓
  • cpp ✓ ✓ ✓ ✓ ✓
  • vue ✓ . ✓ ✓ ✓
  • latex ✓ . ✓ . ✓
  • make ✓ . . . ✓
  • rst ✓ ✓ . . ✓
  • css ✓ . ✓ ✓ ✓
  • glimmer ✓ . . . .
  • erlang . . . . .
  • gowork ✓ . . . ✓
  • regex ✓ . . . .
  • svelte ✓ . ✓ ✓ ✓
  • nix ✓ ✓ ✓ . ✓
  • c ✓ ✓ ✓ ✓ ✓
  • teal ✓ ✓ ✓ ✓ ✓
  • java ✓ ✓ . ✓ ✓
  • prisma ✓ . . . .
  • http ✓ . . . ✓
  • hjson ✓ ✓ ✓ ✓ ✓
  • gomod ✓ . . . ✓
  • dart ✓ ✓ . ✓ ✓
  • llvm ✓ . . . .
  • pioasm ✓ . . . ✓
  • bash ✓ ✓ ✓ . ✓
  • json5 ✓ . . . ✓
  • vim ✓ ✓ . . ✓
  • yaml ✓ ✓ ✓ ✓ ✓
  • cmake ✓ . ✓ . .
  • zig ✓ . ✓ ✓ ✓
  • bibtex ✓ . ✓ ✓ .
  • r ✓ ✓ . . .
  • julia ✓ ✓ ✓ ✓ ✓
  • devicetree ✓ ✓ ✓ ✓ ✓
  • jsdoc ✓ . . . .
  • gdscript ✓ ✓ . . ✓
  • turtle ✓ ✓ ✓ ✓ ✓
  • pascal ✓ ✓ ✓ ✓ ✓
  • toml ✓ ✓ ✓ ✓ ✓
  • tsx ✓ ✓ ✓ ✓ ✓
  • fusion ✓ ✓ ✓ ✓ .
  • javascript ✓ ✓ ✓ ✓ ✓
  • yang ✓ . ✓ . .
  • surface ✓ . ✓ ✓ ✓
  • dot ✓ . . . ✓
  • go ✓ ✓ ✓ ✓ ✓
  • commonlisp ✓ ✓ ✓ . .
  • cuda ✓ ✓ ✓ ✓ ✓
  • c_sharp ✓ ✓ ✓ . ✓
  • elixir ✓ ✓ ✓ ✓ ✓
  • kotlin ✓ ✓ ✓ . ✓
  • ruby ✓ ✓ ✓ ✓ ✓
  • fish ✓ ✓ ✓ ✓ ✓
  • ocamllex ✓ . . . ✓
  • scala ✓ . ✓ . ✓
  • dockerfile ✓ . . . ✓
  • rust ✓ ✓ ✓ ✓ ✓
  • jsonc ✓ ✓ ✓ ✓ ✓
  • perl ✓ . . . .
  • tlaplus ✓ . ✓ . ✓
  • html ✓ ✓ ✓ ✓ ✓
  • scss ✓ . . ✓ .
  • graphql ✓ . . ✓ ✓
  • rasi ✓ ✓ ✓ ✓ .
  • hcl ✓ . ✓ ✓ ✓

Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang}

provider: health#provider#check

Clipboard (optional)

  • OK: Clipboard tool found: xclip

Python 2 provider (optional)

  • WARNING: No Python executable found that can import neovim. Using the first available executable for diagnostics.
  • ERROR: Python provider error:
    • ADVICE:
      • provider/pythonx: Could not load Python 2:
        /usr/bin/python2 does not have the "neovim" module. :help |provider-python|
        /usr/bin/python2.7 does not have the "neovim" module. :help |provider-python|
        python2.6 not found in search path or not executable.
        /usr/bin/python is Python 3.10 and cannot provide Python 2.
  • INFO: Executable: Not found

Python 3 provider (optional)

  • INFO: g:python3_host_prog is not set. Searching for python3 in the environment.
  • INFO: Multiple python3 executables found. Set g:python3_host_prog to avoid surprises.
  • INFO: Executable: /usr/bin/python3
  • INFO: Other python executable: /bin/python3
  • INFO: Python version: 3.10.1
  • INFO: pynvim version: 0.4.3
  • OK: Latest pynvim is installed.

Python virtualenv

  • OK: no $VIRTUAL_ENV

Ruby provider (optional)

  • WARNING: ruby and gem must be in $PATH.
    • ADVICE:
      • Install Ruby and verify that ruby and gem commands work.

Node.js provider (optional)

  • INFO: Node.js: v17.3.0
  • INFO: Nvim node.js host: /usr/lib/node_modules/neovim/bin/cli.js
  • OK: Latest "neovim" npm/yarn package is installed: 4.10.1

Perl provider (optional)

  • INFO: perl executable: /usr/bin/perl
  • WARNING: Can't write to /usr/share/perl5/site_perl and /usr/bin: Installing modules to /home/aaron/perl5
    • ADVICE:
      • To turn off this warning, you have to do one of the following:
        • run me as a root or with --sudo option (to install to /usr/share/perl5/site_perl and /usr/bin)
        • Configure local::lib in your existing shell to set PERL_MM_OPT etc.
        • Install local::lib by running the following commands
      •      cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
        
  • OK: Latest "Neovim::Ext" cpan module is installed: 0.05

telescope: require("telescope.health").check()

Checking for required plugins

  • OK: plenary installed.
  • OK: nvim-treesitter installed.

Checking external dependencies

  • OK: rg: found ripgrep 13.0.0
  • OK: fd: found fd 8.3.1

===== Installed extensions =====

Telescope Extension: media_files

  • INFO: No healthcheck provided

Telescope Extension: projects

  • INFO: No healthcheck provided

Telescope Extension: prosesitter

  • INFO: No healthcheck provided

vim.lsp: require("vim.lsp.health").check()

  • INFO: LSP log level : WARN
  • INFO: Log path: /home/aaron/.cache/nvim/lsp.log
  • INFO: Log size: 1 KB

vim.treesitter: require("vim.treesitter.health").check()

  • INFO: Runtime ABI version : 13
  • OK: Loaded parser for bash: ABI version 13
  • OK: Loaded parser for beancount: ABI version 13
  • OK: Loaded parser for bibtex: ABI version 13
  • OK: Loaded parser for c: ABI version 13
  • OK: Loaded parser for c_sharp: ABI version 13
  • OK: Loaded parser for clojure: ABI version 13
  • OK: Loaded parser for cmake: ABI version 13
  • OK: Loaded parser for comment: ABI version 13
  • OK: Loaded parser for commonlisp: ABI version 13
  • OK: Loaded parser for cpp: ABI version 13
  • OK: Loaded parser for css: ABI version 13
  • OK: Loaded parser for cuda: ABI version 13
  • OK: Loaded parser for dart: ABI version 13
  • OK: Loaded parser for devicetree: ABI version 13
  • OK: Loaded parser for dockerfile: ABI version 13
  • OK: Loaded parser for dot: ABI version 13
  • OK: Loaded parser for elixir: ABI version 13
  • OK: Loaded parser for erlang: ABI version 13
  • OK: Loaded parser for fennel: ABI version 13
  • OK: Loaded parser for fish: ABI version 13
  • OK: Loaded parser for fusion: ABI version 13
  • OK: Loaded parser for gdscript: ABI version 13
  • OK: Loaded parser for glimmer: ABI version 13
  • OK: Loaded parser for glsl: ABI version 13
  • OK: Loaded parser for go: ABI version 13
  • OK: Loaded parser for godot_resource: ABI version 13
  • OK: Loaded parser for gomod: ABI version 13
  • OK: Loaded parser for gowork: ABI version 13
  • OK: Loaded parser for graphql: ABI version 13
  • OK: Loaded parser for hcl: ABI version 13
  • OK: Loaded parser for heex: ABI version 13
  • OK: Loaded parser for hjson: ABI version 13
  • OK: Loaded parser for html: ABI version 13
  • OK: Loaded parser for http: ABI version 13
  • OK: Loaded parser for java: ABI version 13
  • OK: Loaded parser for javascript: ABI version 13
  • OK: Loaded parser for jsdoc: ABI version 13
  • OK: Loaded parser for json: ABI version 13
  • OK: Loaded parser for json5: ABI version 13
  • OK: Loaded parser for jsonc: ABI version 13
  • OK: Loaded parser for julia: ABI version 13
  • OK: Loaded parser for kotlin: ABI version 13
  • OK: Loaded parser for latex: ABI version 13
  • OK: Loaded parser for ledger: ABI version 13
  • OK: Loaded parser for llvm: ABI version 13
  • OK: Loaded parser for lua: ABI version 13
  • OK: Loaded parser for make: ABI version 13
  • OK: Loaded parser for ninja: ABI version 13
  • OK: Loaded parser for nix: ABI version 13
  • OK: Loaded parser for ocaml: ABI version 13
  • OK: Loaded parser for ocaml_interface: ABI version 13
  • OK: Loaded parser for ocamllex: ABI version 13
  • OK: Loaded parser for org: ABI version 13
  • OK: Loaded parser for pascal: ABI version 13
  • OK: Loaded parser for perl: ABI version 13
  • OK: Loaded parser for php: ABI version 13
  • OK: Loaded parser for pioasm: ABI version 13
  • OK: Loaded parser for prisma: ABI version 13
  • OK: Loaded parser for pug: ABI version 13
  • OK: Loaded parser for python: ABI version 13
  • OK: Loaded parser for ql: ABI version 13
  • OK: Loaded parser for query: ABI version 13
  • OK: Loaded parser for r: ABI version 13
  • OK: Loaded parser for rasi: ABI version 13
  • OK: Loaded parser for regex: ABI version 13
  • OK: Loaded parser for rst: ABI version 13
  • OK: Loaded parser for ruby: ABI version 13
  • OK: Loaded parser for rust: ABI version 13
  • OK: Loaded parser for scala: ABI version 13
  • OK: Loaded parser for scss: ABI version 13
  • OK: Loaded parser for sparql: ABI version 13
  • OK: Loaded parser for supercollider: ABI version 13
  • OK: Loaded parser for surface: ABI version 13
  • OK: Loaded parser for svelte: ABI version 13
  • OK: Loaded parser for teal: ABI version 13
  • OK: Loaded parser for tlaplus: ABI version 13
  • OK: Loaded parser for toml: ABI version 13
  • OK: Loaded parser for tsx: ABI version 13
  • OK: Loaded parser for turtle: ABI version 13
  • OK: Loaded parser for typescript: ABI version 13
  • OK: Loaded parser for vim: ABI version 13
  • OK: Loaded parser for vue: ABI version 13
  • OK: Loaded parser for yaml: ABI version 13
  • OK: Loaded parser for yang: ABI version 13
  • OK: Loaded parser for zig: ABI version 13

which_key: health#which_key#check

WhichKey: checking conflicting keymaps

  • WARNING: conflicting keymap exists for mode "n", lhs: "gc"
  • INFO: rhs: <Cmd>lua require("Comment.api").call("toggle_linewise_op")<CR>g@
  • WARNING: conflicting keymap exists for mode "n", lhs: "gb"
  • INFO: rhs: <Cmd>lua require("Comment.api").call("toggle_blockwise_op")<CR>g@
  • WARNING: buffer-local keymap overriding global for mode "x", buf: 0, lhs: " "
  • INFO: old rhs: <Nop>
  • INFO: new rhs: <cmd>lua require("which-key").show(" ", {mode = "v", auto = true})<cr>
  • WARNING: buffer-local keymap overriding global for mode "n", buf: 0, lhs: " "
  • INFO: old rhs: <Nop>
  • INFO: new rhs: <cmd>lua require("which-key").show(" ", {mode = "n", auto = true})<cr>

@dvdsk
Copy link
Owner

dvdsk commented Jan 11, 2022

It seems lunarvim uses Packer. You can use :PackerSync to update. I do not think Enabling and disabling will do anything as the old files stay cached.

@prashantjoge
Copy link
Author

It seems lunarvim uses Packer. You can use :PackerSync to update. I do not think Enabling and disabling will do anything as the old files stay cached.

I tried that.... didn't seem to make a difference

Language tool not installed, install language tool? y/n: yError detected while processing /home/aaron/.dotfiles/nvim/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ...ck/packer/start/impatient.nvim/lua/impatient/profile.lua:146: ...e/pack/packer/start/prosesitter/lua/prosesitter/util.
lua:16: Vim:E492: Not an editor command: IndentBlanklineRefresh
stack traceback:
        [C]: in function 'error'
        ...ck/packer/start/impatient.nvim/lua/impatient/profile.lua:146: in function 'require'
        /home/aaron/.config/nvim/init.lua:25: in main chunk

Didn't know about packersync. so I learned something new. Thanks :)

@dvdsk dvdsk self-assigned this Feb 10, 2022
@dvdsk dvdsk added the bug Something isn't working label Feb 10, 2022
@dvdsk
Copy link
Owner

dvdsk commented Feb 10, 2022

Took some time for me to come back to this, it is quite a strange error. It looks like you have the indent-blanklines (https://github.com/lukas-reineke/indent-blankline.nvim) plugin installed.

When my plugin tries to open a new neovim split to display install progress an autocommand issues the IndentBlankLineRefresh command from the indent-blanklines plugin. For some reason it is not available in your neovim instance when my plugin runs.

Could you keep my plugin removed and check if you can call the command IndentBlanklineRefresh? (just type :IndentBlanklineRefresh in normal mode). Please let me know if you get an error or not.

@dvdsk dvdsk changed the title Prositter not working with vale backend install crashing with indent-blankline installed Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants