The error message when launching /Applications/FoldingText.app/Contents/MacOS/FoldingText from the terminal is:
2017-03-29 09:41:25.215 FoldingText[5555:95954] *** WARNING: Method convertPointToBase: in class NSView is deprecated on 10.7 and later. It should not be used in new applications.
Tried on the latest FoldingText-Dev.dmg I have. Unfortunately I can’t check the version because FoldingText won’t start.
So I’m getting errors about Receipts
2017-03-30 09:52:30.269 FoldingText[2028:80868] Failed to copy reciept with error: Error Domain=NSCocoaErrorDomain Code=260 "The file “A8/60/B6/13/B5/10” couldn’t be opened because there is no such file."
Then I launched it and it launched from the Finder, and opened one document and then ‘crashed’ when I loaded another document (just stopped actually, there was no backtrace or anything like that). Now it seems to launch sometimes, sometimes not and reliably bails when I try to open one of my project documents. So in summary see the title of this thread.
I forgot FoldingText 2.2 non appstore (paddle) not the dev version
I narrowed it down I noticed it seemed to open some documents and not others. The distinguishing characteristic was the inclusion of markdown URLs of the form [some text](url) Removing all urls and I can access my project document.
I deleted ~/Library/Application Support/FoldingText and launched FoldingText as usual, it asked me to re-register, which I did, and it’s now working fine, so from my point of view this is resolved as filed as ‘freak accident’
I’m pretty sure the only thing that changed in my system was the OS upgrade. I’m pretty sure I didn’t touch anything else, but it’s working now and I’m happy
Since folding text is my nr 1 app on the mac, this is pretty ‘annoying’.
I don’t see the ~/Library/Application Support/FoldingText folder in my finder (nor in my terminal). And didn’t see any plugins listed in my preferences when folding text opened 1 time directly after install.
Would love to have some suggestions on getting it up and running again.
Sorry for the late response on this, but I looked at some of the earlier messages and the issue seemed to be related to a specific plugin installed, namely the ‘jmk_plugin’. I have investigated this, but unfortunately haven’t been able to reproduce the issue on my end. (more details on my post here).
Since you mention also in your earlier post that you are able to run foldingtext via the dmg, perhaps that also seems to point to the same issue.
There are a few things I’m not sure I understand, and hopefully you can clarify:
You mention that you were able to open FoldingText once, but that plugins were missing. Did you have the jmk_plugin installed previously? Also, what did you do anything specific the first time?
I’m not sure why you’re unable to find the FoldingText Application Support folder on your mac. Perhaps try looking for it in /Library/Application Support/Foldingtext.
Also, try running the following command in the terminal find / -name FoldingText 2>/dev/null to see if that can locate the Application Support folder for you.
Thanks for the response. I’ll try to provide the information:
I have started Foldingtext by starting the FoldingText-2.3 Dev dmg and then double clicking the FoldingText.app icon which is displayed in the installation process. The ‘Info’ window tells me this FoldingText.app starts from ~/Downloads/FoldingText-Dev-2.dmg
When opening the application folder via the folding text file menu, I see an empty plugin directory (~/Library/Application Support/FoldingText/Plug-Ins)
I do remember installing plugins. I don’t know which ones, but I do know for instance that I use the cmd-shift-9 shortcut quite often. In my normal installation, it would popup a textfield where I could type dates in a human friendly way like now, tomorrow, etc. That shortcut doesn’t work at the moment.
In ~/FoldingText I see a plugin directory which is probably where I back up my plugins. This is the list of plugins (no guarantee these are also exactly the plugins running in my normal foldingtext install):
capitalize list items.ftplugin
date and time.ftplugin
filtering word count.ftplugin
toggle empty lines.ftplugin
When opening my installed foldingtext via the commandline (open -F ./FoldingText.app/) or via spotlight or by double clicking a .ft document I consistently get the behaviour described before: I shortly see the foldingtext menu bar, but no document. The menubar closes within seconds.
Since I use FoldingText continuously during the day, I’m absolutely sure this behaviour started directly after the update to macOS 10.12.4 (no problems before - , directly problems after update). I didn’t do anything special the first time, just the usual opening of foldingtext via spotlight.
Hope this helps, if you need more information, let me know!
Thanks for the update. Sorry for not realizing this earlier, but somehow I believed that I was running 10.12.4, but I was in fact running 10.12.3.
I did some debugging, and, while there is no problem with FoldingText loading on 10.12.4, there is indeed a problem with 10.12.4 and the jmk_plugin.
You can resolve the issue by removing the plugin.
For people who like to keep the plugin, you can find any instances of insertBefore in the jmk_panel code and fix it. For example:
Change line: document.body.insertBefore( this.element ); to document.body.insertBefore( this.element, null );
Note that I only added , null within the parameters. That’s all you have to do with any other instances you find in the code.
Meanwhile, I’ve made a quick-fix for FoldingText to allow you to load it without plugins if it encounters a similar issue. Going to test it a bit more and release a dev-version soon with the fix.
The link to the repository doesn’t work; it’s probably a private repo.
In my case, the jmk_panel plugin was located in ~/Library/Containers/com.foldingtext.FoldingText/Data/Library/Application Support/FoldingText/Plug-Ins/jmk_panel.ftplugin (not the ‘default’ Application Support directory, not sure why)
I can also confirm that this fixes the problem the Jamie Kowolski’s Filter and Basic Theme plugins. I opened jmk_panel.js in a text editor and made the change described by mutahhir (I believe it was in 3 different lines). I saved the file, relaunched FT and all was well. THANKS