[SR-7954] SourceKit crashes with "Assertion `shouldCollectToken() && "Disabled"' failed." when "key.name" is negative integer string #50489
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
ubuntu 16.04
swift-4.2-DEVELOPMENT-SNAPSHOT-2018-06-08-a
Additional Detail from JIRA
md5: 6cccc597b8df475ef5887d06184bf745
Issue Description:
Reproducing steps:
docker run --privileged -it --rm norionomura/swift:swift-4.2-branch
git clone https://github.com/jpsim/SourceKitten.git
cd SourceKitten/
swift build
.build/debug/sourcekitten request --yaml '
key.request: source.request.editor.open
key.name: "-1"
key.sourcetext: "let a = 1"
'
logs:
SeeAlso: jpsim/SourceKitten#529
The text was updated successfully, but these errors were encountered: