小编wgj*_*wgj的帖子

在 Mac 上从终端运行 IRB 时出错 - 找不到 gem

当我在终端中输入 irb 时,我得到的是:

Traceback (most recent call last):
    2: from /usr/local/opt/ruby/bin/irb:23:in `<main>'
    1: from /usr/local/lib/ruby/site_ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
/usr/local/lib/ruby/site_ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem irb (>= 0.a) with executable irb (Gem::GemNotFoundException)
Run Code Online (Sandbox Code Playgroud)

我认为这可能与 gem 库或版本有关,但无法弄清楚。我是新手,不想进一步搞砸,任何帮助将不胜感激!提前致谢!

ruby macos terminal rubygems ruby-on-rails

5
推荐指数
0
解决办法
1514
查看次数

VS Code 调试器:如果源文件比模块文件新,则重建

如果我尝试使用较新的源文件进行调试,我会在控制台中收到警告: Warning: Source file 'foo.c' is newer than module file 'foo'.

如果我可以选择在运行调试器时始终强制构建,那就太好了。

有没有办法将launch.json的配置与任务链接起来,类似于tasks.jsondependsOn属性?

visual-studio-code

1
推荐指数
1
解决办法
1664
查看次数