我正在使用RubyMine 3.1开发Rails3应用程序,今天我从Prototype切换到jQuery以满足我的UJS需求.
在使用此示例自定义所有内容并重新启动RubyMine之后,所有自动完成建议和代码检查器错误仍然基于Prototype.
我还应该做些什么来获得jQuery定制的JavaScript代码完成和公司?
我目前正在使用Windows和RubyMine IDE.我在rails应用程序上运行了ruby,问题是我对ruby并不熟悉,我想知道是否可以将应用程序导入IDE并运行它,只是为了在我的浏览器上测试它.对此有何帮助?
我刚升级到Mountain Lion,看来IntelliJ 10 ruby-debugger不再有效.我收到下面的错误,但无法解释如何解决这个问题,任何想法?
/Users/kamilski81/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
/Users/kamilski81/.rvm/gems/ruby-1.9.3-p194@sc/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39: Use RbConfig instead of obsolete and deprecated Config.
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... yes
checking for iseq.h... yes
checking for insns.inc... yes
checking for insns_info.inc... yes
checking for eval_intern.h... yes
creating Makefile
make
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c:24:19: error: conflicting types for 'rb_iseq_compile_with_option'
RUBY_EXTERN VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt); /* from iseq.c */
^
/Users/kamilski81/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby-1.9.3-p194/vm_core.h:505:7: …Run Code Online (Sandbox Code Playgroud) Arg,看起来这是一个相当普遍的问题,但我似乎无法弄清楚如何使我的调试器工作.我安装了无数的宝石试图让这个坏男孩跑,但没有运气.这是完整性列表.我也包括了我的gemfile.可能很明显我是一个RoR newb.我正在使用RubyMine作为我的IDE,在尝试调试时,我收到一条错误,指出"调试器所需的gem ruby-debug-base19x目前尚未安装.你想安装吗?".当然,在说"是"下载镜像时会中断并且下载失败会导致以下错误:
5:56:46 PM运行错误开发:SponsorBid:无法启动调试器.未安装Gem'ruby-debug-ide'或其可执行脚本'rdebug-ide'不存在.


我正在运行Ubuntu 12.04 rvm env:
export PATH ; PATH="/home/wojtek/.rvm/gems/ruby-1.9.3-p392/bin:/home/wojtek/.rvm/gems/ruby- 1.9.3-p392@global/bin:/home/wojtek/.rvm/rubies/ruby-1.9.3- p392/bin:/home/wojtek/.rvm/bin:$PATH"
export rvm_env_string ; rvm_env_string='ruby-1.9.3-p392'
export rvm_path ; rvm_path='/home/wojtek/.rvm'
export rvm_ruby_string ; rvm_ruby_string='ruby-1.9.3-p392'
unset rvm_gemset_name
export RUBY_VERSION ; RUBY_VERSION='ruby-1.9.3-p392'
export GEM_HOME ; GEM_HOME='/home/wojtek/.rvm/gems/ruby-1.9.3-p392'
export GEM_PATH ; GEM_PATH='/home/wojtek/.rvm/gems/ruby-1.9.3- p392:/home/wojtek/.rvm/gems/ruby-1.9.3-p392@global'
export MY_RUBY_HOME ; MY_RUBY_HOME='/home/wojtek/.rvm/rubies/ruby-1.9.3-p392'
export IRBRC ; IRBRC='/home/wojtek/.rvm/rubies/ruby-1.9.3-p392/.irbrc'
unset MAGLEV_HOME
unset RBXOPT
Run Code Online (Sandbox Code Playgroud)
当尝试在RubyMine 5.0.2中启动应用程序时,我得到:
/home/wojtek/.rvm/rubies/ruby-1.9.3-p392/bin/ruby /home/wojtek/workspace/quotes/script/rails server -b 0.0.0.0 -p 3000 -e development
/home/wojtek/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.4/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find i18n-0.6.1 in any of the sources (Bundler::GemNotFound)
from /home/wojtek/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.4/lib/bundler/spec_set.rb:85:in `map!'
from /home/wojtek/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.4/lib/bundler/spec_set.rb:85:in …Run Code Online (Sandbox Code Playgroud) 我想使用Rubymine中的搜索和替换对话,或类似的东西,用"@Desktop \nScenario"替换"Scenario:"之类的东西
我正在尝试用Scenario:大型Cucumber测试套件替换每个实例
@desktop
Scenario:
Run Code Online (Sandbox Code Playgroud)
有没有最好的方法呢?
我使用RubyMine及其远程调试器.在断点处,我想提出IMAP请求,因此需要很长时间.但我得到一个例外,"Timeout: evaluation took longer than 10 seconds."
我试图在Settings-> Debugger中增加调试连接超时.但显然这个技巧不起作用.
那么可以在RubyMine调试器中增加评估表达式超时吗?
我决定购买RubyMine 8.0(学生版).
我已经安装了Ruby,我可以从终端运行Ruby脚本.但是,我不能让RubyMine检测到这个解释器,我似乎无法设置它.
有没有必要的宝石?什么是宝石?
[![我收到此错误]](https://i.stack.imgur.com/MWkIU.png)
尝试使用ruby中的rest客户端开始使用API测试,然而,在问题发生之后,任何希望有人能够提供帮助的问题.
我使用的是RVM ruby-2.0.0-p648
我有rest_client外部Lib文件,但是,当我尝试运行我的脚本时,我收到消息:警告:不推荐使用rest_client gem,它将从RubyGems中删除.请改用rest-client gem.
进程以退出代码0结束
所以在我的要求中我改为rest-client并安装:gem install rest-client,但是它没有显示在我的外部库中?
任何人在使用解决方案之前都会遇到此问
还使用rubymine.