Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: no lexer for alias 'markdown' found [Ubuntu based Linux mint xfce] #115

Closed
FallCheetah7373 opened this issue Jun 28, 2022 · 11 comments
Labels

Comments

@FallCheetah7373
Copy link

image
I am not sure how do I go about fixing these issues...I tried installing glow but then xdg ninja didn't use it.

@FallCheetah7373 FallCheetah7373 changed the title Error: no lexer for alias 'markdown' found Error: no lexer for alias 'markdown' found [Ubuntu based Linux mint xfce] Jun 28, 2022
@b3nj5m1n
Copy link
Owner

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

@hmoffatt
Copy link

hmoffatt commented Jun 29, 2022

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.

@FallCheetah7373
Copy link
Author

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.

@b3nj5m1n
Copy link
Owner

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

@FallCheetah7373
Copy link
Author

FallCheetah7373 commented Jun 29, 2022

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

@b3nj5m1n
Copy link
Owner

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.

@hmoffatt
Copy link

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

@FallCheetah7373
Copy link
Author

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

https://github.com/charmbracelet/glow

@hmoffatt
Copy link

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

@b3nj5m1n
Copy link
Owner

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

@hmoffatt
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants