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
The swift compiler with versions 5.1.3, 5.2 crashes if you run any project containing C/C++ dependencies with --repl attribute: `swift run --repl`.
This behavior appears on macOS only, on Ubuntu 18 same packages works well in the same situation. The crash appears on import Swift Package that contains the C/C++ dependencies into repl.
The `swift test` command within the same setup works properly.
The same project, but as executable (e.g. MyLibrary.swift renamed to main.swift) works properly with `swift run` command.
Steps to reproduce:
`swift package init --type library MyLibrary`.
2.1 Add the following dependency to the package dependencies: `.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0")`.
2.2 Add follow dependency to MyLibrary target dependencies: `.product(name: "AsyncHTTPClient", package: "async-http-client"),`.
Run `swift run --repl`.
In swift console console type: `import MyLibrary`.
Expected behavior:
Package loads and its public types and methods are available within repl runtime.
Additional Detail from JIRA
md5: 6dac3de1a9206b54e6e2f1fcb1a58ee5
Issue Description:
The swift compiler with versions 5.1.3, 5.2 crashes if you run any project containing C/C++ dependencies with
--repl
attribute: `swift run --repl`
.This behavior appears on macOS only, on Ubuntu 18 same packages works well in the same situation. The crash appears on import Swift Package that contains the C/C++ dependencies into repl.
The `
swift test`
command within the same setup works properly.The same project, but as executable (e.g. MyLibrary.swift renamed to main.swift) works properly with `
swift run
` command.Steps to reproduce:
swift package init --type library MyLibrary
`.2.1 Add the following dependency to the package dependencies: `
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0")
`.2.2 Add follow dependency to MyLibrary target dependencies: `
.product(name: "AsyncHTTPClient", package: "async-http-client"),
`.swift run --repl
`.import MyLibrary
`.Expected behavior:
Package loads and its public types and methods are available within repl runtime.
Current behavior:
Repl crashes with the following stacktrace:
The text was updated successfully, but these errors were encountered: