0
Fixed

Application crashed when i try edit and save "/private/etc/hosts".

Максим Рысь 6 years ago updated by Alexander Blach (Developer) 6 years ago 3

Application crashed when i try edit and save "/private/etc/hosts".

After reopen, application open last tab with old file and crashed when i try close this tab.

Answer

Answer
Fixed

This will be fixed in the next update. 

Hello, 


can you please have a look at the "Console" app? Do you see an error message there when this happens? Is there a crash report?

OS X Mavericks.

1) open /private/etc/hosts in Textastic

2) change any text and get message "You don’t own the file “hosts” and don’t have permission to write to it."

3) select "duplicate"

4) now you get 2 tabs: "hosts" and "hosts copy"

5) you can close tab "hosts"

6) but if you close tab "hosts copy" - application crashed

7) after reopen Textastic, it load "hosts copy" and you can't close this tab in any case.

8) you can change permission "sudo chown rys /private/etc" and after this you can open Textastic and you get message "The last time you opened Textastic, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?"

9) you can select "don't reopen"

10) after this action you can back permissions to folder "sudo chown root /private/etc"

+1

Thanks for the detailed description. I'll try to fix it.


If you want to get rid of the file, try to delete this folder:

~/Library/Containers/com.textasticapp.textastic-mac/Data/Library/Saved Application State/com.textasticapp.textastic-mac.savedState/

Deleting this folder should remove all saved window state so that it isn't restored on the next launch of the app.

Answer
Fixed

This will be fixed in the next update.