talek / vorax4

A simple yet powerful IDE for Oracle databases, built on top of the widely known Vim editor and Oracle SqlPLUS.
http://talek.github.io/vorax4
MIT License
53 stars 11 forks source link

vorax4 won't start #86

Closed fahad3git closed 6 years ago

fahad3git commented 6 years ago

Hello,

Today odd thing happened when I tried to use vorax4. I'm receiving the following message:


Initializing connection... /usr/share/ruby/logger.rb:746:in initialize' /usr/share/ruby/logger.rb:746:inopen' /usr/share/ruby/logger.rb:746:in open_logfile' /usr/share/ruby/logger.rb:738:inset_dev' /usr/share/ruby/logger.rb:673:in initialize' /usr/share/ruby/logger.rb:387:innew' /usr/share/ruby/logger.rb:387:in initialize' /home/fahad/.gem/ruby/gems/childprocess-0.9.0/lib/childprocess.rb:36:innew' /home/fahad/.gem/ruby/gems/childprocess-0.9.0/lib/childprocess.rb:36:in logger' /home/fahad/.gem/ruby/gems/childprocess-0.9.0/lib/childprocess/abstract_process.rb:184:inlog' /home/fahad/.gem/ruby/gems/childprocess-0.9.0/lib/childprocess/unix/process.rb:35:in exited?' /home/fahad/.gem/ruby/gems/childprocess-0.9.0/lib/childprocess/abstract_process.rb:134:inalive?' eval:33:in sqlplus_alive?' eval:14:inwith_sqlplus' eval:2:in `

' Error detected while processing function 125_OpenNode[2]..302[8]..316[12]..124_Connect[7]..vorax#sqlplus#Connect[14]..vorax#sqlplus#Initialize[7]..vorax#sqlplus#ExecImmediate[11]..vorax#ruby#SqlplusExec:

line 34: TypeError: no implicit conversion of Object into String Error detected while processing function 125_OpenNode[2]..302: line 8: E171: Missing :endif

would you please help me in resolving such error, because currently, my work is really dependent on your plugin.

Thank you.

talek commented 6 years ago

Hello,

What has changed than before, when Vorax could start? It's an odd error...

fahad3git commented 6 years ago

Really I don't know.

Sqlplus is working fine from terminal, and vim.

fahad3git commented 6 years ago

Hi talek,

Is there a way to solve this issue.

Thank you.

talek commented 6 years ago

Hi,

Please tell me more about your configuration.

) OS ) ruby version ) Vim version ) Vorax version

Also, do you use an OS provided vim with ruby support or did you compile VIM yourself?

fahad3git commented 6 years ago

OS Information

LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: Fedora Description: Fedora release 28 (Twenty Eight) Release: 28 Codename: TwentyEight


Kernel Information

4.17.18-200.fc28.x86_64


Ruby Version

ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]


Vim Version

VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug 13 2018 13:12:23) Included patches: 1-279 Modified by bugzilla@redhat.com Compiled by bugzilla@redhat.com Huge version with GTK3 GUI. Features included (+) or not (-): +acl +extra_search +mouse_netterm +tag_old_static +arabic +farsi +mouse_sgr -tag_any_white +autocmd +file_in_path -mouse_sysmouse -tcl +autochdir +find_in_path +mouse_urxvt +termguicolors -autoservername +float +mouse_xterm +terminal +balloon_eval +folding +multi_byte +terminfo +balloon_eval_term -footer +multi_lang +termresponse +browse +fork() -mzscheme +textobjects ++builtin_terms +gettext +netbeans_intg +timers +byte_offset -hangul_input +num64 +title +channel +iconv +packages +toolbar +cindent +insert_expand +path_extra +user_commands +clientserver +job +perl/dyn +vartabs +clipboard +jumplist +persistent_undo +vertsplit +cmdline_compl +keymap +postscript +virtualedit +cmdline_hist +lambda +printer +visual +cmdline_info +langmap +profile +visualextra +comments +libcall +python/dyn +viminfo +conceal +linebreak +python3/dyn +vreplace +cryptv +lispindent +quickfix +wildignore +cscope +listcmds +reltime +wildmenu +cursorbind +localmap +rightleft +windows +cursorshape +lua/dyn +ruby/dyn +writebackup +dialog_con_gui +menu +scrollbind +X11 +diff +mksession +signs -xfontset +digraphs +modify_fname +smartindent +xim +dnd +mouse +startuptime +xpm -ebcdic +mouseshape +statusline +xsmp_interact +emacs_tags +mouse_dec -sun_workshop +xterm_clipboard +eval +mouse_gpm +syntax -xterm_save +ex_extra -mouse_jsbterm +tag_binary
system vimrc file: "/etc/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" system gvimrc file: "/etc/gvimrc" user gvimrc file: "$HOME/.gvimrc" 2nd user gvimrc file: "~/.vim/gvimrc" defaults file: "$VIMRUNTIME/defaults.vim" system menu file: "$VIMRUNTIME/menu.vim" fall-back for $VIM: "/etc" f-b for $VIMRUNTIME: "/usr/share/vim/vim81" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/python3.6m -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--enable-new-dtags -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lSM -lICE -lm -lselinux -lncurses -lacl -lattr -lgpm -ldl -Wl,--enable-new-dtags -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -L/usr/local/lib -L/usr/lib64/perl5/CORE -lperl -lpthread -lresolv -ldl -lm -lcrypt -lutil -lc


Vorax Version

vorax_version = "4.3.55"

Also, I'm using an OS provided vim with ruby support.

talek commented 6 years ago

Ok, I was able to reproduce the issue on a Fedora system. Apparently the problem is lurking down into the childprocess library. What I did was to go directly into ~/.gem/ruby/gems/childprocess-0.9.0/lib/childprocess.rb and change the line 36 as shown below:

image

The funny part is that the error appears just within the ruby code invoked from Vim, not directly as a plain/regular ruby script. Please check if this workaround can be used on your system.

fahad3git commented 6 years ago

Thank you.

It is working fine now.

I really appreciate it.