krzysztofzablocki / LinkedConsole

Clickable links in your Xcode console, so you never wonder which class logged the message.
http://merowing.info
MIT License
931 stars 63 forks source link

Plugin is not working #24

Closed ivnsch closed 8 years ago

ivnsch commented 8 years ago

I installed the plugin using Alcatraz and building the project, none is working. Restarted Xcode and ensured the plugin was removed before installing it again.

I'm using QorumLogs and set QorumLogs.KZLinkedConsoleSupportEnabled = true in AppDelegate, the logs work fine but nothing is clickable. The plugin is listed as installed.

The log lines look like this ListItemProviderImpl.swift:260 add(:list:note:order::): blablabla

But I also did a test without QorumLogs using the function in the readme

func logMessage(message: String, filename: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__) {
    print("\((filename as NSString).lastPathComponent):\(line) \(function):\r\(message)")
}
logMessage("blablablbla!!!")

And I see:

AppDelegate.swift:68 configLog(): blablablbla!!!

which is also not clickable.

What can be the problem? I'm using Xcode 7.0

Thanks

nickdoherty commented 8 years ago

I'm having the same issue. XCGLogger as well as the logMessage function fails to link to a file.

XCode 7.2.1

skreutzberger commented 8 years ago

Guys, with SwiftyBeaver it should work.

ivnsch commented 8 years ago

Not sure why changing the logger would fix it? The direct print also doesn't work.

skreutzberger commented 8 years ago

ah,I get it, that is weird.

krzysztofzablocki commented 8 years ago

I think last commit regex messed stuff up, let me reverse it as it only does optimization, which we can do later

krzysztofzablocki commented 8 years ago

@i-schuetz can you try the current master ? I reversed last commit

nickdoherty commented 8 years ago

Uninstalled, reinstalled to current master. It works! Thanks @krzysztofzablocki

ivnsch commented 8 years ago

It works with master, thanks!