Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Javier Neira jneira

:octocat:
View GitHub Profile
View ghc-8.10.1.error.log
2020-09-27T21:25:38.0433785Z parsedResultAction plugin: FAIL (1.57s)
2020-09-27T21:25:38.0465985Z test/src\Development\IDE\Test.hs:78:
2020-09-27T21:25:38.0483761Z Got unexpected diagnostics for Uri {getUri = "file:///C:/Users/VssAdministrator/AppData/Local/Temp/extra-dir-995071455928/Testing.hs"} got List [Diagnostic {_range = Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 0, _character = 0}}, _severity = Just DsError, _code = Nothing, _source = Just "typecheck", _message = "Not in scope:\n type constructor or class \8216GHC.Records.Extra.HasField\8217\nPerhaps you meant \8216GHC.Records.Extra.HasField\8217 (imported from GHC.Records.Extra)\nModule \8216GHC.Records.Extra\8217 does not export \8216HasField\8217.", _tags = Nothing, _relatedInformation = Nothing}]
----------------------------
2020-09-27T21:25:42.0477134Z reloading-th-test:
View client-settings.errors
2020-09-18T15:40:12.3044466Z Interface loading tests
2020-09-18T15:40:12.3046244Z iface-error-test-1: FAIL
2020-09-18T15:40:12.3059676Z Exception: NamedParserException "NotificationMessage ServerMethod PublishDiagnosticsParams" (NamedParserException "NotificationMessage ServerMethod PublishDiagnosticsParams" (NamedParserException "NotificationMessage ServerMethod PublishDiagnosticsParams" (NamedParserException "NotificationMessage ServerMethod PublishDiagnosticsParams" (NamedParserException "NotificationMessage ServerMethod PublishDiagnosticsParams" (NamedParserException "NotificationMessage ServerMethod PublishDiagnosticsParams" (NamedParserException "NotificationMessage ServerMethod PublishDiagnosticsParams" (NamedParserException "NotificationMessage ServerMethod PublishDiagnosticsParams" (NamedParserException "NotificationMessage ServerMethod PublishDiagnosticsParams" (NamedParserException "NotificationMessage Ser
@jneira
jneira / Lib.hs
Created Sep 2, 2020
hls hlint plugin: vfs vs temp
View Lib.hs
module Lib where
import qualified Data.ByteString.Char8 as BS
import Data.List
import Data.Function
import Data.Ord
test :: BS.ByteString
test = BS.pack "Hello Haskell"
-- | My function docs
View cabal.log
PS D:\dev\ws\haskell\hls> cabal --storedir D:\cs build floskell -v3 -w ghc-8.8.4 --ghc-options="-v3 +RTS --generate-crash-dumps"
.....
PS D:\dev\ws\haskell\hls> cat C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.8.4\floskell-0.10.3-ccc5632702c8a5ae24f882e0349f73bb6b0b0e03.log Component build order: library
Environment: [("","::=::\\"),("ALLUSERSPROFILE","C:\\ProgramData"),("APPDATA","C:\\Users\\atrey\\AppData\\Roaming"),("BIN","D:\\bin"),("CABAL_HELPER_DEBUG","1"),("COMMONPROGRAMFILES","C:\\Program Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files (x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common Files"),("COMPUTERNAME","FNTSY"),("COMSPEC","C:\\Windows\\system32\\cmd.exe"),("DEV","D:\\dev"),("DRIVERDATA","C:\\Windows\\System32\\Drivers\\DriverData"),("EMACS_HOME","D:\\dev\\app\\emacs-26.2-x86_64"),("GHCS_HOME","D:\\bin\\stack\\x86_64-windows"),("GHCUPSINS
@jneira
jneira / log.txt
Last active Jul 24, 2020
yesod yolo hls log
View log.txt
PS D:\dev\ws\haskell\issues\yolo> D:\bin\hls\haskell-language-server.exe
haskell-language-server version: 0.2.0.0 (GHC: 8.10.1) (PATH: D:\bin\hls\haskell-language-server.exe)
(haskell-language-server)Ghcide setup tester in D:\dev\ws\haskell\issues\yolo.
Report bugs at https://github.com/haskell/haskell-language-server/issues
Step 1/4: Finding files to test in D:\dev\ws\haskell\issues\yolo
Found 20 files
Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
View cabal.build.ghc-8.10.1.v3.fresh-store.ko.log
PS D:\dev\ws\haskell\hls> cabal --store-dir D:\cs build floskell -w ghc-8.10.1 -v3
File monitor 'config' unchanged.
this build was affected by the following (project) config files:
- D:\dev\ws\haskell\hls\cabal.project
- D:\dev\ws\haskell\hls\cabal.project.local
File monitor 'improved-plan' changed: file D:\cs\ghc-8.10.1
File monitor 'elaborated-plan' unchanged.
Improving the install plan...
... install plan stuff ....
Build profile: -w ghc-8.10.1 -O1
@jneira
jneira / Hlint.hs
Created Jul 13, 2020
refactor issues
View Hlint.hs
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
@jneira
jneira / failing.test.out
Created Jun 16, 2020
Failng tests of bump.ghcide
View failing.test.out
Running 1 test suites...
Test suite ghcide-tests: RUNNING...
HIE
open close: OK (1.78s)
initialize response capabilities
text doc sync: OK
hover: OK
completion: OK
NO signature help: OK
goto definition: OK
View ghcide-cabal-plan-txt
using 'D:\dev\ws\haskell\ghcide' as project root
Tree
~~~~
aeson-pretty-0.8.8
[aeson-pretty-0.8.8:exe:"aeson-pretty"]
├─ aeson-1.5.1.0
│ ├─ attoparsec-0.13.2.4
│ │ ├─ array-0.5.3.0
@jneira
jneira / hls.log
Created May 28, 2020
Full log opening three modules in hls
View hls.log
haskell-lsp:Starting up server ...
2020-05-28 16:10:23.4520406 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":1444,"clientInfo":{"name":"vscode","version":"1.45.1"},"rootPath":"d:\\dev\\ws\\haskell\\hls","rootUri":"file:///d%3A/dev/ws/haskell/hls","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true}