Sublime Forum

Solved: Sublime Text 3 won´t tell me which is my error

#1

I build a perl scrip in sublime text 3 windows 7 that contains and error a line without a semicolon ; and it wont run, sublime text 3 just write “[Finished in 0.2s]”. But when I run the script using the cmd it writes the error and the line where the error is located.


How can I make sublime text 3 to tell me where the error is at???

Thanks in advance.

0 Likes

#2

Press ctrl+shift+b and choose the correct builder. Or just to use the menu:

Does it compile and run correctly when there are no errors?

0 Likes

#3

[quote=“addons_zz, post:2, topic:24847, full:true”]
Press ctrl+shift+b and choose the correct builder. Or just to use the menu:[/quote]

It gives the same result.

Yes. when there are no error all the scripts run smoothly.

0 Likes

#4

Sublime Text 3 does not ship with a build system in it’s default Perl package. Can you indicate what package you’re using that provided the build, or what build system you created yourself to do this?

Without seeing what it’s trying to do it’s hard to say why it might be going wrong.

0 Likes

#5

this is the code that I put in the Perl.sublime-build file

{
        "cmd": ["perl", "-w", "$file"],
        "file_regex": ".* at (.*) line ([0-9]*)",
        "selector": "source.perl"
}

.

it works perfectly when there are not errors in the sintaxis

0 Likes

#6

I finded what causes this problem.

It is the handling of file paths since my script is conteined in a directory named:
C:\Users\jarias\Desktop\Análisis Demanda Firme it looks like the accent mark is not well handled in directory paths by ST2 and ST3

I changeg the directory name and it prompted the error and the line where it is located.

Thanks

1 Like