ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:119033] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"`
@ 2024-09-04  4:53 Bo98 (Bo Anderson) via ruby-core
  2024-09-04  5:00 ` [ruby-core:119034] " hsbt (Hiroshi SHIBATA) via ruby-core
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Bo98 (Bo Anderson) via ruby-core @ 2024-09-04  4:53 UTC (permalink / raw)
  To: ruby-core; +Cc: Bo98 (Bo Anderson)

Issue #20713 has been reported by Bo98 (Bo Anderson).

----------------------------------------
Bug #20713: Ruby 3.3.5 triggers a deprecation warning with `require "json"`
https://bugs.ruby-lang.org/issues/20713

* Author: Bo98 (Bo Anderson)
* Status: Open
* ruby -v: 3.3.5
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Can be reproduced with `bundle exec ruby -e "require 'json'"`:

```
/opt/hostedtoolcache/Ruby/3.3.5/x64/lib/ruby/3.3.0/json/common.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
```

Likely needs a backport of https://github.com/ruby/ruby/commit/066bd28cff75b752b0af90dce933fa382dee0406.



-- 
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:119034] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"`
  2024-09-04  4:53 [ruby-core:119033] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"` Bo98 (Bo Anderson) via ruby-core
@ 2024-09-04  5:00 ` hsbt (Hiroshi SHIBATA) via ruby-core
  2024-09-04  5:06 ` [ruby-core:119035] " Bo98 (Bo Anderson) via ruby-core
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hsbt (Hiroshi SHIBATA) via ruby-core @ 2024-09-04  5:00 UTC (permalink / raw)
  To: ruby-core; +Cc: hsbt (Hiroshi SHIBATA)

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

Status changed from Open to Closed

You can suppress that warning with `json-2.7.2`. 

----------------------------------------
Bug #20713: Ruby 3.3.5 triggers a deprecation warning with `require "json"`
https://bugs.ruby-lang.org/issues/20713#change-109612

* Author: Bo98 (Bo Anderson)
* Status: Closed
* ruby -v: 3.3.5
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Can be reproduced with `bundle exec ruby -e "require 'json'"`:

```
/opt/hostedtoolcache/Ruby/3.3.5/x64/lib/ruby/3.3.0/json/common.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
```

Likely needs a backport of https://github.com/ruby/ruby/commit/066bd28cff75b752b0af90dce933fa382dee0406.



-- 
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:119035] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"`
  2024-09-04  4:53 [ruby-core:119033] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"` Bo98 (Bo Anderson) via ruby-core
  2024-09-04  5:00 ` [ruby-core:119034] " hsbt (Hiroshi SHIBATA) via ruby-core
@ 2024-09-04  5:06 ` Bo98 (Bo Anderson) via ruby-core
  2024-09-04  6:43 ` [ruby-core:119036] " vo.x (Vit Ondruch) via ruby-core
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Bo98 (Bo Anderson) via ruby-core @ 2024-09-04  5:06 UTC (permalink / raw)
  To: ruby-core; +Cc: Bo98 (Bo Anderson)

Issue #20713 has been updated by Bo98 (Bo Anderson).


Ah is the default `json` gem no longer supported too? This broke REXML CI: https://github.com/ruby/rexml/actions/runs/10695343850/job/29648614890 because `rdoc` uses `json` from the standard library. Should `rdoc` depend on the `json` from RubyGems instead?

----------------------------------------
Bug #20713: Ruby 3.3.5 triggers a deprecation warning with `require "json"`
https://bugs.ruby-lang.org/issues/20713#change-109613

* Author: Bo98 (Bo Anderson)
* Status: Closed
* ruby -v: 3.3.5
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Can be reproduced with `bundle exec ruby -e "require 'json'"`:

```
/opt/hostedtoolcache/Ruby/3.3.5/x64/lib/ruby/3.3.0/json/common.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
```

Likely needs a backport of https://github.com/ruby/ruby/commit/066bd28cff75b752b0af90dce933fa382dee0406.



-- 
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:119036] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"`
  2024-09-04  4:53 [ruby-core:119033] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"` Bo98 (Bo Anderson) via ruby-core
  2024-09-04  5:00 ` [ruby-core:119034] " hsbt (Hiroshi SHIBATA) via ruby-core
  2024-09-04  5:06 ` [ruby-core:119035] " Bo98 (Bo Anderson) via ruby-core
@ 2024-09-04  6:43 ` vo.x (Vit Ondruch) via ruby-core
  2024-09-04 10:23 ` [ruby-core:119039] " hsbt (Hiroshi SHIBATA) via ruby-core
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: vo.x (Vit Ondruch) via ruby-core @ 2024-09-04  6:43 UTC (permalink / raw)
  To: ruby-core; +Cc: vo.x (Vit Ondruch)

Issue #20713 has been updated by vo.x (Vit Ondruch).


I think that if Bundler is used, that means gems are used and they should always fully specify their dependencies. The other way is to not use Bundler.

----------------------------------------
Bug #20713: Ruby 3.3.5 triggers a deprecation warning with `require "json"`
https://bugs.ruby-lang.org/issues/20713#change-109614

* Author: Bo98 (Bo Anderson)
* Status: Closed
* ruby -v: 3.3.5
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Can be reproduced with `bundle exec ruby -e "require 'json'"`:

```
/opt/hostedtoolcache/Ruby/3.3.5/x64/lib/ruby/3.3.0/json/common.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
```

Likely needs a backport of https://github.com/ruby/ruby/commit/066bd28cff75b752b0af90dce933fa382dee0406.



-- 
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:119039] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"`
  2024-09-04  4:53 [ruby-core:119033] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"` Bo98 (Bo Anderson) via ruby-core
                   ` (2 preceding siblings ...)
  2024-09-04  6:43 ` [ruby-core:119036] " vo.x (Vit Ondruch) via ruby-core
@ 2024-09-04 10:23 ` hsbt (Hiroshi SHIBATA) via ruby-core
  2024-09-04 12:29 ` [ruby-core:119040] " Earlopain (A S) via ruby-core
  2024-09-05 10:57 ` [ruby-core:119066] " Earlopain (A S) via ruby-core
  5 siblings, 0 replies; 7+ messages in thread
From: hsbt (Hiroshi SHIBATA) via ruby-core @ 2024-09-04 10:23 UTC (permalink / raw)
  To: ruby-core; +Cc: hsbt (Hiroshi SHIBATA)

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

Backport changed from 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED

https://github.com/ruby/ruby/pull/11541

----------------------------------------
Bug #20713: Ruby 3.3.5 triggers a deprecation warning with `require "json"`
https://bugs.ruby-lang.org/issues/20713#change-109617

* Author: Bo98 (Bo Anderson)
* Status: Closed
* ruby -v: 3.3.5
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED
----------------------------------------
Can be reproduced with `bundle exec ruby -e "require 'json'"`:

```
/opt/hostedtoolcache/Ruby/3.3.5/x64/lib/ruby/3.3.0/json/common.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
```

Likely needs a backport of https://github.com/ruby/ruby/commit/066bd28cff75b752b0af90dce933fa382dee0406.



-- 
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:119040] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"`
  2024-09-04  4:53 [ruby-core:119033] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"` Bo98 (Bo Anderson) via ruby-core
                   ` (3 preceding siblings ...)
  2024-09-04 10:23 ` [ruby-core:119039] " hsbt (Hiroshi SHIBATA) via ruby-core
@ 2024-09-04 12:29 ` Earlopain (A S) via ruby-core
  2024-09-05 10:57 ` [ruby-core:119066] " Earlopain (A S) via ruby-core
  5 siblings, 0 replies; 7+ messages in thread
From: Earlopain (A S) via ruby-core @ 2024-09-04 12:29 UTC (permalink / raw)
  To: ruby-core; +Cc: Earlopain (A S)

Issue #20713 has been updated by Earlopain (A S).


I believe reline requires a PR like that as well: `bundle exec ruby -e "require 'reline'"`

> /home/user/.rbenv/versions/3.3.5/lib/ruby/3.3.0/reline.rb:9: warning: fiddle was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0

0.5.9 has some changes related to making fiddle more optional. Currently ruby contains 0.5.7

----------------------------------------
Bug #20713: Ruby 3.3.5 triggers a deprecation warning with `require "json"`
https://bugs.ruby-lang.org/issues/20713#change-109618

* Author: Bo98 (Bo Anderson)
* Status: Closed
* ruby -v: 3.3.5
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED
----------------------------------------
Can be reproduced with `bundle exec ruby -e "require 'json'"`:

```
/opt/hostedtoolcache/Ruby/3.3.5/x64/lib/ruby/3.3.0/json/common.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
```

Likely needs a backport of https://github.com/ruby/ruby/commit/066bd28cff75b752b0af90dce933fa382dee0406.



-- 
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:119066] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"`
  2024-09-04  4:53 [ruby-core:119033] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"` Bo98 (Bo Anderson) via ruby-core
                   ` (4 preceding siblings ...)
  2024-09-04 12:29 ` [ruby-core:119040] " Earlopain (A S) via ruby-core
@ 2024-09-05 10:57 ` Earlopain (A S) via ruby-core
  5 siblings, 0 replies; 7+ messages in thread
From: Earlopain (A S) via ruby-core @ 2024-09-05 10:57 UTC (permalink / raw)
  To: ruby-core; +Cc: Earlopain (A S)

Issue #20713 has been updated by Earlopain (A S).


The `rdoc` warning is from `irb` itself: https://github.com/ruby/irb/pull/999


----------------------------------------
Bug #20713: Ruby 3.3.5 triggers a deprecation warning with `require "json"`
https://bugs.ruby-lang.org/issues/20713#change-109646

* Author: Bo98 (Bo Anderson)
* Status: Closed
* ruby -v: 3.3.5
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED
----------------------------------------
Can be reproduced with `bundle exec ruby -e "require 'json'"`:

```
/opt/hostedtoolcache/Ruby/3.3.5/x64/lib/ruby/3.3.0/json/common.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
```

Likely needs a backport of https://github.com/ruby/ruby/commit/066bd28cff75b752b0af90dce933fa382dee0406.



-- 
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-09-05 10:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-04  4:53 [ruby-core:119033] [Ruby master Bug#20713] Ruby 3.3.5 triggers a deprecation warning with `require "json"` Bo98 (Bo Anderson) via ruby-core
2024-09-04  5:00 ` [ruby-core:119034] " hsbt (Hiroshi SHIBATA) via ruby-core
2024-09-04  5:06 ` [ruby-core:119035] " Bo98 (Bo Anderson) via ruby-core
2024-09-04  6:43 ` [ruby-core:119036] " vo.x (Vit Ondruch) via ruby-core
2024-09-04 10:23 ` [ruby-core:119039] " hsbt (Hiroshi SHIBATA) via ruby-core
2024-09-04 12:29 ` [ruby-core:119040] " Earlopain (A S) via ruby-core
2024-09-05 10:57 ` [ruby-core:119066] " Earlopain (A S) 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).