honekamp.net

Elusive Markdown Package

For some reason, a popup-window complaining about the lack of an available Markdown package started to show up on every launch of Sublime Text:

This is strange because the Markdown package is a stock package delivered with Sublime Text itself. It is hard to see which other package might have messed with my installation to make the Markdown package unable to parse.

While trying to hunt down the cause of this issue, I found out that there was no Markdown package whatsoever available in either of the following folders:

~/Library/Application Support/Sublime Text 3/Packages
~/Library/Application Support/Sublime Text 3/Installed Packages

In my particular case, the Markdown package is on the list of ignored packages anyway in order to fulfill a requirement for running the far more capable Markdown Editing package:

"ignored_packages":
[
	"Vintage",
	"Markdown"
],

But still, Sublime Text is complaining about the missing package and will do so on the occasion of every single launch.

It was obvious that to make the error message go away I’d have to provide the package. But how? See, it’s missing.

I started digging into the contents of the Sublime Text.app itself and sure enough, I stumbled upon the missing package

/Applications/Sublime Text.app/Contents/Packages/Markdown.sublime-package

So, the fix would require me to copy this to the “Installed Packages” folder, right?

Unfortunately, that does not work. What did work, however, is to rename the file Markdown.sublime-package to Markdown.zip, and put the contents of the archive into

~/Library/Application Support/Sublime Text 3/Packages

According to the Sublime Text Unofficial Documentation, the classification of packages is arbitrary and should therefore not really impact the behavior as long as the package format in the respective folder is correct.

Fortunately, I don’t really care about the stock Markdown package as long as Sublime stops throwing error messages at me. As for this aspect, my mission is completed.

Comments