peta / turtle.tmbundle

Totally awesome Textmate bundle for Turtle – the terse RDF Triple Language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bundle causing TextMate to hang when editing turtle files

drunix opened this issue · comments

Every time I try to edit a turtle file with this bundle installed, TextMate will hang as soon as I edit the file. This requires me to Force Quit TextMate.

My TextMate is version is 1.5.11 (1635)

Not good. I developed and tested the bundle solely on TextMate 2 so I have no experience about potential problems when used with 1.x. But I have a reasonable suspicion ... the language grammar is pretty complex because I tried to stick close to the Turtle parser grammar spec ... because it was the first time I wrote a language grammar for TextMate I unfortunately recognised too late, that this was no good decision (higher complexity => more workload on code lexer). In version 2, TextMate has undergone some major changes; one of them is the way how documents are parsed and syntax highlighted what results in an huge performance boost that easily handles the grammar's complexity. Not so with TM1.

I am using the Turtle bundle on a regular basis with TM2 and never encountered parser-related problems/freezes ... even with documents which are several MB in size. The easiest way for you to use Turtle.tmBundle might be to switch to TM2. (You will love it, promised! ;)

I already have "Rewrite Turtle grammar" on my ToDo list for quite some time (I intent to reuse the grammar code for language plugins for Ace and CodeMirror) ... but as said, the bundle works for me so I don't think that this will happen anytime soon.

Thanks for the advice. I installed TextMate 2, and it's working much better.

On Jun 13, 2013, at 5:20 PM, Peter Geil notifications@github.com wrote:

Not good. I developed and tested the bundle solely on TextMate 2 so I have no experience about potential problems when used with 1.x. But I have a reasonable suspicion ... the language grammar is pretty complex because I tried to stick close to the Turtle parser grammar spec ... because it was the first time I wrote a language grammar for TextMate I unfortunately recognised too late, that this was no good decision (higher complexity => more workload on code lexer). In version 2, TextMate has undergone some major changes; one of them is the way how documents are parsed and syntax highlighted what results in an huge performance boost that easily handles the grammar's complexity. Not so with TM1.

I am using the Turtle bundle on a regular basis with TM2 and never encountered parser-related problems/freezes ... even with documents which are several MB in size. The easiest way for you to use Turtle.tmBundle might be to switch to TM2. (You will love it, promised! ;)

I already have "Rewrite Turtle grammar" on my ToDo list for quite some time (I intent to reuse the grammar code for language plugins for Ace and CodeMirror) ... but as said, the bundle works for me so I don't think that this will happen anytime soon.


Reply to this email directly or view it on GitHub.

Dru Henke, Executive Director
NVISIA www.nvisia.com
everything connects...

Office: 312.985.8100
Mobile: 312.493.4179

Please let me know if you find the bundle useful and how you would improve it.

Thanks Peter! Just getting started with it.

Dru Henke, Executive Director
NVISIA www.nvisia.com
everything connects...

Office: 312.985.8100
Mobile: 312.493.4179

On Jun 14, 2013, at 7:23 PM, Peter Geil notifications@github.com wrote:

Please let me know if you find the bundle useful and how you would improve it.


Reply to this email directly or view it on GitHub.