ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:119410] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem
@ 2024-10-02 17:58 tompng (tomoya ishida) via ruby-core
  2024-10-03  6:41 ` [ruby-core:119419] " hsbt (Hiroshi SHIBATA) via ruby-core
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tompng (tomoya ishida) via ruby-core @ 2024-10-02 17:58 UTC (permalink / raw)
  To: ruby-core; +Cc: tompng (tomoya ishida)

Issue #20778 has been reported by tompng (tomoya ishida).

----------------------------------------
Feature #20778: ruby/repl_type_completor as a bundled gem
https://bugs.ruby-lang.org/issues/20778

* Author: tompng (tomoya ishida)
* Status: Open
----------------------------------------
When gem repl_type_completor is installed, `irb --type-completor` will provide better completion in IRB.
~~~
irb(main):001* [1, 2, 3].map(&:ch█
                             |:chr|
~~~

~~~
irb(main):001* [1, 2, 3].map(&:chr).each do |c|
irb(main):002*   puts c.ch█
irb(main):003> end   |c.chars |
                     |c.chomp |
                     |c.chomp!|
                     |c.chop  |
                     |c.chop! |
                     |c.chr   |
~~~

I believe this feature will provide powerful support especially to beginners, but it requires installation and setup. And what is important, you cannot activate this feature unless you know it exists.
If repl_type_completor is a bundled gem, and if IRB uses type-completor as default (https://github.com/ruby/irb/pull/1010), Ruby 3.4's IRB will provide great experience by default.

## With bundler
When `repl_type_completor` is not added to Gemfile, fallback to regexp-based completion.
Force require: consider later.

## Dependency
`prism` and `rbs`




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:119419] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem
  2024-10-02 17:58 [ruby-core:119410] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem tompng (tomoya ishida) via ruby-core
@ 2024-10-03  6:41 ` hsbt (Hiroshi SHIBATA) via ruby-core
  2024-10-03  7:25 ` [ruby-core:119423] " matz (Yukihiro Matsumoto) via ruby-core
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hsbt (Hiroshi SHIBATA) via ruby-core @ 2024-10-03  6:41 UTC (permalink / raw)
  To: ruby-core; +Cc: hsbt (Hiroshi SHIBATA)

Issue #20778 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Assigned
Assignee set to hsbt (Hiroshi SHIBATA)

----------------------------------------
Feature #20778: ruby/repl_type_completor as a bundled gem
https://bugs.ruby-lang.org/issues/20778#change-110033

* Author: tompng (tomoya ishida)
* Status: Assigned
* Assignee: hsbt (Hiroshi SHIBATA)
----------------------------------------
When gem repl_type_completor is installed, `irb --type-completor` will provide better completion in IRB.
~~~
irb(main):001* [1, 2, 3].map(&:ch█
                             |:chr|
~~~

~~~
irb(main):001* [1, 2, 3].map(&:chr).each do |c|
irb(main):002*   puts c.ch█
irb(main):003> end   |c.chars |
                     |c.chomp |
                     |c.chomp!|
                     |c.chop  |
                     |c.chop! |
                     |c.chr   |
~~~

I believe this feature will provide powerful support especially to beginners, but it requires installation and setup. And what is important, you cannot activate this feature unless you know it exists.
If repl_type_completor is a bundled gem, and if IRB uses type-completor as default (https://github.com/ruby/irb/pull/1010), Ruby 3.4's IRB will provide great experience by default.

## With bundler
When `repl_type_completor` is not added to Gemfile, fallback to regexp-based completion.
Force require: consider later.

## Dependency
`prism` and `rbs`




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:119423] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem
  2024-10-02 17:58 [ruby-core:119410] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem tompng (tomoya ishida) via ruby-core
  2024-10-03  6:41 ` [ruby-core:119419] " hsbt (Hiroshi SHIBATA) via ruby-core
@ 2024-10-03  7:25 ` matz (Yukihiro Matsumoto) via ruby-core
  2024-10-03  7:29 ` [ruby-core:119424] " hsbt (Hiroshi SHIBATA) via ruby-core
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: matz (Yukihiro Matsumoto) via ruby-core @ 2024-10-03  7:25 UTC (permalink / raw)
  To: ruby-core; +Cc: matz (Yukihiro Matsumoto)

Issue #20778 has been updated by matz (Yukihiro Matsumoto).


Accepted. Looking forward to making it public.

Matz.


----------------------------------------
Feature #20778: ruby/repl_type_completor as a bundled gem
https://bugs.ruby-lang.org/issues/20778#change-110037

