Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Atom Text Editor with Stata

    Does any one have a way to send a do file or selection from the Atom text editor to stata?
    Thank you, Andy

  • #2
    Not that I'm aware, but there are a few alternatives for Sublime Text 2/3 depending on your OS

    Comment


    • #3
      Ya, i"m trying to avoid the $70 for sublime. If there was method for the free and open source Atom I think it would be a nice advantage to the community...

      Thank you for the suggestion though. Andy

      Comment


      • #4
        Note that there is no time limit in the evaluation version (which is exactly the same as the full version except with the nag-box every 20 saves).
        I emailed the author a while ago to ask for academic pricing and he just told me to use the evaluation one and not worry about it.

        Comment


        • #5
          I just realized you are working on the StataEditor project for sublime, which looks awesome. Do you know if there is any work being done to port that project over to OS X? Thank you!

          Comment


          • #6
            Are you talking about this http://sergiocorreia.github.io/StataEditor/ ? (my fork of Mattias Nordin's great work). So far I've kept the project for myself only, but from the last month using it, it seems to work quite well (sadly, for now it's on Windows only).

            It shouldn't be too hard to port to OSX (only a tiny part of the code is os-related), but we would need someone with Mac experience for this. In the meantime, I think Andrew Wheiss's SublimeStataEnhanced could be useful for you (as it's mostly Mac oriented).

            Cheers,
            S
            Last edited by Sergio Correia; 08 Dec 2014, 14:48.

            Comment


            • #7
              There seems to be some traction with Atom <> Stata integration:

              - for Mac there is stata-exec package available
              - script package lists Stata as supported

              Has anybody tinkered with these things and made it work?

              Comment


              • #8
                I would also really like to see if someone has had success with the atom script. I will try playing around with it though I've heard a lot of bad things about atom (can get slow and buggy over time).

                I'm going to try and see if I can figure out how to use the stata-exec package code to work with vs code (make an extension) as that is my preferred text editor. This will be a longer term goal though as I am not a programmer. I'll update the thread if I have any success.

                Also, if anyone who knows anything about programming wants to help let me know!

                Comment


                • #9
                  I had a quick test of Atom on my Ubuntu laptop with Stata 14. stata-exec is Mac only so I havent tested it.

                  Results: syntax works nicely and script can execute the whole script. However run-by-lines does not seem to work and returns error :/

                  Click image for larger version

Name:	stata-atom.png
Views:	1
Size:	76.7 KB
ID:	1397979


                  Comment


                  • #10
                    Shameless plug for my projects to enhance working with Stata in Atom:

                    I wrote a new syntax highlighter for Stata for Atom. This is now the default stata-language package on Atom's package manager. If you'd previously installed stata-language, Atom will prompt you for an update.
                    It highlights:
                    • System commands, functions, and function arguments
                    • Macros, both global and local
                      • Accurately colors nested macros and escaped macros in strings when you want the inner macro to evaluate at runtime
                    • Regular expressions
                    Other nice features:
                    • Autocomplete for built-in commands and functions, and for your macros as you write them.
                    • Alerts you if your variable name is illegal, i.e. if your variable name is more than 32 chars, starts with a number, or is a reserved name.
                    • Alerts you if you have any text other than } on a line ending a foreach/forvalues/if/else command
                    • Local macro back tick autocompletion. When you write a `, Atom automatically fills in a ' after your cursor
                    I'm working on porting this package to Visual Studio Code and to Sublime Text.

                    Also, for Radoslaw, who was looking to run Stata code from Atom on Ubuntu, you can use the Autokey automation utility to run code in a GUI version of Stata. First install autokey.
                    Then download stata-autokey, my collection of scripts, and put them in autokey's source directory. I can press ctrl-r and run lines smoothly in Stata.

                    Best,
                    Kyle

                    Comment


                    • #11
                      Surely off-target there but, I hope that what follows may be considered a general advice: do not share the serial number of your license!
                      Kind regards,
                      Carlo
                      (Stata 19.0)

                      Comment

                      Working...
                      X