fsharp / zarchive-vim-fsharp

F# bindings for vim
MIT License
142 stars 34 forks source link

Error in filetype plugin when loading .fsx file #100

Open benfranklin79 opened 6 years ago

benfranklin79 commented 6 years ago

When I edit a script file in vim I get the following

Error detected while processing /Users/benfranklin/.vim/bundle/vim-fsharp/ftplugin/fsharp.vim:
line   81:
Traceback (most recent call last):
  File "<string>", line 25, in <module>
  File "<string>", line 21, in get_path
TypeError: argument of type 'NoneType' is not iterable

After I hit enter the file loads but without any syntax highlighting

benfranklin79 commented 6 years ago

May have a workaround. I tried explicitly loading the plugin (I'm using https://github.com/junegunn/vim-plug) using the command

:PlugInstall vim-fsharp

and then tried reloading the file (:e % when in the file) and I don't get the error and the syntax highlighting is back

kjnilsson commented 6 years ago

Something might be wrong with the plug config perhaps? I don’t use it myself so PRs are greatly appreciated. :) On Tue, 14 Nov 2017 at 11:37, Ben Franklin notifications@github.com wrote:

May have a workaround. I tried explicitly loading the plugin (I'm using https://github.com/junegunn/vim-plug) using the command

:PlugInstall vim-fsharp

and then tried reloading the file (:e % when in the file) and I don't get the error and the syntax highlighting is back

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fsharp/vim-fsharp/issues/100#issuecomment-344232243, or mute the thread https://github.com/notifications/unsubscribe-auth/ABIDlIizC4QzMnelpukK37MNUWNo9EQjks5s2Xt2gaJpZM4QdMkb .