soffes / SyntaxKit

TextMate-style syntax highlighting
MIT License
472 stars 65 forks source link

Cannot invoke initializer for type 'Language'? #23

Closed mrtungdev closed 7 years ago

mrtungdev commented 7 years ago

Hello! I follow your readme but I got this:

Cannot invoke initializer for type 'Language' with an argument list of type '(dictionary: [NSObject : AnyObject])'

screen shot 2017-09-23 at 8 38 09

alehed commented 7 years ago

Language does not have any public initializers.

See the readme from alehed/SyntaxKit for examples.

alehed commented 7 years ago

Wait… are you using the main project (soffes/SyntaxKit)? It is still written in Swift 2. I guess after conversion it takes [String: Any] or something similar. You can find the exact type in your header file.