Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    John C F
    @critiqjo
    There are 3 files you should check:
    • ~/.nvimlog
    • ~/.nvim/.nvimrc-rplugin\~
    • the log files with having path prefix specified by $NVIM_PYTHON_LOG_FILE
    and check all of them after doing a :UpdateRemotePlugins
    ~/.nvimlog might be too big. So, may be you should
    • delete all those log files
    • launch Neovim as NVIM_PYTHON_LOG_FILE=/tmp/nvlog nvim
    • do :UpdateRemotePlugins
    • cat all three log files (the third will look like /tmp/nvlog_{PID})
    John C F
    @critiqjo

    @JustAPerson if none of the above gives you any error logs, you could take python2 (note the version) interpretter from the rplugin/python/ (where lldb_nvim is) and try this script:

    >>> import lldb_nvim
    >>> import neovim
    >>> vim = neovim.attach('socket', path='<listen address>')
    >>> ll = lldb_nvim.Middleman(vim)

    where <listen address> can be obtained from a neovim instance by :echo $NVIM_LISTEN_ADDRESS

    John C F
    @critiqjo

    One more thing, after executing those four lines above in python2, you should:

    >>> ll._exit()

    before exiting the interpretter.

    Benjamin Cheng
    @lolzballs
    Hi all
    The plugin doesn't seem to load for me with pathogen
    John C F
    @critiqjo
    What do you see when you do :UpdateRemotePlugins ?
    John C F
    @critiqjo
    @lolzballs also, make sure you are getting 1 when you do :echo has('python'), and you are able to import lldb from python2 interpreter...
    Benjamin Cheng
    @lolzballs
    Ah, never had to do :UpdateRemotePlugins before
    Jason Pleau
    @jpleau
    Hi. I'm having the same issues as the above people, I cannot do 'import lldb_nvim', I'm getting this: https://paste.debian.net/315229/ (sorry I couldn't format it correctly directly in gitter)
    This is on Debian sid, running the llvm/lldb-3.7 packages. I installed python-lldb-3.7 as well
    John C F
    @critiqjo
    See #6 (esp. this comment onwards)
    @jpleau ping ^
    Jason Pleau
    @jpleau
    @critiqjo hey! Thanks this works! To find the path I needed to put the symlink, running lldb -P shows it needed to be /usr/lib/x86_64-linux-gnu/python2.7/site-packages
    John C F
    @critiqjo
    :thumbsup:
    Jason Pleau
    @jpleau
    @critiqjo Now on the vim plugin, I do not get any output after doing :LLsession new (:LLsession show doesn't show anything either). I have ran PlugInstall and UpdateRemotePlugins
    I'll update neovim, something in the log looks weird
    Jason Pleau
    @jpleau
    Updated to latest neovim-git, still getting this error here: https://paste.debian.net/315283/
    Jason Pleau
    @jpleau
    Oh. Reinstalling neovim's python interface fixed it!
    Probably was an old version
    John C F
    @critiqjo
    yeah, it requires neovim/python-client release >= 0.0.38
    Chris
    @C-Radius
    Hello, I just installed lldb.vim. I started vim typed ":LLsession start" but it says that it's not an editor command? What am I missing?
    John C F
    @critiqjo
    @DeusDeceit What happens when you do :UpdateRemotePlugins?
    Chris
    @C-Radius
    @critiqjo sorry to even post the question... it was a moment of dumbness ... lldb wasn't even installed :/ Your plugin works really really nice.
    Another question tho is, how can I watch a variable's contents? is that supported?
    John C F
    @critiqjo
    @DeusDeceit No worries mate :smile:
    Have you tried :LL print <var-name-or-expression>. Also try :LL help expr when [lldb]log buffer is visible.
    Chris
    @C-Radius
    I just tried that and it causes the program to crash.
    →(lldb) print args
    ✗error: Couldn't materialize: couldn't read contents of reference variable args: extracting data from value failed
    ✗Errored out in Execute, couldn't PrepareToExecuteJITExpression
    I have to apologize for my noobiness, I'm learning lldb just now because I found this plugin. :)
    John C F
    @critiqjo

    I'm learning lldb just now because I found this plugin

    I learned about lldb only during the making of this plugin... And I'm still far from being an expert (too far!)...

    Can you link me to the source code? Which version of LLDB are you using? Which OS?
    John C F
    @critiqjo
    @DeusDeceit ping!
    Petar Nikov
    @nexusstar
    Hello, I am facing difficulties with installing when I run :UpdateRemotePlugins it reports ImportError -- no module named _lldb. What could be wrong?
    I start neovim with NVIM_PYTHON_LOG_FILE=/tmp/nvlog nvim and in the log is:
    2016-06-01 11:17:21,471 [CRITICAL @ __init__.py:<module>:6] 5873 - LLDB could not be imported!
    2016-06-01 11:17:21,534 [ERROR @ host.py:_load:130] 5873 - Encountered ImportError loading plugin at /home/nexus/.config/nvim/plugged/lldb.nvim/rplugin/python/lldb_nvim: No module named _lldb
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/neovim/plugin/host.py", line 119, in _load
        module = imp.load_module(name, file, pathname, descr)
      File "/home/nexus/.config/nvim/plugged/lldb.nvim/rplugin/python/lldb_nvim/__init__.py", line 9, in <module>
        from .controller import Controller, EventLoopError
      File "/home/nexus/.config/nvim/plugged/lldb.nvim/rplugin/python/lldb_nvim/controller.py", line 1, in <module>
        import lldb
      File "/usr/lib/python2.7/dist-packages/lldb/__init__.py", line 53, in <module>
        _lldb = swig_import_helper()
      File "/usr/lib/python2.7/dist-packages/lldb/__init__.py", line 45, in swig_import_helper
        import _lldb
    ImportError: No module named _lldb
    Petar Nikov
    @nexusstar

    I manage to fix my problems following this threads

    fix lldb broken links
    and
    unable to locate lldb-server
    Also it turns out that when I run UpdateRemotePluginsI've got plugins that depend on Python 3 so before the command succeeded I need one extra pip3 install neovim

    Jose Narvaez
    @goyox86
    Hi People!
    I have a doubt about lldb.nvim
    Kwon-Young Choi
    @kwon-young
    hello guys !
    let's say i have a program "foo" that i want to debug
    the program "foo" has to be called with some arguments like "bar"
    so i believe that the lldb command to run is "process launch -- bar" to run the target
    how do i modify the lldb-nvim.json file to make a shortcut for this command ?
    What i would like to obtain is a per-project configurable launch command that I could then map to a custom shortcut defined in my vimrc
    Anthony
    @a-n-t-h-o-n-y
    Is there any way to attach to an already running process?
    John C F
    @critiqjo

    Sorry, I missed many of the queries...

    Is there any way to attach to an already running process?

    @a-n-t-h-o-n-y See FAQ

    John C F
    @critiqjo

    how do i modify the lldb-nvim.json file to make a shortcut for this command ?

    What i would like to obtain is a per-project configurable launch command that I could then map to a custom shortcut defined in my vimrc

    @kwon-young If adding a process launch -- bar to the debug mode setup routine (like this) is not enough, you can define custom modes instead of the default code and debug, and define custom handlers for setup and teardown (see doc) which may call lldb#layout#setup("debug") to set up the debug layout and call lldb#layout#teardown() to teardown the debug layout as necessary.

    Iulian Onofrei
    @revolter
    Can anyone help me out with #46 ?
    ronak4444
    @ronak4444
    Issue : LL* commands not available ? after installing https://github.com/critiqjo/lldb.nvim. Installation works fine , python error resolved .
    ronak4444
    @ronak4444
    @ronak4444 Resolved