slim-template / ruby-slim.tmbundle

A Textmate / Sublime Text bundle for Slim
http://slim-lang.com/
MIT License
185 stars 46 forks source link

Opening a file crashes SB3 when using ruby-slim #65

Closed Nerian closed 7 years ago

Nerian commented 7 years ago

I am having a weird error:

Opening this file in Sublime Text with ruby-slim.tmbundle installed will crash SB3 every single time.

https://gist.github.com/Nerian/96fe28711bd36cf9e24f8b9fe22ce90e

I nuked the ~/Library/Application Support/Sublime Text 3 folder and only installed this package. And it crashed. It doesn't crash when I open the file without this package.

yojimbosteel commented 7 years ago

I'm having the same problem after update to ST 3124. Only one slim file currently causes crash so I suspect that it's a certain syntax causing the problem. Worked fine on ST 3114.

@Nerian I downloaded your file and I can confirm that it also causes a crash for me.

Also, GIST for my file: https://gist.github.com/yojimbosteel/82c5795a817b4518e6e8e59216cd2fd8

Nerian commented 7 years ago

As @yojimbosteel, it's only one file the one that causes the crash. There must be something wrong with some syntax.

Nerian commented 7 years ago

I have pinpoint the offending code to this line:

javascript:
  default_currency_symbol = "#{ Money::Currency.find(current_space.default_currency).symbol }"

Opening a file with that line of code consistently causes a crash.

yojimbosteel commented 7 years ago

ST 3126 (released today) fixes the problem.

From ST:

Build 3126 Release Date: 23 September 2016

Added Indexing Status to the Help menu to give more information about what the indexer is doing
Fixed a compatibility issue with some third party syntax definitions that include JavaScript.sublime-syntax
Reduced the default number of worker processes used for indexing. This can be manually controlled via the index_workers setting
API: Updated OpenSSL to 1.0.2i
Nerian commented 7 years ago

Sweet. Closing :)