SublimeWiki icon indicating copy to clipboard operation
SublimeWiki copied to clipboard

Failed to open file "Packages/SublimeWiki/SublimeWiki.tmlLanguage"

Open Timst opened this issue 14 years ago • 6 comments

Hello ! I just installed SublimeWiki via Will Bond's package control, and got this error when I tried to follow a WikiWord :

"Error loading syntax file "Packages/SublimeWiki/SublimeWiki.tmLanguage": Error parsing plist xml: Failed to open file In file "Packages/SublimeWiki/SublimeWiki.tmLanguage""

It indeed seems that the syntax file isn't here, since nothing happens when I write test for instance.

Timst avatar May 05 '12 12:05 Timst

Okay, I see what's happening. It's looking for things in Packages/SublimeWiki/... but Package Manager is putting them in Packages/Wiki/... which makes sense because that's what I told it to do. I'm updating the code to work where package manager puts it, should only take a few more minutes...

PogiNate avatar May 05 '12 17:05 PogiNate

That's what I thought too, but simply renaming the folder didn't work out. Thanks for the fix !

Timst avatar May 05 '12 17:05 Timst

Okay, the fix is in the repo now. My QA department (me) says it looks good so far.

PogiNate avatar May 05 '12 17:05 PogiNate

Upgraded it. So, is it normal that putting formatting (**, __, etc.) around the text change nothing ? Also, it save files with .wiki as a default extension now instead of sublime-wiki, is it alright ?

Timst avatar May 05 '12 18:05 Timst

I changed the default extension for uniformity's sake; it works on both types of files.

As for the formatting issue, a lot of themes don't include highlighting rules for styling markup.bold and markup.italic . I had to hand-edit my current theme to include rules for those; I'll create a snippet to make it easier to do. it's a little bit of XML but it's not too scary.

PogiNate avatar May 06 '12 03:05 PogiNate

Alright, I (sort of, the italics and urls don't work) managed to make it work. Two things tough : you should probably indicate where the theme's files are stored, and (in my theme at least, Espresso Libre), the snippets has to be inserted in the tag, not in a one (especially since they are everywhere).

Timst avatar May 06 '12 09:05 Timst