sagi-z / vimspectorpy Goto Github PK
View Code? Open in Web Editor NEWpython default configurations for vimspector
License: MIT License
python default configurations for vimspector
License: MIT License
Dear community,
I installed vimspectorpy, but was confused. After some consideration I decided to stick to my original setup for the moment. Therefore, I uninstalled vimspectorpy. However, there is a part of the config that has not been reversed:
Vimspector new configurations
Next time you are on a python source and start a debug session (F5) you'll get this option:
debug this file - launch a debug session for the current file, using the python from your $VIRTUAL_ENV if there is one, or python3.
This my current vimspector.json:
{
"$schema": "https://puremourning.github.io/vimspector/schema/vimspector.schema.json",
"adapters": {
},
"configurations": {
"run - scratch.py": {
"adapter": "debugpy",
"configuration": {
"request": "launch",
"default": true,
"type": "python",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/scratch.py",
"args" : ["crawl"],
"stopOnEntry": false,
"console": "integratedTerminal",
"python": ["/home/aaron/.conda/envs/qse/bin/python"]
},
"breakpoints":{
"exception": {
"raised": "Y",
"uncaught": "Y",
"userUnhandled": "Y"
}
}
}
}
}
I would like to revert this config, but I lack the knowledge how to do this. Any input is appreciated.
Greetings,
Aaron
Change 'ass' to 'add' ...
Need to add "justMyCode": false to json configuration which is copied to vimspector
The user does not need to see that or read about it in the documentation.
When installing together with 'vimspector' g:vimspector_home is not defined at tinstall time.
A previous fix to use ipython and debugpy from a specific virtualenv is causing now: 'pytest' not found.
Add a 'vimspectorpy' strategy.
For internal usage some modules are installed in the plugin directory in a virtual environment and virtualenv
is used if found. This should be replaced with the venv
module.
It is annoying to get errors when trying to open Pyconsole or use Pytest when the current filetype is not 'python'.
Errors when trying to start a default debug session with python
I'm having trouble installing this extension via vim-plug. During installation this appears:
"plugins.vim" 61L, 1297C written
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 23:
E121: Undefined variable: v:none
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 23:
E15: Invalid expression: v:none
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 104:
E475: Invalid argument: name, default_name=v:none)
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 105:
E121: Undefined variable: a:name
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 105:
E116: Invalid arguments for function empty
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 105:
E15: Invalid expression: empty(a:name)
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 110:
E121: Undefined variable: name
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 110:
E116: Invalid arguments for function empty
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 110:
E15: Invalid expression: empty(name)
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 111:
E133: :return not inside a function
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 113:
E121: Undefined variable: name
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 113:
E116: Invalid arguments for function has_key
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 113:
E15: Invalid expression: ! has_key(s:sessions, name)
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 114:
E133: :return not inside a function
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 118:
E121: Undefined variable: #
Error detected while processing /home/user/.local/share/nvim/plugins/vimspectorpy/plugin/vimspectorpy.vim:
line 118:
For example with this first one, I can see v:none
here:
vimspectorpy/plugin/vimspectorpy.vim
Line 23 in 675410e
But I'm not sure if I am missing some configuration?
I'm using nvim with the following version:
❯ nvim --version
NVIM v0.4.3
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-gOb7vg/neovim-0.4.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-gOb7vg/neovim-0.4.3/build/config -I/build/neovim-gOb7vg/neovim-0.4.3/src -I/usr/include -I/usr/include/lua5.1 -I/build/neovim-gOb7vg/neovim-0.4.3/build/src/nvim/auto -I/build/neovim-gOb7vg/neovim-0.4.3/build/include
Compiled by [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Thanks
Hi I am using vimspectorpy on neovim latest version. My plugins file has the following vimspector paths set up:
use {"puremourning/vimspector",
config = function()
vim.g.vimspector_enable_mappings = "HUMAN"
vim.g.vimspector_base_dir = "/home/ub/.config/vimspector-config"
vim.g["vimspector_sign_priority"]= {
vimspectorBP=39,
vimspectorBPCon=38,
vimspectorBPLog=37,
vimspectorBPDisabled=36,
vimspectorPC=999,
}
end,
}
use "sagi-z/vimspectorpy"
Yet when I run Vimspectorpy update right after installing, i get the error above. I really want to use IPython console in my debug sessions and I think your plugin will be fantastic if i can get it to work. Many thanks
I'm getting this error when trying to run :Pyconsole
:
vimspectorpy: No registered implementation for window launcher ''
how can I fix this?
The file's filetype changes to vimspectopy, which disables important python features for the buffer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.