jonschlinkert / sublime-markdown-extended

Top 100 Sublime Text plugin! Markdown syntax highlighter for Sublime Text, with extended support for GFM fenced code blocks, with language-specific syntax highlighting. YAML Front Matter. Works with ST2/ST3. Goes great with Assemble.
https://github.com/jonschlinkert
MIT License
660 stars 96 forks source link

sublime-markdown-extended started taking 100% cpu #7

Closed Arkkimaagi closed 11 years ago

Arkkimaagi commented 11 years ago

I have no idea what happened, I have been using the addon for days and enjoying it. Now if I enable it and open any markdown file, it starts taking loads of CPU and I have to kill Sublime Text.

If I disable the package (using package manager, as I installed trough it using the "add repositiory" feature), everything goes back to normal, but I nolonger have the cool features of this addon.

Is there any way to debug what's going on?

jonschlinkert commented 11 years ago

You too!? Yeah it just started doing that last night for me, I can only assume that some other update to Sublime Text or a package is conflicting. I'm not sure how to debug, I hope we can get this figured out because I also want to be able to use it. Maybe I'll start from scratch and create a proper package...

jonschlinkert commented 11 years ago

I'm still having this issue, did you ever notice what was causing it? I'm about to try to reconstruct this from scratch.

Arkkimaagi commented 11 years ago

After fighting with it for half an hour I gave up and kinda hoped that you'd find the solution as I seriously have no idea what's going on. :)

So, currently I'm trying to survive without it. :(

jonschlinkert commented 11 years ago

K, I'll try to create a new package. What made this challenging to create is that I'm using ST 3 now, and the package for "package development" isn't working in ST 3 yet. So I had to improvise. I wanted to avoid re-installing ST2 just to create a package, but I guess I will...

jonschlinkert commented 11 years ago

currently I'm trying to survive without it. :(

Indeed lol, it is nice to have.

jonschlinkert commented 11 years ago

Okay, this should be fixed. I split out the Monokai enhancements from the markdown enhancements. Monokai Extended is now in a separate repo https://github.com/jonschlinkert/sublime-monokai-extended

I'm working on package control next

jonschlinkert commented 11 years ago

I just had this issue again. It's strange, I thought I tracked it down, but apparently not. There is a pattern to it, I just can't put my hand on it yet so if anyone else figures out what is triggering this please let me know and I'll fix it ASAP.

Arkkimaagi commented 11 years ago

If I had any idea what's going on, or even how to debug it..

jonschlinkert commented 11 years ago

should be fixed, please remove these from your packages and re-add them. let me know if you experience any more issues. Also, the readme has some info about whitespace that might be useful

Arkkimaagi commented 11 years ago

So, you found the cause?

jonschlinkert commented 11 years ago

Yes, I believe it was bad regex for capturing URI's. It was unnecessary so I removed it, and it hasn't caused any problems since.