haskelly-dev / Haskelly

Haskelly is a VS Code extension that provides complete support for casual and expert Haskell development.
https://marketplace.visualstudio.com/items?itemName=UCL.haskelly
GNU General Public License v3.0
152 stars 17 forks source link

Code competion doesn't work on osx serra. #5

Closed AurevoirXavier closed 7 years ago

AurevoirXavier commented 7 years ago

I already installed intero, but it doesn't work.

martrik commented 7 years ago

@AurevoirXavier Are you working on a Stack project?

AurevoirXavier commented 7 years ago

@martrik I just create a xx.hs on my desktop.

martrik commented 7 years ago

Can you try running these commands in the terminal and tell us if you get any error?

  1. Cd to Desktop: cd ~/Desktop
  2. Create new .hs file: touch test.hs
  3. Load Stack with Intero: stack ghci --with-ghc intero
  4. Load the file into GHCi: :l test.hs
  5. Request completions with intero: :complete-at /Users/{username}/Desktop/test.hs 0 0 0 0

If running 5 provides you with a list of completions like the one attached, Haskelly should work fine.

screen shot 2017-01-15 at 13 58 48
AurevoirXavier commented 7 years ago

@martrik

image

still can't work.

AurevoirXavier commented 7 years ago

image

martrik commented 7 years ago

OK I know what's causing the bug. You have Prelude configured to show λ> instead of Main*>. This was actually a known bug which was closed since we thought it had been fixed. Give us one hour and we'll release an update which fixes the issue. Thanks for your answer.

AurevoirXavier commented 7 years ago

@martrik when I work on archlinux, I use the same configuration. It can work correctly.

martrik commented 7 years ago

Let us know if the new version 0.2.6 solves the issue :)

AurevoirXavier commented 7 years ago

image

I can't update it.

martrik commented 7 years ago

Have you tried uninstalling and installing it again? If that doesn't work maybe you'll have to do the same for VS Code.

AurevoirXavier commented 7 years ago

It(version 0.2.7) works after I restart my computer. Your help was greatly appreciated. 👍

AurevoirXavier commented 7 years ago

By the way, i think many people use 'Haskelly' and 'Haskell Syntax Highlighting' at the same time. In this case, I suggest you to add a configuration that user can turn on or turn off auto completing for some function keyword likes 'foldr' 'map'... : )

martrik commented 7 years ago

You mean because of the snippets right? Do you think that I'd be nice to have them also in Haskelly? Either way, I think it makes sense to add a configuration to disable the code suggestions for the ones that snippets are provided. Thanks for the idea!

AurevoirXavier commented 7 years ago

You‘d better not to add it in 'Haskelly' completely, because some people(those who don't like 'Haskell Syntax Highlighting') don't like 'snippets'. If you add it, setting up a configuration that would be a good idea. So I can uninstall 'Haskell Syntax Highlighting', and those people can turn 'snippets' off. : D

martrik commented 7 years ago

Thanks for the insight! We will add snippets in the next release (0.3.0) and they will be configurable :)

AurevoirXavier commented 7 years ago

Looking forward your good news. 👍