Sublime Forum

"The current file can not be used for testing"

#1

Hi, I am a beginner of Sublime Text 3 and using it to compile latex or do stata codes using latextools and stata enhanced.

I installed ST3 (3.1.1. Build 3176) and latextools to my mac (10.14.4) a few weeks ago and was using it nicely. However, it suddenly has stopped working by making the following error when I build the latex file.

The current file can not be used for testing since it is not loaded by Sublime Text.
This is usually caused by a file not located in, or symlinked to, the Packages folder.

This is weird because my package folder is in local foder, not something like symlinked or dropbox folder. (/Users/myname/Library/Application Support/Sublime Text 3/Packages/LaTeXTools)

I also try to build other codes for stata using stata enhanced, which was working until a few days ago, and now it also causes the same error. Therefore, the problem seems not specific to latextools, more general one.

Could you help me to fix this error?

0 Likes

#2

sounds like your build system is set incorrectly. Try the Tools menu -> Build System -> Automatic, then try to build your file again

1 Like

#3

Thanks a lot, it works now! I cannot think of the reason why it was working and suddenly stop working though.

0 Likes