LunarVim / LunarVim

πŸŒ™ LunarVim is an IDE layer for Neovim. Completely free and community driven.
https://www.lunarvim.org
GNU General Public License v3.0
17.77k stars 1.49k forks source link

[Bug]: Failure to write to file after fresh install #730

Closed ChrisBFusion closed 2 years ago

ChrisBFusion commented 2 years ago

Problem description

  1. Install fresh copy of LunarVim
  2. Open ~/.config/nvim/lv-config.lua
  3. Change something
  4. Write change to file (:w)
  5. Error message appears (see log output below)

LunarVim version

0.4.0 (stable)

Neovim version (>= 0.5)

0.6.0-dev+14-gdf33f30e8

Relevant log output

nvim--version
`NVIM v0.6.0-dev+14-gdf33f30e8
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/usr/local/repos/neovim/build/config -I/usr/local/repos/neovim/src -I/usr/local/repos/neovim/.deps/usr/include -I/opt/local/include -I/usr/local/repos/neovim/build/src/nvim/auto -I/usr/local/repos/neovim/build/include
Compiled by chrisb@13inch-MacBook-Pro-9.local

Features: +acl +iconv +tui`

:messages
`Error detected while processing BufWritePre Autocommands for "*":
E492: Not an editor command:  Neoformat | catch /^Vim\%((\a\+)\)\=:E790/ | finally | silent Neoformat | endtry`

:checkhealth
`
health#which_key#check
========================================================================
## WhichKey: checking conflicting keymaps
  - 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>`

health#nvim_treesitter#check
========================================================================
## Installation
  - WARNING: `tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
  - OK: `node` found v14.17.0 (only needed for :TSInstallFromGrammar)
  - OK: `git` executable found.
  - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl" }
  - 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
  - ql             βœ“ βœ“ . βœ“ βœ“ 
  - regex          βœ“ . . . . 
  - dart           βœ“ βœ“ . βœ“ βœ“ 
  - json           βœ“ βœ“ βœ“ βœ“ . 
  - r              βœ“ βœ“ . . . 
  - html           βœ“ βœ“ βœ“ βœ“ βœ“ 
  - css            βœ“ . βœ“ βœ“ βœ“ 
  - scss           βœ“ . . βœ“ . 
  - javascript     βœ“ βœ“ βœ“ βœ“ βœ“ 
  - sparql         βœ“ βœ“ βœ“ βœ“ βœ“ 
  - typescript     βœ“ βœ“ βœ“ βœ“ βœ“ 
  - ruby           βœ“ βœ“ βœ“ βœ“ βœ“ 
  - yaml           βœ“ βœ“ βœ“ βœ“ βœ“ 
  - rust           βœ“ βœ“ βœ“ βœ“ βœ“ 
  - beancount      βœ“ . βœ“ . . 
  - svelte         βœ“ . βœ“ βœ“ βœ“ 
  - php            βœ“ βœ“ βœ“ βœ“ βœ“ 
  - bibtex         βœ“ . βœ“ βœ“ . 
  - kotlin         βœ“ . . . βœ“ 
  - elm            . . . . . 
  - graphql        βœ“ . . βœ“ βœ“ 
  - cmake          βœ“ . βœ“ . . 
  - java           βœ“ βœ“ . βœ“ βœ“ 
  - bash           βœ“ βœ“ βœ“ . βœ“ 
  - lua            βœ“ βœ“ βœ“ βœ“ βœ“ 
  - ocaml          βœ“ βœ“ βœ“ . βœ“ 
  - julia          βœ“ βœ“ βœ“ . βœ“ 
  - ocaml_interfaceβœ“ βœ“ βœ“ . βœ“ 
  - cpp            βœ“ βœ“ βœ“ βœ“ βœ“ 
  - c_sharp        βœ“ . βœ“ . βœ“ 
  - dockerfile     βœ“ . . . βœ“ 
  - ledger         βœ“ . βœ“ βœ“ βœ“ 
  - scala          . . . . . 
  - supercollider  βœ“ βœ“ βœ“ βœ“ βœ“ 
  - gomod          βœ“ . . . . 
  - toml           βœ“ βœ“ βœ“ βœ“ βœ“ 
  - glimmer        βœ“ . . . . 
  - fortran        βœ“ . βœ“ βœ“ . 
  - fish           βœ“ βœ“ βœ“ βœ“ βœ“ 
  - zig            βœ“ βœ“ βœ“ βœ“ βœ“ 
  - python         βœ“ βœ“ βœ“ βœ“ βœ“ 
  - vue            βœ“ . βœ“ . βœ“ 
  - erlang         . . . . . 
  - cuda           βœ“ βœ“ βœ“ βœ“ . 
  - jsonc          βœ“ βœ“ βœ“ βœ“ βœ“ 
  - jsdoc          βœ“ . . . . 
  - verilog        βœ“ βœ“ βœ“ . βœ“ 
  - c              βœ“ βœ“ βœ“ βœ“ βœ“ 
  - commonlisp     βœ“ βœ“ βœ“ . . 
  - nix            βœ“ βœ“ βœ“ . βœ“ 
  - clojure        βœ“ βœ“ βœ“ . βœ“ 
  - go             βœ“ βœ“ βœ“ βœ“ βœ“ 
  - tsx            βœ“ βœ“ βœ“ βœ“ βœ“ 
  - hcl            βœ“ . βœ“ . βœ“ 
  - rst            βœ“ βœ“ . . βœ“ 
  - latex          βœ“ . βœ“ . βœ“ 
  - fennel         βœ“ βœ“ . . βœ“ 
  - comment        βœ“ . . . . 
  - turtle         βœ“ βœ“ βœ“ βœ“ βœ“ 
  - query          βœ“ βœ“ βœ“ βœ“ βœ“ 

 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}

health#lspconfig#check
========================================================================
## Checking language server protocol configuration
  - INFO: sumneko_lua: configuration checked.
  - ERROR: emmet_ls: The given command "emmet-ls" is not executable.

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=^H
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
  - INFO: $TERM_PROGRAM='iTerm.app'
  - INFO: $COLORTERM='truecolor'

health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: pbcopy

## Python 2 provider (optional)
  - INFO: `g:python_host_prog` is not set.  Searching for python2 in the environment.
  - INFO: Multiple python2 executables found.  Set `g:python_host_prog` to avoid surprises.
  - INFO: Executable: /usr/local/bin/python2
  - INFO: Other python executable: /usr/bin/python2
  - INFO: Python version: 2.7.18
  - INFO: pynvim version: 0.4.3
  - OK: Latest pynvim is installed.

## Python 3 provider (optional)
  - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.
  - INFO: Executable: /usr/bin/python3
  - INFO: Python version: 3.8.2
  - INFO: pynvim version: 0.4.3
  - OK: Latest pynvim is installed.

## Python virtualenv
  - OK: no $VIRTUAL_ENV

## Ruby provider (optional)
  - INFO: Ruby: ruby 2.6.7p197 (2021-04-05 revision 67941) [x86_64-darwin20]
  - INFO: Host: /opt/local/bin/neovim-ruby-host
  - OK: Latest "neovim" gem is installed: 0.8.1

## Node.js provider (optional)
  - INFO: Node.js: v14.17.0
  - INFO: Nvim node.js host: /Users/chrisb/.nvm/versions/node/v14.17.0/lib/node_modules/neovim/bin/cli.js
  - OK: Latest "neovim" npm/yarn package is installed: 4.10.0

## Perl provider (optional)
  - ERROR: perl provider error:
    - ADVICE:
      - "Neovim::Ext" cpan module is not installed

health#treesitter#check
========================================================================
## Checking treesitter configuration
  - 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 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 c_sharp: ABI version 13
  - OK: Loaded parser for dart: ABI version 13
  - OK: Loaded parser for dockerfile: ABI version 13
  - OK: Loaded parser for elm: 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 fortran: ABI version 13
  - OK: Loaded parser for glimmer: ABI version 13
  - OK: Loaded parser for go: ABI version 13
  - OK: Loaded parser for gomod: ABI version 13
  - OK: Loaded parser for graphql: ABI version 13
  - OK: Loaded parser for hcl: ABI version 13
  - OK: Loaded parser for html: 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 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 lua: 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 php: 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 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 svelte: 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 verilog: ABI version 13
  - OK: Loaded parser for vue: ABI version 13
  - OK: Loaded parser for yaml: ABI version 13
  - OK: Loaded parser for zig: ABI version 13
  - OK: Loaded parser for c: 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 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 c_sharp: ABI version 13
  - OK: Loaded parser for dart: ABI version 13
  - OK: Loaded parser for dockerfile: ABI version 13
  - OK: Loaded parser for elm: 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 fortran: ABI version 13
  - OK: Loaded parser for glimmer: ABI version 13
  - OK: Loaded parser for go: ABI version 13
  - OK: Loaded parser for gomod: ABI version 13
  - OK: Loaded parser for graphql: ABI version 13
  - OK: Loaded parser for hcl: ABI version 13
  - OK: Loaded parser for html: 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 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 lua: 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 php: 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 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 svelte: 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 verilog: ABI version 13
  - OK: Loaded parser for vue: ABI version 13
  - OK: Loaded parser for yaml: ABI version 13
  - OK: Loaded parser for zig: ABI version 13
`

Screenshots

No response

I have

ChristianChiarulli commented 2 years ago

I just published an update to always load neoformat, please check if this helps. When you pull make sure to :PackerUpdate :PackerCompile

Or just blow it away and reinstall

ChrisBFusion commented 2 years ago

0.4.1 allows me to write to files