Unable to use debugger (debase-0.3.0-beta34 install error)

已回答

I am using both rbenv and Rubymine 2020.2. When I try to DEBUG a cucumber feature, I get an error when the IDE is installing its debase-0.3.0-beta34 gem:

Error running 'Unnamed': Failed to Install Gems. Following gems were not installed: /Applications/RubyMine.app/Contents/rb/gems/debase-0.3.0.beta8.gem: Error installing debase-0.3.0.beta8.gem: ERROR: Failed to build gem native extension. current directory:

Attached you can find a copy of my gem_make.out for this gem installation attempt. Furthermore. I have tried going ahead and installing that gem manually. However, I get this error:

$ gem install debase -v 0.3.0.beta34 --pre
ERROR: Could not find a valid gem 'debase' (= 0.3.0.beta34) in any repository
ERROR: Possible alternatives: debase

This is becoming a big issue since I need this debugger to work properly for this position I was just hired for. please help!!!

4

Same here:

Failed to Install Gems. Following gems were not installed: /Applications/RubyMine.app/Contents/plugins/ruby/rb/gems/debase-0.3.0.beta34.gem: Error installing debase-0.3.0.beta34.gem: ERROR: Failed to build gem native extension. current directory: /Users/fidel/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/debase-0.3.0.beta34/ext /Users/fidel/.rbenv/versions/2.7.1/bin/ruby -I /Users/fidel/.rbenv/versions/2.7.1/lib/ruby/2.7.0 -r ./siteconf20200828-27495-14eei1c.rb extconf.rb /Users/fidel/.rbenv/sources/2.7.1/ruby-2.7.1 checking for vm_core.h... no checking for vm_core.h... no ************************************************************************** No source for ruby-2.7.1-p83 (revision a0c7c23c9cec0d0ffcba012279cd652d28ad5bf3) provided with debase-ruby_core_source gem. Falling back to ruby-2.7.0-preview3. ************************************************************************** checking for vm_core.h... yes checking for iseq.h... yes checking for method.h... yes checking for version.h... yes creating Makefile current directory: /Users/fidel/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/debase-0.3.0.beta34/ext make "DESTDIR=" clean current directory: /Users/fidel/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/debase-0.3.0.beta34/ext make "DESTDIR=" compiling breakpoint.c breakpoint.c:34:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] z5b0d67e460->z1bdac88cc2=strlen(z5e1fde07c3);z5b0d67e460->z0b7a8f8ed2= ~^~~~~~~~~~~~~~~~~~~ breakpoint.c:61:13: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] z1c3440c3bb=zf35dc14a7b;return z5b0d67e460->z1c3440c3bb;}static VALUE ~^~~~~~~~~~~ 2 warnings generated. compiling context.c context.c:91:75: warning: use of unary operator that may be intended as compound assignment (-=) (0xb4f+4363-0x1c5a);z23c1122dc9->z2c5eef0cd1=NULL;z23c1122dc9->z6b895785aa=- ^~ context.c:139:32: warning: incompatible pointer types passing 'rb_control_frame_t *' (aka 'struct rb_control_frame_struct *') to parameter of type 'const rb_execution_context_t *' (aka 'const struct rb_execution_context_struct *') [-Wincompatible-pointer-types] rb_control_frame_t*z3d80811b15=z14e7cad448(z43ea6b63f3);rb_control_frame_t*cfp; ^~~~~~~~~~~~~~~~~~~~~~~~ context.c:15:56: note: expanded from macro 'z14e7cad448' #define z14e7cad448(thread) (RUBY_VM_END_CONTROL_FRAME((rb_control_frame_t *)(\ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/fidel/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/debase-ruby_core_source-0.10.9/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vm_core.h:1385:57: note: passing argument to parameter 'ec' here RUBY_VM_END_CONTROL_FRAME(const rb_execution_context_t *ec) ^ context.c:139:20: warning: initializing 'rb_control_frame_t *' (aka 'struct rb_control_frame_struct *') with an expression of type 'const rb_control_frame_t *' (aka 'const struct rb_control_frame_struct *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] rb_control_frame_t*z3d80811b15=z14e7cad448(z43ea6b63f3);rb_control_frame_t*cfp; ^ ~~~~~~~~~~~~~~~~~~~~~~~~ context.c:147:56: warning: incompatible pointer types passing 'rb_control_frame_t *' (aka 'struct rb_control_frame_struct *') to parameter of type 'const rb_execution_context_t *' (aka 'const struct rb_execution_context_struct *') [-Wincompatible-pointer-types] rb_control_frame_t*cfp){rb_control_frame_t*z3d80811b15=z14e7cad448(z43ea6b63f3); ^~~~~~~~~~~~~~~~~~~~~~~~ context.c:15:56: note: expanded from macro 'z14e7cad448' #define z14e7cad448(thread) (RUBY_VM_END_CONTROL_FRAME((rb_control_frame_t *)(\ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/fidel/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/debase-ruby_core_source-0.10.9/lib/debase/ruby_core_source/ruby-2.7.0-preview3/vm_core.h:1385:57: note: passing argument to parameter 'ec' here RUBY_VM_END_CONTROL_FRAME(const rb_execution_context_t *ec) ^ context.c:147:44: warning: initializing 'rb_control_frame_t *' (aka 'struct rb_control_frame_struct *') with an expression of type 'const rb_control_frame_t *' (aka 'const struct rb_control_frame_struct *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] rb_control_frame_t*cfp){rb_control_frame_t*z3d80811b15=z14e7cad448(z43ea6b63f3); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ context.c:167:42: warning: unused variable 'size' [-Wunused-variable] static VALUE z6af2b11a8e(VALUE self){int size,pc;z251a839b07*z23c1122dc9; ^ context.c:171:36: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] (cfp==NULL){return Qnil;}pc=cfp->pc-cfp->iseq->body->iseq_encoded;z1f5025e187( ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ context.c:180:59: warning: assigning to 'rb_iseq_t *' (aka 'struct rb_iseq_struct *') from 'const rb_iseq_t *' (aka 'const struct rb_iseq_struct *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] cfp=za8739056e8(z43ea6b63f3,z23c1122dc9->z440b3c1264);iseq=cfp->iseq;z04f4e87de0 ^~~~~~~~~~ context.c:187:65: error: implicit declaration of function 'z6c1b13c43d' is invalid in C99 [-Werror,-Wimplicit-function-declaration] z23c1122dc9->pc==pc){int line=z81f3c486e3(iseq,z23c1122dc9->pc);z6c1b13c43d( ^ context.c:189:1: error: implicit declaration of function 'zcf306596f3' is invalid in C99 [-Werror,-Wimplicit-function-declaration] zcf306596f3(z9295263560->zf1dbe334ed,z43ea6b63f3,z9b06b9d99e,z23c1122dc9-> ^ context.c:197:18: warning: assigning to 'rb_iseq_t *' (aka 'struct rb_iseq_struct *') from 'const rb_iseq_t *' (aka 'const struct rb_iseq_struct *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] zf4157a8cc0];iseq=cfp->iseq;z9704694096(iseq,z43ea6b63f3,z23c1122dc9->pc, ^~~~~~~~~~ context.c:199:1: error: implicit declaration of function 'zcf306596f3' is invalid in C99 [-Werror,-Wimplicit-function-declaration] zcf306596f3(z9295263560->zf1dbe334ed,z43ea6b63f3,z9b06b9d99e,z23c1122dc9-> ^ context.c:206:35: error: implicit declaration of function 'z6c1b13c43d' is invalid in C99 [-Werror,-Wimplicit-function-declaration] z81f3c486e3(iseq,z23c1122dc9->pc);z6c1b13c43d(zb7973f494e,z23c1122dc9, ^ context.c:209:48: warning: passing 'const rb_iseq_t *' (aka 'const struct rb_iseq_struct *') to parameter of type 'rb_iseq_t *' (aka 'struct rb_iseq_struct *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] rb_iseq_path(iseq)));}return Qnil;}z8915b76faa(cfp->iseq,z43ea6b63f3,z9295263560 ^~~~~~~~~ ./debase_internals.h:60:72: note: passing argument to parameter 'iseq' here z66506c879c,int z61151e0a12,int z440b3c1264);int z8915b76faa(rb_iseq_t*iseq, ^ context.c:221:63: error: implicit declaration of function 'zcf306596f3' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ->ze546e5a29e[z69ad33d2f6];if(z9295263560->zf1dbe334ed!=NULL){zcf306596f3( ^ 10 warnings and 5 errors generated. make: *** [context.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/fidel/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/debase-0.3.0.beta34 for inspection. Results logged to /Users/fidel/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/extensions/x86_64-darwin-19/2.7.0-static/debase-0.3.0.beta34/gem_make.out
2

