当我在终端中输入 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 库或版本有关,但无法弄清楚。我是新手,不想进一步搞砸,任何帮助将不胜感激!提前致谢!
如果我尝试使用较新的源文件进行调试,我会在控制台中收到警告:
Warning: Source file 'foo.c' is newer than module file 'foo'.
如果我可以选择在运行调试器时始终强制构建,那就太好了。
有没有办法将launch.json的配置与任务链接起来,类似于tasks.json的dependsOn属性?