Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Javier Neira jneira

:octocat:
View GitHub Profile
View apply refact with cpp.md
  • 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 Oct 8, 2020
output of flaky tests
View addDependentFile.log
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": {
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
@jneira
jneira / sicp2.rkt
Created Jul 20, 2011
Code of my sicp lecture chapter 2
View sicp2.rkt
;; 2.1 Introduction to Data Abstraction
;; 2.1.1 Example: Arithmetic Operations for Rational Numbers
(define (add-rat x y)
(make-rat (+ (* (numer x) (denom y))
(* (numer y) (denom x)))
(* (denom x) (denom y))))
(define (sub-rat x y)
(make-rat (- (* (numer x) (denom y))
(* (numer y) (denom x)))
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 #-}