Giter VIP home page Giter VIP logo

synopsis's People

Contributors

taflanidi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

studio-rookery

synopsis's Issues

Не инициализируется класс Synopsis

Добрый день.

Пытаюсь создать Synopsis следующим образом:

import Synopsis
import Foundation

let url = URL(fileURLWithPath: "/Users/incetro/Desktop/Operations/Operations/AssembliesHolder.swift")
print(try! String(contentsOf: url))
let synopsis = Synopsis(files: [url])

В заданном выше файле лежит следующий код:

//
//  AssembliesHolder.swift
//  Operations
//
//  Created by incetro on 3/19/20.
//  Copyright © 2020 Incetro Inc. All rights reserved.
//

import Swinject

// MARK: - AssembliesHolder

final class AssembliesHolder {

    // MARK: - Properties

    /// Singleton container
    static var container: Container {
        return AssembliesHolder.instance.container
    }

    /// Private singleton instance
    private static let instance = AssembliesHolder()

    /// Global DI container
    private let container: Container

    // MARK: - Initializers

    /// Default initializer
    private init() {
        container = Container()
    }
}

Получаю ошибку:

Fatal error: 
!!! ATTENTION !!!
It looks like Swift compiler can't reach your source code file.
This usually happens when provided path does not exist or when this path contains relative injections like ".":

/Users/user/Projects/MyProject/./Sources
                               ^~~~~~~~~

Swift compiler can't navigate through "." and ".." yet. Sorry about that.
Also, Swift compiler uses absolute paths, so we concatenate your relative paths with current working directory.

Please make sure your "-input" folder reads like "Sources/Classes" and not like "./Sources/Classes".
(or provide absolute path, if applicable)
!!! ATTENTION !!!
: file /Users/incetro/Desktop/incetro-service-gen/.build/checkouts/synopsis/Sources/Synopsis/Utility/SwiftDocKey.swift, line 34
2020-03-31 18:12:51.590893+0300 incetro-service-gen[27803:1011763] Fatal error: 
!!! ATTENTION !!!
It looks like Swift compiler can't reach your source code file.
This usually happens when provided path does not exist or when this path contains relative injections like ".":

/Users/user/Projects/MyProject/./Sources
                               ^~~~~~~~~

Swift compiler can't navigate through "." and ".." yet. Sorry about that.
Also, Swift compiler uses absolute paths, so we concatenate your relative paths with current working directory.

Please make sure your "-input" folder reads like "Sources/Classes" and not like "./Sources/Classes".
(or provide absolute path, if applicable)
!!! ATTENTION !!!
: file /Users/incetro/Desktop/incetro-service-gen/.build/checkouts/synopsis/Sources/Synopsis/Utility/SwiftDocKey.swift, line 34

И никак не могу написать генератор теперь)

P.s. если смотреть через дебаг, то он распознаёт некоторые данные:

