langserver-swift icon indicating copy to clipboard operation
langserver-swift copied to clipboard

Crashes if no SwiftPM manifest

Open vhbit opened this issue 7 years ago • 1 comments

I've tried to open in a dir a VS Code with no SwiftPM manifest and it crashed:

fatal error: 'try!' expression unexpectedly raised an error: PackageModel.Package.Error.noManifest(baseURL: "/Users/vhbit/tmp/Sourcery-0.6.0"
...
11   LanguageServer                     0x000000010958d550 specialized Server.init(inDirectory : AbsolutePath) -> Server + 3101
...

I wonder if it's possible to somehow specify "project" or at least display a problem and continue without advanced features as after 5 crashes in the row VS Code stops launching language server at all.

version: 0.2.0

vhbit avatar May 19 '17 07:05 vhbit

This is a known problem with the latest release. The previous release should not have this problem.

I am on vacation right now but I'll get a fix when I return to a computer.

Thank you for the report.

RLovelett avatar May 19 '17 12:05 RLovelett