ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:121956] [Ruby Bug#21321] Namespaces do not support extending mixins
@ 2025-05-09 23:22 fxn (Xavier Noria) via ruby-core
  2025-05-09 23:27 ` [ruby-core:121957] " fxn (Xavier Noria) via ruby-core
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: fxn (Xavier Noria) via ruby-core @ 2025-05-09 23:22 UTC (permalink / raw)
  To: ruby-core; +Cc: fxn (Xavier Noria)

Issue #21321 has been reported by fxn (Xavier Noria).

----------------------------------------
Bug #21321: Namespaces do not support extending mixins
https://bugs.ruby-lang.org/issues/21321

* Author: fxn (Xavier Noria)
* Status: Open
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
The program

```ruby
module M
end

class C
  extend M
end
```

fails under a namespace with error:

```
'Kernel#extend': Cannot extend object with refinement (TypeError)
```



-- 
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] 8+ messages in thread

* [ruby-core:121957] [Ruby Bug#21321] Namespaces do not support extending mixins
  2025-05-09 23:22 [ruby-core:121956] [Ruby Bug#21321] Namespaces do not support extending mixins fxn (Xavier Noria) via ruby-core
@ 2025-05-09 23:27 ` fxn (Xavier Noria) via ruby-core
  2025-05-10  5:54 ` [ruby-core:121961] " mame (Yusuke Endoh) via ruby-core
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fxn (Xavier Noria) via ruby-core @ 2025-05-09 23:27 UTC (permalink / raw)
  To: ruby-core; +Cc: fxn (Xavier Noria)

Issue #21321 has been updated by fxn (Xavier Noria).


Maybe the root cause is _enabling_ namespaces with `RUBY_NAMESPACE=1`.

----------------------------------------
Bug #21321: Namespaces do not support extending mixins
https://bugs.ruby-lang.org/issues/21321#change-113071

* Author: fxn (Xavier Noria)
* Status: Open
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
The program

```ruby
module M
end

class C
  extend M
end
```

fails under a namespace with error:

```
'Kernel#extend': Cannot extend object with refinement (TypeError)
```



-- 
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] 8+ messages in thread

* [ruby-core:121961] [Ruby Bug#21321] Namespaces do not support extending mixins
  2025-05-09 23:22 [ruby-core:121956] [Ruby Bug#21321] Namespaces do not support extending mixins fxn (Xavier Noria) via ruby-core
  2025-05-09 23:27 ` [ruby-core:121957] " fxn (Xavier Noria) via ruby-core
@ 2025-05-10  5:54 ` mame (Yusuke Endoh) via ruby-core
  2025-05-10  8:28 ` [ruby-core:121965] " fxn (Xavier Noria) via ruby-core
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mame (Yusuke Endoh) via ruby-core @ 2025-05-10  5:54 UTC (permalink / raw)
  To: ruby-core; +Cc: mame (Yusuke Endoh)

Issue #21321 has been updated by mame (Yusuke Endoh).


I don't think it's really necessary to create a separate ticket for this from #21319, is it?

----------------------------------------
Bug #21321: Namespaces do not support extending mixins
https://bugs.ruby-lang.org/issues/21321#change-113077

* Author: fxn (Xavier Noria)
* Status: Open
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
The program

```ruby
module M
end

class C
  extend M
end
```

fails under a namespace with error:

```
'Kernel#extend': Cannot extend object with refinement (TypeError)
```



-- 
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] 8+ messages in thread

