Commit Graph

2996 Commits

Author SHA1 Message Date
Andy
855a882382
Allows disabling stan plugin (#3179)
Respects globalOn in stan plugin configuration and won't show hints
anymore if the plugin is disabled.

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-09-17 09:08:49 +01:00
Andy
5d6a6889b2
Docs: List stan plugin (#3180) 2022-09-17 08:38:39 +02:00
Guillaume Bouchard
a66a6c5b8c
Merge pull request #3133 from haskell/nix-ghc94
nix: fix nix environment for GHC 9.4
2022-09-16 14:46:24 +02:00
Guillaume Bouchard
88a1dbbbfb nix: fix nix environment
- Bumped nixpkgs, so that's a true GHC 9.4.2 and not 9.4.0, which was
  failing in cabal which because it was detecting <=9.4.1.
- Fixed GHC 9.4 overrides for dependencies
- Use the "default" GHC environment for tooling in the shell. Hence it
  rebuilds less.
- I introduced a flake for cabal-hashes, hence it can be updated
  automatically (with `nix flake update`) and hence we can use
  `callHackage` for any hackage package.
2022-09-16 10:35:01 +02:00
Kobayashi
2bd1863eea
unescape printable characters (#3140)
* unescape printable characters

* add comments

* add tests

* improve the parser

* simplify code & add more docs
2022-09-15 15:12:51 +00:00
Matt Russell
1568ce7b0a
Fixes the flake deps to align with cabal (#3163)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-09-15 11:37:15 +00:00
Pepe Iborra
4ce8f99bcd
Remove unused build-depends and install warnings (#3155)
* Remove unused build-depends and install warnings

* Remove -Werror
2022-09-15 10:44:02 +01:00
wz1000
5d35a740b2
Release script fixes (#3154) 2022-09-14 08:14:32 +00:00
Zubin Duggal
ddb21a0c8d Remove internal library haskell-language-server:plugins 2022-09-14 11:38:48 +05:30
Zubin Duggal
0ebfeb574c Add base bound for ghcide-test-utils 2022-09-14 11:38:48 +05:30
Zubin Duggal
5a734dfb7f gitlab-ci: upgrade to fedora33 from fedora27 2022-09-14 02:27:17 +05:30
Zubin Duggal
276fb623d4 gitlab-ci: workaround centos failure 2022-09-14 02:27:17 +05:30
Zubin Duggal
816cd6301e Prepare 1.8.0.0
Use hiedb from hackage

gitlab-ci: remove workaround for windows 9.2.2
gitlab-ci: remove workaround for windows 9.2.2

hie-bios

update hie bios

update hie bios

bounds

hie-bios fixes

hie-bios fixes

lsp 1.6

cabal.project fixes

hie-bios fixes

lsp and hie-bios from hackage

Mark hie-bios error as expectFail

hie-bios fixes

hie-bios fixes

Stack

Stack

stack fixes
2022-09-14 02:27:17 +05:30
Kobayashi
3fb4082f80
Improve performance of NormalizedFilePath (#3067)
* upgrade lsp

* modify default benchmark config

* upgrade lsp

* use lsp master

* temp: compare benchmark with previous commit

* use text in NormalizedFilePath

* upgrade to lsp master

* fix stack config

* remove obsolete dir form ghcide.cabal

* run pre-commit without args

* Revert "run pre-commit without args"

This reverts commit 1c2a11df9d.

* remove unnecessary tests
2022-09-08 19:54:24 +00:00
Nick Suchecki
aad896cdc5
Update hls-retrie-plugin to be usable with 9.2.4. (#3120)
* Update hls-retrie-plugin to be usable with 9.2.4.

This is the first pass at getting hls-retrie-plugin enabled. Much of the
changes were updating to match the changes in the upstream `retrie`
package.

* Replace GHC.Paths.libdir by querying a ModSummary for the LibDir

* Looks like formatting was missed

* Revert "Looks like formatting was missed"

This reverts commit 4f6eee5a6f.

* Don't build retrie for 9.4

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-09-07 17:58:05 +00:00
Zubin Duggal
163ebfe9d0 Fix hlint 2022-09-06 20:36:24 +05:30
Zubin Duggal
a2df919078 Make hls-code-range-plugin buildable on 9.4 by removing usused exactprint dependencies 2022-09-06 20:36:24 +05:30
Zubin Duggal
d18743d470 Accept broken call-hierarchy tests 2022-09-06 20:36:24 +05:30
Zubin Duggal
cd93447f0b warnings 2022-09-06 20:36:24 +05:30
Pepe Iborra
4117da7bc3 fixup refactor onlyWorkForGhcVersions 2022-09-06 20:36:24 +05:30
Pepe Iborra
b60abea0e1 pragmas tests no longer regressing 2022-09-06 20:36:24 +05:30
Zubin Duggal
d3282c6cb1 Restore more hints in diagnostic messages 2022-09-06 20:36:24 +05:30
Zubin Duggal
2b29a7e120 Restore hints in diagnostic messages 2022-09-06 20:36:24 +05:30
Pepe Iborra
28cbee9c01 Tag 9.4 regressions in HLS pragmas test suite 2022-09-06 20:36:24 +05:30
Pepe Iborra
d3d4df51c2 refactor onlyWorkForGhcVersions 2022-09-06 20:36:24 +05:30
Pepe Iborra
9297c98c54 enable a bunch of plugins that build with ghc 9.4 2022-09-06 20:36:24 +05:30
Nick Suchecki
08cfc78394 Change Type Signature Plugin buildable with 9.4 2022-09-06 20:36:24 +05:30
Nick Suchecki
26a6ca6079 Special handling of 9.2 2022-09-06 14:45:26 +05:30
Nick Suchecki
608cfd99b4 Alternate Number Format Plugin buildable with GHC 9.4 2022-09-06 14:45:26 +05:30
Zubin Duggal
5b229b631f Fix windows tests 2022-09-02 22:52:01 +05:30
Zubin Duggal
e1ef7abf1b remove ghcide-test-utils-internal 2022-09-02 22:52:01 +05:30
Zubin Duggal
66a719c50a Add comments 2022-09-02 22:52:01 +05:30
Zubin Duggal
de66b16c98 Bump base version for hie-compat 2022-09-02 22:52:01 +05:30
Zubin Duggal
079d3f08e7 Use scoped allow-newer 2022-09-02 22:52:01 +05:30
Zubin Duggal
738e4f636d Use scoped allow-newer 2022-09-02 22:52:01 +05:30
Zubin Duggal
34ac6ead36 Fix entropy to 0.4.1.10 to fix build on windows 2022-09-02 22:52:01 +05:30
Zubin Duggal
9f7a23b600 Revert "drop windows for 9.4.2"
This reverts commit feeaa3c5c7.
2022-09-02 22:52:01 +05:30
Guillaume Bouchard
830596ee21 chore: add missing sub-project in flake.nix 2022-09-01 14:47:55 +05:30
Zubin Duggal
b15a6e0b6e Reduce nesting of ifdefs in hscCompileCoreHook 2022-09-01 14:47:55 +05:30
Zubin Duggal
108e9af758 Improve GhcSessionDeps and lay out assumptions 2022-09-01 14:47:55 +05:30
Zubin Duggal
661b336883 Disable plugin tests for 9.4 2022-09-01 14:47:55 +05:30
Zubin Duggal
87133b0394 Fix func test 2022-09-01 14:47:55 +05:30
Zubin Duggal
feeaa3c5c7 drop windows for 9.4.2 2022-09-01 14:47:55 +05:30
Guillaume Bouchard
75cfc3aa1e chore: add the nix stuffs for GHC 9.4
I've just added naively the different nix lines. The configuration file
comes from a copy of the one for 9.2.

With that, we can open a shell with `nix develop
.\#haskell-language-server-941-dev` and type `cabal build`.

(cherry picked from commit 48084ab95729d48d470888d8fde807a1d7865860)
2022-09-01 14:47:55 +05:30
Zubin Duggal
6c99563a9f 9.4 support + MHU 2022-09-01 14:47:55 +05:30
Zubin Duggal
fdbc555a92 Fix benchmarks 2022-08-31 00:56:35 +05:30
Zubin Duggal
e03111921b Update hlint ignore 2022-08-31 00:56:35 +05:30
Zubin Duggal
2e484cd1d4 Move ghcide-test-utils to its own package 2022-08-31 00:56:35 +05:30
Zubin Duggal
a9f1c538ac Remove exactprint dependencies from ghcide by introducing hls-refactor-plugin.
All code actions have been moved to hls-refactor-plugin

Mostly straightforward, only slight complication was that completion auto imports
depends on exactprint, but I didn't want to remove all completion logic from ghcide
just for this.

Instead, I added logic to dynamically lookup the plugin that provides
the extend import command, so that auto imports work as expected when you have
hls-refactor-plugin enabled.

Move lookupPluginId out of loop

Replace code actions with lenses in benchmarks

Allow plugins to use GetAnnotatedParsedSource by linking it in when depended on

Move lookupPluginId to IdePlugins

Add default extensions

Move traceAst
2022-08-31 00:56:35 +05:30
Akshay Mankar
7760340e99
flake.nix Add ghcide-bench to sourceDirs (#3125)
This is required for nix-based dev shells to work.
2022-08-27 11:41:50 +00:00