Closed kebingyu closed 10 years ago
The plugin will call source <home_dir>/.dbgpavim.session
to restore vim session, some locked variables are being set in the session file. Then the error is raised.
The issue can not be fixed easily from the plugin level.
I expect that :mksesion
has capability to ignore locked variables.
@kebingyu
https://github.com/brookhong/DBGPavim/commit/03ef0994dade32bfcdbafcda434efd33df8e9c6c is committed to try to fix the issue.
Please try on your end to see if it works.
Thank you Brook! The patch fixes the problem. I hope the extra logic does not slow down the plugin.
I am seeing another error when existing the debug mode:
Error detected while processing /home/kyu/.dbgpavim.session: line 173: E741: Value is locked: SyntasticDebugAutocommands line 201: E741: Value is locked: SyntasticDebugTrace line 215: E741: Value is locked: SyntasticDebugVariables line 248: E741: Value is locked: SyntasticDebugNotifications
I am using another plugin called syntastic (https://github.com/scrooloose/syntastic.git). I think the reason for this error is in syntastic, it sets bunch of variables as lockvar:
let g:SyntasticDebugTrace = 1 lockvar g:SyntasticDebugTrace let g:SyntasticDebugLoclist = 2 lockvar g:SyntasticDebugLoclist let g:SyntasticDebugNotifications = 4 lockvar g:SyntasticDebugNotifications let g:SyntasticDebugAutocommands = 8 lockvar g:SyntasticDebugAutocommands let g:SyntasticDebugVariables = 16 lockvar g:SyntasticDebugVariables
If I comment out these lockvars, the error is gone. Not sure if it is an issue of your plugin or syntastic plugin. Please close it if it is irrelevant to your plugin. Thank you!