Closed Muzietto closed 3 years ago
ide-haskell
and friends are not activated until you open a Haskell or Cabal file in the editor. This is done to conserve resources when you don't want a Haskell IDE running. Atom does not offer a straightforward ability to write custom activation triggers, hence it activates on grammar usage.
Hopefully this explains things.
It may ber worth noting that nowadays stack new
does not (I believe) create a Cabal file. I generates only a package.yaml
file which in turn is used to generate a Cabal file when you use stack build
(and/or other commands).
On 2019-07-23, at 18:16, Nikolay Yakimov notifications@github.com wrote:
ide-haskell and friends are not activated until you open a Haskell or Cabal file in the editor. This is done to conserve resources when you don't want a Haskell IDE running. Atom does not offer a straightforward ability to write custom activation triggers, hence it activates on grammar usage.
Hopefully this explains things.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/atom-haskell/ide-haskell/issues/229?email_source=notifications&email_token=AAAJDFDMJHB3DWD653IRCTDQA4VHBA5CNFSM4IGBNVCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2TUZIY#issuecomment-514280611, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAJDFB2E7Q2C63PDK4AMGDQA4VHBANCNFSM4IGBNVCA.
I am a web developer and I use Atom since a few years; for my pet Haskell projects I used it only as dumb file editor, while all the rest of the work done from the shell. Now I am trying for the first time ide-haskell with all its related packages, in order to have a more straightforward development.
Unfortunately I have a major issue:
I installed all the needed packages with Atom opened on the folder of an older Haskell project. Everything went fine and the "Haskell IDE" item appears in the Atom menu. Every ide-haskell feature seems to be working.
If I open Atom on the folder of a new Haskell project I created this morning with 'stack new', the "Haskell IDE" item has disappeared from the Atom menu. No functionality is available. The packages are still installed, but apparently they do no nothing
How can I ensure that opening Atom on any folder will enable the Haskell IDE functionalities?