Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Deletion in windows doesn't work #43

Open
eyalk5 opened this issue Aug 18, 2021 · 3 comments
Open

Deletion in windows doesn't work #43

eyalk5 opened this issue Aug 18, 2021 · 3 comments

Comments

@eyalk5
Copy link

eyalk5 commented Aug 18, 2021

Hi,
I tried using the plugin on windows. Upon deleting any file (DD) , it returns error that the filename is incorrect.
I debugged it a bit, and it seems to transfer the name to fs_server.py OK.
I think that also moving with dd and p doesn't work.

Thanks. I hope you still maintain it.

@ipod825
Copy link
Owner

ipod825 commented Aug 22, 2021

Could you post the error message?

@eyalk11
Copy link

eyalk11 commented Sep 18, 2021

File name, directory name or volume label syntax is incorrect
I noticed that in running the job all the \ are treated as special chars instead of as folders. I am not sure why.

@ipod825
Copy link
Owner

ipod825 commented Sep 18, 2021

I spent half day trying to setup the environment on Windows. But it turned out to be more complicated than I thought. I just realized that libmagic on Windows also need special treatment. And it seems to be very up-portable from the github page

You'll need DLLs for libmagic. @julian-r has uploaded a version of this project that includes binaries to PyPI: https://pypi.python.org/pypi/python-magic-bin/0.4.14
Other sources of the libraries in the past have been File for Windows . You will need to copy the file magic out of [binary-zip]\share\misc, and pass its location to Magic(magic_file=...).
If you are using a 64-bit build of python, you'll need 64-bit libmagic binaries which can be found here: https://github.com/pidydx/libmagicwin64. Newer version can be found here: https://github.com/nscaife/file-windows.

Therefore, I am hesitant to maintain this plugin for Windows (and I don't use Windows on a regular basis). But feel free to send a pull request.

eyalk11 added a commit to eyalk11/vim-netranger that referenced this issue Dec 5, 2021
eyalk11 added a commit to eyalk11/vim-netranger that referenced this issue Dec 5, 2021
eyalk11 added a commit to eyalk11/vim-netranger that referenced this issue Dec 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants