Sublime Forum

Build system automatically dosnot work well

#1

I want to build a perl script,when i choice a build system manual, it work well,but when I choice it automatically it said No Build System . here is my build system json

{
	"cmd": ["perl", "$file"],
	"selector": "source.pl"
}
0 Likes

#2

The scope selector for Perl is source.perl, not source.pl, assuming that you’re using the built in Perl syntax.

You can determine the top level selector for a file by opening one and using Tools > Developer > Show Scope Name from the menu (or its associated key binding, which is visible on that menu item).

0 Likes

#3

thanks for your repaly
I change source.pl to source.perl it work well automatically
My sublime version is 3,I cannot find Developer option in Tools Menu, and where i can find the relationship between file extension and sublime selector?
when i build object-c file,i find the problem first.

thanks

0 Likes

#4

The default key binding for Windows and Linux is Ctrl+Alt+Shift+P while for MacOS it is Ctrl+Shift+P, so those might work for you.

Do you have the most recent version of Sublime Text 3 (build 3126)?

0 Likes

#5

oh,I see
file selector is show on the status bar,
object-c source file `s scope name is source.objc

thanks

0 Likes