Printing description of rawExtensibleDescription:
▿ 12 elements
  ▿ 0 : 2 elements
    - key : "key.substructure"
    ▿ value : 6 elements
      ▿ 0 : 6 elements
        ▿ 0 : 2 elements
          - key : key.offset
          - value : 228
        ▿ 1 : 2 elements
          - key : key.length
          - value : 18
        ▿ 2 : 2 elements
          - key : key.kind
          ▿ value : source.lang.swift.syntaxtype.comment.mark
        ▿ 3 : 2 elements
          - key : key.nameoffset
          - value : 0
        ▿ 4 : 2 elements
          - key : key.namelength
          - value : 0
        ▿ 5 : 2 elements
          - key : key.name
          ▿ value : MARK: - Properties
      ▿ 1 : 13 elements
        ▿ 0 : 2 elements
          ▿ key : key.accessibility
          ▿ value : source.lang.swift.accessibility.internal
        ▿ 1 : 2 elements
          - key : key.docoffset
          - value : 252
        ▿ 2 : 2 elements
          - key : key.kind
          ▿ value : source.lang.swift.decl.var.static
        ▿ 3 : 2 elements
          - key : key.namelength
          - value : 9
        ▿ 4 : 2 elements
          - key : key.nameoffset
          - value : 291
        ▿ 5 : 2 elements
          - key : key.doc.comment
          ▿ value : Singleton container
        ▿ 6 : 2 elements
          - key : key.typename
          - value : Container
        ▿ 7 : 2 elements
          - key : key.name
          - value : container
        ▿ 8 : 2 elements
          - key : key.bodylength
          - value : 56
        ▿ 9 : 2 elements
          - key : key.doclength
          - value : 24
        ▿ 10 : 2 elements
          - key : key.offset
          - value : 280
        ▿ 11 : 2 elements
          - key : key.bodyoffset
          - value : 313
        ▿ 12 : 2 elements
          - key : key.length
          - value : 90
      ▿ 2 : 11 elements
        ▿ 0 : 2 elements
          - key : key.nameoffset
          - value : 430
        ▿ 1 : 2 elements
          - key : key.namelength
          - value : 8
        ▿ 2 : 2 elements
          ▿ key : key.accessibility
          ▿ value : source.lang.swift.accessibility.private
        ▿ 3 : 2 elements
          - key : key.kind
          ▿ value : source.lang.swift.decl.var.static
        ▿ 4 : 2 elements
          - key : key.name
          - value : instance
        ▿ 5 : 2 elements
          - key : key.doc.comment
          ▿ value : Private singleton instance
        ▿ 6 : 2 elements
          - key : key.length
          - value : 40
        ▿ 7 : 2 elements
          - key : key.doclength
          - value : 31
        ▿ 8 : 2 elements
          - key : key.docoffset
          - value : 376
        ▿ 9 : 2 elements
          - key : key.attributes
          ▿ value : 1 element
            ▿ 0 : 3 elements
              ▿ 0 : 2 elements
                - key : key.offset
                - value : 411
              ▿ 1 : 2 elements
                - key : key.attribute
                ▿ value : source.decl.attribute.private
              ▿ 2 : 2 elements
                - key : key.length
                - value : 7
        ▿ 10 : 2 elements
          - key : key.offset
          - value : 419
      ▿ 3 : 12 elements
        ▿ 0 : 2 elements
          - key : key.typename
          - value : Container
        ▿ 1 : 2 elements
          - key : key.namelength
          - value : 9
        ▿ 2 : 2 elements
          - key : key.doclength
          - value : 24
        ▿ 3 : 2 elements
          - key : key.docoffset
          - value : 465
        ▿ 4 : 2 elements
          - key : key.doc.comment
          ▿ value : Global DI container
        ▿ 5 : 2 elements
          ▿ key : key.accessibility
          ▿ value : source.lang.swift.accessibility.private
        ▿ 6 : 2 elements
          - key : key.nameoffset
          - value : 505
        ▿ 7 : 2 elements
          - key : key.kind
          ▿ value : source.lang.swift.decl.var.instance
        ▿ 8 : 2 elements
          - key : key.attributes
          ▿ value : 1 element
            ▿ 0 : 3 elements
              ▿ 0 : 2 elements
                - key : key.attribute
                ▿ value : source.decl.attribute.private
              ▿ 1 : 2 elements
                - key : key.length
                - value : 7
              ▿ 2 : 2 elements
                - key : key.offset
                - value : 493
        ▿ 9 : 2 elements
          - key : key.length
          - value : 24
        ▿ 10 : 2 elements
          - key : key.offset
          - value : 501
        ▿ 11 : 2 elements
          - key : key.name
          - value : container
      ▿ 4 : 6 elements
        ▿ 0 : 2 elements
          - key : key.length
          - value : 20
        ▿ 1 : 2 elements
          - key : key.offset
          - value : 534
        ▿ 2 : 2 elements
          - key : key.kind
          ▿ value : source.lang.swift.syntaxtype.comment.mark
        ▿ 3 : 2 elements
          - key : key.nameoffset
          - value : 0
        ▿ 4 : 2 elements
          - key : key.namelength
          - value : 0
        ▿ 5 : 2 elements
          - key : key.name
          ▿ value : MARK: - Initializers
      ▿ 5 : 14 elements
        ▿ 0 : 2 elements
          - key : key.doc.comment
          ▿ value : Default initializer
        ▿ 1 : 2 elements
          - key : key.offset
          - value : 596
        ▿ 2 : 2 elements
          - key : key.bodylength
          - value : 37
        ▿ 3 : 2 elements
          ▿ key : key.substructure
          - value : 0 elements
        ▿ 4 : 2 elements
          - key : key.docoffset
          - value : 560
        ▿ 5 : 2 elements
          - key : key.namelength
          - value : 6
        ▿ 6 : 2 elements
          - key : key.kind
          ▿ value : source.lang.swift.decl.function.method.instance
        ▿ 7 : 2 elements
          - key : key.name
          - value : init()
        ▿ 8 : 2 elements
          ▿ key : key.accessibility
          ▿ value : source.lang.swift.accessibility.private
        ▿ 9 : 2 elements
          - key : key.length
          - value : 46
        ▿ 10 : 2 elements
          - key : key.bodyoffset
          - value : 604
        ▿ 11 : 2 elements
          - key : key.nameoffset
          - value : 596
        ▿ 12 : 2 elements
          - key : key.doclength
          - value : 24
        ▿ 13 : 2 elements
          - key : key.attributes
          ▿ value : 1 element
            ▿ 0 : 3 elements
              ▿ 0 : 2 elements
                - key : key.length
                - value : 7
              ▿ 1 : 2 elements
                - key : key.attribute
                ▿ value : source.decl.attribute.private
              ▿ 2 : 2 elements
                - key : key.offset
                - value : 588
  ▿ 1 : 2 elements
    - key : "key.name"
    ▿ value : AssembliesHolder
  ▿ 2 : 2 elements
    - key : "key.bodyoffset"
    - value : 219
  ▿ 3 : 2 elements
    - key : "key.bodylength"
    - value : 424
  ▿ 4 : 2 elements
    - key : "key.offset"
    - value : 195
  ▿ 5 : 2 elements
    - key : "key.accessibility"
    ▿ value : source.lang.swift.accessibility.internal
  ▿ 6 : 2 elements
    - key : "key.runtime_name"
    ▿ value : _TtC4main16AssembliesHolder
  ▿ 7 : 2 elements
    - key : "key.attributes"
    ▿ value : 1 element
      ▿ 0 : 3 elements
        ▿ 0 : 2 elements
          - key : key.offset
          - value : 189
        ▿ 1 : 2 elements
          - key : key.length
          - value : 5
        ▿ 2 : 2 elements
          - key : key.attribute
          ▿ value : source.decl.attribute.final
  ▿ 8 : 2 elements
    - key : "key.namelength"
    - value : 16
  ▿ 9 : 2 elements
    - key : "key.length"
    - value : 449
  ▿ 10 : 2 elements
    - key : "key.kind"
    ▿ value : source.lang.swift.decl.class
  ▿ 11 : 2 elements
    - key : "key.nameoffset"
    - value : 201

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.