I really really really want to have debugger integration with my Vim setup and while the plugins for old Vim were a little wacky, the new architecture of NeoVim seems promising, so I decided to give lldb.nvim a go.
It didn't work. This is a (
Step 1: update
Update your neovim to the latest release to avoid fighting issues that have already been solved. At the time of writing, I used:
- nvim 0.1.2 from Homebrew
- OS X 10.10.5
- XCode 7.0
- lldb-340.4.70
Step 2: Diagnose
PyThreadState_get error
If you're on OS X, chances are you have more than one Python version installed and that's where the trouble comes from. If you get this error message
>>> import lldb
Fatal Python error: PyThreadState_Get: no current thread
it's most likely because you're trying to import a module that has been linked with a different version of Python. The lldb module comes with the XCode developer tools and was linked with the default system version of Python which lives in (remember this)
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python
so this is the python version you should use to run the lldb.nvim remote plugin. On my system, BTW, lldb module lives in/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python
Step 3: Install neovim Python module
The neovim module has probably already been installed with neovim but perhaps not in the correct Python version. You can try to
import neovim
in the system Python. If it fails, you'll need to install it using easy_install
or pip
:
sudo /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python -m easy_install neovim
This will install the neovim package into the system Python distribution (needs sudo) using the easy_install tool.
Step 4: Configure neovim to use the system Python
In your neovim config file, add this line:
let g:python_host_prog = '/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python'
This ensures that neovim will start the system Python (which has access to lldb and neovim modules) to host the plugin. After this, you should be all set!
Step 5: Using $PYTHONPATH?
If you do use $PYTHONPATH with your non-system Python, you'll have trouble as well. Before launching the system Python from nvim, you'll need to clean this variable otherwise the packages will interfere with the system Python's packages.
I do that using a small wrapper script
I do that using a small wrapper script
~/syspython2
which gets invoked from nvim as the g:python_host_prog
#!/bin/sh
# running the OS X system python. Required to import the lldb module.
export PYTHONPATH="/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python"
# enable these for debugging
#echo "--" >> ~/syspython2.log
#echo "$@" >> ~/syspython2.log
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python "$@"
Step 6: Diagnose
Still having trouble?
- Don't forget to run
:UpdateRemotePlugins
- Enable logging in the
~/syspython2
script - Check using
pstree | less
if neovim is launching the correct Python binary - Double-check you can import neovim and lldb modules from the system Python
- Make sure lldb.neovim is installed correctly - the file
lldb.nvim/rplugin/python/lldb_nvim.py
must exist - NeoVim also tries to load Python 3 plugins, you may need to do the same for Python 3
- Try to debug
/usr/local/Cellar/neovim/0.1.2/share/nvim/runtime/autoload/remote/host.vim
using debugging vim methods - More info about lldb Python module here on StackOverflow
Thanks a million trillion times! I was getting suicidal,
ReplyDeleteHere's one hundred smilies:
:) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :)
i:) (ESC)100.
DeleteI am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts. Python Projects for Students Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account. Project Center in Chennai
Deletelldb works smooth with the default macOS python (/usr/bin/python). Which is also used in LLDB Python Reference: http://lldb.llvm.org/python-reference.html
ReplyDeleteBut there is a need to install all the dependencies and even pip itself for this version. My workaround was:
1) installing pip with /usr/bin/python using get-pip.py (no luck with easy_install):
download https://bootstrap.pypa.io/get-pip.py
run the downloaded: sudo /usr/bin/python get-pip.py
2) installing the 'six' module (sudo /usr/bin/python -m pip install six)
3) installing neovim, but 'pip install' for each dependency:
sudo /usr/bin/python -m pip install greenlet
sudo /usr/bin/python -m pip install msgpack-python
sudo /usr/bin/python -m pip install futures
sudo /usr/bin/python -m pip install trollius
sudo /usr/bin/python -m pip install neovim
4) adding 'export PYTHONPATH=/Developer/Library/PrivateFrameworks/LLDB.framework/Resources/Python' to my ~/.bash_profile
5) setting nvim's python to /usr/bin/python
let g:python_host_prog = '/usr/bin/python'
But this is clean Python on my system, all the modules that I previously installed is in /System/Library/Frameworks/Python.framework/... so it's not so great.
Sorry, PYTHONPATH should be set as:
DeletePYTHONPATH=/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python
Thanks for your great tutorial. I had problem with addressing python host like this:
ReplyDeletelet g:python_host_prog = '~/syspython2'
This should be:
let g:python_host_prog = '/Users/username/syspython2'
With this configuration it works :)
Thank you. Excited to use lldb in neovim now!
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis was an excellent post and very good information provided, Thanks for sharing.
ReplyDeleteBest Data Science training in Mumbai
Data Science training in Mumbai
Very interesting blog. Many blogs I see these days do not really provide anything that attracts others, but believe me the way you interact is literally awesome.You can also check my articles as well.
ReplyDeleteData Science In Banglore With Placements
Data Science Course In Bangalore
Data Science Training In Bangalore
Best Data Science Courses In Bangalore
Data Science Institute In Bangalore
Thank you..
Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
ReplyDeleteCorrelation vs Covariance
Simple linear regression
data science interview questions
Nice blog Post ! This post contains very informative and knowledgeable. Thanks for sharing the most valuable information.
ReplyDeleteData Science Training in Hyderabad
Such a very useful article. Very interesting to read this article. I would like to thank you for the efforts you had made for writing this awesome article.
ReplyDeleteData Science Course in Pune
Data Science Training in Pune
I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it.
ReplyDeleteData Analytics Course in Pune
Data Analytics Training in Pune
This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck.
ReplyDeleteData Science Institute in Bangalore
Great post i must say and thanks for the information.
ReplyDeleteData Science Certification in Bangalore
Nice knowledge gaining article. This post is really the best on this valuable topic.
ReplyDeleteData Science Course in Bangalore
I’ve read some good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website.
ReplyDeleteData Science Training in Bangalore
ReplyDeleteThe Content You Shared With Us Is Excellent & Extraordinary Useful to all Aspirants Thanks For Sharing With Us!
Best Degree College In Hyderabad
Top Degree College In Hyderabad
Top And Best BBA College In Hyderabad
Top And Best B.Com College In Hyderabad
It is the level of shared understandings required in our most inconsequential forms of social interaction which necessarily require that individuals assume complicated shared knowledge that is too complex for even the must sophisticated forms of artificial intelligence as conceived to date, in which propositions are either true or false and premises must follow deductively. artificial intelligence training in hyderabad
ReplyDeleteReally impressed! Everything is very open and very clear clarification of issues. It contains truly facts. Your website is very valuable. Thanks for sharing.
ReplyDeleteData Science Course in Bangalore
It's late finding this act. At least, it's a thing to be familiar with that there are such events exist. I agree with your Blog and I will be back to inspect it more in the future so please keep up your act.
ReplyDeleteData Science Training in Bangalore
This is my first visit to your blog! We are a team of volunteers and new
ReplyDeleteinitiatives in the same niche. Blog gave us useful information to work. You
have done an amazing job!
artificial intelligence training in Bangalore
Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging,
ReplyDeleteData Science Course in Bangalore
Wonderful illustrated information. I thank you about that. No doubt it will be very useful for my future projects. Would like to see some other posts on the same subject!
ReplyDeleteData Science Training in Bangalore
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
ReplyDeletedata science training in guduvanchery
Thanks for sharing nice information....
ReplyDeleteData Science Training in Hyderabad
Thanks for sharing nice information....
ReplyDeleteData Science Training in Hyderabad
https://digitalweekday.com/
ReplyDeletehttps://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
ReplyDeletehttps://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
https://digitalweekday.com/
really this is awesome post. Truly, one of the best posts I've ever witnessed to see in my whole life. Wow, just keep it up.Learn Data Science Course in Hyderabad
ReplyDeleteI’m excited to uncover this page. I need to to thank you for ones time for this particularly fantastic read!! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site.Learn Best Data Science Training in Hyderabad
ReplyDeleteThis comment has been removed by the author.
ReplyDeletereally awesome post this is. Truly, one of the best posts I've ever witnessed to see in my whole life. Wow, just keep it up.Learn best Business Analytics Course in Hyderabad
ReplyDeleteWow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also.data science course
ReplyDeleteWelcome to the party of my life here you will learn everything about me.data science certification
ReplyDeleteReally nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
ReplyDeletedata science using python and r programming guduvanchery
This is really very nice post you shared, i like the post, thanks for sharing. Learn best Ethical Hacking Course in Bangalore
ReplyDeleteI really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.Learn best Ethical Hacking Training in Bangalore
ReplyDeleteVery impressive and interesting blog found to be well written in a simple manner that everyone will understand and gain the enough knowledge from your blog being more informative is an added advantage for the users who are going through it. Once again nice blog keep it up.
ReplyDelete360DigiTMG Business Analytics Course
Its content is brilliant in many ways. I think it is an attractive and revealing material. Thank you very much for caring about your content and your readers.
ReplyDelete360DigiTMG Data Science Courses
I have read your article, it is very informative and useful to me, I admire the valuable information you offer in your articles. Thanks for posting it ...
ReplyDelete360DigiTMG Data Science Certification
Wonderful blog found to be very impressive to come across such an awesome blog. I should really appreciate the blogger for the efforts they have put in to develop such an amazing content for all the curious readers who are very keen of being updated across every corner. Ultimately, this is an awesome experience for the readers. Anyways, thanks a lot and keep sharing the content in future too.
ReplyDelete360DigiTMG Tableau Course
Amazing Article ! I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
ReplyDeleteSimple Linear Regression
Correlation vs covariance
data science interview questions
KNN Algorithm
Logistic Regression explained
This is actually the data I'm searching for, I was unable to have requested a less difficult perused with extraordinary tips this way... Much appreciated!
ReplyDeleteartificial intelligence course in delhi
I feel very impressed by the information shared and I really learned a lot from it thank you.
ReplyDeleteData Science Course in Hyderabad
Big data is on the rise and so is the requirement for professionals with skills. The training enables folk to pursue an interesting career as a Data Scientist. data science course in hyderabad
ReplyDeleteAttend The Data Science Courses Bangalore From ExcelR. Practical Data Science Courses Bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Science Courses Bangalore.
ReplyDeleteData Science Courses Bangalore
There is no dearth of Data Science course syllabus or resources. Learn the advanced data science course concepts and get your skills upgraded from the pioneers in Data Science.
ReplyDeletedata science course bangalore
data science course syllabus
Nice and useful post.
ReplyDeletetypeerror nonetype object is not subscriptable
Awesome blog with excellent information and fantastic writing skills found very useful thanks for Sharing you.Data Analytics Course Online 360DigiTMG
ReplyDeleteVery informative message! There is so much information here that can help any business get started with a successful social media campaign!
ReplyDeleteBusiness Analytics Course in Bangalore
Really, this article is truly one of the best in article history. I am a collector of old "items" and sometimes read new items if I find them interesting. And this one that I found quite fascinating and should be part of my collection. Very good work!
ReplyDeleteData Analytics Course in Bangalore
Now is the perfect time to plan for the future and now is the time to be happy. I have read this article and if I can I would like to suggest some cool tips or advice. Perhaps you could write future articles that reference this article. I want to know more!
ReplyDeleteArtificial Intelligence Course in Bangalore
I will very much appreciate the writer's choice for choosing this excellent article suitable for my topic. Here is a detailed description of the topic of the article that helped me the most.
ReplyDeleteunindent does not match any outer indentation level
I'm glad I found this blog! Occasionally, students want to know the keys to writing productive literary essays. Your first-class knowledge of this great job can become a suitable foundation for these people. Good
ReplyDeleteunindent does not match any outer indentation level python
Nice Information Your first-class knowledge of this great job can become a suitable foundation for these people. I did some research on the subject and found that almost everyone will agree with your blog.
ReplyDeleteCyber Security Course in Bangalore
Writing in style and getting good compliments on the article is hard enough, to be honest, but you did it so calmly and with such a great feeling and got the job done. This item is owned with style and I give it a nice compliment. Better!
ReplyDeleteCyber Security Training in Bangalore
Tremendous blog quite easy to grasp the subject since the content is very simple to understand. Obviously, this helps the participants to engage themselves in to the subject without much difficulty. Hope you further educate the readers in the same manner and keep sharing the content as always you do.
ReplyDeleteData Science certification in Raipur
I really appreciate the writer's choice for choosing this excellent article information shared was valuable thanks for sharing.
ReplyDeleteData Science Training in Hyderabad
It was only after the advent of Big Data that the world realized the tremendous force behind Data. This is a completely new profession with promising career growth and immense possibilities. Industries need Data Scientists in a large number, but there aren't enough currently and this is why the opportunities for fresher are almost endless. data science course syllabus
ReplyDeleteThis is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post.
ReplyDeletedata science institute in hyderabad
Hi, I have perused the greater part of your posts. This post is presumably where I got the most valuable data for my examination. Much obliged for posting, we can see more on this. Are you mindful of some other sites regarding this matter.
ReplyDeletedata scientist training
Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also.
ReplyDeletedata science course in India
First off, data science training helps candidates choose better career paths. Therefore, these jobs are offered across the world. This training will help you be more skillful, proficient and technological aware. data science course syllabus
ReplyDeleteĐại lý vé máy bay Aivivu, tham khảo
ReplyDeletesăn vé máy bay giá rẻ tết 2021
vé máy bay đi Mỹ bao nhiêu
giá vé máy bay đi Pháp của Vietnam Airline
mua vé máy bay đi hàn quốc giá rẻ
vé máy bay vietjet đi nhật bản
giá vé máy bay đi Anh Vietnam Airline
mua vé máy bay giá rẻ ở đâu
Great Article. Thank you for sharing! Really an awesome post data science course in Hyderabad
ReplyDeleteYou might comment on the order system of the blog. You should chat it's splendid. Your blog audit would swell up your visitors. I was very pleased to find this site.I wanted to thank you for this great read!!
ReplyDeleteArtificial Intelligence Course
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog..
ReplyDeleteBest Institute for Data Science in Hyderabad
I have to search sites with relevant information ,This is a
ReplyDeletewonderful blog,These type of blog keeps the users interest in
the website, i am impressed. thank you.
Data Science Course in Bangalore
Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me ExcelR Data Analytics Course
ReplyDeleteI recently found a lot of useful information on your website, especially on this blog page. Among the many comments on your articles. Thanks for sharing.
ReplyDeleteBusiness Analytics Course in Bangalore
This is an excellent article. I like this topic. This site has many advantages. I have found a lot of interesting things on this site. It helps me in so many ways. Thanks for posting this again.
ReplyDeleteData Analytics Course in Bangalore
I have to search sites with relevant information ,This is a
ReplyDeletewonderful blog,These type of blog keeps the users interest in
the website, i am impressed. thank you.
Data Science Training in Bangalore
This is a great motivational article. In fact, I am happy with your good work. They publish very supportive data, really. Continue. Continue blogging. Hope you explore your next post
ReplyDeletecertification of data science
Excellent Blog!!! Waiting for your new blog... thanks for sharing with us.
ReplyDeleteandroid developer vs web developer salary
how to use selenium webdriver
which is the best language in the world
professional hacking
devops interview questions and answers pdf
rpa interview questions and answers for experienced
As always your articles do inspire me. Every single detail you have posted was great.
ReplyDeletedata science certification in noida
Your content is very unique and understandable useful for the readers keep update more article like this.
ReplyDeletedata scientist course in noida
Cool stuff you have and you keep overhaul every one of us
ReplyDeletebusiness analytics training aurangabad
Mua vé máy bay tại Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ giá rẻ 2021
đăng ký về việt nam ở mỹ
giá vé máy bay từ anh về việt nam
chuyến bay từ pháp về việt nam hôm nay
Happy to visit your blog, I am by all accounts forward to more solid articles and I figure we as a whole wish to thank such huge numbers of good articles, blog to impart to us.
ReplyDeletedata scientist course
Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
ReplyDeletedata science course in noida
Really Nice Information It's Very Helpful All courses Checkout Here.
ReplyDeletedata science in malaysia
Wow, amazing post! Really engaging, thank you.
ReplyDeletebest data analytics training in yelahanka
"Very Nice Blog!!!
ReplyDeletePlease have a look about "data science training in noida
This post is extremely easy to peruse and acknowledge without forgetting about any subtleties. Incredible work!
ReplyDeletedata scientist training and placement
Useful information, Thank you for sharing...
ReplyDeleteData science training in chennai
Data science course in chennai