* Author: tompng (tomoya ishida)
* Status: Assigned
* Assignee: hsbt (Hiroshi SHIBATA)
----------------------------------------
When gem repl_type_completor is installed, `irb --type-completor` will provide better completion in IRB.
~~~
irb(main):001* [1, 2, 3].map(&:ch█
                             |:chr|
~~~

~~~
irb(main):001* [1, 2, 3].map(&:chr).each do |c|
irb(main):002*   puts c.ch█
irb(main):003> end   |c.chars |
                     |c.chomp |
                     |c.chomp!|
                     |c.chop  |
                     |c.chop! |
                     |c.chr   |
~~~

I believe this feature will provide powerful support especially to beginners, but it requires installation and setup. And what is important, you cannot activate this feature unless you know it exists.
If repl_type_completor is a bundled gem, and if IRB uses type-completor as default (https://github.com/ruby/irb/pull/1010), Ruby 3.4's IRB will provide great experience by default.

## With bundler
When `repl_type_completor` is not added to Gemfile, fallback to regexp-based completion.
Force require: consider later.

## Dependency
`prism` and `rbs`




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:119424] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem
  2024-10-02 17:58 [ruby-core:119410] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem tompng (tomoya ishida) via ruby-core
  2024-10-03  6:41 ` [ruby-core:119419] " hsbt (Hiroshi SHIBATA) via ruby-core
  2024-10-03  7:25 ` [ruby-core:119423] " matz (Yukihiro Matsumoto) via ruby-core
@ 2024-10-03  7:29 ` hsbt (Hiroshi SHIBATA) via ruby-core
  2024-10-03  9:05 ` [ruby-core:119427] " hsbt (Hiroshi SHIBATA) via ruby-core
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hsbt (Hiroshi SHIBATA) via ruby-core @ 2024-10-03  7:29 UTC (permalink / raw)
  To: ruby-core; +Cc: hsbt (Hiroshi SHIBATA)

Issue #20778 has been updated by hsbt (Hiroshi SHIBATA).


I'll support this.

----------------------------------------
Feature #20778: ruby/repl_type_completor as a bundled gem
https://bugs.ruby-lang.org/issues/20778#change-110038

* Author: tompng (tomoya ishida)
* Status: Assigned
* Assignee: hsbt (Hiroshi SHIBATA)
----------------------------------------
When gem repl_type_completor is installed, `irb --type-completor` will provide better completion in IRB.
~~~
irb(main):001* [1, 2, 3].map(&:ch█
                             |:chr|
~~~

~~~
irb(main):001* [1, 2, 3].map(&:chr).each do |c|
irb(main):002*   puts c.ch█
irb(main):003> end   |c.chars |
                     |c.chomp |
                     |c.chomp!|
                     |c.chop  |
                     |c.chop! |
                     |c.chr   |
~~~

I believe this feature will provide powerful support especially to beginners, but it requires installation and setup. And what is important, you cannot activate this feature unless you know it exists.
If repl_type_completor is a bundled gem, and if IRB uses type-completor as default (https://github.com/ruby/irb/pull/1010), Ruby 3.4's IRB will provide great experience by default.

## With bundler
When `repl_type_completor` is not added to Gemfile, fallback to regexp-based completion.
Force require: consider later.

## Dependency
`prism` and `rbs`




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:119427] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem
  2024-10-02 17:58 [ruby-core:119410] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem tompng (tomoya ishida) via ruby-core
                   ` (2 preceding siblings ...)
  2024-10-03  7:29 ` [ruby-core:119424] " hsbt (Hiroshi SHIBATA) via ruby-core
@ 2024-10-03  9:05 ` hsbt (Hiroshi SHIBATA) via ruby-core
  2024-10-03 12:51 ` [ruby-core:119433] " tompng (tomoya ishida) via ruby-core
  2024-10-04  0:51 ` [ruby-core:119437] " hsbt (Hiroshi SHIBATA) via ruby-core
  5 siblings, 0 replies; 7+ messages in thread
From: hsbt (Hiroshi SHIBATA) via ruby-core @ 2024-10-03  9:05 UTC (permalink / raw)
  To: ruby-core; +Cc: hsbt (Hiroshi SHIBATA)

Issue #20778 has been updated by hsbt (Hiroshi SHIBATA).


I added `repl_type_completor` at https://github.com/ruby/ruby/commit/50b32a3c9206df2ec7bcb4c54a59844c27f1c144

@tompng Can you add owner grant of https://rubygems.org/gems/repl_type_completor to me? I will not release without maintainer's approval. But I may release a new version of that gem for release process of Ruby when you and other maintainers cannot do that.

----------------------------------------
Feature #20778: ruby/repl_type_completor as a bundled gem
https://bugs.ruby-lang.org/issues/20778#change-110042

* Author: tompng (tomoya ishida)
* Status: Assigned
* Assignee: hsbt (Hiroshi SHIBATA)
----------------------------------------
When gem repl_type_completor is installed, `irb --type-completor` will provide better completion in IRB.
~~~
irb(main):001* [1, 2, 3].map(&:ch█
                             |:chr|
~~~

~~~
irb(main):001* [1, 2, 3].map(&:chr).each do |c|
irb(main):002*   puts c.ch█
irb(main):003> end   |c.chars |
                     |c.chomp |
                     |c.chomp!|
                     |c.chop  |
                     |c.chop! |
                     |c.chr   |
~~~

I believe this feature will provide powerful support especially to beginners, but it requires installation and setup. And what is important, you cannot activate this feature unless you know it exists.
If repl_type_completor is a bundled gem, and if IRB uses type-completor as default (https://github.com/ruby/irb/pull/1010), Ruby 3.4's IRB will provide great experience by default.

## With bundler
When `repl_type_completor` is not added to Gemfile, fallback to regexp-based completion.
Force require: consider later.

## Dependency
`prism` and `rbs`




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:119433] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem
  2024-10-02 17:58 [ruby-core:119410] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem tompng (tomoya ishida) via ruby-core
                   ` (3 preceding siblings ...)
  2024-10-03  9:05 ` [ruby-core:119427] " hsbt (Hiroshi SHIBATA) via ruby-core
@ 2024-10-03 12:51 ` tompng (tomoya ishida) via ruby-core
  2024-10-04  0:51 ` [ruby-core:119437] " hsbt (Hiroshi SHIBATA) via ruby-core
  5 siblings, 0 replies; 7+ messages in thread
From: tompng (tomoya ishida) via ruby-core @ 2024-10-03 12:51 UTC (permalink / raw)
  To: ruby-core; +Cc: tompng (tomoya ishida)

Issue #20778 has been updated by tompng (tomoya ishida).


Thank you. I added owner grant.

----------------------------------------
Feature #20778: ruby/repl_type_completor as a bundled gem
https://bugs.ruby-lang.org/issues/20778#change-110051

* Author: tompng (tomoya ishida)
* Status: Assigned
* Assignee: hsbt (Hiroshi SHIBATA)
----------------------------------------
When gem repl_type_completor is installed, `irb --type-completor` will provide better completion in IRB.
~~~
irb(main):001* [1, 2, 3].map(&:ch█
                             |:chr|
~~~

~~~
irb(main):001* [1, 2, 3].map(&:chr).each do |c|
irb(main):002*   puts c.ch█
irb(main):003> end   |c.chars |
                     |c.chomp |
                     |c.chomp!|
                     |c.chop  |
                     |c.chop! |
                     |c.chr   |
~~~

I believe this feature will provide powerful support especially to beginners, but it requires installation and setup. And what is important, you cannot activate this feature unless you know it exists.
If repl_type_completor is a bundled gem, and if IRB uses type-completor as default (https://github.com/ruby/irb/pull/1010), Ruby 3.4's IRB will provide great experience by default.

## With bundler
When `repl_type_completor` is not added to Gemfile, fallback to regexp-based completion.
Force require: consider later.

## Dependency
`prism` and `rbs`




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:119437] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem
  2024-10-02 17:58 [ruby-core:119410] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem tompng (tomoya ishida) via ruby-core
                   ` (4 preceding siblings ...)
  2024-10-03 12:51 ` [ruby-core:119433] " tompng (tomoya ishida) via ruby-core
@ 2024-10-04  0:51 ` hsbt (Hiroshi SHIBATA) via ruby-core
  5 siblings, 0 replies; 7+ messages in thread
From: hsbt (Hiroshi SHIBATA) via ruby-core @ 2024-10-04  0:51 UTC (permalink / raw)
  To: ruby-core; +Cc: hsbt (Hiroshi SHIBATA)

Issue #20778 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Assigned to Closed

Thank you. I confirmed that.

----------------------------------------
Feature #20778: ruby/repl_type_completor as a bundled gem
https://bugs.ruby-lang.org/issues/20778#change-110057

* Author: tompng (tomoya ishida)
* Status: Closed
* Assignee: hsbt (Hiroshi SHIBATA)
----------------------------------------
When gem repl_type_completor is installed, `irb --type-completor` will provide better completion in IRB.
~~~
irb(main):001* [1, 2, 3].map(&:ch█
                             |:chr|
~~~

~~~
irb(main):001* [1, 2, 3].map(&:chr).each do |c|
irb(main):002*   puts c.ch█
irb(main):003> end   |c.chars |
                     |c.chomp |
                     |c.chomp!|
                     |c.chop  |
                     |c.chop! |
                     |c.chr   |
~~~

I believe this feature will provide powerful support especially to beginners, but it requires installation and setup. And what is important, you cannot activate this feature unless you know it exists.
If repl_type_completor is a bundled gem, and if IRB uses type-completor as default (https://github.com/ruby/irb/pull/1010), Ruby 3.4's IRB will provide great experience by default.

## With bundler
When `repl_type_completor` is not added to Gemfile, fallback to regexp-based completion.
Force require: consider later.

## Dependency
`prism` and `rbs`




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-04  0:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-02 17:58 [ruby-core:119410] [Ruby master Feature#20778] ruby/repl_type_completor as a bundled gem tompng (tomoya ishida) via ruby-core
2024-10-03  6:41 ` [ruby-core:119419] " hsbt (Hiroshi SHIBATA) via ruby-core
2024-10-03  7:25 ` [ruby-core:119423] " matz (Yukihiro Matsumoto) via ruby-core
2024-10-03  7:29 ` [ruby-core:119424] " hsbt (Hiroshi SHIBATA) via ruby-core
2024-10-03  9:05 ` [ruby-core:119427] " hsbt (Hiroshi SHIBATA) via ruby-core
2024-10-03 12:51 ` [ruby-core:119433] " tompng (tomoya ishida) via ruby-core
2024-10-04  0:51 ` [ruby-core:119437] " hsbt (Hiroshi SHIBATA) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).