-
-
Notifications
You must be signed in to change notification settings - Fork 388
1.2.0 release is not uploaded to Hackage #1919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For now we are uploading new versions to hackage after the github release, unfortunately it continue being a manual process that takes some time and require maintainers coordination (i hope some day we could do it in a semiautomatic way: #1310) |
|
I don't have Hackage privileges to upload the eval plugin - please someone else upload it |
@pepeiborra i've just navigate to https://hackage.haskell.org/package/hls-eval-plugin/maintainers/ and i can see you in the list |
@pepeiborra I uploaded it and added you to the maintainers |
|
I am going through all the unreleased plugins and making revisions to relax the upper bounds on ghcide. |
Mmm in case changes should be applied to the repo it would be great to have a |
For reference, this is what I did:
|
There were no changes needed in the repo |
ok, maybe i am little bit obssesed with consistency but i will create a EDIT: created |
Why don't we make a release of
diff --git a/plugins/hls-brittany-plugin/hls-brittany-plugin.cabal b/plugins/hls-brittany-plugin/hls-brittany-plugin.cabal
index b2964348..51d278c2 100644
--- a/plugins/hls-brittany-plugin/hls-brittany-plugin.cabal
+++ b/plugins/hls-brittany-plugin/hls-brittany-plugin.cabal
@@ -25,7 +25,7 @@ library
, filepath
, ghc
, ghc-boot-th
- , ghcide ^>=1.2
+ , ghcide >=1.2 && <1.5
, hls-plugin-api ^>=1.1
, lens
, lsp-types
@@ -42,7 +42,6 @@ test-suite tests
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
, base
- , bytestring
+ , filepath
, hls-brittany-plugin
, hls-test-utils ^>=1.0
- , text
diff --git a/plugins/hls-brittany-plugin/src/Ide/Plugin/Brittany.hs b/plugins/hls-brittany-plugin/src/Ide/Plugin/Brittany.hs
index ff90bfec..8f6e4e19 100644
--- a/plugins/hls-brittany-plugin/src/Ide/Plugin/Brittany.hs
+++ b/plugins/hls-brittany-plugin/src/Ide/Plugin/Brittany.hs
@@ -6,7 +6,6 @@ import Control.Exception (bracket_)
import Control.Lens
import Control.Monad.IO.Class
import Control.Monad.Trans.Maybe (MaybeT, runMaybeT)
-import Data.Coerce
import Data.Maybe (mapMaybe, maybeToList)
import Data.Semigroup
import Data.Text (Text)
@@ -81,7 +80,7 @@ runBrittany :: Int -- ^ tab size
runBrittany tabSize df confPath text = do
let cfg = mempty
{ _conf_layout =
- mempty { _lconfig_indentAmount = opt (coerce tabSize)
+ mempty { _lconfig_indentAmount = opt (Last tabSize)
}
, _conf_forward =
(mempty :: CForwardOptions Option)
diff --git a/plugins/hls-brittany-plugin/test/Main.hs b/plugins/hls-brittany-plugin/test/Main.hs
index 4f8f1853..2a4ef9f7 100644
--- a/plugins/hls-brittany-plugin/test/Main.hs
+++ b/plugins/hls-brittany-plugin/test/Main.hs
@@ -1,39 +1,37 @@
{-# LANGUAGE OverloadedStrings #-}
-module Main(main) where
+module Main
+ ( main
+ ) where
-import qualified Data.ByteString.Lazy as BS
-import qualified Data.Text.Encoding as T
-import qualified Data.Text.IO as T
-import qualified Ide.Plugin.Brittany as Brittany
+import qualified Ide.Plugin.Brittany as Brittany
+import System.FilePath
import Test.Hls
main :: IO ()
main = defaultTestRunner tests
-plugin :: PluginDescriptor IdeState
-plugin = Brittany.descriptor "brittany"
+brittanyPlugin :: PluginDescriptor IdeState
+brittanyPlugin = Brittany.descriptor "brittany"
tests :: TestTree
-tests = testGroup "brittany" [
- goldenGitDiff "formats a document with LF endings" "test/testdata/BrittanyLF.formatted_document.hs" $ runSessionWithServerFormatter plugin "brittany" "test/testdata" $ do
- doc <- openDoc "BrittanyLF.hs" "haskell"
- formatDoc doc (FormattingOptions 4 True Nothing Nothing Nothing)
- BS.fromStrict . T.encodeUtf8 <$> documentContents doc
-
- , goldenGitDiff "formats a document with CRLF endings" "test/testdata/BrittanyCRLF.formatted_document.hs" $ runSessionWithServerFormatter plugin "brittany" "test/testdata" $ do
- doc <- openDoc "BrittanyCRLF.hs" "haskell"
- formatDoc doc (FormattingOptions 4 True Nothing Nothing Nothing)
- BS.fromStrict . T.encodeUtf8 <$> documentContents doc
-
- , goldenGitDiff "formats a range with LF endings" "test/testdata/BrittanyLF.formatted_range.hs" $ runSessionWithServerFormatter plugin "brittany" "test/testdata" $ do
- doc <- openDoc "BrittanyLF.hs" "haskell"
- let range = Range (Position 1 0) (Position 2 22)
- formatRange doc (FormattingOptions 4 True Nothing Nothing Nothing) range
- BS.fromStrict . T.encodeUtf8 <$> documentContents doc
-
- , goldenGitDiff "formats a range with CRLF endings" "test/testdata/BrittanyCRLF.formatted_range.hs" $ runSessionWithServerFormatter plugin "brittany" "test/testdata" $ do
- doc <- openDoc "BrittanyCRLF.hs" "haskell"
- let range = Range (Position 1 0) (Position 2 22)
- formatRange doc (FormattingOptions 4 True Nothing Nothing Nothing) range
- BS.fromStrict . T.encodeUtf8 <$> documentContents doc
- ]
+tests = testGroup "brittany"
+ [ brittanyGolden "formats a document with LF endings" "BrittanyLF" "formatted_document" $ \doc -> do
+ formatDoc doc (FormattingOptions 4 True Nothing Nothing Nothing)
+
+ , brittanyGolden "formats a document with CRLF endings" "BrittanyCRLF" "formatted_document" $ \doc -> do
+ formatDoc doc (FormattingOptions 4 True Nothing Nothing Nothing)
+
+ , brittanyGolden "formats a range with LF endings" "BrittanyLF" "formatted_range" $ \doc -> do
+ let range = Range (Position 1 0) (Position 2 22)
+ formatRange doc (FormattingOptions 4 True Nothing Nothing Nothing) range
+
+ , brittanyGolden "formats a range with CRLF endings" "BrittanyCRLF" "formatted_range" $ \doc -> do
+ let range = Range (Position 1 0) (Position 2 22)
+ formatRange doc (FormattingOptions 4 True Nothing Nothing Nothing) range
+ ]
+
+brittanyGolden :: TestName -> FilePath -> FilePath -> (TextDocumentIdentifier -> Session ()) -> TestTree
+brittanyGolden title path desc = goldenWithHaskellDocFormatter brittanyPlugin "brittany" title testDataDir path desc "hs"
+
+testDataDir :: FilePath
+testDataDir = "test" </> "testdata"
diff --git a/plugins/hls-brittany-plugin/test/testdata/hie.yaml b/plugins/hls-brittany-plugin/test/testdata/hie.yaml
new file mode 100644
index 00000000..82455814
--- /dev/null
+++ b/plugins/hls-brittany-plugin/test/testdata/hie.yaml
@@ -0,0 +1,3 @@
+cradle:
+ direct:
+ arguments: []
|
I don't see any observable changes in that Diff, I guess that's why @Ailrun did not bump the version. Given that there are no reasons to make a release, other than consistency, what would be the cost of making it, and who would do it? |
OK, fair enough :) |
Could you also add me to package maintainer lists? I don't have privilege for many of the packages. |
It would be nice to keep git tags and Hackage releases in sync :)
The text was updated successfully, but these errors were encountered: