You are not logged in.
When running
colorlsI get his output:
/usr/lib/ruby/3.0.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'english' (>= 0.a) among 96 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/riddle/.local/share/gem/ruby/3.0.0:/usr/lib/ruby/gems/3.0.0' , execute `gem env` for more information
from /usr/lib/ruby/3.0.0/rubygems/dependency.rb:323:in `to_spec'
from /usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_gem.rb:62:in `gem'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:73:in `require'
from /usr/lib/ruby/gems/3.0.0/gems/colorls-1.4.6/lib/colorls.rb:5:in `<top (required)>'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/lib/ruby/gems/3.0.0/gems/colorls-1.4.6/exe/colorls:21:in `<top (required)>'
from /usr/bin/colorls:25:in `load'
from /usr/bin/colorls:25:in `<main>'I got around this by installing it with RubyGems:
gem install englishI am actually not seeing bin/, lib/ and other files among the "Package Contents" of archlinux.org/packages/community/any/ruby-english/ package, which was last updated two days ago.
Am I not understanding something or might there be a problem with the newest version of ruby-english package?
Thank you.
Last edited by riddle00 (2024-04-14 14:46:34)
Vim is not just an editor (...); it is for all intents and purposes a universal design pattern. -- Jason Ryan
Offline
I don't use this, but I'd guess you have an outdated aur package for colorls as the repo package ruby-english provides English.rb not english.rb. I confirmed the current version of ruby-colorls has a line to properly include 'English' (not 'english') on line 5. So I'd wager the case on this file has changed recently and you've not update your aur package(s).
Last edited by Trilby (2022-12-01 17:45:33)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thank you for the response!
I do have the newest version of ruby-colorls, and it does have the correct 'English' written on line 5, in its source code, just like in upstream.
Could you please provide me with some pointers on where else I could look for the problem?
After running
gem install englishThe output of
tree ~/.local/share/gem/ruby/3.0.0/gems/english-0.7.1/is:
.
├── bin
│ ├── console
│ └── setup
├── English.gemspec
├── Gemfile
├── Gemfile.lock
├── lib
│ └── English.rb
├── LICENSE.txt
├── Rakefile
└── README.md
2 directories, 9 filesand the output of
cloc ~/.local/share/gem/ruby/3.0.0/gems/english-0.7.1/is:
10 text files.
7 unique files.
3 files ignored.
github.com/AlDanial/cloc v 1.94 T=0.01 s (956.4 files/s, 42492.3 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
Ruby 4 32 138 60
Markdown 1 19 0 32
Text 1 2 0 20
Bourne Again Shell 1 2 1 5
--------------------------------------------------------------------------------
SUM: 7 55 139 117
--------------------------------------------------------------------------------Also,
diff /usr/lib/ruby/3.0.0/English.rb ~/.local/share/gem/ruby/3.0.0/gems/english-0.7.1/lib/English.rbgives no output (the files are identical).
Last edited by riddle00 (2022-12-01 18:46:14)
Vim is not just an editor (...); it is for all intents and purposes a universal design pattern. -- Jason Ryan
Offline
It seems old versions also had a capital English.rb, so case is not relevant there. But I know nothing about ruby / gems - I'm just looking for potentially relevant differences - and I found another in the new version of the repo ruby-english package. The PKGBUILD for this package removes the file /usr/lib/ruby/gems/3.0.0/specifications/English-0.7.1.gemspec from the package (on line 72 of the PKGBUILD). I believe this is a duplicate of /usr/lib/ruby/gems/3.0.0/specifications/default/English-0.7.1.gemspec, and I have zero knowledge about the difference of those locations. However, the previous version of ruby-english initially also removed this file, but then was updated to remove this removal (so that the file remained). Perhaps this is needed with the new version too.
Try commenting out line 72 of the ruby-english PKGBUILD then build/install that package. Then test whether colorls works without your locally installed english gem. If that works, you could open a bug report for the ruby-english package as it would seem to need to same adjustment as the previous version.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
After commenting out line 72 it builds/installs successfully, and works without the locally installed english gem.
Thank you!
(I will try to open a bug report)
Vim is not just an editor (...); it is for all intents and purposes a universal design pattern. -- Jason Ryan
Offline