Comments (2)
I tried a fresh Ubuntu 19.10 VM, it does not seem to work there too:
# md5sum
ee829212bbd90d6c0237701b10ad90fd ubuntu-19.10-desktop-amd64.iso
sudo apt install -y git python-virtualenv
git clone https://github.com/asottile/babi.git
cd babi
virtualenv -p /usr/bin/python3 venv
source venv/bin/activate
pip install -r requirements-dev.txt
python setup.py develop
./bin/download-theme vs-dark-asottile https://gist.github.com/asottile/b465856c82b1aaa4ba8c7c6314a72e13/raw/22d602fb355fb12b04f176a733941ba5713bc36c/vs_dark_asottile.json
printf "import re\n\ndef test():\n pass" > test.py
babi test.py
<no highlighting>
echo "$TERM"
>>> xterm-256color
from babi.
The problem was using python setup.py develop
-- that'll use eggs
which don't put the grammars in the proper position
eggs are basically dead in python, only ended up there on accident
I'd suggest using pip
to do installation, either through pip install babi
or pip install .
or pip install -e .
(the last one is ~equivalent to python setup.py develop
)
thanks for the report and the back and forth on twitch, definitely helped us get to the bottom of this!
from babi.
Related Issues (20)
- Default color scheme doesn't work on macos HOT 3
- jump-by-word (^+right) goes too far when tabs are involved HOT 13
- Display Line Numbers HOT 2
- Syntax highlighting is not working HOT 10
- ^\ during linting causes SIGQUIT to exit the editor
- file containing null byte causes crash HOT 3
- Paste operation for emojis doesn't work in Windows HOT 1
- Word Wrapping HOT 1
- pre-commit runs with the wrong configuration when accessing a file in a different repository
- opening linting panel can cause cursor to be out-of-bounds
- Recursive argument on opening files HOT 1
- saving over a non-utf-8 file causes a crash
- LSP support HOT 2
- babi not using babi_grammars when installed in a venv HOT 3
- babi won't install in ARM64 Debian 11 system HOT 2
- unknown key Error HOT 2
- Add support for delete whole word
- give up on highlighting if lines are too long
- Usage with pipx HOT 1
- lint panel should close when switching files
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 babi.