That appears to be a known issue, could you please take a look at: https://youtrack.jetbrains.com/issue/RUBY-26866 Could you please specify which OS and XCode versions you're using?

0

Hi,

 

I am using MacOSX Catalina 10.15.6 (19G2021). As for the XCode, I do not have that installed on my system at all. Should I have that installed? If so, what version? I wasnt aware that was a prereq for Rubymine. please advise.

 

Sincerely,

Tiago Garcia

0

Also, here is my gem list:

*** LOCAL GEMS ***

activesupport (6.0.3.2, 6.0.2.1)
ast (2.4.1, 2.4.0)
axe-matchers (2.6.1, 2.5.0)
axiom-types (0.1.1)
backports (3.16.0)
benchmark (default: 0.1.0)
bigdecimal (default: 2.0.0)
builder (3.2.4)
bundler (2.1.4)
cgi (default: 0.1.0)
childprocess (3.0.0)
coderay (1.1.3, 1.1.2)
coercible (1.0.0)
concurrent-ruby (1.1.7, 1.1.5)
csv (default: 3.1.2)
cucumber (4.1.0, 3.1.2)
cucumber-core (7.1.0, 3.2.1)
cucumber-create-meta (1.0.0)
cucumber-cucumber-expressions (10.3.0)
cucumber-expressions (6.0.1)
cucumber-gherkin (14.2.0)
cucumber-html-formatter (7.2.0)
cucumber-messages (12.4.0)
cucumber-tag-expressions (2.0.4)
cucumber-tag_expressions (1.1.1)
cucumber-wire (3.1.0, 0.0.1)
data_magic (1.2)
date (default: 3.0.0)
dbm (default: 1.1.0)
debase (0.2.4.1)
debase-ruby_core_source (0.10.9)
delegate (default: 0.1.0)
descendants_tracker (0.0.4)
did_you_mean (default: 1.4.0)
diff-lcs (1.3)
domain_name (0.5.20190701)
dotenv (2.7.6, 2.7.5)
dumb_delegator (0.8.1)
equalizer (0.0.11)
etc (default: 1.1.0)
faker (2.13.0, 2.10.1)
fcntl (default: 1.0.0)
ffi (1.13.1)
fiddle (default: 1.0.0)
fig_newton (1.0)
fileutils (default: 1.4.1)
formatador (0.2.5)
forwardable (default: 1.3.1)
gdbm (default: 2.1.0)
getoptlong (default: 0.1.0)
gherkin (5.1.0)
graphql (1.11.2, 1.10.2)
graphql-client (0.16.0)
guard (2.16.2, 2.16.1)
guard-rake (1.0.0)
http-accept (1.7.0)
http-cookie (1.0.3)
i18n (1.8.5, 1.8.2)
ice_nine (0.11.2)
io-console (default: 0.5.6)
ipaddr (default: 1.2.2)
irb (default: 1.2.3)
jaro_winkler (1.5.4)
json (default: 2.3.0)
jwt (2.2.1)
listen (3.2.1)
logger (default: 1.4.2)
lumberjack (1.2.7, 1.2.4)
matrix (default: 0.2.0)
method_source (1.0.0, 0.9.2)
middleware (0.1.0)
mime-types (3.3.1)
mime-types-data (3.2020.0512, 3.2019.1009)
minitest (5.14.1, 5.14.0, 5.13.0)
multi_json (1.14.1)
multi_test (0.1.2)
mutex_m (default: 0.1.0)
nenv (0.3.0)
net-pop (default: 0.1.0)
net-smtp (default: 0.1.0)
net-telnet (0.2.0)
netrc (0.11.0)
notiffany (0.1.3)
observer (default: 0.1.0)
open3 (default: 0.1.0)
openssl (default: 2.1.2)
ostruct (default: 0.2.0)
page-object (2.2.6)
page_navigation (0.10)
parallel (1.19.2, 1.19.1)
parser (2.7.1.4, 2.7.0.2)
pg (1.2.3)
power_assert (1.1.7)
prime (default: 0.1.1)
protobuf-cucumber (3.10.8)
pry (0.13.1, 0.12.2)
pstore (default: 0.1.0)
psych (default: 3.1.0)
racc (default: 1.4.16)
rainbow (3.0.0)
rake (13.0.1)
rb-fsevent (0.10.4, 0.10.3)
rb-inotify (0.10.1)
rdoc (default: 6.2.1)
readline (default: 0.0.2)
readline-ext (default: 0.1.0)
regexp_parser (1.7.1, 1.6.0)
reline (default: 0.1.3)
rest-client (2.1.0)
rexml (3.2.4, default: 3.2.3)
rspec (3.9.0)
rspec-core (3.9.2, 3.9.1)
rspec-expectations (3.9.2, 3.9.0)
rspec-mocks (3.9.1)
rspec-support (3.9.3, 3.9.2)
rss (default: 0.2.8)
rubocop (0.89.1, 0.79.0)
rubocop-ast (0.3.0)
rubocop-performance (1.7.1, 1.5.2)
ruby-debug-ide (0.8.0.beta24, 0.8.0.beta8)
ruby-progressbar (1.10.1)
rubyzip (2.3.0, 2.2.0)
sdbm (default: 1.0.0)
selenium-webdriver (3.142.7)
shellany (0.0.1)
singleton (default: 0.1.0)
stringio (default: 0.1.0)
strscan (default: 1.0.3)
sys-uname (1.2.1)
test-unit (3.3.4)
thor (1.0.1)
thread_safe (0.3.6)
timeout (default: 0.1.0)
tracer (default: 0.1.0)
tzinfo (1.2.7, 1.2.6)
unf (0.1.4)
unf_ext (0.0.7.7, 0.0.7.6)
unicode-display_width (1.7.0, 1.6.1)
uri (default: 0.10.0)
virtus (1.0.5)
watir (6.16.5)
webrick (default: 1.6.0)
wiremock_mapper (2.2.0)
xmlrpc (0.3.0)
yaml (default: 0.1.0)
yml_reader (0.7)
zeitwerk (2.4.0, 2.2.2)
zlib (default: 1.1.0)

