#210 ✓resolved
John Bradley

Opening files with a total path length less than user's home path crashes

Reported by John Bradley | February 17th, 2011 @ 02:17 AM

What I did: Opened a file with absolute location path "/test"
What I expected to happen: File opens normally in the editor
What actually happened: Crashes
Version of Kod: 0.0.4

This problem is due to the checking in Kod when it goes to replace the user's path with a '~'.
If the path of the file is of a length less than the home directory length (in my case /Users/johnbradley) it will raise the exception:

*** -[NSCFString replaceOccurrencesOfString:withString:options:range:]: Range or index out of bounds

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A text editor for Mac OS X

People watching this ticket

Referenced by