We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Mac
md5: be1d5a0a862ac57009440f63a00bba35
Issue Description:
I had seen it before on an `#if !os(macOS)` but I wasn't able to replicate.
Basically, SwiftSyntax crashes on pound syntax, notably `#file`
Version: `.package(url: "https://github.com/apple/swift-syntax", from: "0.40200.0"),`
Repro: ``` func example() { let _ = #file } ```
Create a SyntaxVisitor that visits functions. It was crashing with a `bus 10` error.
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
loganwright (JIRA User) i used SwiftSyntax to visit the given code example as such
import Foundation import SwiftSyntax let input = URL(fileURLWithPath: "/tmp/test.swift") let result = try! SyntaxTreeParser.parse(input) class Visitor: SyntaxVisitor { override open func visit(_ node: PoundFileExprSyntax) { print("visited") } } Visitor().visit(result)
This code executes successfully without hitting a `bus 10` error.
Could you also share the code example you were using to visit the crashing case?
This no longer reproduces with the new parser or the old SwiftSyntaxParser. Please verify this against a recent checkout of swift-syntax.
Merge pull request apple#443 from apple/chicken-scratch
dc7edc3
s/build-path/scratch-path
No branches or pull requests
Environment
Mac
Additional Detail from JIRA
md5: be1d5a0a862ac57009440f63a00bba35
Issue Description:
I had seen it before on an `#if !os(macOS)` but I wasn't able to replicate.
Basically, SwiftSyntax crashes on pound syntax, notably `#file`
Version:
`.package(url: "https://github.com/apple/swift-syntax", from: "0.40200.0"),`
Repro:
```
func example() {
let _ = #file
}
```
Create a SyntaxVisitor that visits functions. It was crashing with a `bus 10` error.
The text was updated successfully, but these errors were encountered: