- git init
- git remote add origin https://github.com/haskell/haskell-ide-engine.git
- git pull origin master
+ - git checkout f5c903f31ef5a7ee75984faf2e6ccc0a06ab23eb
- git submodule init
- git submodule sync
- git submodule update --init
- stack --no-terminal --skip-ghc-check -j2 install
- stack exec hoogle generate
- cd $TRAVIS_BUILD_DIR
- - hie --version
- npm update
- npm i -g javascript-typescript-langserver
-- | The configuration used in 'Language.Haskell.LSP.Test.runSession'.
defaultConfig :: SessionConfig
-defaultConfig = SessionConfig 60 False True True Nothing
+defaultConfig = SessionConfig 60 False False True Nothing
instance Default SessionConfig where
def = defaultConfig
describe "getCompletions" $
it "works" $ runSession "hie" def "test/data/renamePass" $ do
doc <- openDoc "Desktop/simple.hs" "haskell"
+
+ -- wait for module to be loaded
+ skipMany loggingNotification
+ noDiagnostics
+ noDiagnostics
+
item:_ <- getCompletions doc (Position 5 5)
liftIO $ do
item ^. label `shouldBe` "interactWithUser"