aziz / SublimeSyntaxConvertor

Converts tmLanguage to sublime-syntax
MIT License
39 stars 6 forks source link

Error when running commandline script #3

Open chtenb opened 2 years ago

chtenb commented 2 years ago

Hello

I tried running this gem as stated in the readme, but got the following error.

../syntaxes$ sublime_syntax_convertor purescript.json 
Traceback (most recent call last):
        3: from /usr/local/bin/sublime_syntax_convertor:23:in `<main>'
        2: from /usr/local/bin/sublime_syntax_convertor:23:in `load'
        1: from /var/lib/gems/2.7.0/gems/sublime_syntax_convertor-0.1.0/bin/sublime_syntax_convertor:3:in `<top (required)>'
/var/lib/gems/2.7.0/gems/sublime_syntax_convertor-0.1.0/bin/sublime_syntax_convertor:3:in `require_relative': cannot load such file -- /var/lib/gems/2.7.0/gems/sublime_syntax_convertor-0.1.0/lib/sublime_syntax_convertor (LoadError)

The grammar I'm trying to convert is from https://github.com/nwolverson/vscode-language-purescript

0x326 commented 2 years ago

I get that error too after installing it globally with gem install sublime_syntax_convertor. As a quick fix, this worked for me:

git clone https://github.com/aziz/SublimeSyntaxConvertor
cd SublimeSyntaxConvertor/
./bin/sublime_syntax_convertor purescript.json