Error when opening fs-files (fsharpvim.py, get_paths)
b0wter opened this issue · 2 comments
b0wter commented
I've installed this plugin using vim-plug on openSUSE Tumbleweed. I keep everything up-to-date (only distribution provided packages).
This is the error message I got initially:
Error message:
"Program.fs" [noeol] 96L, 3439C
Error detected while processing /home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharp.vim:
line 81:
Traceback (most recent call last):
File "<string>", line 25, in <module>
File "<string>", line 22, in get_path
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 165, in get_paths
return self._getpaths.send("compilerlocation\n")
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 47, in send
self._write(command)
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 32, in _write
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
File "<string>", line 25, in <module>
File "<string>", line 22, in get_path
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 165, in get_paths
return self._getpaths.send("compilerlocation\n")
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 47, in send
self._write(command)
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 32, in _write
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
"Program.fs" [noeol] 96L, 3439C
Error detected while processing /home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharp.vim:
line 81:
Traceback (most recent call last):
File "<string>", line 25, in <module>
File "<string>", line 22, in get_path
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 165, in get_paths
return self._getpaths.send("compilerlocation\n")
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 47, in send
self._write(command)
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 32, in _write
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
File "<string>", line 25, in <module>
File "<string>", line 22, in get_path
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 165, in get_paths
return self._getpaths.send("compilerlocation\n")
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 47, in send
self._write(command)
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 32, in _write
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
So I rechecked the options and added the following to my vimrc:
let g:fsharp_interactive_bin = '/usr/bin/fsharpi'
let g:fsharp_xbuild_path = "/usr/bin/xbuild"
Which reduced the amount of errors, but didnt fix them:
Error detected while processing /home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharp.vim:
line 81:
Traceback (most recent call last):
File "<string>", line 40, in <module>
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 154, in parse
self.send(line + "\n")
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 106, in send
self.p.stdin.write(txt)
BrokenPipeError: [Errno 32] Broken pipe
Error detected while processing function fsharpbinding#python#OnBufEnter:
line 10:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 152, in parse
self.send("parse \"%s\"\n" % (fn))
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 106, in send
self.p.stdin.write(txt)
BrokenPipeError: [Errno 32] Broken pipe
Mono version:
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen (concurrent by default)
VIM version:
VIM - Vi IMproved 8.0 (2016 Sep 12)
Included patches: 1-1442
Compiled by 'http://www.opensuse.org/'
Huge version without GUI.
kjnilsson commented
I have never tested installation using plug. It looks like make was never
run. Can you try running make in the vim-fsharp directory manually?
…On Thu, 8 Feb 2018 at 20:58, b0wter ***@***.***> wrote:
I've installed this plugin using vim-plug on openSUSE Tumbleweed. I keep
everything up-to-date (only distribution provided packages).
This is the error message I got initially:
*Error message:*
"Program.fs" [noeol] 96L, 3439C
Error detected while processing /home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharp.vim:
line 81:
Traceback (most recent call last):
File "<string>", line 25, in <module>
File "<string>", line 22, in get_path
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 165, in get_paths
return self._getpaths.send("compilerlocation\n")
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 47, in send
self._write(command)
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 32, in _write
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
File "<string>", line 25, in <module>
File "<string>", line 22, in get_path
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 165, in get_paths
return self._getpaths.send("compilerlocation\n")
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 47, in send
self._write(command)
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 32, in _write
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
"Program.fs" [noeol] 96L, 3439C
Error detected while processing /home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharp.vim:
line 81:
Traceback (most recent call last):
File "<string>", line 25, in <module>
File "<string>", line 22, in get_path
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 165, in get_paths
return self._getpaths.send("compilerlocation\n")
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 47, in send
self._write(command)
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 32, in _write
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
File "<string>", line 25, in <module>
File "<string>", line 22, in get_path
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 165, in get_paths
return self._getpaths.send("compilerlocation\n")
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 47, in send
self._write(command)
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 32, in _write
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
So I rechecked the options and added the following to my vimrc:
let g:fsharp_interactive_bin = '/usr/bin/fsharpi'
let g:fsharp_xbuild_path = "/usr/bin/xbuild"
Which reduced the amount of errors, but didnt fix them:
Error detected while processing /home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharp.vim:
line 81:
Traceback (most recent call last):
File "<string>", line 40, in <module>
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 154, in parse
self.send(line + "\n")
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 106, in send
self.p.stdin.write(txt)
BrokenPipeError: [Errno 32] Broken pipe
Error detected while processing function fsharpbinding#python#OnBufEnter:
line 10:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 152, in parse
self.send("parse \"%s\"\n" % (fn))
File "/home/b0wter/.vim/plugged/vim-fsharp/ftplugin/fsharpvim.py", line 106, in send
self.p.stdin.write(txt)
BrokenPipeError: [Errno 32] Broken pipe
*Mono version:*
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen (concurrent by default)
*VIM version:*
VIM - Vi IMproved 8.0 (2016 Sep 12)
Included patches: 1-1442
Compiled by 'http://www.opensuse.org/'
Huge version without GUI.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#101>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABIDlPpfsN7XKs8bY48_m--QF1Kug2Z3ks5tS1__gaJpZM4R_A84>
.
b0wter commented
Completely my fault. The installation with vim-plug works just fine but you have to use the correct command:
Plug 'fsharp/vim-fsharp', {
\ 'for': 'fsharp',
\ 'do': 'make fsautocomplete',
\}
I've just blindly copied the command given in the summary on vimawesome.com