Comments (25)
What does :echo has('python')
output?
from lldb.nvim.
It outputs 1
.
from lldb.nvim.
Hmm... Does the plugin work after restarting Neovim?
from lldb.nvim.
Wait a second... The error log has nothing that points to lldb.nvim
... Why do you think lldb.nvim
is the cause of this error?
from lldb.nvim.
Does the plugin work after restarting Neovim?
I didn't manage to get it working at all.
The error log has nothing that points to lldb.nvim... Why do you think lldb.nvim is the cause of this error?
Well, I initially thought that the :UpdateRemotePlugins
command is lldb.nvim
specific, and I didn't use it before at all. Also, running :LLsession new
throws the E492: Not an editor command: LLsession new
. Though :help lldb-start
works.
from lldb.nvim.
This seems like a sourcing issue. Are you using a plugin manager? Try using dein.
from lldb.nvim.
I'm using vim-plug.
from lldb.nvim.
vim-plug
should work fine... May be it's the error most Mac users are experiencing --- incompatible Python versions. In order to import lldb
, you need to have Neovim use the built-in python, not the brewed one. So if that's not the case, loading lldb.nvim
may fail.
But before going in that direction, can you check if you comment out the vim-plug line that loads lldb.nvim
, whether the error still persist. (As I said before, check if this is indeed the cause of error.) If it [EDIT +doesn't] persist, then comment it out again, and try to load another remote plugin, say, deoplete (requires python3; I couldn't find any python2 remote plugins).
from lldb.nvim.
Commented the lldb.nvim
plug and running :UpdateRemotePlugins
prints:
remote/host: generated rplugin manifest: /Users/Iulian/.local/share/nvim/rplugin.vim
I saw a couple of info regarding mac problems but none helped.
from lldb.nvim.
I'm not sure how Neovim loads python2, but I'll guess it's using env
. Assuming it is, can you test how these commands go:
$ env python2
>>> import lldb
To check whether lldb
is available from the default python2.
from lldb.nvim.
>>> import lldb
Fatal Python error: PyThreadState_Get: no current thread
[1] 29272 abort env python2
from lldb.nvim.
This: http://blog.rplasil.name/2016/03/how-to-debug-neovim-python-remote-plugin.html
from lldb.nvim.
And what do I do for step 2?
from lldb.nvim.
Check whether you have another python
executable in your XCode directory (shown in the post), and try import lldb
from it, I guess. After following all those steps, Neovim will use XCode's python for all python2 plugins.
Closing this since the issue is the same.
from lldb.nvim.
I would be very grateful if you could help me with this because I already read that (1 year old) blog post.
/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python
doesn't contain any python executable.
The issue is the same to what?
from lldb.nvim.
Your Mac or XCode version may be different. Just locate where XCode is installed, and then find
the python executable in it.
from lldb.nvim.
/Applications/Xcode.app
doesn't contain any python executable.
from lldb.nvim.
Isn't there any Mac user/contributor/member that could help me?
from lldb.nvim.
I'll donate $30.
from lldb.nvim.
Lol! I don't collect donations! I'm not a Mac user either (which I think you guessed). Though it's flattering to see that you are willing to pay $30 to get this plugin working... I guess you'd have to find out where the python interpreter used in XCode is located somehow. May be look through the process tree and see the child processes while debugging something in it?
from lldb.nvim.
@critiqjo, Yes, I noticed. And, I'll donate it to whoever helps me then.
I don't know much about underlying stuff like this. I don't know if Xcode even has a python interpreter. I was wondering if there are people that use this plugin on macOS Sierra, and if they do, what did they have to do in order to get it working, as clearly that information is missing from the documentation.
from lldb.nvim.
If you want to donate, neovim project is recommended.
lldb.nvim requres neovim.
https://www.bountysource.com/teams/neovim
from lldb.nvim.
@Shougo, Got it. But first, I really need help with this one but it's beyond me.
from lldb.nvim.
Even though I'm not using python3
for lldb
and for me to fully load
lldb.vim
plug-in, I'd need to resolve the following error:
function remote#host#UpdateRemotePlugins[6]..<SNR>76_RegistrationCommands[15]..remote#host#Require[13]..provider#pythonx#
Require, line 14
Vim(let):E902: "" is not an executable
function remote#host#UpdateRemotePlugins[6]..<SNR>76_RegistrationCommands[15]..remote#host#Require[13]..provider#pythonx#
Require, line 21
Vim(for):E121: Undefined variable: channel_id
To fix this, I need to install neovim
module for python3
by using pip
installer.
python3 -m pip install --user neovim
Once successfully installed and execute :UpdateRemotePlugins
command back in
neovim
, should see the following result:
remote/host: python3 host registered plugins []
I wouldn't have to worried about python (2.7.x)
as it is already installed
properly. As shown:
remote/host: python host registered plugins ['lldb_nvim']
remote/host: generated rplugin manifest: /Users/nate/.local/share/nvim/rplugin.vim
So the final results should look like this:
:UpdateRemotePlugins
remote/host: python3 host registered plugins []
remote/host: python host registered plugins ['lldb_nvim']
remote/host: generated rplugin manifest: /Users/nate/.local/share/nvim/rplugin.vim
NOTE: I'd assume this error isn't isolated only to python3
, but also to python (2.7.x)
so install neovim
module for this version if haven't done so.
python -m pip install --user neovim
From what is described may not fix all problems to get lldb.vim
plug-in
working. Refer to other issues that are closed.
from lldb.nvim.
I was having issues with this as well, using macOS High Sierra. Just wanted to point out to anyone stumbling on this issue that you really need to make sure you are using the system python for LLDB, as explained in http://blog.rplasil.name/2016/03/how-to-debug-neovim-python-remote-plugin.html. Using a custom python, such as the one from Homebrew, will not work. As I understood it this is a bug in LLDB, which currently can only use the system python.
Tanks @revolter for giving me hints in other issues on how to fix it.
from lldb.nvim.
Related Issues (20)
- Breakpoints don't work when symbolic links are involved in the path to working directory
- A fork to support Vim-with-channels HOT 3
- Complain about unsaved session file after `:LLsession show`? HOT 3
- `target.source-map` is not working properly
- Loading coredumps HOT 2
- Breakpoint issues when a shared library is using in macOS Sierra HOT 8
- How to debug an interactive command line application? HOT 7
- Way of detecting through vimscript what mode nvim is in HOT 1
- Breakpoint symbols not visible HOT 2
- Move the repository to an organization HOT 6
- Can I use terminal command just like ConqueGDB? HOT 1
- Issues with frame variable when examining std::vector HOT 6
- Multithread debug issues HOT 9
- It do not accept LL commands. and then happened EventLoopError. HOT 4
- Possible index out of range error
- README does not mention this repo in the install section HOT 1
- After installation, LL commands are not recognized HOT 2
- process interrupt not working unless a breakpoint has been hit HOT 3
- Upstream bugs! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lldb.nvim.