Skip to content

Instantly share code, notes, and snippets.

View jneira's full-sized avatar
:octocat:

Javier Neira jneira

:octocat:
View GitHub Profile
  • hlintcpp branch ghc-8.8.3
      apply hints works with CPP via language pragma:                                          FAIL (expected: apply-refact doesn't work with cpp) (66.79s)
        test/utils\\Test\\Hls\\Util.hs:401:
        Timed out waiting to receive a message from the server.
        Last message received:
        {
            "tag": "RspExecuteCommand",
            "contents": {
@jneira
jneira / addDependentFile.log
Last active October 8, 2020 19:45
output of flaky tests
2020-10-06T07:45:00.8920229Z addDependentFile
2020-10-06T07:45:00.8921064Z file-changed
2020-10-06T07:45:00.8921653Z test: --> {
2020-10-06T07:45:00.8924377Z "jsonrpc": "2.0",
2020-10-06T07:45:00.8925056Z "params": {
2020-10-06T07:45:00.8926009Z "rootUri": "file:///C:/Users/VssAdministrator/AppData/Local/Temp/extra-dir-527926104874",
2020-10-06T07:45:00.8927045Z "processId": 2412,
2020-10-06T07:45:00.8927826Z "rootPath": "C:\\Users\\VssAdministrator\\AppData\\Local\\Temp\\extra-dir-527926104874",
2020-10-06T07:45:00.8928545Z "capabilities": {
2020-10-06T07:45:00.8929191Z "window": {
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:
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 September 2, 2020 13:45
hls hlint plugin: vfs vs temp
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
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 July 24, 2020 14:16
yesod yolo hls log
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
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 July 13, 2020 22:24
refactor issues
{-# 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 June 16, 2020 05:03
Failng tests of bump.ghcide
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