Sublime Forum

Mediawiki bundle

#1

Hi,
I’d be grateful for some advice on how (or if it’s possible) to properly install the Textmate bundle for Mediawiki (github.com/textmate/mediawiki.tmbundle) on ST2. I’ve tried loading it both manually and through the add repository function but cannot get it to work and tinkered with things to no result. Currently I’m getting the following: “Error loading syntax file “Packages/Mediawiki.tmbundle/Syntaxes/Mediawiki.tmLanguage”: Unexpected capture value”
Wikitext is about the limit of my coding knowledge, although I’m managing to write plenty of snippets in ST2 for the wiki project I’m working on. But if I could just get the syntax colouring of the mediawiki bundle to work as well I’d be a very happy bunny.
Any ideas would be much appreciated.

0 Likes

#2

I’m getting the same error, any thoughts sublime community?

0 Likes

#3

In the last commit some changes caused the error…

A quick fix could be to run in the mediawiki.tmbundle folder the command

git checkout 3ccef83114fb2dfd610aa9139c8f657400c176c0
unfortunately I don’t have time to correct the error but maybe someone else could…

0 Likes

#4

Worked great, thanks! Do you know what the problem is, maybe I could fix it if I can find some time.

0 Likes

#5

I think that the bug has been fixed in the tbates repository (github.com/tbates/mediawiki.tmbundle)

0 Likes

#6

Belated thanks to you both for kicking this along; I expected to get an email alert if anyone responded, but maybe I need to enable that somewhere in the forum settings.

In any case I downloaded and reinstalled the mediawiki tmbundle from tbates as suggested but I still see no syntax highlighting. Also I am getting the same error on startup:
That gave me this Error loading syntax file “Packages/mediawiki.tmbundle/Syntaxes/Mediawiki.tmLanguage”: Unexpected capture value

I tried fixing the code in that file, as suggested elsewhere, from < and > to proper < > signs but that seemed to make things worse.
Error loading syntax file “Packages/mediawiki.tmbundle/Syntaxes/Mediawiki.tmLanguage”: Error parsing plist xml: Error reading end tag. In file “Packages/mediawiki.tmbundle/Syntaxes/Mediawiki.tmLanguage”

Could the syntax formatting or encloding be a problem? I also wondered about whether all themes would necessarily support highlighting of MW text–I tried it with a few of the default Sublime ones but without success again.

Can’t help feeling I’m missing something really obvious here, so I’d be grateful for any ideas, no matter how naive they make me look.

Thanks and best

0 Likes

#7

The syntax file of the current version of the texmate bundle give the same error to me, I have installed a previous version and it work fine.

0 Likes

#8

Hey Shanin,
I finally got round to trying your suggestion. I replaced the code of Mediawiki.tmLanguage with this version
github.com/textmate/mediawiki.t … tmLanguage
and Bingo! it did the trick. All working lovely now. Thanks a bundle!

0 Likes