0

Furthermore, I have tried using other versions of Ruby (via rbenv): 2.7.1, 2.7.0,2.6.6, 2.5.8. However, none of those made this work. As a consequence I cannot get my debugger working.

0

Same issue. Running on RHEL 7.8.

Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist. while trying to install debase -v 0.3.0.beta34 --pre

0

It looks like workaround is:

gem install --local    $IDE_Folder/plugins/ruby/rb/gems/debase-0.3.0.beta34.gem -- --with-cflags="-Wno-error=implicit-function-declaration"

3

what in the Lord's name is $IDE_Folder?

1

ROFL :)

   IDE_Folder is the location where RubyMine is unzipped or untarred 

1

by running  gem install --local /Applications/RubyMine\ 2.app/plugins/ruby/rb/gems/debase-0.3.0.beta34.gem -- --with-cflags="-Wno-error=implicit-function-declaration"

ERROR: Could not find a valid gem '/Applications/RubyMine 2/plugins/ruby/rb/gems/debase-0.3.0.beta34.gem' (>= 0) in any repository

 

Where could I get debase-0.3.0.beta34.gem ? 

I could get only debase-0.2.4.1 

0

Go to the folder where your RubyMine is present and traverse the path /plugins/ruby/rb/gems.  i.e looks in the plugins folder,

See  the list of gems in the gems folder and you ll see debase gem. If the correct version is not there then you need to download latest version of RubyMine.

 

0

upgrading to RubyMine 2020.2.2 RC  solved the issue.  The debug works in RubyMine 2020.2.2 RC 

https://confluence.jetbrains.com/display/RUBYDEV/RubyMine+Preview+and+RC+builds

1
Avatar
Permanently deleted user

I was able to install the debugging gems after upgrade to RubyMine 2020.2.2

0

Interesting. I have 2020.3.2 on Catalina, and debug install fails.  

0

Dave Horowitz, could you please specify which Ruby version you're using (and whether it's a local or remote one) and what kind of error you get?

0

Is this issue still open? Olga Kuvardina I am facing this exact same issue with the following:

* macOS Catalina 10.15.7

* Rubymine (installed via JetBrains Toolbox) 2020.3.4

0

Shikhar Raje, could you please provide more details about the Ruby SDK you're using and also attach the full error message. Does the same happen in 2021.2.3/2021.3 EAP?

0

请先登录再写评论。