Git Product home page Git Product logo

Comments (11)

hmoffatt avatar hmoffatt commented on July 18, 2024 2

OK it looks like it needs a newer version of pygments. I installed it from pip and now this runs.

from xdg-ninja.

hmoffatt avatar hmoffatt commented on July 18, 2024 1

I get this error on Debian 11 too.

Markdown rendering will be done by pygmentize. (Glow is recommended)
The $XDG_DATA_HOME environment variable is not set, make sure to add it to your shell's configuration before setting any of the other environment variables!
    ⤷ The recommended value is: $HOME/.local/share
The $XDG_CONFIG_HOME environment variable is not set, make sure to add it to your shell's configuration before setting any of the other environment variables!
    ⤷ The recommended value is: $HOME/.config
The $XDG_STATE_HOME environment variable is not set, make sure to add it to your shell's configuration before setting any of the other environment variables!
    ⤷ The recommended value is: $HOME/.local/state
The $XDG_CACHE_HOME environment variable is not set, make sure to add it to your shell's configuration before setting any of the other environment variables!
    ⤷ The recommended value is: $HOME/.cache

Starting to check your $HOME.

[android-studio]: $HOME/.android
Error: no lexer for alias 'markdown' found
[ansible]: $HOME/.ansible
Error: no lexer for alias 'markdown' found
[audacity]: $HOME/.audacity-data
Error: no lexer for alias 'markdown' found

etc

It says "glow is recommended" but I'm not sure how to install that - it doesn't seem to be in the Debian repository.

from xdg-ninja.

b3nj5m1n avatar b3nj5m1n commented on July 18, 2024 1

That means you haven't set the XDG environment variables.

If you want them all at their default location, this probably isn't a huge deal, as almost every program will use the default location as a fallback.

If you did want to set these, you could indeed do it in your .bashrc.

from xdg-ninja.

hmoffatt avatar hmoffatt commented on July 18, 2024 1

https://github.com/charmbracelet/glow

Fine, but the console output says it will work without glow, but it doesn't:

Markdown rendering will be done by pygmentize. (Glow is recommended)
...
[android-studio]: $HOME/.android
Error: no lexer for alias 'markdown' found

from xdg-ninja.

b3nj5m1n avatar b3nj5m1n commented on July 18, 2024

This is a bit weird, are you able to run glow normally?

from xdg-ninja.

FallCheetah7373 avatar FallCheetah7373 commented on July 18, 2024

This is a bit weird, are you able to run glow normally?

Yes I had to compile glow. The only issue being I can only run it through ./glow on the compiled folder in home directory.

from xdg-ninja.

b3nj5m1n avatar b3nj5m1n commented on July 18, 2024

You'll have to move the compiled binary to some directory on your PATH, like /bin/ or /usr/bin/.

from xdg-ninja.

FallCheetah7373 avatar FallCheetah7373 commented on July 18, 2024

You'll have to move the compiled binary to some directory on your PATH, like /bin/ or /usr/bin/.

that fixed it thanks! While I am at it what is this warning about? is that something to do with .bashrc?
image

from xdg-ninja.

hmoffatt avatar hmoffatt commented on July 18, 2024

I have the same error and I don't even have glow.

from xdg-ninja.

FallCheetah7373 avatar FallCheetah7373 commented on July 18, 2024

I have the same error and I don't even have glow.

https://github.com/charmbracelet/glow

from xdg-ninja.

b3nj5m1n avatar b3nj5m1n commented on July 18, 2024

This is a problem with pygmentize, and since I'm not familiar with that tool, I unfortunately can't provide any assistance.

from xdg-ninja.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.