path_mapping not working when using local vimrc
juanperi opened this issue · 1 comments
I've been using your plugin for a while already, without any issues. Thanks for that!!
But nowadays i'm trying to move all my development servers to a dockerized environmnent.
The problem that arises with this, is that each one of the projects will have different path_maps. For instance, one will have
let g:vdebug_options['path_maps'] = {"/var/www/": "/home/juan/sandbox/project1/"}
while another might have
let g:vdebug_options['path_maps'] = {"/var/www/": "/home/juan/sandbox/project2/"}
In order to make it work, I introduced the plugin https://github.com/embear/vim-localvimrc which allows me to configure those things in a by project basis, just adding a .lvimrc file with that content in the corresponding project.
Now, the problem I'm facing, is that the path_map is not taken into account the first time I run de debugger. If I open vim, run the debbuger, stop it and then set the breakpoint and start the debbuger again, it works as intended. But if I just open vim, set the breakpoint and run the debugger, it doesn't work
You can see the logs in this gist: https://gist.github.com/Epilgrim/28a7eb010b8135d4e781
Explanation of the files:
vdebug.no_lvimrc.log: log without anything to do with lvimrc. the options defined in the good old ~/.vimrc
vdebug.lvimrc.1.log: log using lvimrc. The breakpoint was not taken into account. Steps: open vim, set breakpoint, start vdebug (F5)
vdebug.lvimrc.2.log: log using lvimrc. The breakpoint was taken into account. Steps: open vim, start vdebug (F5), stop vdebug (ctrl+c), set breakpoint, start vdebug (F5)
Although basically everything works if I start and stop the debugger, it's a bit annoying sometimes. Do you have any clue what might be going on here?
sorry, wrong repository