syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.65k stars 4.89k forks source link

Cannot use stata in org-mode with spacemacs #13879

Closed jia-j-chen closed 4 years ago

jia-j-chen commented 4 years ago

Description :octocat:

Recently, I started using spacemacs and enjoy it very much. For a while, I was able to use Stata in org-mode in spacemacs through ESS. After a recent spacemacs update, I cannot use Stata in org-mode anymore because Stata is obsolete the latest release of ESS. When I try to edit the following code block,

+begin_src stata :tangle yes

webuse auto;

+end_src

I cannot open the clock block and get an error message as follows

org-edit-src-code: No such language mode: stata-mode

I am using the develop branch of spacemacs 0.300 with emacs 27.0.50. And, I output my system information using

uname -a

with the following output

Linux 4.15.0-112-generic #113~16.04.1-Ubuntu x86_64 GNU/Linux

How do I use Stata in org-mode with spacemacs?

Reproduction guide :beetle:

Expected behaviour: :heart: :smile: I expect to open the code block and edit the code block in org-mode.

System Info :computer:

Backtrace :paw_prints:

<<BACKTRACE IF RELEVANT>>
smile13241324 commented 4 years ago

If stata is obsolete in ess it will not longer be supported in org, except that you have a package providing this support instead. Still I have just glanced over your ticket so my comment could be completely wrong.

I think someone working with ESS at least should check whether stata is still part of ESS and if it is not whether its support has moved into a new package.

If the support is gone I don't see a way to add this back except of making a PR upstream.

jia-j-chen commented 4 years ago

@smile13241324 , thank you!

I temporarily solve this problem by downgrading ESS to an earlier version, and it works for now. I take steps as follows.

  1. Remove the ess layer from dotspacemacs-configuration-layers of .spacemacs
  2. Add the following into dotspacemacs-additional-packages of .spacemacs (ess :location (recipe :fetcher git :url "https://github.com/emacs-ess/ESS.git" :commit "14b9a3091916a1cb74dec7336e8461590dfc6a7d" :files ("lisp/*.el" "contrib/lisp/*.el" "doc/dir" "doc/*.texi" "etc")))
  3. Then restart spacemacs (SPC q r).

#7071 and #6575 are helpful references

smile13241324 commented 4 years ago

So this is a dropped feature from ESS? Then I am afraid we cannot do much in Spacemacs, except if you have an alternative package to integrate.

smile13241324 commented 4 years ago

Dropped feature from upstream, must be clarified in the ESS project.