Sublime Forum

Problem with .tmLanguage...?

#1

Hi all. I have a problem.

Iā€™m using the Clojure .tmLanguage available at GitHub here (not mine, just using it). However, I find that it freezes Sublime, whenever I type in the following:
(defn
This is as far as I can type, and then it freezes up. I donā€™t know what the issue is, and have tried the .tmLanguage in e-texteditor, where it works just fine. Are there any things I could be doing wrong, does the language grammar need a little tweaking for Sublime?

Thanks for any help!

0 Likes

#2

Itā€™s working ok for me, can you let me know which version of Clojure.tmLanguage youā€™re using (the latest one from github?), and which version of Sublime Text youā€™re using.

0 Likes

#3

Hello!

Iā€™m having the same problem with Sublime Text 2 Alpha, Build 2051, and the latest version of Clojure.tmLanguage from this link http://github.com/vishnugopal/clojure-tmbundle/blob/master/Syntaxes/Clojure.tmLanguage (Here you can see that the file was last modified on December 14, 2008). If I try to open a .clj file which has any function definition like ā€œ(defn dummy [params] ā€¦ )ā€, Sublime Text freezes. And if I write "(defn " it also freezes.
Why could this be happening?

I have tried using another .tmLanguage file I have found here, which appears to be more recent: was last modified on September 29, 2010. But it also freezes Sublime whenever I write "(defn ".

Iā€™m trying to help and fix this myself by editing the .tmLanguage file, but everything Iā€™ve tried has not worked.
I donā€™t know what to do.
Anyone has any idea?
Thank you very much for your help!

0 Likes

#4

Hi!
I have just tested this with Sublime Text 1.4 (Build 2010-10-13) and Sublime Text 2 (Build 2054), and the problem is still there. :cry:
Writing "(defn " hangs boths versions of the program.

Iā€™ll keep investigatingā€¦ (Āæcould it be a problem with the syntax .tmLanguage file?).

Any help will be very appreciated! :smiley:
Thanks.

0 Likes

#5

I know this is an old thread, but came across to it while searching for a solution to this problem to no avail.
Iā€™ve fixed the Var creation bugs (also defn, defmacro, defmulti, defmacro, etc.) and started a project at github:

github.com/malfario/sublime-clojure

Cheers!

0 Likes