andrewheiss / SublimeStataEnhanced

Plugin that adds support for Stata 11–15 for Sublime Text 2 and 3
56 stars 22 forks source link

Send line/selection to Stata 13 doesn't work with $ signs #12

Closed chrjmeyer closed 10 years ago

chrjmeyer commented 10 years ago

Hi Andrew,

this is a fabulous plug-in, but it seems that any Stata command that includes a $ symbol (used for global macros) doesn't seem to work. The line or selection is correctly sent to the Stata window and runs, but it somehow omits everything right after the $ symbol..

For example,

use "${input}/test.dta", clear

or

use "$dinput/test.dta", clear

executes to

. use "/test.dta", clear

I'm using Stata 13.1/MP under OS X 10.9.2. Maybe I'm just missing something? Anyway, thanks again for the great work!

Christian

andrewheiss commented 10 years ago

Ooh, good find. I'll check it out.

andrewheiss commented 10 years ago

Fixed with https://github.com/andrewheiss/SublimeStataEnhanced/commit/6f236a2a67a3764c98afecdeefec2f4ceff67c55

andrewheiss commented 10 years ago

Package Control should pick up on the update in an hour or so, and then you can update the package from Sublime Text. Thanks for finding this!

chrjmeyer commented 10 years ago

Thank you for the super quick fix -- great work! :)

rangerqu commented 10 years ago

I update to the latest package, but this problem still exists. I am using Stata 12.1/SE and Sublime Text 3.

andrewheiss commented 10 years ago

Sorry about that! The $s only need to be escaped when using AppleScript (for Stata 13), not for Stata 11-12. It should work in version 1.2.6. Thanks for finding this!

rangerqu commented 10 years ago

Thank you!