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

[SR-7901] swift REPL doesn't print deprecation warnings #4367

Open
mayoff opened this issue Jun 6, 2018 · 2 comments
Open

[SR-7901] swift REPL doesn't print deprecation warnings #4367

mayoff opened this issue Jun 6, 2018 · 2 comments
Labels
bug Something isn't working LLDB for Swift

Comments

@mayoff
Copy link

mayoff commented Jun 6, 2018

Previous ID SR-7901
Radar rdar://40905898
Original Reporter @mayoff
Type Bug
Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug
Assignee None
Priority Medium

md5: 73883580ca57e2f00d5df47207978676

relates to:

  • TF-270 warnings do not show up in Colab/Jupyter/LLDB

Issue Description:

The normal lldb-based repl doesn't print a deprecation warning in the following example:

:; xcrun swift
"crashlog" and "save_crashlog" command installed, use the "--help" option for detailed help
"malloc_info", "ptr_refs", "cstr_refs", "find_variable", and "objc_refs" commands have been installed, use the "--help" options on these commands for detailed help.
Welcome to Apple Swift version 4.2 (swiftlang-1000.0.16.4 clang-1000.0.25.3). Type :help for assistance.
  1> @available(swift, deprecated: 4.2) func f() { print("boo") }
  2> f()
boo
  3>  

The deprecated integrated repl does print the warning:

:; xcrun swift -deprecated-integrated-repl
***  You are running Swift's integrated REPL,  ***
***  intended for compiler and stdlib          ***
***  development and testing purposes only.    ***
***  The full REPL is built as part of LLDB.   ***
***  Type ':help' for assistance.              ***
(swift) @available(swift, deprecated: 4.2) func f() { print("boo") }
(swift) f()
<REPL Input>:1:1: warning: 'f()' is deprecated
f()
^
boo
(swift) 

The lldb-based repl should also print the warning.

@mayoff
Copy link
Author

mayoff commented Jun 6, 2018

cc @moiseev

@moiseev
Copy link
Mannequin

moiseev mannequin commented Jun 7, 2018

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

1 participant