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-11075] [propertyWrapper] LLDB RPC server has crashed when running a very simple propertyWrapper code in playground #4337

Closed
swift-ci opened this issue Jul 5, 2019 · 2 comments
Assignees
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

swift-ci commented Jul 5, 2019

Previous ID SR-11075
Radar None
Original Reporter Philip (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode 11 beta 3

macOS 14.5

Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug
Assignee @dcci
Priority Medium

md5: 9deb723ea582f3df84afa6c1c045aefa

Issue Description:

Code:

@propertyWrapperlldb-rpc-server_2019-07-06-064304_MBP-2018.crash

struct Test {

var wrappedValue: String

}

@test

var string = "test"

print(string)

Issue:

Xcode shows warning of "The LLDB RPC server has crashed. The crash log is located in ...

And:

  • The crash log attached

  • I tested this simple code as I found it seems any propertyWrapper sample code will cause the crash

@belkadan
Copy link

belkadan commented Jul 6, 2019

cc jingham@apple.com (JIRA User), @dcci

@dcci
Copy link
Mannequin

dcci mannequin commented Jul 17, 2019

Doug fixed this by disabling propertyWrappers in top level code.
The current REPL doesn't crash.

  1> @propertyWrapper struct Test 
  2. {     var wrappedValue: String } 
  3.   
  4. @Test 
  5. var string = "test" 
  6. print(string) 
error: repl.swift:4:1: error: property wrappers are not yet supported in top-level code
@Test
^

@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
This issue was closed.
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

2 participants