-
Notifications
You must be signed in to change notification settings - Fork 391
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
[SOLVED] New issue since today #203
Comments
Seems to work with iTerm2 but not with HyperJS terminal. |
Hi @MrMic, could you paste the output of running |
Hi @avdv, The output is: Thanks for the follow-up and toubleshooting. |
Actually, that looks pretty normal. Since you use rvm, do you have the same version of Ruby in iTerm2 and Hyper? (run Did you try re-installing |
Oh, and what does |
In Iterm2: In Hyper:
|
Yes, my bad. I did correct the error in the command already in the comment above, but maybe you copied it from the email? It should read:
|
No output in Iterm2 and HyperJS. |
That's good news! But doesn't explain the error you get with colorls at all... 😲 Oh, 🤦♂️, that was the wrong constant. Could you retry with
|
In Iterm2 => Nothing |
Weird. Do you have the exact same ruby interpreter at hand in iTerm2 and Hyper? I have not much experience with rvm... Why do you use such an old ruby version, 2.1.2 is no longer supported, even 2.2 support has ended? |
I just install the latest ruby with rvm: And the results of your command line is:
|
The latest Ruby should be 2.5.1, actually. What rvm command did you run? However, since you freshly installed another Ruby version, you don't have the clocale gem installed yet. You need to run |
I have used: And installed clocale (gem) , the same way you mentioned.
|
According to https://askubuntu.com/questions/330072/how-to-find-and-install-latest-ruby-version-using-rvm#comment1051298_505276 Does |
OK, now installed and switched to ruby 2.5.1
I have also try
Issue still not fixed ... |
OK. That suggests there is indeed some difference in the environment which is causing that. But according to your Does Does What does According to https://stackoverflow.com/a/30198089/4432837
I wonder whether it is now fixed..?! |
What happens if you change the “Set locale variables automatically” setting in iTerm2? (in iTerm2 go to: Profiles -> Terminal, click the checkbox, restart iterm afterwards) Does it show the same behavior as Hyper? |
|
The checkbox in Iterm2 was already checked ! |
OK, but I was asking you to change it. So, when you untick the box and restart iterm, does it show the same behaviour as Hyper? I would expect yes. What is the output of |
And what does |
ruby -r clocale -e 'CLocale.setlocale(CLocale::LC_COLLATE, "fr.UTF-8")'
LC_COLLATE=C ruby -r clocale -e 'CLocale.setlocale(CLocale::LC_COLLATE, "")'
** => Seems you are misspelling the locale ..., no ? ** |
I was just using what you gave me in your comment here: #203 (comment) Try to set the locale in Hyper to
Does that work? |
yes it works. |
Depends on the Shell you're using. Is it bash? Add this statement to your |
Maybe there's a setting in Hyper for this? Maybe it's a bug in Hyper that it does not correctly initialize the locale? |
That why I asked! Because I use zsh and know how to export environment variables ... I will search docs, web ... Rgds, |
To debug, look at the output of |
@MrMic FYI, here's a bug about your problem in Hyper: vercel/hyper#607 It should be fixed already in Hyper 2.1.0-canary.2 but see also here: vercel/hyper#3091 |
@avdv |
when i try ls, now i got this issue:
.rvm/gems/ruby-2.1.2/gems/colorls-1.1.1/lib/colorls/flags.rb:38:in
'setlocale': error calling setlocale(1, "") (RuntimeError) from /Users/mic/.rvm/gems/ruby-2.1.2/gems/colorls-1.1.1/lib/colorls/flags.rb:38:in
process'from /Users/mic/.rvm/gems/ruby-2.1.2/gems/colorls-1.1.1/exe/colorls:5:in
<top (required)>' from /Users/mic/.rvm/gems/ruby-2.1.2/bin/colorls:23:in
load'from /Users/mic/.rvm/gems/ruby-2.1.2/bin/colorls:23:in
<main>' from /Users/mic/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:24:in
eval'from /Users/mic/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:24:in `
I am on Mac osx 10.13.6
=> brew info ruby
=> ruby: stable 2.5.1 (bottled), devel 2.6.0-preview2, HEAD
Thanks for fixing the issue.
Rgds,
The text was updated successfully, but these errors were encountered: