No edit summary Tag: sourceedit |
JohnBeckett (talk | contribs) (Format.) Tag: sourceedit |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 39: | Line 39: | ||
</pre> |
</pre> |
||
when starting vim I get a gdb console in separate window when I type :ConqueGdb. |
when starting vim I get a gdb console in separate window when I type :ConqueGdb. |
||
− | |||
⚫ | |||
− | VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 12 2014 12:21:23) |
||
− | Included patches: 1-179 |
||
− | Modified by <bugzilla@redhat.com> |
||
− | Compiled by <bugzilla@redhat.com> |
||
− | Huge version without GUI. Features included (+) or not (-): |
||
− | +acl +farsi +mouse_netterm +syntax |
||
− | +arabic +file_in_path +mouse_sgr +tag_binary |
||
− | +autocmd +find_in_path -mouse_sysmouse +tag_old_static |
||
− | -balloon_eval +float +mouse_urxvt -tag_any_white |
||
− | -browse +folding +mouse_xterm -tcl |
||
− | ++builtin_terms -footer +multi_byte +terminfo |
||
− | +byte_offset +fork() +multi_lang +termresponse |
||
− | +cindent +gettext -mzscheme +textobjects |
||
− | -clientserver -hangul_input +netbeans_intg +title |
||
− | -clipboard +iconv +path_extra -toolbar |
||
− | +cmdline_compl +insert_expand +perl +user_commands |
||
− | +cmdline_hist +jumplist +persistent_undo +vertsplit |
||
− | +cmdline_info +keymap +postscript +virtualedit |
||
− | +comments +langmap +printer +visual |
||
− | +conceal +libcall +profile +visualextra |
||
− | +cryptv +linebreak +python +viminfo |
||
− | +cscope +lispindent -python3 +vreplace |
||
− | +cursorbind +listcmds +quickfix +wildignore |
||
− | +cursorshape +localmap +reltime +wildmenu |
||
− | +dialog_con -lua +rightleft +windows |
||
− | +diff +menu -ruby +writebackup |
||
− | +digraphs +mksession +scrollbind -X11 |
||
− | -dnd +modify_fname +signs -xfontset |
||
− | -ebcdic +mouse +smartindent -xim |
||
− | +emacs_tags -mouseshape -sniff -xsmp |
||
− | +eval +mouse_dec +startuptime -xterm_clipboard |
||
− | +ex_extra +mouse_gpm +statusline -xterm_save |
||
− | +extra_search -mouse_jsbterm -sun_workshop -xpm |
||
− | system vimrc file: "/etc/vimrc" |
||
− | user vimrc file: "$HOME/.vimrc" |
||
− | 2nd user vimrc file: "~/.vim/vimrc" |
||
− | user exrc file: "$HOME/.exrc" |
||
− | fall-back for $VIM: "/etc" |
||
− | f-b for $VIMRUNTIME: "/usr/share/vim/vim74" |
||
− | Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 |
||
− | Linking: gcc -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE -Wl,-z,relro -L/usr/local/lib -Wl,--as-needed -o vim -lm -lnsl -lselinux -lncurses -lacl -lattr -lgpm -ldl -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE -fstack-protector -L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -L/usr/lib64/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic |
||
− | |||
− | GNU gdb (GDB) Fedora 7.6.1-46.fc19 |
||
− | Copyright (C) 2013 Free Software Foundation, Inc. |
||
− | License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> |
||
− | This is free software: you are free to change and redistribute it. |
||
− | There is NO WARRANTY, to the extent permitted by law. Type "show copying" |
||
− | and "show warranty" for details. |
||
− | This GDB was configured as "x86_64-redhat-linux-gnu". |
||
− | For bug reporting instructions, please see: |
||
− | <http://www.gnu.org/software/gdb/bugs/>. |
||
⚫ | |||
− | |||
--August 28, 2014 |
--August 28, 2014 |
||
---- |
---- |
||
Line 102: | Line 47: | ||
---- |
---- |
||
− | ==Problem when running mvim |
+ | ==Problem when running mvim== |
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
* new window is created |
* new window is created |
||
− | * this is launched: |
+ | * this is launched: |
⚫ | |||
− | File "/Users/UserName/.vim/autoload/conque_term/conque_subprocess.py", line 48, in <module> |
+ | File "<string>", line 1, in <module>File "/Users/UserName/.vim/autoload/conque_term/conque_subprocess.py", line 48, in <module>import pty |
− | import pty |
||
− | + | File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pty.py", line 9, in <module> from select import select |
|
⚫ | |||
− | from select import select |
||
− | + | 2): Symbol not found: __PyInt_AsInt |
|
− | + | Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so |
|
− | + | Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so |
|
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | ==Patch for handling spaces in name of .vim directory== |
||
⚫ | |||
+ | I have my ~.vim directory linked to a folder in my Dropbox. When I got a business Dropbox account, the name of my personal Dropbox folder changed from ~/Dropbox to "~/Dropbox (Personal)". This broke ConqueGDB and ConqueTerm. I found if I quoted the spaces in a couple of places that I would no longer have this brokenness. |
||
+ | |||
+ | Here is a patch against version 0.15: |
||
+ | <pre> |
||
+ | diff -Naur conquegdb/autoload/conque_gdb.vim conquegdb-new/autoload/conque_gdb.vim |
||
+ | --- conquegdb/autoload/conque_gdb.vim 2016-04-26 07:15:38.000000000 -0700 |
||
+ | +++ conquegdb-new/autoload/conque_gdb.vim 2016-04-26 07:13:46.000000000 -0700 |
||
+ | @@ -11,7 +11,7 @@ |
||
+ | let g:autoload_conque_gdb_loaded = 1 |
||
+ | |||
+ | " Path to gdb python scripts |
||
+ | -let s:SCRIPT_DIR = expand("<sfile>:h") . '/conque_gdb/' |
||
+ | +let s:SCRIPT_DIR = substitute(expand("<sfile>:h") . '/conque_gdb/', ' ', '\\ ', 'g') |
||
+ | |||
+ | " Conque term terminal object |
||
+ | let s:gdb = {'idx': 1, 'active': 0, 'buffer_number': -1} |
||
+ | diff -Naur conquegdb/autoload/conque_term.vim conquegdb-new/autoload/conque_term.vim |
||
+ | --- conquegdb/autoload/conque_term.vim 2016-04-26 07:15:38.000000000 -0700 |
||
+ | +++ conquegdb-new/autoload/conque_term.vim 2016-04-26 07:14:23.000000000 -0700 |
||
+ | @@ -47,7 +47,7 @@ |
||
+ | |||
+ | " path to conque install directories |
||
+ | let s:scriptdir = expand("<sfile>:h") . '/' |
||
+ | -let s:scriptdirpy = expand("<sfile>:h") . '/conque_term/' |
||
+ | +let s:scriptdirpy = substitute(expand("<sfile>:h") . '/conque_term/', ' ', '\\ ', 'g') |
||
+ | |||
+ | " global list of terminal instances |
||
+ | let s:term_obj = {'idx': 1, 'var': '', 'is_buffer': 1, 'active': 1, 'buffer_name': '', 'buffer_number' : -1, 'command': ''} |
||
+ | </pre> |
||
==Comments== |
==Comments== |
Revision as of 21:50, 26 April 2016
Use this page to discuss script 4582 Conque GDB: GDB command line interface and terminal emulator
- Add constructive comments, bug reports, or discuss improvements (see the guideline).
- Do not document the script here (the author should do that on vim.org).
- This page may be out of date: check the script's vim.org page above, and its release notes.
Problem
Vim compiled with static python support + python included in gdb.
When running this command inside Vim: ConqueGdb test
- new window is created
- this is launched:
gdb -f -x /home/user/.vim/bundle/Conque-GDB/autoload/conque_gdb/conque_gdb_gdb.py -x /home/user/.vim/bundle/Conque-GDB/autoload/conque_gdb/gdbinit_confirm.gdb test - 1 [FORMAT=unix] [TYPE=] [100%][POS=0:0/1]
- nothing in window pop ups (window is empty). --May 12, 2014
Installation problem
Conque GDB does not support installation through Vim bundle.
Download the latest conque_gdb.vmb file and install using the installation instructions given at the scripts page in the link at the top. --May 17, 2014
not bundle installation I did as you said. I've deleted ~/.vim/bundle/Conque-GDB* and installed from conque_gdb.vmb.
When I run Vim I get following:
Error detected while processing function conque_gdb#load_python..<SNR>27_get_gdb_command..<SNR>27_get_unix_gdb: line 10: E484: Cannot open file /tmp/vosS3EQ/0
In Vim when I type :ConqueGdb
I get the same result as described in "Problem".
I can get rid of this message when I change escaping to:
conque_gdb.vim:315 let l:gdb_py_support = system(l:gdb_exe . ' -q -batch -ex ''python print("PYYES")'' ')
--May 19, 2014
Question Can you give me the output of "gdb -v" and output of "vim --version"? What happens if you install conque gdb and no other plugins, e.g. with an empty .vim folder?
Answer Empting ~/.vim folder helped. While I still get this message
Error detected while processing function conque_gdb#load_python..<SNR>13_get_gdb_command..<SNR>13_get_unix_gdb:
when starting vim I get a gdb console in separate window when I type :ConqueGdb. --August 28, 2014
Suggestion What if you add the following line in your .vimrc ?
set shell=/bin/sh
Problem when running mvim
macVim provides python support. Python installed from port When running mvim -v main.cpp :
- new window is created
- this is launched:
File "<string>", line 1, in <module>File "/Users/UserName/.vim/autoload/conque_term/conque_subprocess.py", line 48, in <module>import pty File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pty.py", line 9, in <module> from select import select ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so, 2): Symbol not found: __PyInt_AsInt Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so Press ENTER or type command to continue
then the command :ConqueGdb is recognized but nothing happens. --April 21, 2015
Patch for handling spaces in name of .vim directory
I have my ~.vim directory linked to a folder in my Dropbox. When I got a business Dropbox account, the name of my personal Dropbox folder changed from ~/Dropbox to "~/Dropbox (Personal)". This broke ConqueGDB and ConqueTerm. I found if I quoted the spaces in a couple of places that I would no longer have this brokenness.
Here is a patch against version 0.15:
diff -Naur conquegdb/autoload/conque_gdb.vim conquegdb-new/autoload/conque_gdb.vim --- conquegdb/autoload/conque_gdb.vim 2016-04-26 07:15:38.000000000 -0700 +++ conquegdb-new/autoload/conque_gdb.vim 2016-04-26 07:13:46.000000000 -0700 @@ -11,7 +11,7 @@ let g:autoload_conque_gdb_loaded = 1 " Path to gdb python scripts -let s:SCRIPT_DIR = expand("<sfile>:h") . '/conque_gdb/' +let s:SCRIPT_DIR = substitute(expand("<sfile>:h") . '/conque_gdb/', ' ', '\\ ', 'g') " Conque term terminal object let s:gdb = {'idx': 1, 'active': 0, 'buffer_number': -1} diff -Naur conquegdb/autoload/conque_term.vim conquegdb-new/autoload/conque_term.vim --- conquegdb/autoload/conque_term.vim 2016-04-26 07:15:38.000000000 -0700 +++ conquegdb-new/autoload/conque_term.vim 2016-04-26 07:14:23.000000000 -0700 @@ -47,7 +47,7 @@ " path to conque install directories let s:scriptdir = expand("<sfile>:h") . '/' -let s:scriptdirpy = expand("<sfile>:h") . '/conque_term/' +let s:scriptdirpy = substitute(expand("<sfile>:h") . '/conque_term/', ' ', '\\ ', 'g') " global list of terminal instances let s:term_obj = {'idx': 1, 'var': '', 'is_buffer': 1, 'active': 1, 'buffer_name': '', 'buffer_number' : -1, 'command': ''}