question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Massive error log on startup

See original GitHub issue

I am using Pathogen and Vim 7.4 (patch 1…1689) and Anaconda w/ Python 3. vim-conda 838f582cc0829b5b0ba5852fa2d103907faec486

$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 16 2016 10:50:38)
Included patches: 1-1689
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by pkg-vim-maintainers@lists.alioth.debian.org
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +tag_binary
+arabic          +file_in_path    +mouse_sgr       +tag_old_static
+autocmd         +find_in_path    -mouse_sysmouse  -tag_any_white
+balloon_eval    +float           +mouse_urxvt     +tcl
+browse          +folding         +mouse_xterm     +terminfo
++builtin_terms  -footer          +multi_byte      +termresponse
+byte_offset     +fork()          +multi_lang      +textobjects
+channel         +gettext         -mzscheme        +timers
+cindent         -hangul_input    +netbeans_intg   +title
+clientserver    +iconv           +packages        +toolbar
+clipboard       +insert_expand   +path_extra      +user_commands
+cmdline_compl   +job             +perl            +vertsplit
+cmdline_hist    +jumplist        +persistent_undo +virtualedit
+cmdline_info    +keymap          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       -python          +vreplace
+cscope          +lispindent      +python3         +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con_gui  +lua             +rightleft       +writebackup
+diff            +menu            +ruby            +X11
+digraphs        +mksession       +scrollbind      -xfontset
+dnd             +modify_fname    +signs           +xim
-ebcdic          +mouse           +smartindent     +xsmp_interact
+emacs_tags      +mouseshape      +startuptime     +xterm_clipboard
+eval            +mouse_dec       +statusline      -xterm_save
+ex_extra        +mouse_gpm       -sun_workshop    +xpm
+extra_search    -mouse_jsbterm   +syntax          
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -Wdate-time  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E  -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl  -L/usr/lib -llua5.2 -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.22/CORE -lperl -ldl -lm -lpthread -lcrypt  -L/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu -lpython3.5m -lpthread -ldl -lutil -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lieee -lm -lruby-2.3 -lpthread -lgmp -ldl -lcrypt -lm
hholst@fb-hholst3:~$ which python
/home/hholst/anaconda3/bin/python
hholst@fb-hholst3:~$ which python2
/usr/bin/python2
hholst@fb-hholst3:~$ which python3
/home/hholst/anaconda3/bin/python3
hholst@fb-hholst3:~$ python --version
Python 3.5.1 :: Anaconda custom (64-bit)
hholst@fb-hholst3:~$ 
E133: :return not inside a function
line   20:
E488: Trailing characters:         # Needed to avoid
line   21:
E488: Trailing characters:         # When launching gvim.exe from a CMD shell. (gvim from icon seems
line   22:
E488: Trailing characters:         # fine!?)
line   23:
E488: Trailing characters:         # See also: http://bugs.python.org/issue3905
line   24:
E488: Trailing characters:         # stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
line   25:
E492: Not an editor command:         stdin=PIPE, stderr=PIPE)
line   28:
E492: Not an editor command: def vim_conda_runpyshell(cmd):
line   29:
E133: :return not inside a function
line   30:
E492: Not an editor command:         executable=os.getenv('SHELL'),
line   31:
E492: Not an editor command:         stdin=PIPE, stderr=PIPE)
line   34:
E492: Not an editor command: def get_conda_info_dict():
line   36:
E492: Not an editor command:     {
line   42:
E492: Not an editor command:       ],
line   55:
E492: Not an editor command:       ],
line   58:
E492: Not an editor command:       ],
line   62:
E492: Not an editor command:       ],
line   71:
E492: Not an editor command:     }
line   73:
E492: Not an editor command:     output = vim_conda_runshell('conda info --json')
line   74:
E133: :return not inside a function
line   77:
E492: Not an editor command: def insert_system_py_sitepath():
line   79:
E492: Not an editor command:     embedded Python's sys.path. This is for Jedi-vim code completion. """
line   80:
E492: Not an editor command:     cmd = "import site, sys, os; sys.stdout.write(os.path.pathsep.join(site.getsitepackages()))"
line   81:
E33: No previous substitute regular expression
line   82:
E488: Trailing characters:     # The following causes errors. Jedi vim imports e.g. hashlib
line   83:
E488: Trailing characters:     # from the stdlib, but it we've added a different stdlib to the
line   84:
E488: Trailing characters:     # embedded sys.path, jedi loads the wrong one, causing errs.
line   85:
E488: Trailing characters:     # Looks like we should only load site-packages.
line   86:
E488: Trailing characters:     # if len(sitedirs) > 0:
line   87:
E488: Trailing characters:     #     libdir = os.path.dirname(sitedirs[0])
line   88:
E488: Trailing characters:     #     if libdir not in sys.path:
line   89:
E488: Trailing characters:     #         sys.path.insert(0, libdir)
line   90:
E121: Undefined variable: sitedirs
E15: Invalid expression: sitedirs:
line  420:
E171: Missing :endif
Press ENTER or type command to continue

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
hstarmanscommented, Mar 15, 2017

@cjrh The code is not Python 2 and Python 3 compatible. This is, however, easy to fix and test. Several other vim plugins have tackled this issue. Do you have any experience with using vim-conda with YouCompleteMe? It uses a Jedi-based completion engine for Python 2 and 3 (using the JediHTTP wrapper) or can I only use jedi-vim? I will submit a pull request but need to test the plugin a bit with vim-ipython and YouCompleteMe and / or jedi-vim .

0reactions
cjrhcommented, Mar 16, 2017

Here I found a specific command for RestartServer, although it may still be easier to just configure the ycm binary path setting to 'python' and just restart JediHTTP. You’ll probably have to test out what works better.

Anyway, here is the link to the YCM setting: https://github.com/Valloric/YouCompleteMe#the-restartserver-subcommand

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Logs as a Startup Culture Experiment - LinkedIn
What we learnt from implementing Ray Dalio's Error Log method to encourage failures and mistakes in the team, while learning from them.
Read more >
Server error in logs on startup, increasing start times.
Server error in logs on startup, increasing start times. ... theres an error on startup and it seems to be causing massive load...
Read more >
[ LIVE] How to fix Error log file getting too Large in ... - YouTube
Here in this video you will learn about how error_log file gets generated and how to detect the error log.Why size of error_log...
Read more >
Building Your Startup: Error Logging - Code - Envato Tuts+
This tutorial is part of the Building Your Startup With PHP series on Envato Tuts+. ... Introduction to Error Logging.
Read more >
Massive Error Logs and Suhosin Errors - cPanel Forums
... with scattered error logs in various directories that contain this: Code: [14-May-2012 17:36:09] PHP Warning: PHP Startup: Unable to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found