Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

An error reported while installing theme_check lsp #877

Open
1 task done
Imran17507 opened this issue Jul 24, 2022 · 0 comments
Open
1 task done

An error reported while installing theme_check lsp #877

Imran17507 opened this issue Jul 24, 2022 · 0 comments

Comments

@Imran17507
Copy link

Problem description

An error is reported while attempting to install theme_check lsp. The screenshots are attached in the screenshots section.

Here are some relevant output of commands in my zsh shell:
ruby -v
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]

gem -v
3.3.5

rails -v
Rails 7.0.3.1

theme-check -v
1.10.3

Both theme-check and theme-check-language-server are recognized commands. I installed theme-check by executing gem install theme-check https://github.com/Shopify/theme-check#installation

Point to be noted that theme_check installation through nvm-lsp-installer outputted error both before and after executing gem install theme-check

Neovim version (>= 0.7)

NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by nixbld

Features: +acl +iconv +tui
See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "
/nix/store/21iyaki6qvxc7v5c07mx44gxjm0wp9ni-neovim-unwrapped-0.7.2/share/nvim
"

Run :checkhealth for more info

Operating system/version

Linux HP-Pavilion-13-b080sa 5.15.0-41-generic #44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig

  • Yes

Affected language servers

theme_check

Actual behavior

Installation fails

Expected behavior

Installation should not throw any error.

LspInstallInfo output

Pending servers (1) 
    ◍ theme_check (failed)
        Successfully installed ast-2.4.2
        Successfully installed parser-3.1.2.0
        Building native extensions. This could take a while...
        ERROR:  Error installing theme-check:
        	ERROR: Failed to build gem native extension.
        
            current directory: /home/imran17507/.local/share/nvim/lsp_servers/theme_check.tmp/gems/racc-1.6.0/ext/racc/cparse
        /usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20220724-105349-ewvuvq.rb extconf.rb
        checking for rb_block_call()... *** extconf.rb failed ***
        Could not create Makefile due to some reason, probably lack of necessary
        libraries and/or headers.  Check the mkmf.log file for more details.  You may
        need configuration options.
        
        Provided configuration options:
        	--with-opt-dir
        	--without-opt-dir
        	--with-opt-include
        	--without-opt-include=${opt-dir}/include
        	--with-opt-lib
        	--without-opt-lib=${opt-dir}/lib
        	--with-make-prog
        	--without-make-prog
        	--srcdir=.
        	--curdir
        	--ruby=/usr/bin/$(RUBY_BASE_NAME)3.0
        /usr/lib/ruby/3.0.0/mkmf.rb:471:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
        You have to install development tools first.
        	from /usr/lib/ruby/3.0.0/mkmf.rb:564:in `try_link0'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:582:in `try_link'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:794:in `try_func'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:1083:in `block in have_func'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:971:in `block in checking_for'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:361:in `block (2 levels) in postpone'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:331:in `open'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:361:in `block in postpone'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:331:in `open'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:357:in `postpone'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:970:in `checking_for'
        	from /usr/lib/ruby/3.0.0/mkmf.rb:1082:in `have_func'
        	from extconf.rb:6:in `<main>'
        
        To see why this extension failed to compile, please check the mkmf.log which can be found here:
        
          /home/imran17507/.local/share/nvim/lsp_servers/theme_check.tmp/extensions/x86_64-linux/3.0.0/racc-1.6.0/mkmf.log
        
        extconf failed, exit code 1
        
        Gem files will remain installed in /home/imran17507/.local/share/nvim/lsp_servers/theme_check.tmp/gems/racc-1.6.0 for inspection.
        Results logged to /home/imran17507/.local/share/nvim/lsp_servers/theme_check.tmp/extensions/x86_64-linux/3.0.0/racc-1.6.0/gem_make.out
        spawn: gem failed with exit code 1.

Installation log

[ERROR Sun Jul 24 23:09:55 2022] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:79: Installation failed, name="theme_check", error="spawn: gem failed with exit code 1. "
[INFO  Sun Jul 24 23:09:55 2022] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/ui/init.lua:754: Installation completed server_name="theme_check", success=false

Healthcheck

nvim-lsp-installer: require("nvim-lsp-installer.health").check()
========================================================================
## nvim-lsp-installer report
  - OK: neovim version >= 0.7.0
  - WARNING: **Go**: not available
  - WARNING: **cargo**: unsupported version `cargo 1.59.0`. Some cargo installations require Rust >= 1.60.0.
  - WARNING: **luarocks**: not available
  - OK: **Ruby**: `ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]`
  - OK: **RubyGem**: `3.3.5`
  - WARNING: **Composer**: not available
  - WARNING: **PHP**: not available
  - OK: **npm**: `8.11.0`
  - OK: **node**: `v16.15.1`
  - OK: **python3**: `Python 3.10.4`
  - OK: **pip3**: `pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)`
  - WARNING: **javac**: not available
  - WARNING: **java**: not available
  - WARNING: **julia**: not available
  - OK: **wget**: `GNU Wget 1.21.2 built on linux-gnu.`
  - OK: **curl**: `curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.12`
  - OK: **gzip**: `gzip 1.10`
  - OK: **tar**: `tar (GNU tar) 1.34`
  - OK: **bash**: `GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)`
  - OK: **sh**: `Ok`
  - OK: **python3_host_prog**: `Python 3.10.5`
  - OK: GitHub API rate limit. Used: 5. Remaining: 55. Limit: 60. Reset: Sun Jul 24 23:17:12 2022.

Screenshots

1
2
3
4

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

No branches or pull requests

1 participant