Commit Graph

210 Commits

Author SHA1 Message Date
Olle Fredriksson
2312cba385 Add PackageImport test 2019-09-12 09:39:13 +02:00
Olle Fredriksson
d859af2102 Handle PackageImporting "this"
"this" means that we only look for the module in the current package, so
we only look for a file in that case.

Fixes https://github.com/digital-asset/ghcide/issues/37.
2019-09-11 21:02:18 +02:00
Robin Krom
f66c886217
Merge pull request #36 from digital-asset/vim_coc_instructions
Added setup instructions for vim/coc to README
2019-09-11 16:04:47 +02:00
Robin Krom
3589042a3f Added setup instructions for vim/coc to README
Instructions to setup https://github.com/neoclide/coc.nvim and neovim
together with ghcide.
2019-09-11 15:45:15 +02:00
Moritz Kiefer
1760ef14c3
Merge pull request #35 from digital-asset/cabal-metadata
Update cabal file metadata to point to the new repo
2019-09-11 15:06:04 +02:00
Moritz Kiefer
2505054ca8 Remove stack.yaml.lock again since it interacts badly with multiple GHCs 2019-09-11 14:37:19 +02:00
Moritz Kiefer
351d9d01ad Update cabal file metadata to point to the new repo 2019-09-11 14:16:48 +02:00
Moritz Kiefer
c14b5d1d48
Merge pull request #29 from ndmitchell/patch-1
#26, test GHC 8.4
2019-09-11 13:59:38 +02:00
Moritz Kiefer
8f915897cf Move GHC 8.4 to a separate job 2019-09-11 13:32:08 +02:00
Moritz Kiefer
44b11667d8
Merge pull request #31 from CodiePP/lhs-unlit-preprocessing
added unlit stage for literate Haskell source files
2019-09-11 13:19:38 +02:00
Moritz Kiefer
5821516f93
Merge pull request #32 from CodiePP/adapt-readme
building extension in correct path
2019-09-11 13:19:24 +02:00
Alexander Diemand
d5c44cca50
building extension in correct path
Signed-off-by: Alexander Diemand <codieplusplus@apax.net>
2019-09-11 12:09:49 +02:00
Alexander Diemand
67b4d40af4
added unlit stage for literate Haskell source files
Signed-off-by: Alexander Diemand <codieplusplus@apax.net>
2019-09-11 11:56:26 +02:00
Neil Mitchell
8fca00d06a
#26, test GHC 8.4 2019-09-11 10:25:41 +01:00
Moritz Kiefer
02221d93d7
Merge pull request #24 from ndmitchell/multienv
Add multi environment support
2019-09-11 11:08:33 +02:00
Neil Mitchell
fc939e7dfb Add a comment that the test needs to change for multi environment 2019-09-11 09:34:16 +01:00
Moritz Kiefer
63432ce848
Merge pull request #22 from ndmitchell/add-dot-ghci
Add a .ghci file
2019-09-11 10:30:14 +02:00
Moritz Kiefer
9140d7d99c
Merge pull request #21 from ndmitchell/less-hiding
Don't hide Shake functions we don't conflict with
2019-09-11 10:30:07 +02:00
Moritz Kiefer
ccec29cbd3
Merge pull request #20 from ndmitchell/haskell-lsp-bound
Add a lower bound on haskell-lsp (we are incompatible with 0.14)
2019-09-11 10:29:59 +02:00
Neil Mitchell
405d62b064 Add multi environment support 2019-09-11 09:13:18 +01:00
Neil Mitchell
efaeb60e9f Add a .ghci file, was removed in the renaming to ghcide 2019-09-11 09:05:15 +01:00
Neil Mitchell
7d9d78e4f5 Even more hidings were redundant 2019-09-11 09:01:09 +01:00
Neil Mitchell
5ba40a44d9 Don't hide newCache, since we no longer conflict with it 2019-09-11 08:55:59 +01:00
Neil Mitchell
82d9d6248d
Add a lower bound on haskell-lsp (we are incompatilbe with 0.14) 2019-09-11 08:53:32 +01:00
Moritz Kiefer
31e000e8a1
Merge pull request #5 from digital-asset/remove-bazel
Remove Bazel config
2019-09-10 17:14:43 +02:00
Moritz Kiefer
de8148b994 Remove Bazel config 2019-09-10 17:05:25 +02:00
Moritz Kiefer
63247ab0f4
Merge pull request #4 from digital-asset/remove-ghcide-daml
Remove ghcide-daml script
2019-09-10 17:03:34 +02:00
Moritz Kiefer
81dd71f47f
Merge pull request #3 from digital-asset/hlint
Enable HLint
2019-09-10 17:03:11 +02:00
Moritz Kiefer
428216c42f Remove ghcide-daml script
That doesn’t make sense in the context of this repository (I’ll make
sure we keep it around in the daml repo).
2019-09-10 16:50:10 +02:00
Moritz Kiefer
b8cdaafc28
Merge pull request #2 from digital-asset/update-readme
Update README
2019-09-10 16:48:35 +02:00
Moritz Kiefer
da5ab701da Enable HLint 2019-09-10 16:31:43 +02:00
Moritz Kiefer
a1e8bea46d Update README 2019-09-10 16:21:10 +02:00
Gary Verhaegen
1c25462201
Merge pull request #1 from digital-asset/add-ci-after-move
add CI config after extraction
2019-09-10 16:14:35 +02:00
Gary Verhaegen
f9af40e86b add CI config after extraction
after extracting the compiler/ghcide folder from the
https://github.com/digital-asset/daml repo, we need to set up a new CI
configuration for the new repo; this is mostly taking over the existing
stack job from the daml repo.
2019-09-10 15:40:52 +02:00
Ganesh Sittampalam
87c68e1029 ghcide: support hs-boot files (#2827) 2019-09-10 15:01:33 +02:00
Ganesh Sittampalam
61760936f9 ghcide: make tests fail on unexpected diagnostic messages (#2813) (#2823)
This has the downside of relying on a timeout, experimentally tuned
to be 0.5s, as we have no other way of knowing when the server has
finished sending us messages.
2019-09-10 15:01:33 +02:00
Moritz Kiefer
5da86c3e44 Rename hie-core to ghcide (#2820)
* Rename hie-core to ghcide

The name `hie-core` has caused a lot of confusion as to how we relate
to haskell-ide-engine so changing it should hopefully help with that.
I also think that ghcide is still a good name once we hopefully
integrate with haskell-ide-engine more closely.

The name ghcide seems to have a reasonable amount of support on
Twitter https://twitter.com/ndm_haskell/status/1170681262987710464
which is of course the only good way to come up with names.

* Add a readme that points people to the new directory.

* Fix bogus replacements

* Use a proper link

* links are hard
2019-09-10 15:01:29 +02:00
Neil Mitchell
5ac4265e9b hie-core: Ignore packages that conflict with ghc in the hie.yaml (#2819) 2019-09-10 14:52:17 +02:00
jacg
7e31d3e560 hie-core: Remove code pretty printing from diagnostic output (#2810)
In moving from v. 0.15 to 0.16, haskell-lsp changed the type of the
value which ended up being passed to `pretty` from `Maybe Text` to
`Maybe LSP.NumberOrString`, thereby breaking the line of code which is
removed in this commit.

After discussion with @ndmitchell, it was observed that this code was
never useful, and fixing it was not worth the trouble.
2019-09-10 14:52:17 +02:00
Ganesh Sittampalam
52b745ce31 A couple of improvements to the experience developing hie-core itself (#2812)
* Put information about the compiler pass in the _source field of Diagnostic

It's useful when looking at the hie-core command-line output to see where
a problem is coming from.

* include test code in hie-core's own cradle
2019-09-10 14:52:17 +02:00
Domen Kožar
42461d1c2a README: add notes for Nix installation (#2805) 2019-09-10 14:52:17 +02:00
Tobias Pflug
bbb1ffc543 Add languageclient-neovim info to README (#2806) 2019-09-10 14:52:17 +02:00
Moritz Kiefer
dfebb9c7a6 Fix hie-core cabal file metadata (#2804) 2019-09-10 14:52:17 +02:00
Neil Mitchell
9bd78857d8 #2326, GHC 8.4 compatibility (#2796)
* #2326, GHC 8.4 compatibility

* Fix up CI

* Add a Shake lower bound

* Upgrade to a hie-bios which is GHC 8.4 compatible

* Add a GHC 8.4 stack

* Fix HLint again
2019-09-10 14:52:17 +02:00
Stefan Matting
710f48bade hie-core: Add instructions for Vim (#2793) 2019-09-10 14:52:17 +02:00
Neil Mitchell
0fab62ccb2 Constrain ghc so that people with 8.4 don't get install plans (#2790) 2019-09-10 14:52:17 +02:00
Andreas Herrmann
20b4945681 Rename hazel_deps to hackage_deps (#2789)
* hazel_deps --> hackage_deps

Mechanical change:

```
sed -i 's/hazel_deps/hackage_deps/g' $(ag -l hazel_deps)
```

* Hazel dependencies --> Hackage dependencies
2019-09-10 14:52:17 +02:00
Neil Mitchell
fc83c8a00f Fix hie.yaml so you can still load hie-core in hie-core (#2786) 2019-09-10 14:52:17 +02:00
Robin Krom
3539a80649 replace main file with a pointer to the source root (#2687)
* language: compile everything in the source directory

This removes the need to specify a 'main'. Instead we 'source' in
daml.yaml should point to the source root directory.
2019-09-10 14:52:17 +02:00
Moritz Kiefer
06695064de Shutdown IdeState in withDamlIdeState (#2680)
Noticed this while trying to debug the segfaults.

I don’t have a concrete case where this causes issues (usually we only
call this once on startup so leaks are not an issue) but we might as
well do it properly.
2019-09-10 14:52:17 +02:00