nboldi / haskell-tools-atom

An Atom editor binding for the Haskell-tools framework
7 stars 2 forks source link

Haskell-Tools does not do anything #29

Open NicoleRauch opened 7 years ago

NicoleRauch commented 7 years ago

I installed Haskell-Tools 0.6.0 into Atom 1.17.2, loaded a Haskell project and added a folder to Haskell-Tools:

image

I then opened a file and started Haskell Tools server. This was indicated in the status bar by "Calculating":

image

When I issued a command, e.g. "Extract binding", I was asked for the new name, and then this indicator changed to "Refactoring", but it never got out of this state, and nothing happened in the editor:

image

What is wrong here? How can I get Haskell-Tools to work in my Atom? Thanks very much in advance!

NicoleRauch commented 7 years ago

BTW I am using Haskell Tools nightly-2017-06-10.

nboldi commented 7 years ago

Does this error only present when trying with a given project? Haskell-tools is known to be unresponsive while refactoring certain packages.

NicoleRauch commented 7 years ago

Hm, not sure if I understand your question correctly... How can I use it without "a given project"?

Or do you mean "one specific project"? I tried it with two different projects, one of which is very small (3 Haskell files).

nboldi commented 7 years ago

Yes, that was what I meant. Could you send me the smallest example with instructions to reproduce the error?

NicoleRauch commented 7 years ago

I tried to reproduce it with just a simple file containing

module Main where

f = 7

where it actually got to "Ready" :-)

But when I tried to rename the binding, I got the error message "Unfortunately the server crashed. Restarting."

nboldi commented 7 years ago

Please check the error message related to the crash. You can open the Atom log by View/Developer/Toggle Developer View. The Haskell-tools errors will be found in the Atom log prefixed with ht-daemon.

It is possible that another folder had been added but the client lost track of it. Please try the following:

  1. Start Atom
  2. Reset the Haskell-tools settings: Haskell/Factory Reset
  3. Add the folder to Haskell-tools with the one module you would like to refactor.
  4. Start the server
  5. Try the refactoring