Sublime Forum

Cannot find example plugins mentioned in docs

#1

https://www.sublimetext.com/docs/3/api_reference.html#sublime.Phantom mentions:

Packages/Default/exec.py Uses phantoms to display errors inline

however I can’t find that file (no hyperlink)

a google search brings me here: https://github.com/mgonto/sublime-config/blob/master/Packages/Default/exec.py
but this makes no mention of phantoms

0 Likes

#2

use https://packagecontrol.io/packages/PackageResourceViewer to open that file rather than looking at a random GitHub repo that contains a copy of an extremely old version of that file

1 Like

#3

EDIT: I found the example packages, they are zipped into the file Default.sublime-package, which is under C:\Program Files\Sublime Text 3\Packages on Windows. Under linux (.deb installer) its under /opt/sublime_text/Packages. The sublime-package file can be unzipped with a decompressor such as 7z. Please ignore my previous comments below.

Hi, I have the same problem. There is a list of plugins in the docs, such as exec.py. But I can’t find the examples in my installation, either under %APPDATA% nor program files. The example plugins aren’t to be found on the package control site either. Anyone know where to find some simple examples?

The documentation should be updated if the example plugins aren’t distributed any more. This is what the docs say:

Several pre-made plugins come with Sublime Text, you can find them in the Default package:

* Packages/Default/exec.py Uses phantoms to display errors inline
* Packages/Default/font.py Shows how to work with settings
* Packages/Default/goto_line.py Prompts the user for input, then updates the selection
* Packages/Default/mark.py Uses add_regions() to add an icon to the gutter
* Packages/Default/show_scope_name.py Uses a popup to show the scope names at the caret
* Packages/Default/arithmetic.py Accepts an input from the user when run via the Command Palette
0 Likes

#4

Note that you can also use View Package File from the command palette to find and open the default plugins. That will find and open them from within the sublime-package without regard for what OS you’re on, where you’ve installed Sublime, or what third party packages or software that you have installed.

0 Likes