* [ruby-core:121965] [Ruby Bug#21321] Namespaces do not support extending mixins
  2025-05-09 23:22 [ruby-core:121956] [Ruby Bug#21321] Namespaces do not support extending mixins fxn (Xavier Noria) via ruby-core
  2025-05-09 23:27 ` [ruby-core:121957] " fxn (Xavier Noria) via ruby-core
  2025-05-10  5:54 ` [ruby-core:121961] " mame (Yusuke Endoh) via ruby-core
@ 2025-05-10  8:28 ` fxn (Xavier Noria) via ruby-core
  2025-05-10  8:39 ` [ruby-core:121971] " fxn (Xavier Noria) via ruby-core
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fxn (Xavier Noria) via ruby-core @ 2025-05-10  8:28 UTC (permalink / raw)
  To: ruby-core; +Cc: fxn (Xavier Noria)

Issue #21321 has been updated by fxn (Xavier Noria).


@mame I was here till 4 AM experimenting with this feature.

To be organized, I reported different things in different tickets. These two could be related, but I don't know it. If they are, they will be closed together.

----------------------------------------
Bug #21321: Namespaces do not support extending mixins
https://bugs.ruby-lang.org/issues/21321#change-113081

* Author: fxn (Xavier Noria)
* Status: Open
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
The program

```ruby
module M
end

class C
  extend M
end
```

fails under a namespace with error:

```
'Kernel#extend': Cannot extend object with refinement (TypeError)
```



-- 
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] 8+ messages in thread

* [ruby-core:121971] [Ruby Bug#21321] Namespaces do not support extending mixins
  2025-05-09 23:22 [ruby-core:121956] [Ruby Bug#21321] Namespaces do not support extending mixins fxn (Xavier Noria) via ruby-core
                   ` (2 preceding siblings ...)
  2025-05-10  8:28 ` [ruby-core:121965] " fxn (Xavier Noria) via ruby-core
@ 2025-05-10  8:39 ` fxn (Xavier Noria) via ruby-core
  2025-05-10  9:59 ` [ruby-core:121976] " byroot (Jean Boussier) via ruby-core
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fxn (Xavier Noria) via ruby-core @ 2025-05-10  8:39 UTC (permalink / raw)
  To: ruby-core; +Cc: fxn (Xavier Noria)

Issue #21321 has been updated by fxn (Xavier Noria).


I was yesterday running a checkout from May 6. Updated the branch now and cannot repro anymore.

----------------------------------------
Bug #21321: Namespaces do not support extending mixins
https://bugs.ruby-lang.org/issues/21321#change-113087

* Author: fxn (Xavier Noria)
* Status: Open
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
The program

```ruby
module M
end

class C
  extend M
end
```

fails under a namespace with error:

```
'Kernel#extend': Cannot extend object with refinement (TypeError)
```



-- 
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] 8+ messages in thread

* [ruby-core:121976] [Ruby Bug#21321] Namespaces do not support extending mixins
  2025-05-09 23:22 [ruby-core:121956] [Ruby Bug#21321] Namespaces do not support extending mixins fxn (Xavier Noria) via ruby-core
                   ` (3 preceding siblings ...)
  2025-05-10  8:39 ` [ruby-core:121971] " fxn (Xavier Noria) via ruby-core
@ 2025-05-10  9:59 ` byroot (Jean Boussier) via ruby-core
  2025-05-10 10:09 ` [ruby-core:121977] " fxn (Xavier Noria) via ruby-core
  2025-05-10 10:11 ` [ruby-core:121978] " byroot (Jean Boussier) via ruby-core
  6 siblings, 0 replies; 8+ messages in thread
From: byroot (Jean Boussier) via ruby-core @ 2025-05-10  9:59 UTC (permalink / raw)
  To: ruby-core; +Cc: byroot (Jean Boussier)

Issue #21321 has been updated by byroot (Jean Boussier).

Status changed from Open to Closed

>  cannot repro anymore.

Closing then?

----------------------------------------
Bug #21321: Namespaces do not support extending mixins
https://bugs.ruby-lang.org/issues/21321#change-113091

* Author: fxn (Xavier Noria)
* Status: Closed
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
The program

```ruby
module M
end

class C
  extend M
end
```

fails under a namespace with error:

```
'Kernel#extend': Cannot extend object with refinement (TypeError)
```



-- 
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] 8+ messages in thread

* [ruby-core:121977] [Ruby Bug#21321] Namespaces do not support extending mixins
  2025-05-09 23:22 [ruby-core:121956] [Ruby Bug#21321] Namespaces do not support extending mixins fxn (Xavier Noria) via ruby-core
                   ` (4 preceding siblings ...)
  2025-05-10  9:59 ` [ruby-core:121976] " byroot (Jean Boussier) via ruby-core
@ 2025-05-10 10:09 ` fxn (Xavier Noria) via ruby-core
  2025-05-10 10:11 ` [ruby-core:121978] " byroot (Jean Boussier) via ruby-core
  6 siblings, 0 replies; 8+ messages in thread
From: fxn (Xavier Noria) via ruby-core @ 2025-05-10 10:09 UTC (permalink / raw)
  To: ruby-core; +Cc: fxn (Xavier Noria)

Issue #21321 has been updated by fxn (Xavier Noria).


Yes, please, and sorry for the noise.

----------------------------------------
Bug #21321: Namespaces do not support extending mixins
https://bugs.ruby-lang.org/issues/21321#change-113093

* Author: fxn (Xavier Noria)
* Status: Closed
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
The program

```ruby
module M
end

class C
  extend M
end
```

fails under a namespace with error:

```
'Kernel#extend': Cannot extend object with refinement (TypeError)
```



-- 
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] 8+ messages in thread

* [ruby-core:121978] [Ruby Bug#21321] Namespaces do not support extending mixins
  2025-05-09 23:22 [ruby-core:121956] [Ruby Bug#21321] Namespaces do not support extending mixins fxn (Xavier Noria) via ruby-core
                   ` (5 preceding siblings ...)
  2025-05-10 10:09 ` [ruby-core:121977] " fxn (Xavier Noria) via ruby-core
@ 2025-05-10 10:11 ` byroot (Jean Boussier) via ruby-core
  6 siblings, 0 replies; 8+ messages in thread
From: byroot (Jean Boussier) via ruby-core @ 2025-05-10 10:11 UTC (permalink / raw)
  To: ruby-core; +Cc: byroot (Jean Boussier)

Issue #21321 has been updated by byroot (Jean Boussier).


> and sorry for the noise.

It's alright, even if the feature is experimental, the sooner bugs are noticed the better. So thank you for experimenting.

----------------------------------------
Bug #21321: Namespaces do not support extending mixins
https://bugs.ruby-lang.org/issues/21321#change-113094

* Author: fxn (Xavier Noria)
* Status: Closed
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
The program

```ruby
module M
end

class C
  extend M
end
```

fails under a namespace with error:

```
'Kernel#extend': Cannot extend object with refinement (TypeError)
```



-- 
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] 8+ messages in thread

end of thread, other threads:[~2025-05-10 10:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-09 23:22 [ruby-core:121956] [Ruby Bug#21321] Namespaces do not support extending mixins fxn (Xavier Noria) via ruby-core
2025-05-09 23:27 ` [ruby-core:121957] " fxn (Xavier Noria) via ruby-core
2025-05-10  5:54 ` [ruby-core:121961] " mame (Yusuke Endoh) via ruby-core
2025-05-10  8:28 ` [ruby-core:121965] " fxn (Xavier Noria) via ruby-core
2025-05-10  8:39 ` [ruby-core:121971] " fxn (Xavier Noria) via ruby-core
2025-05-10  9:59 ` [ruby-core:121976] " byroot (Jean Boussier) via ruby-core
2025-05-10 10:09 ` [ruby-core:121977] " fxn (Xavier Noria) via ruby-core
2025-05-10 10:11 ` [ruby-core:121978] " byroot (Jean Boussier) 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).