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

Allow Configuration of Path to Swift Compiler for SwiftPM #50

Open
3 tasks
RLovelett opened this issue May 29, 2018 · 0 comments
Open
3 tasks

Allow Configuration of Path to Swift Compiler for SwiftPM #50

RLovelett opened this issue May 29, 2018 · 0 comments

Comments

@RLovelett
Copy link
Owner

Currently there is a method findBinDirectory in Server.swift that attempts to find the path the Swift compiler.

This compiler path is used by SwiftPM to interact with the Package.swift. Currently, if this path is not found or incorrect it causes a fatalError and hard crash of the language server.

I'd like to do (at least) two things before calling this issue done.

  • Allow the path to be configured/set by the user and directly passed in initializationOptions as part of InitializeParams.

  • If for some reason, the path is invalid or the compiler cannot be found, send an error to the client notifying the user that the path is invalid. Rather than crash.

  • This one is a stretch goal. Modify library_wrapper.swift to make use of this path instead of the existing logic in place.

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

No branches or pull requests

1 participant