did not find primary SourceFile
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.4k
- Forks
- 237
- PR merge metrics
- No merged PRs in 30d
Description
i have a problem when making a request using the framework:
here's my code:
`
let file = File(path: "/Users/username/Downloads/file.swift")!
let request = SourceKittenFramework.Request.cursorInfo(file: "/Users/mostfa/Downloads/file.swift", offset: (90), arguments: [file.path!])
let cursorInfo = try request.send()
print(cursorInfo)
`
and the response i get is
{"error":true,"reason":"did not find primary SourceFile"}
i tried to google it, but didn't find an answer :(
file path is correct, and the structure for same file is generated as expected,
can anyone help me with this ? thank you very much
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported call through Request.cursorInfo and request.send using the paths, offset, and arguments shown in the issue. Read the SourceKitten request implementation and its error handling to determine why no primary SourceFile is found; done means a confirmed cause and a fix or documented resolution for this request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100