Skip to content
New issue

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

Deprecation warning when using "pipe" builtin is telling user to use "pipe" builtin instead in Rakudo #4336

Closed
p6rt opened this issue Jun 22, 2015 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 22, 2015

Migrated from rt.perl.org#125454 (status was 'resolved')

Searchable as RT125454$

@p6rt
Copy link
Author

p6rt commented Jun 22, 2015

From @masak

$ perl6 -v
This is perl6 version 2015.06-36-g164f1e0 built on MoarVM version
2015.06-16-g46e941c

$ perl6 -e 'pipe "ls"'
Saw 1 occurrence of deprecated code.

:p for pipe seen at​:
  src/gen/m-CORE.setting, line 18616
Deprecated since v2015.6, will be removed with release v2015.9!
Please use pipe($path,...) instead.


Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!

Please note that *ALL* deprecated features will be removed at the RC-0 release
(expected September 2015).

--

The problem here is that "Please use pipe($path,...) instead." is
telling the user to use the construct that was just used. Deprecation
warnings ought to advise the user to use something else, not the same
thing.

jnthn tells me that FROGGS is currently working on cleaning stuff up
in this area. So this might be a transitional thing. Just filing it so
that we don't forget about it.

@p6rt
Copy link
Author

p6rt commented Jun 22, 2015

From @lizmat

At least temporarily fixed with eb398889b191d8624989

Liz

On 22 Jun 2015, at 11​:25, Carl Mäsak (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by "Carl Mäsak"
# Please include the string​: [perl #​125454]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125454 >

$ perl6 -v
This is perl6 version 2015.06-36-g164f1e0 built on MoarVM version
2015.06-16-g46e941c

$ perl6 -e 'pipe "ls"'
Saw 1 occurrence of deprecated code.

:p for pipe seen at​:
src/gen/m-CORE.setting, line 18616
Deprecated since v2015.6, will be removed with release v2015.9!
Please use pipe($path,...) instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!

Please note that *ALL* deprecated features will be removed at the RC-0 release
(expected September 2015).

--

The problem here is that "Please use pipe($path,...) instead." is
telling the user to use the construct that was just used. Deprecation
warnings ought to advise the user to use something else, not the same
thing.

jnthn tells me that FROGGS is currently working on cleaning stuff up
in this area. So this might be a transitional thing. Just filing it so
that we don't forget about it.

@p6rt
Copy link
Author

p6rt commented Jun 22, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jun 27, 2015

From @FROGGS

pipe() and open(​:p) are both now deprecated, and point to the correct code​:

~/dev/rakudo$ perl6 -e 'say pipe "ls"'
IO​::Handle<ls>(opened, at line 0 / octet 0)
Saw 1 occurrence of deprecated code.

Method pipe (from IO​::Handle) seen at​:
  src/gen/m-CORE.setting, line 19891
Deprecated since v2015.6, will be removed with release v2015.9!
Please use shell() or run() with :in, :out or :err instead.


Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!

Please note that *ALL* deprecated features will be removed at the RC-0 release
(expected September 2015).

~/dev/rakudo$ perl6 -e 'say open "ls", :p'
IO​::Handle<ls>(opened, at line 0 / octet 0)
Saw 1 occurrence of deprecated code.

:p for pipe seen at​:
  src/gen/m-CORE.setting, line 19884
Deprecated since v2015.6, will be removed with release v2015.9!
Please use shell(...)/run(...) with :in, :out or :err instead.


Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!

Please note that *ALL* deprecated features will be removed at the RC-0 release
(expected September 2015).

@p6rt
Copy link
Author

p6rt commented Jun 27, 2015

@FROGGS - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jun 27, 2015
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant