vim-erlang / vim-erlang-tags

Generate Vim tags for Erlang files
https://vim-erlang.github.io
Other
61 stars 23 forks source link

exception error:no case clause matching {error,eacces}? #13

Closed youthy closed 10 years ago

youthy commented 10 years ago

escript: exception error: no case clause matching {error,eacces} in function 'vim-erlang-tags_erl__escript__1404__902592__762788':process_dir_tree/2 (/home/yuyouqi/.vim/bundle/vim-erlang-tags/bin/vim-erlang-tags.erl, line 216) in call from 'vim-erlang-tags_erl__escript__1404__902592__762788':process_filenames/2 (/home/yuyouqi/.vim/bundle/vim-erlang-tags/bin/vim-erlang-tags.erl, line 238) in call from 'vim-erlang-tags_erl__escript__1404__902592__762788':create_tags/1 (/home/yuyouqi/.vim/bundle/vim-erlang-tags/bin/vim-erlang-tags.erl, line 195) in call from 'vim-erlang-tags_erl__escript__1404__902592__762788':main/1 (/home/yuyouqi/.vim/bundle/vim-erlang-tags/bin/vim-erlang-tags.erl, line 97) in call from escript:run/2 (escript.erl, line 727) in call from escript:start/1 (escript.erl, line 277) in call from init:start_it/1 in call from init:start_em/1

when I use sudo, this can be solved in shell ,but I can't use :ErlangTags as there is no sudo in vim. what's the reason?

hcs42 commented 10 years ago

It seems that you have a directory that vim-erlang-tags tries to read, but for which your user doesn't have read privileges.

When you call :ErlangTags, your currrent directory should be the directory that contains your Erlang files, not / or $HOME for example. Is there a reason for having this directory which cannot be read by your user?

youthy commented 10 years ago

Mobileserver is my working directory,is this picture show something that can solve this problem?

youthy commented 10 years ago

I got that , I remove .config and .dbus that really works. really thks.