* What steps will reproduce the problem? 1. :WriteSampleConfigScion
* What is the expected output? What do you see instead?
Error detected while processing function <SNR>23_DefPython: line 119: /must>not&exist/foo:1: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module. (re)connecting to scion connecting to scion ['scion', '~/.cabal/bin/scion-server'] Error detected while processing function haskellcomplete#WriteSampleConfig..haskellcomplete#EvalScion: line 9: Traceback (most recent call last): File "<string>", line 1, in <module> File "<string>", line 113, in evalscionAssign File "<string>", line 103, in evalscion File "<string>", line 92, in connectscion File "<string>", line 24, in init File "/usr/lib/python2.6/subprocess.py", line 595, in init errread, errwrite) File "/usr/lib/python2.6/subprocess.py", line 1092, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory line 11: E121: Undefined variable: g:scion_result E116: Invalid arguments for function get(g:scion_result, 'warnings', []) E15: Invalid expression: get(g:scion_result, 'warnings', []) line 20: E121: Undefined variable: g:scion_result E116: Invalid arguments for function has_key(g:scion_result,'error') E15: Invalid expression: has_key(g:scion_result,'error')
* What version of the product are you using? On what operating system? Python: 2.6.1 (r261:67515, Dec 7 2008, 18:56:39) [GCC 4.3.2]
Vim:
$ vim --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Dec 8 2008 05:09:35)
Included patches: 1-65
Compiled by ArchLinux
Big version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
+comments
+cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
+float +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand
+jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds
+localmap
+menu +mksession +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm
-mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte
+multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra +perl
+postscript
+printer -profile +python +quickfix +reltime +rightleft +ruby +scrollbind
+signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects
+title
-toolbar +user_commands +vertsplit +virtualedit +visual +visualextra
+viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 +xfontset -xim
+xsmp_interact +xterm_clipboard -xterm_save
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -march=x86-64
-mtune=generic -O2 -pipe -D_FORTIFY_SOURCE=1 -D_REENTRANT -D_GNU_SOURCE
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl5/core_perl/CORE -I/usr/include/python2.6 -pthread
-I/usr/lib/ruby/1.8/x86_64-linux
Linking: gcc -L. -rdynamic -Wl,-export-dynamic -Wl,-E
-L/usr/local/lib -o vim -lXt -lncurses -lacl -lgpm -Wl,-E
-L/usr/local/lib -L/usr/lib/perl5/core_perl/CORE -lperl -lutil -lc
-L/usr/lib/python2.6/config -lpython2.6 -lutil -Xlinker -export-dynamic
-Wl,-R -Wl,/usr/lib -L/usr/lib -lruby -lm
* Please provide any additional information below.
Comment #1
Posted on Aug 27, 2009 by Happy BearOk, the problem was that the path to scion included "~" which was not properly expanded. I fixed the README to recommend specifying absolute paths. It would be nice to fix this, though.
The other part is the deprecation warning, which might become an error in a future release of Python.
Comment #2
Posted on Dec 13, 2009 by Helpful LionThe "~" expansions is not really a defect. I'm not a python guru so I don't know how to make python expand it. However there are two ways to make vim expand it:
a) expand("$HOME")."/rel_path") b) expand("~/rel_path")
So that nobody is missing this function I put it in the Readme and removed the comment.
About subprocess: I don't care. When it breaks I'll fix it. So I think this issue can be closed.
Comment #3
Posted on Dec 13, 2009 by Helpful LionSee comment 2.
Status: Done
Labels:
Type-Defect
Priority-Medium
Vim