You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run a simple python script in LLDB it fails in both Swift 5.6.1 and the latest nightly
Steps
Open terminal and enter lldb
Enter script print(lldb.SBHostOS.GetLLDBPath(lldb.ePathTypeLLDBShlibDir).fullpath)
Using Swift 5.5 I get the library path for lldb
Using Swift 5.6 I get the following output
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'lldb'
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
error: python failed attempting to evaluate 'print(lldb.SBHostOS.GetLLDBPath(lldb.ePathTypeLLDBShlibDir).fullpath)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'lldb' is not defined
Using the latest nightly
After step 1 I get this output
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'lldb'
And after step 2 I get pretty much the same output as Swift 5.6
Swift 5.6 and later also fail on even simpler scripts like script print("hi").
Environment
OS: 20.04.4 LTS (Focal Fossa)
Swift version: 5.6.1 and 2022-05-27-a nightly
Python version: 3.8.10
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'lldb'
/home/adamfowler/.swiftbox/toolchain/swift-2022-05-27-a/usr/lib/python3/dist-packages
When I try to run a simple python script in LLDB it fails in both Swift 5.6.1 and the latest nightly
Steps
lldb
script print(lldb.SBHostOS.GetLLDBPath(lldb.ePathTypeLLDBShlibDir).fullpath)
Using Swift 5.5 I get the library path for lldb
Using Swift 5.6 I get the following output
Using the latest nightly
After step 1 I get this output
And after step 2 I get pretty much the same output as Swift 5.6
Swift 5.6 and later also fail on even simpler scripts like
script print("hi")
.Environment
OS: 20.04.4 LTS (Focal Fossa)
Swift version: 5.6.1 and 2022-05-27-a nightly
Python version: 3.8.10
The text was updated successfully, but these errors were encountered: