-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange Editor Response... #23
Comments
Experimented a little bit more. It appears that copying text containing a line with a markdown # heading (any level) that ends with a carriage return (with another line of text following so that the CR is observed) renders the editor unusable... |
At the moment, the following text:
Seems to not break FoldingText. Can you give me a snippet that does? Also, please make sure you're on the latest version of FoldingText (2.1.2 at the time of writing this) |
Thanks, Mutahir. File attached that I consistently have problems with. Text is copied from a Pages document I was sent that I wanted to work with in FT. When I open it just now, the leading #s are not recognised, and the cursor won't move. Let me know if there's something I should do to "sanitise" the copied text first before pasting it in. Oh, and I'm still on 2.1.1. Tried updating to 2.1.2 and I lost the ability to work with my main file for no apparent reason, so I'm a little wary of attempting the update again. |
Updated to 2.1.2 again. This file still has the same issues on my installation. |
Every now and then, FT does something in the UI that feels buggy. Sometimes quitting and restarting fixes the issue, sometimes it doesn't. A specific case, most recently, came up when I tried to copy text from a Pages document into a FoldingText document. I copied the text over, then tried to apply some markdown— in the first instance, add a # heading to an existing line. The # appeared, but the line wasn't recognised as a heading. And from then on, editing the document became impossible— the cursor wouldn't respond, double clicking at different points in the text would delete/hide chunks of text and more.
Other open windws are unaffected by this behaviour
I quit out of FT, removed all plugins and emptied my user.less of any modifications, and tried again. Same error.
I opened up an SDK window, copied the text in and tried the same operation. Got the following errors:
[Error] TypeError: null is not an object (evaluating 'match')
detectAndHighlightAtxHeading - markdowntaxonomy.js:368
classify - markdowntaxonomy.js:763
classifyWorker - classifier.js:440
ensureClassified - classifer.js: 61
ensureClassified - tree.js:1095
(anonymous function) - editor.js:1420
signal - codemorror.js:8420
endOperation - codemirror.js:3150
runInOp - codemirror.js:3294
poll - codemirror.js:1521
(anonymous function) - codemirror.js:1319
[Error] TypeError: null is not an object (evaluating 'match')
detectAndHighlightAtxHeading - markdowntaxonomy.js:368
classify - markdowntaxonomy.js:763
classifyWorker - classifier.js:440
classifyWorker
My best guess is that there's a character that's being misinterpreted, but I can't see anything that should be a problem. I've also tried to copy and paste via different applications that I assumed would strip out any invisible characters (NVAlt, Sublime Text) before pasting the text into an FT document, to no effect.
The text was updated successfully, but these errors were encountered: