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

Runtime error in vim terminal #335

Closed
1 of 5 tasks
JustSage opened this issue Jan 19, 2020 · 3 comments
Closed
1 of 5 tasks

Runtime error in vim terminal #335

JustSage opened this issue Jan 19, 2020 · 3 comments

Comments

@JustSage
Copy link

Vim terminal issue.

  • Relevant Issues : ~
  • Relevant PRs : ~
  • Type of issue :
    • Installation
    • Font-related
    • Feature request
    • Bug in existing feature
    • Developer mode : Code quality / Tests / Documentation

Colorls works in the terminal properly although I have encountered several issues regarding Nvim/vim built in terminal.
This error is presented for any command I try to run :

screenshot_2020-01-19_15-06-27

If the image won't appear :

Traceback (most recent call last): 
4: from /usr/local/bin/colorls:23:in `<main>' 
3: from /usr/local/bin/colorls:23:in `load'
2: from /Library/Ruby/Gems/2.6.0/gems/colorls-1.3.1/exe/colorls:6:in `<top (required)>' 
1: from /Library/Ruby/Gems/2.6.0/gems/colorls-1.3.1/lib/colorls/flags.rb:41:in `process'
/Library/Ruby/Gems/2.6.0/gems/colorls-1.3.1/lib/colorls/flags.rb:41:in `setlocale': error calling `setlocale(LC_COLLATE, "")` (RuntimeError)`

Help will be appreciated :)

@avdv
Copy link
Collaborator

avdv commented Jan 20, 2020

Probably similar to #204 resp. #203.

What is the output of locale in your VIM terminal?

@JustSage
Copy link
Author

JustSage commented Feb 8, 2020

LANG="en_IL"
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

@avdv
Copy link
Collaborator

avdv commented Feb 8, 2020

That seems to be an invalid locale on your system. Try setting LC_CTYPE to en_IL.UTF-8...

Also, compare the output of locale inside a normal terminal to the one from VIM term.

avdv added a commit to avdv/colorls that referenced this issue Apr 16, 2020
Keep running if calling `setlocale` fails, because of invalid locale settings.

Fixes athityakumar#335.
@avdv avdv closed this as completed in 825e9f7 Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants