preservim / vim-wordy

Uncover usage problems in your writing
Other
716 stars 23 forks source link

Wordy doesn't work; invalid argument spelllang=en,/..... #33

Closed ntguardian closed 5 years ago

ntguardian commented 5 years ago

When I type :Wordy redundant or basically any wordy command I get something like the following (except maybe I don't get the rebuild):

Reading word file /home/curtis/.vim/plugged/vim-wordy/data/en/redundant.dic...                                          
Compressing word tree...
Compressed 1190 of 3937 nodes; 2747 (69%) remaining
Writing spell file /home/curtis/.vim/plugged/vim-wordy/spell/redundant.en.utf-8.spl...
Done!
Estimated runtime memory use: 13735 bytes
Error detected while processing function wordy#init:
line   60:
E474: Invalid argument: spelllang=en,/home/curtis/.vim/plugged/vim-wordy/spell/redundant.en.utf-8.spl
Press ENTER or type command to continue
smitropoulos commented 5 years ago

You are not alone! Have this too in other words...

MacOSX Mojave

E474: Invalid argument: spelllang=en,/Users/stefanosmitropoulos/git/dotfiles/.vim/plugged/vim-wordy/spell/weak.en.utf-8.spl

VIM - Vi IMproved 8.1 (2018 May 18, compiled May 30 2019 19:14:02) macOS version Included patches: 1-1400 Compiled by Homebrew Huge version without GUI. Features included (+) or not (-): +acl +extra_search +mouse_netterm -tag_old_static +arabic -farsi +mouse_sgr -tag_any_white +autocmd +file_in_path -mouse_sysmouse -tcl +autochdir +find_in_path +mouse_urxvt +termguicolors -autoservername +float +mouse_xterm +terminal -balloon_eval +folding +multi_byte +terminfo +balloon_eval_term -footer +multi_lang +termresponse -browse +fork() -mzscheme +textobjects ++builtin_terms +gettext +netbeans_intg +textprop +byte_offset -hangul_input +num64 +timers +channel +iconv +packages +title +cindent +insert_expand +path_extra -toolbar -clientserver +job +perl +user_commands +clipboard +jumplist +persistent_undo +vartabs +cmdline_compl +keymap +postscript +vertsplit +cmdline_hist +lambda +printer +virtualedit +cmdline_info +langmap +profile +visual +comments +libcall -python +visualextra +conceal +linebreak +python3 +viminfo +cryptv +lispindent +quickfix +vreplace +cscope +listcmds +reltime +wildignore +cursorbind +localmap +rightleft +wildmenu +cursorshape +lua +ruby +windows +dialog_con +menu +scrollbind +writebackup +diff +mksession +signs -X11 +digraphs +modify_fname +smartindent -xfontset -dnd +mouse +startuptime -xim -ebcdic -mouseshape +statusline -xpm +emacs_tags +mouse_dec -sun_workshop -xsmp +eval -mouse_gpm +syntax -xterm_clipboard +ex_extra -mouse_jsbterm +tag_binary -xterm_save system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" defaults file: "$VIMRUNTIME/defaults.vim" fall-back for $VIM: "/usr/local/share/vim" Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -DMACOS_X_DARWIN -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: clang -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -o vim -lncurses -liconv -lintl -framework AppKit -L/usr/local/opt/lua/lib -llua5.3 -mmacosx-version-min=10.14 -fstack-protector-strong -L/usr/local/lib -L/usr/local/Cellar/perl/5.30.0/lib/perl5/5.30.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc -L/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -framework CoreFoundation -lruby.2.6

lordievader commented 5 years ago

Same problem here. I get the feeling this is due to an update with vim. More things broke with a recent update. I'm currently running 8.0.1298.

Edit: just downgraded to 8.1.0648-r1 and the error disappeared.

mys721tx commented 5 years ago

MacVim 8.1.722 also has the same problem. Is it a problem with the upstream or that vim-wordy was depending on a particular behavior of the older version?

frrobert2 commented 5 years ago

Same issue on 8.1.192 running on Ubuntu 16.04. I compiled using the Huge switch.

frrobert2 commented 5 years ago

I tried bcl's commit and it word great for me. Thank you

lordievader commented 5 years ago

I tried it too. Loaded via Vim's native plugin support. Fixes this issue.

reedes commented 5 years ago

Applied bcl's patch to master. Sorry for the delay.