Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Request textDocument/completion failed. Could not find <blabla>.swift in the workspace #37

Open
MuhsinFatih opened this issue Mar 21, 2018 · 3 comments
Labels

Comments

@MuhsinFatih
Copy link

I installed the language server, but I get the following error when trying to use with vscode. Any idea?

[Error - 18:47:29] Request textDocument/completion failed.
  Message: Could not find /Users/muhsinfatih/developer/SampleProject/Wizard/samplecode.swift in the workspace.
  Code: -32099
@vknabel
Copy link
Collaborator

vknabel commented May 23, 2018

Just guessing: you are not using a Swift Package Manager project, right?
This is probably related to #35 (Package.swift is not part of the SPM project itself)

@MuhsinFatih
Copy link
Author

No I am not. I actually tried to open an xcode project folder (for an iOS app). Didn't expect full code completion given it would require xcode integration, I guess, but it didn't do any completion at all. What is the expected behavior in this scenario? Also, is there any possibility for xcode integration? I hate xcode so much I am currently using appcode, but would love to use vscode instead! :) Wow so many 'code's lol

@RLovelett
Copy link
Owner

What is the expected behavior in this scenario?

The expected behavior is the one you got. Unfortunately at this time there is no support for anything other than SwiftPM packages. And even then it is still a work-in-progress.

Also, is there any possibility for xcode integration?

In what sense do you mean? Under the hood the language server is just talking with SourceKit. Which is the same tool that Xcode uses under the hood.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants