Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Cannot read property 'key.filepath' of undefined #10

@LinusU

Description

@LinusU
[Error - 12:29:44] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'key.filepath' of undefined
  Code: -32603 

I'm not exactly sure what triggered this, but it happened while trying to autocomplete internal let valet: Val... in the code below:

import Foundation

import PromiseKit
import Valet

open class BioPass {
    enum Error: Swift.Error {
        case notAvailable
        case failedEncodingPassword
        case failedCreatingSAC
        case unhandledKeychainError(OSStatus)
        case unexpectedPasswordData
    }

    let serviceName: String

    internal let valet: Val

    public init(_ serviceName: String = Bundle.main.bundleIdentifier!) {

        if serviceName == "" { fatalError("serviceName cannot be an empty string") }

        self.serviceName = serviceName
    }

Both PromiseKit and Valet are installed as dependencies with Swift Package Manager.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions