Skip to content

Commit 0e78f03

Browse files
authored
Merge branch 'master' into ghc-9.2
2 parents e9327e4 + 15d7402 commit 0e78f03

File tree

5 files changed

+34
-9
lines changed

5 files changed

+34
-9
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ jobs:
248248
name: Test hls-hlint-plugin test suite
249249
run: cabal test hls-hlint-plugin --test-options="$TEST_OPTS" || cabal test hls-hlint-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-hlint-plugin --test-options="$TEST_OPTS"
250250

251-
- if: matrix.test
251+
- if: matrix.test && false
252252
name: Test hls-alternate-number-format-plugin test suite
253253
run: cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS" || cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS"
254254

docs/conf.py

+29-4
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,41 @@
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
1616

17+
import re
18+
import sys
1719

1820
# -- Project information -----------------------------------------------------
1921

2022
project = 'haskell-language-server'
21-
copyright = '2021, The Haskell IDE Team'
22-
author = 'The Haskell IDE Team'
2323

24-
# The full version, including alpha/beta/rc tags
25-
release = '1.3.0'
24+
# We want to take some of the metadata from the Cabal file, especially the version.
25+
# (otherwise it's very easy to forget to update it!)
26+
release = None
27+
copyright = None
28+
author = None
29+
versionPattern = re.compile("^version:\s*([\d.]+)")
30+
copyrightPattern = re.compile("^copyright:\s*(.+)")
31+
authorPattern = re.compile("^author:\s*(.+)")
32+
for i, line in enumerate(open('../haskell-language-server.cabal')):
33+
versionMatch = re.search(versionPattern, line)
34+
if versionMatch:
35+
release = versionMatch.group(1)
36+
copyrightMatch = re.search(copyrightPattern, line)
37+
if copyrightMatch:
38+
copyright = copyrightMatch.group(1)
39+
authorMatch = re.search(authorPattern, line)
40+
if authorMatch:
41+
author = authorMatch.group(1)
2642

43+
if not release:
44+
print("Couldn't find version")
45+
sys.exit()
46+
if not copyright:
47+
print("Couldn't find copyright")
48+
sys.exit()
49+
if not author:
50+
print("Couldn't find author")
51+
sys.exit()
2752

2853
# -- General configuration ---------------------------------------------------
2954

docs/features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You can watch demos for some of these features [below](#demos).
1717
- [Module name suggestions](#module-names) for insertion or correction
1818
- [Call hierarchy support](#call-hierarchy)
1919
- [Qualify names from an import declaration](#qualify-imported-names) in your code
20-
- [Suggest alternate numeric formats](#alternate-number-formatting)
20+
- [Suggest alternate numeric formats](#alternate-number-formatting). This plugin is not included by default yet due to a performance issue, see <https://github.com/haskell/haskell-language-server/issues/2490>
2121

2222
## Demos
2323

flake.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@
179179

180180
docs = pkgs.stdenv.mkDerivation {
181181
name = "hls-docs";
182-
src = pkgs.lib.sourceFilesBySuffices ./docs [ ".py" ".rst" ".md" ".png" ".gif" ".svg" ];
182+
src = pkgs.lib.sourceFilesBySuffices ./. [ ".py" ".rst" ".md" ".png" ".gif" ".svg" ".cabal" ];
183183
buildInputs = [ pythonWithPackages ];
184184
# -n gives warnings on missing link targets, -W makes warnings into errors
185-
buildPhase = ''sphinx-build -n -W . $out'';
185+
buildPhase = ''cd docs; sphinx-build -n -W . $out'';
186186
dontInstall = true;
187187
};
188188

haskell-language-server.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ flag splice
165165

166166
flag alternateNumberFormat
167167
description: Enable Alternate Number Format plugin
168-
default: True
168+
default: False
169169
manual: True
170170

171171
flag qualifyImportedNames

0 commit comments

Comments
 (0)