msprev / unite-bibtex Goto Github PK
View Code? Open in Web Editor NEWa BibTeX source for unite.vim
License: BSD 3-Clause "New" or "Revised" License
a BibTeX source for unite.vim
License: BSD 3-Clause "New" or "Revised" License
Here's the output I'm getting in vim after attempting :Unite bibtex
[unite.vim] function 51_call_unite[33]..unite#start[1]..unite#start#standard[50]..unite#candidates#_recache[74]..134_recache_candidates_loop
[41]..134_get_source_candidates[40]..124, line 25
[unite.vim] Vim(python):Traceback (most recent call last):
[unite.vim] Error occurred in gather_candidates!
[unite.vim] Source name is bibtex
Any ideas?
bibtexparser raises an error when it encounters a 'non standard type' in a .bib file. It counts types like 'collection' as nonstandard. unite-bibtex now displays the warnings when it builds its cache. One way to stop this would be to use a ignore_nonstandard_types=False
option with the parser.
If there is no cache or the cache is stale I get the following error when I do Unite bibtex
. If I do it a second time it's fine. So it looks like the first time the cache is actually created/updated and then on the second attempt Unite is able to use it.
[unite.vim] function <SNR>22_call_unite..unite#start..unite#start#standard..unit
e#candidates#_recache..<SNR>46_recache_candidates_loop..<SNR>46_get_source_candi
dates..7, line 25
[unite.vim] Vim(python):No handlers could be found for logger "bibtexparser.bpar
ser"
[unite.vim] Error occurred in gather_candidates!
[unite.vim] Source name is bibtex
My fork https://github.com/twsh/unite-bibtex works with Python 3, but, at present, only Python 3. I haven't thought yet about how to have one thing that works whichever Python Vim has.
Thanks for this!
I use slightly different field names, following what's in the biblatex manual:
journal -> journaltitle
year -> date
address -> location
I've forked your code and edited apalike.py to handle both: https://github.com/twsh/unite-bibtex
Would you be amenable to a pull request?
I recently upgraded to Ubuntu 16.04. I'm now getting a problem with unite-bibtex. (I have the latest version installed via Vundle). I have Vim 7.4.1689 which is the latest version in the Ubuntu repository. This is the error:
[unite.vim] function <SNR>22_call_unite[33]..unite#start[1]..unite#start#standar
d[50]..unite#candidates#_recache[74]..<SNR>98_recache_candidates_loop[42]..<SNR>
98_get_source_candidates[40]..103, line 25
[unite.vim] Vim(python):E319: Sorry, the command is not available in this versio
n: python import unitebibtex; unitebibtex.vim_bridge_gather_candidates()
[unite.vim] Error occurred in gather_candidates!
[unite.vim] Source name is bibtex
I have bibtexparser installed. And Unite itself seems to be working fine. Have you seen this kind of error before? Do you know where I should start looking?
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.