Coder Social home page Coder Social logo

vimspectorpy's People

Contributors

ferdinandyb avatar sagi-z avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vimspectorpy's Issues

Uninstallation does not reverse all the effects

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.

image
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

Bulk install issue

When installing together with 'vimspector' g:vimspector_home is not defined at tinstall time.

PyTest not working

A previous fix to use ipython and debugpy from a specific virtualenv is causing now: 'pytest' not found.

Remove virtualenv usage in the plugin

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.

Unable to install via vim-plug

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:

let s:ft = v:none

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

Vimspectorpy#update failed to find vimspector configurations directory

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.