Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3 with Stata (Enhanced) - opens new instance of Stata for every command

I'm a completely new Sublime Text user. I'm trying to make the Stata (Enhanced) plugin work for Sublime Text 3. I'm on a W7 machine.

I've installed the plugin and edited the Stata Enhanced (windows).sublime-settings file to look like this, as instructed:

{ "stata_version": 13, "stata_name": "C:/Program Files (x86)/Stata13/StataMP-64.exe" }

and I've also changed Stata's preferences so that Stata runs do-files automagically, also as instructed.

And it works: with Ctrl+Enter Stata runs do-files from Sublime Text. However, every time I run a command, it opens a new instance of Stata. That's very impractical, but I don't know what to do about it. The readme doesn't mention this problem and haven't been able to find a solution on the net. So I'm at a loss: do you know what to do about it?

like image 534
emilBeBri Avatar asked Aug 15 '14 12:08

emilBeBri


1 Answers

As indicated above, this may not be possible using Stata Enhanced. However, you can try out the StataEditor package which I made for Windows and Sublime Text 3. Using that package, the same Stata instance is used all the time as long as Sublime Text is open. It is available from Package Control: https://sublime.wbond.net/packages/StataEditor. One advantage of that package (for Windows users) is that it uses Stata automation (http://www.stata.com/automation/) to send code directly to Stata.

like image 78
matnor Avatar answered Nov 02 '22 23:11

matnor