Comments (8)
Hi Fiesh,
I've been looking into this bug and can't reproduce it at all. Not only that, I can't even see how it can happen from the code! However, it is happening, so there's something wrong :)
Is there any pattern to it? For instance, does it happen after starting the debugger with F5, or do you not even need to do that for the problem to occur?
Are there any other Python based plugins that you know you're using?
Thanks
from vdebug.
I just created an empty test user, with the following .vimrc:
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'joonty/vdebug.git'
filetype plugin indent on " required!```
The ~/.vim only contains bundle, which in turn only contains vundle and vdebug.
I open 'vim foo', press F10, and get the exact error from above. (Also when I just open 'vim' and press F10, the fact that there is no filename isn't really caught nicely, but that's not a big issue.) But of course it might make sense that vdebug cannot set a breakpoint for a file 'foo', yet this is the easiest way to reproduce this.
I'm using VIM version 7.3.646, which is linked against libpython2.7.so.1.0.
Any other helpful information I can provide?
Thanks for looking into this!
from vdebug.
This is very strange! I copied that vimrc and tried the exact steps that you laid out, but got no error at all. The only difference is that I had to add set nocompatible
at the top of the vimrc, otherwise Vundle couldn't start up. Did you not need this also? Could just be a small version difference in Vim.
Could you just dump the output of vim --version
?
Also, what version of Vdebug are you using? Is it a packaged one or from this repo? If it's from the repo, it might be worth trying the dev
branch if you haven't already.
I'm determined not to let this beat us :)
from vdebug.
Dear Joonty,
Thank you so much for the recommendation with the branch. I can no longer reproduce the error!
So I think you can safely mark this as solved!
Sorry for making so much work for such a trivial fix and thanks for such an amazing vim plugin!
fiesh
from vdebug.
Great, really pleased that worked for you! Also glad you like the plugin :)
from vdebug.
Hey Joonty,
I am still experiencing this issue:
- [ERROR] {Fri 08 2013 10:22:39} An error occured: <class 'vdebug.opts.OptionsError'>
Traceback (most recent call last):
File "/Users/brimble/.vim/bundle/vdebug/plugin/python/start_vdebug.py", line 31, in run
self.runner.run()
File "/Users/brimble/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 160, in run
self.open()
File "/Users/brimble/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 43, in open
vdebug.opts.Options.get('server'),
File "/Users/brimble/.vim/bundle/vdebug/plugin/python/vdebug/opts.py", line 32, in get
raise OptionsError("No option with key '%s'" % name)
OptionsError: No option with key 'server'
In my vim config I think I added these things and that might of been what caused it to start happening. I am not 100% sure though:
let g:vdebug_options = {'break_on_open' : 0}
let g:vdebug_options = {'watch_window_style' : 'compact'}
from vdebug.
@yargy were you able to resolve this issue. I am facing the same issue.
from vdebug.
@zeeshanjan82 Can you paste the relevant lines of your .vimrc
? In theory, supplying the whole dictionary should work (and does on my copy), but here's a more foolproof way of setting Vdebug options that may work if that way does not:
if !exists('g:vdebug_options')
let g:vdebug_options = {}
endif
let g:vdebug_options['break_on_open'] = 0
let g:vdebug_options['watch_window_style'] = 'compact'
That should work reliably if there are some odd loading-order issues involved, as it ensures the dictionary exists, and then sets individual keys.
Also, I doubt this will be of help to @yargy three years later, but their syntax above is incorrect. The break_on_open
option will be overwritten, because the second let
re-defines the whole dictionary without that key. There are two ways to set vdebug_options
: setting individual keys with the bracket notation, as above, or setting the whole dictionary at once. Setting the whole dictionary multiple times will cause unintended behavior.
Note that when defining the whole dictionary, re-sourcing the .vimrc
will break Vdebug, as it recreates vdebug_options
without the defaults, and Vdebug has no chance to add the defaults as it does at startup.
from vdebug.
Related Issues (20)
- modern vdebug: does it play nicely with neovim and xdebug v3.0.2?
- nvim freezes on xdebug connection, then `Error starting Vdebug: <class 'EOFError'>` in the statusline
- Option to disable automatic updating of watch window
- No module found 'dbgp' but I am in a dbgp directory HOT 1
- VdebugEval! Can't get values of array at depth > 1 HOT 3
- Wrong reference in the VimPlug instalation at VimAwesome
- Python program stuck after debugging finish (cursor reach end of program)
- Infinite-ish recursion on singleton classes HOT 1
- No option with key 'autostart' HOT 1
- Vim hangs up connection without stopping on breaking point HOT 3
- Cannot expand or collapse HOT 1
- TypeError when empty xml elements in response HOT 1
- Are there plans for a new release?
- Update README PHP setup with Xdebug HOT 1
- Security concern
- Problems defining close keymap in neovim with lazy plugin manager
- Path maps not working HOT 1
- Error detected while processing /Users/***/vdebug.vim[343]..function Vdebug_load_options[8]..<SNR>11_DefineSigns HOT 1
- Setting up Vdebug without php.ini access
- Syntax warning: invalid escape sequence HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vdebug.