We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dir.pwd != __dir__
Prepare these directory and files
$ mkdir foo $ echo binding.irb > foo/foobar.rb $ echo "require'./foo/foobar.rb'" > main.rb
Then execute ruby main.rb
ruby main.rb
$ ruby main.rb From: /Users/tomoya.ishida/Desktop/tmp/foo/bar.rb @ line 1 : => 1: binding.irb irb(main):002> require_relative 'f 'foo/foobar
The completion should be 'foobar, not 'foo/foobar. require_relative will load relative path from __dir__, not from pwd.
'foobar
'foo/foobar
require_relative
__dir__
pwd
Ruby version: 3.2.2 IRB version: irb 1.9.0 (2023-11-11) InputMethod: RelineInputMethod with Reline 0.4.0 Completion: Autocomplete, RegexpCompletor RUBY_PLATFORM: arm64-darwin22 LANG env: ja_JP.UTF-8 East Asian Ambiguous Width: 1
Terminal.app
No
The text was updated successfully, but these errors were encountered:
Solved in TypeCompletor(repl_type_completor 0.1.2), problem remains in RegexpCompletor
Sorry, something went wrong.
No branches or pull requests
Description
Prepare these directory and files
Then execute
ruby main.rb
The completion should be
'foobar
, not'foo/foobar
.require_relative
will load relative path from__dir__
, not frompwd
.Result of irb_info
Terminal Emulator
Terminal.app
Setting Files
No
The text was updated successfully, but these errors were encountered: