fsharp / zarchive-vim-fsharp

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

"No such file or directory" error upon opening an .fs file #64

Closed markvincze closed 7 years ago

markvincze commented 7 years ago

I'm trying to use vim-fsharp with neovim. I've just installed the plugin for the first time by cloning it into my bundles directory. Then I've run make in the directory of the plugin, it ran without any errors.

When I start vim and open an .fs file, I get the following error printed:

"Program.fs" 8L, 157C                                                                                                                                                                                                                                                                                                          
Error detected while processing function provider#python#Call:                                                                                                                                                                                                                                                                 
line   18:                                                                                                                                                                                                                                                                                                                     
Traceback (most recent call last):                                                                                                                                                                                                                                                                                             
  File "<string>", line 28, in <module>                                                                                                                                                                                                                                                                                        
  File "/home/mvincze/.config/nvim/bundle/vim-fsharp/ftplugin/fsi.py", line 19, in __init__                                                                                                                                                                                                                                    
    self.p = Popen(command, **opts)                                                                                                                                                                                                                                                                                            
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__                                                                                                                                                                                                                                                               
    errread, errwrite)                                                                                                                                                                                                                                                                                                         
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child                                                                                                                                                                                                                                                        
    raise child_exception                                                                                                                                                                                                                                                                                                      
OSError: [Errno 2] No such file or directory                                                                                                                                                                                                                                                                                   
Error detected while processing function fsharpbinding#python#OnBufEnter[10]..provider#python#Call:                                                                                                                                                                                                                            
line   18:                                                                                                                                                                                                                                                                                                                     
Traceback (most recent call last):                                                                                                                                                                                                                                                                                             
  File "<string>", line 4, in <module>                                                                                                                                                                                                                                                                                         
AttributeError: 'NoneType' object has no attribute 'cd'

I've also tried to execute install.sh (ran successfully), but then in vim I still get the same error. This is happening on Ubuntu 16.04.

Do you know what could be the problem, or how I could investigate more?

kjnilsson commented 7 years ago

How did you install fsharp? On Tue, 27 Dec 2016 at 09:04, Mark Vincze notifications@github.com wrote:

I'm trying to use vim-fsharp with neovim. I've just installed the plugin for the first time by cloning it into my bundles directory. Then I've run make in the directory of the plugin, it ran without any errors.

When I start vim and open an .fs file, I get the following error printed:

"Program.fs" 8L, 157C Error detected while processing function provider#python#Call: line 18: Traceback (most recent call last): File "", line 28, in File "/home/mvincze/.config/nvim/bundle/vim-fsharp/ftplugin/fsi.py", line 19, in init self.p = Popen(command, **opts) File "/usr/lib/python2.7/subprocess.py", line 711, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Error detected while processing function fsharpbinding#python#OnBufEnter[10]..provider#python#Call: line 18: Traceback (most recent call last): File "", line 4, in AttributeError: 'NoneType' object has no attribute 'cd'

I've also tried to execute install.sh (ran successfully), but then in vim I still get the same error. This is happening on Ubuntu 16.04.

Do you know what could be the problem, or how I could investigate more?

— 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/64, or mute the thread https://github.com/notifications/unsubscribe-auth/ABIDlG1UMMJO7uhrUvL_sT6H3HouHE9Oks5rMNSJgaJpZM4LWIqk .

markvincze commented 7 years ago

@kjnilsson I didn't :smiley:. I just got started with F# and .NET Core, and I only had the .NET Core SDK installed, and I was able to compile and run an F# hello world, so I assumed I had everything for F# development.

I installed the fsharp package with apt-get now, and the problem went away. Thanks!