I try to install hlint on Windows 10, but when compiling hscolour it fail.
Environment:
ghc-8.6.5
stack-2.1.3
Here is the output:
PS C:\Users\isen> stack install hlint
hscolour> configure
hscolour> Configuring hscolour-1.24.4...
hscolour> build
hscolour> Preprocessing library for hscolour-1.24.4..
hscolour> Building library for hscolour-1.24.4..
hscolour> [ 1 of 16] Compiling Language.Haskell.HsColour.Classify
hscolour>
hscolour> Language\Haskell\HsColour\Classify.hs:50:39: warning: [-Wtabs]
hscolour> Tab character found here, and in 7 further locations.
hscolour> Please use spaces instead.
hscolour> |
hscolour> 50 | glue (q:".":n:rest) | isUpper (head q) -- qualified names
hscolour> | ^^
hscolour> [ 2 of 16] Compiling Language.Haskell.HsColour.ColourHighlight
hscolour> [ 3 of 16] Compiling Language.Haskell.HsColour.Colourise
hscolour> [ 4 of 16] Compiling Language.Haskell.HsColour.General
hscolour> [ 5 of 16] Compiling Language.Haskell.HsColour.Anchors
hscolour>
hscolour> Language\Haskell\HsColour\Anchors.hs:73:1: warning: [-Wtabs]
hscolour> Tab character found here, and in four further locations.
hscolour> Please use spaces instead.
hscolour> |
hscolour> 73 | | v `inST` st -> Nothing
hscolour> | ^^^^^^^^
hscolour> [ 6 of 16] Compiling Language.Haskell.HsColour.HTML
hscolour> [ 7 of 16] Compiling Language.Haskell.HsColour.CSS
hscolour> [ 8 of 16] Compiling Language.Haskell.HsColour.ACSS
hscolour> [ 9 of 16] Compiling Language.Haskell.HsColour.InlineCSS
hscolour>
hscolour> Language\Haskell\HsColour\InlineCSS.hs:12:24: warning: [-Wtabs]
hscolour> Tab character found here.
hscolour> Please use spaces instead.
hscolour> |
hscolour> 12 | hscolour :: ColourPrefs -- ^ Preferences for styling.
hscolour> | ^
hscolour> [10 of 16] Compiling Language.Haskell.HsColour.LaTeX
hscolour> [11 of 16] Compiling Language.Haskell.HsColour.MIRC
hscolour> [12 of 16] Compiling Language.Haskell.HsColour.Output
hscolour> [13 of 16] Compiling Language.Haskell.HsColour.Options
hscolour>
hscolour> Language\Haskell\HsColour\Options.hs:11:9: warning: [-Wtabs]
hscolour> Tab character found here, and in 12 further locations.
hscolour> Please use spaces instead.
hscolour> |
hscolour> 11 | Help -- ^ print usage message
hscolour> | ^^^^^^^^
hscolour> [14 of 16] Compiling Language.Haskell.HsColour.ANSI
hscolour>
hscolour> Language\Haskell\HsColour\ANSI.hs:62:10: warning: [-Wmissing-methods]
hsterminateProcess: permission denied (Permission denied)
Progress 1/2
Thanks @lkyhfx - have you tried using --verbose mode or running stack build against a git clone of the hscolour project?
It looks like this may be a relatively straightforward permissions issue. If build succeeds but install fails then you probably need to check the permissions of your installation directory.
Unfortunately I don't have a Windows machine to try reproducing this but perhaps we can narrow down the issue with some more info.
I also run stack build on the hscolour project, the output is the same. I also run power shell as administrator, but the output doesn't change.
maybe chcp 65001 is useful
https://qiita.com/yutasth/items/9df6e2c3937edad24aee
maybe
chcp 65001is useful
https://qiita.com/yutasth/items/9df6e2c3937edad24aee
My system language is chinese.
It works!
it really works.thanks.发自我的华为手机-------- 原始邮件 --------发件人: Sasha Wong notifications@github.com日期: 2019年11月7日周四 下午2:13收件人: commercialhaskell/stack stack@noreply.github.com抄送: Shaw Wong ruoyu09@126.com, Manual manual@noreply.github.com主 题: Re: [commercialhaskell/stack] Compile hscolour 1.24.4 permission denied on Windows 10 when install hlint use stack (#5034)
maybe chcp 65001 is useful
https://qiita.com/yutasth/items/9df6e2c3937edad24aee
It works, Thanks
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.
chcp 65001 solve the problem
Most helpful comment
maybe
chcp 65001is usefulhttps://qiita.com/yutasth/items/9df6e2c3937edad24aee