Sublime Forum

Cannot build syntax files anymore

#1

I press CMD+B or go to Tools / Build on Syntax.YAML-tmLanguage but nothing happens (Syntax.tmLanguage is not updated/created)…

Any ideas why would that be?

Somewhat related, also a problem: I cannot install PackageDev (issue - wanted to try if building a syntax file would work via this package.

Thank you for help… I have ST 3109 …

0 Likes

#2

If I understand right, you have named your file Syntax.YAML-tmLanguage? so is it a tmLanguage (XML) file or a sublime-syntax (YAML) file? The extension is important!

0 Likes

#3

I get this in console:

reloading settings Packages/User/Fetch.sublime-settings
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 551, in run_
    return self.run(**args)
  File "/Users/david/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/sublimerepl_build_system_hack.py", line 16, in run
    RESULTS.put(cmd)
AttributeError: 'NoneType' object has no attribute 'put'

I have YAML format, I renamed the file to Solidity.YAML but it’s the same problem…

I then moved sublimerepl_build_system_hack.py outside and error is gone but console says: “No build system”.

0 Likes

#4

rename it Solidity.sublime-syntax and try again

0 Likes

#5

OK, I get these options… none seems useful…

and isn’t sublime-syntax the new format? I have the old one… and this building worked before updating ST after a few months…

0 Likes

#6

PS: if you want to try on your setup:
Solidity.YAML-tmLanguage

0 Likes

#7

I’m confused - what are you trying to achieve by building a sublime-syntax file if not to run some form of syntax test?

0 Likes

#8

oh nevermind, I think I understand - you have neither a tmLanguage file or a sublime-syntax file and want to convert it to one of them

0 Likes

#9

Yes, trying to build this as I did before when everything worked…

0 Likes

#10

I installed PackageDev and it works for me - here is the build output when using Tools -> Build With... -> Convert to... - Property List:

Input type not specified, auto-detecting... YAML

Parsing YAML... (C:\tmp\Solidity.YAML-tmLanguage)
Writing Property List... (C:\tmp\Solidity.tmLanguage)
[Finished in 0.021s]
0 Likes

#11

Reinstall of PackageDev helped!!

Thank you for trying, I got the idea to try to reinstall this package from our conversation…

0 Likes

#12

I think you had the wrong build system selected, most likely something from SublimeREPL. The PackageDev build system you would want is named “Convert to …”, but setting it to “Automatic” should work just fine.

0 Likes