atom-haskell / ide-haskell

Haskell IDE plugin for Atom editor
https://atom.io/packages/ide-haskell
Other
232 stars 30 forks source link

Opened Atom on a new folder --> "Haskell IDE" gone from the main menu #229

Closed Muzietto closed 3 years ago

Muzietto commented 5 years ago

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:

How can I ensure that opening Atom on any folder will enable the Haskell IDE functionalities?

lierdakil commented 5 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.

bjornbm commented 5 years ago

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.