Package Details: ruby-solargraph 0.50.0-1

Git Clone URL: https://aur.archlinux.org/ruby-solargraph.git (read-only, click to copy)
Package Base: ruby-solargraph
Description: A Ruby language server
Upstream URL: http://solargraph.org/
Licenses: MIT
Submitter: mnussbaum
Maintainer: mnussbaum
Last Packager: mnussbaum
Votes: 9
Popularity: 0.059794
First Submitted: 2018-05-25 22:51 (UTC)
Last Updated: 2024-01-04 16:41 (UTC)

Latest Comments

mnussbaum commented on 2024-01-04 16:49 (UTC)

Hmm, it looks like ruby-rbs packages RBS version 3.1.0, but solargraph depends on RBS 2.x. Any suggestions for how to deal with this?

SaltRockLamp commented on 2024-01-04 04:10 (UTC) (edited on 2024-01-04 04:13 (UTC) by SaltRockLamp)

Another vote here for adding ruby-rbs to the runtime deps:

/usr/lib/ruby/3.0.0/rubygems/specification.rb:1453:in `rescue in block in activate_dependencies': Could not find 'rbs' (~> 2.0) among 112 total gem(s) (Gem::MissingSpecError)

Levitating commented on 2023-10-25 11:43 (UTC) (edited on 2023-10-25 11:44 (UTC) by Levitating)

I think this should also depend on version 2 of rbs

mnussbaum commented on 2023-02-08 08:19 (UTC)

@antage thanks for spotting the missing dependency, it should be fixed now

antage commented on 2023-01-29 13:46 (UTC) (edited on 2023-01-29 13:46 (UTC) by antage)

0.47.2: /usr/bin/solargraph

/usr/lib/ruby/3.0.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'diff-lcs' (~> 1.4) among 110 total gem(s) (Gem::MissingSpecError)

rnovatorov commented on 2020-08-31 22:23 (UTC)

Solargraph requires ruby-bundler as a runtime dependency, but it is missing in the PKGBUILD.

mnussbaum commented on 2020-04-10 22:18 (UTC)

@barskern That error is due to the nokogiri's dependency on mini_portile2 version 2.4.0. The nokogiri gem actually upgraded to mini_portile2 version 2.5.0 in https://github.com/sparklemotion/nokogiri/commit/7d6690b56a3fad12490aa1f37c8f9ac4a424a633, however that commit won't be available until the next nokogiri release, 1.11.0. Nokogiri 1.11.0 is currently in release candidate phase, so hopefully it will be available in the not-too-distant future and when it is this error should clear up.

In the meantime, you should be able to manually upgrade nokogiri on your system to the 1.11.0 RC to get past the error

barskern commented on 2020-04-10 21:14 (UTC) (edited on 2020-04-10 21:15 (UTC) by barskern)

After [ruby-mini_portile updated to 2.5.0] this does no longer run (see error below). Any tips on how to resolve this?

/usr/lib/ruby/2.7.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'mini_portile2' (~> 2.4.0) - did find: [mini_portile2-2.5.0] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/home/oruud/.gem/ruby/2.7.0:/usr/lib/ruby/gems/2.7.0', execute `gem env` for more information
    from /usr/lib/ruby/2.7.0/rubygems/specification.rb:1402:in `block in activate_dependencies'
    from /usr/lib/ruby/2.7.0/rubygems/specification.rb:1391:in `each'
    from /usr/lib/ruby/2.7.0/rubygems/specification.rb:1391:in `activate_dependencies'
    from /usr/lib/ruby/2.7.0/rubygems/specification.rb:1373:in `activate'
    from /usr/lib/ruby/2.7.0/rubygems/specification.rb:1405:in `block in activate_dependencies'
    from /usr/lib/ruby/2.7.0/rubygems/specification.rb:1391:in `each'
    from /usr/lib/ruby/2.7.0/rubygems/specification.rb:1391:in `activate_dependencies'
    from /usr/lib/ruby/2.7.0/rubygems/specification.rb:1373:in `activate'
    from /usr/lib/ruby/2.7.0/rubygems.rb:296:in `block in activate_bin_path'
    from /usr/lib/ruby/2.7.0/rubygems.rb:295:in `synchronize'
    from /usr/lib/ruby/2.7.0/rubygems.rb:295:in `activate_bin_path'
    from /usr/bin/solargraph:23:in `<main>'

mnussbaum commented on 2020-02-17 18:56 (UTC)

@Felixoid thanks! I've updated the package with your suggestions

Felixoid commented on 2020-02-17 16:16 (UTC) (edited on 2020-02-17 16:17 (UTC) by Felixoid)

Hey. Here's a patch to apply to the repository.

diff --git a/.SRCINFO b/.SRCINFO
index 1eab783..9d59ff9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = ruby-solargraph
        pkgdesc = A Ruby language server
        pkgver = 0.38.5
-       pkgrel = 0
+       pkgrel = 1
        url = http://solargraph.org/
        arch = any
        license = MIT
@@ -9,15 +9,19 @@ pkgbase = ruby-solargraph
        depends = ruby
        depends = ruby-ast
        depends = ruby-backport
+       depends = ruby-e2mmap
        depends = ruby-htmlentities
        depends = ruby-jaro_winkler
-       depends = ruby-nokogiri
+       depends = ruby-maruku
        depends = ruby-mini_portile2
+       depends = ruby-nokogiri
        depends = ruby-parser
+       depends = ruby-progressbar
        depends = ruby-reverse_markdown
        depends = ruby-rubocop
        depends = ruby-thor
        depends = ruby-tilt
+       depends = ruby-unicode-display_width
        depends = ruby-yard
        noextract = solargraph-0.38.5.gem
        options = !emptydirs
diff --git a/PKGBUILD b/PKGBUILD
index ee9c7a6..cd609ba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,19 +3,19 @@
 _gemname=solargraph
 pkgname=ruby-solargraph
 pkgver=0.38.5
-pkgrel=0
+pkgrel=1
 pkgdesc="A Ruby language server"
 arch=("any")
 depends=(
-  maruku
   ruby
   ruby-ast
   ruby-backport
   ruby-e2mmap
   ruby-htmlentities
   ruby-jaro_winkler
-  ruby-nokogiri
+  ruby-maruku
   ruby-mini_portile2
+  ruby-nokogiri
   ruby-parser
   ruby-progressbar
   ruby-reverse_markdown