Skip to content

Instantly share code, notes, and snippets.

@jneira
Last active Jul 24, 2020
Embed
What would you like to do?
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
Step 3/4: Initializing the IDE
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\app\\DevelMain.hs"
Output from setting up the cradle Cradle {cradleRootDir = "D:\\dev\\ws\\haskell\\issues\\yolo", cradleOptsProg = CradleAction: Stack}
> Using main module: 1. Package `yolo' component yolo:exe:yolo with main-is file: D:\dev\ws\haskell\issues\yolo\app\main.hs
> Building all executables for `yolo' once. After a successful build of all of them, only specified executables will be rebuilt.
> yolo> configure (lib + exe)
> Configuring yolo-0.0.0...
> yolo> initial-build-steps (lib + exe)
> The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\src\\Handler\\Common.hs"
Output from setting up the cradle Cradle {cradleRootDir = "D:\\dev\\ws\\haskell\\issues\\yolo", cradleOptsProg = CradleAction: Stack}
File: D:\dev\ws\haskell\issues\yolo\app\DevelMain.hs
Hidden: no
Range: 1:0-2:0
Source: cradle
Severity: DsError
Message:
ghcide compiled against GHC 8.10.1 but currently using 8.8.3
This is unsupported, ghcide must be compiled with the same GHC version as the project.
> Using main module: 1. Package `yolo' component yolo:exe:yolo with main-is file: D:\dev\ws\haskell\issues\yolo\app\main.hs
> Building all executables for `yolo' once. After a successful build of all of them, only specified executables will be rebuilt.
> yolo> configure (lib + exe)
> Configuring yolo-0.0.0...
> yolo> initial-build-steps (lib + exe)
> The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
> Configuring GHCi with the following packages: yolo
PS D:\dev\ws\haskell\issues\yolo> D:\bin\hls\haskell-language-server-8.8.3.exe
ghcide version: 0.2.0.0 (GHC: 8.8.3) (PATH: D:\bin\hls\haskell-language-server-8.8.3.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
Step 3/4: Initializing the IDE
Step 4/4: Type checking the files
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\test\\Handler\\CommonSpec.hs"
> Using main module: 1. Package `yolo' component yolo:exe:yolo with main-is file: D:\dev\ws\haskell\issues\yolo\app\main.hs
> Building all executables for `yolo' once. After a successful build of all of them, only specified executables will be rebuilt.
> yolo> configure (lib + exe)
> Configuring yolo-0.0.0...
> yolo> initial-build-steps (lib + exe)
> The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Making new HscEnv[main]
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\test\\TestImport.hs"
> Using main module: 1. Package `yolo' component yolo:exe:yolo with main-is file: D:\dev\ws\haskell\issues\yolo\app\main.hs
> Building all executables for `yolo' once. After a successful build of all of them, only specified executables will be rebuilt.
> yolo> configure (lib + exe)
> Configuring yolo-0.0.0...
> yolo> initial-build-steps (lib + exe)
> The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Making new HscEnv[main,main]
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\test\\Handler\\CommentSpec.hs"
> Using main module: 1. Package `yolo' component yolo:exe:yolo with main-is file: D:\dev\ws\haskell\issues\yolo\app\main.hs
> Building all executables for `yolo' once. After a successful build of all of them, only specified executables will be rebuilt.
> yolo> configure (lib + exe)
> Configuring yolo-0.0.0...
> yolo> initial-build-steps (lib + exe)
> The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Making new HscEnv[main,main,main]
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\test\\Handler\\HomeSpec.hs"
> Using main module: 1. Package `yolo' component yolo:exe:yolo with main-is file: D:\dev\ws\haskell\issues\yolo\app\main.hs
> Building all executables for `yolo' once. After a successful build of all of them, only specified executables will be rebuilt.
> yolo> configure (lib + exe)
> Configuring yolo-0.0.0...
> yolo> initial-build-steps (lib + exe)
> The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Making new HscEnv[main,main,main,main]
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\test\\Spec.hs"
> Using main module: 1. Package `yolo' component yolo:exe:yolo with main-is file: D:\dev\ws\haskell\issues\yolo\app\main.hs
> Building all executables for `yolo' once. After a successful build of all of them, only specified executables will be rebuilt.
> yolo> configure (lib + exe)
> Configuring yolo-0.0.0...
> yolo> initial-build-steps (lib + exe)
> The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Making new HscEnv[main,main,main,main,main]
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\test\\Handler\\ProfileSpec.hs"
> Using main module: 1. Package `yolo' component yolo:exe:yolo with main-is file: D:\dev\ws\haskell\issues\yolo\app\main.hs
> Building all executables for `yolo' once. After a successful build of all of them, only specified executables will be rebuilt.
> yolo> configure (lib + exe)
> Configuring yolo-0.0.0...
> yolo> initial-build-steps (lib + exe)
> The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Making new HscEnv[main,main,main,main,main,main]
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\app\\devel.hs"
File: D:\dev\ws\haskell\issues\yolo\app\DevelMain.hs
Hidden: no
Range: 9:0-35:46
Source: parser
Severity: DsWarning
Message:
Haddock parse error on input ‘-- $ stack ghci yolo:lib --no-load --work-dir .stack-work-devel
--
-- 2. Load this module
--
-- > :l app/DevelMain.hs
--
-- 3. Run @update@
--
-- > DevelMain.update
--
-- 4. Your app should now be running, you can connect at http://localhost:3000
--
-- 5. Make changes to your code
--
-- 6. After saving your changes, reload by running:
--
-- > :r
-- > DevelMain.update
--
-- You can also call @DevelMain.shutdown@ to stop the app
--
-- There is more information about this approach,
-- on the wiki: https://github.com/yesodweb/yesod/wiki/ghci
--
-- WARNING: GHCi does not notice changes made to your template files.
-- If you change a template, you'll need to either exit GHCi and reload,
-- or manually @touch@ another Haskell module.’
File: D:\dev\ws\haskell\issues\yolo\test\TestImport.hs
Hidden: no
Range: 15:7-15:17
Source: not found
Severity: DsError
Message:
Could not find module ‘Test.Hspec’
It is not a module in the current program, or in any known package.
File: D:\dev\ws\haskell\issues\yolo\test\TestImport.hs
Hidden: no
Range: 18:7-18:17
Source: not found
Severity: DsError
Message:
Could not find module ‘Yesod.Test’
Perhaps you meant
Yesod.Feed (needs flag -package-key yesod-newsfeed-1.7.0.0)
File: D:\dev\ws\haskell\issues\yolo\test\TestImport.hs
Hidden: no
Range: 24:7-24:17
Source: not found
Severity: DsError
Message:
Could not load module ‘Lens.Micro’
It is a member of the hidden package ‘microlens-0.4.11.2’.
You can run ‘:set -package microlens’ to expose it.
(Note: this unloads all the modules in the current scope.)
> Using main module: 1. Package `yolo' component yolo:exe:yolo with main-is file: D:\dev\ws\haskell\issues\yolo\app\main.hs
File: D:\dev\ws\haskell\issues\yolo\test\Spec.hs
Hidden: no
Range: 7:7-7:26
Source: not found
Severity: DsError
Message:
Could not find module ‘Test.Hspec.Discover’
It is not a module in the current program, or in any known package.
> Building all executables for `yolo' once. After a successful build of all of them, only specified executables will be rebuilt.
> yolo> configure (lib + exe)
> Configuring yolo-0.0.0...
> yolo> initial-build-steps (lib + exe)
> The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-82f69251059b7a3d03ccdf1ab98033eb738dde7b
[INFO] Making new HscEnv[main,main,main,main,main,main,main]
File: D:\dev\ws\haskell\issues\yolo\app\devel.hs
Hidden: no
Range: 2:14-2:25
Source: not found
Severity: DsError
Message:
Could not find module ‘Application’
It is not a module in the current program, or in any known package.
[INFO] finish: User TypeCheck (took 2m02s)
Files that failed:
* D:\dev\ws\haskell\issues\yolo\app\devel.hs
* D:\dev\ws\haskell\issues\yolo\test\Spec.hs
* D:\dev\ws\haskell\issues\yolo\test\TestImport.hs
* D:\dev\ws\haskell\issues\yolo\test\Handler\CommentSpec.hs
* D:\dev\ws\haskell\issues\yolo\test\Handler\CommonSpec.hs
* D:\dev\ws\haskell\issues\yolo\test\Handler\HomeSpec.hs
* D:\dev\ws\haskell\issues\yolo\test\Handler\ProfileSpec.hs
Completed (13 files worked, 7 files failed)
PS D:\dev\ws\haskell\issues\yolo> cat .\hie.yaml
cradle:
stack:
- path: "./src"
component: "yolo:lib"
- path: "./app/main.hs"
component: "yolo:exe:yolo"
- path: "./app/DevelMain.hs"
component: "yolo:exe:yolo"
- path: "./app/Paths_yolo.hs"
component: "yolo:exe:yolo"
- path: "./test"
component: "yolo:test:yolo-test"
PS D:\dev\ws\haskell\issues\yolo> D:\bin\hls\haskell-language-server-8.8.3.exe
ghcide version: 0.2.0.0 (GHC: 8.8.3) (PATH: D:\bin\hls\haskell-language-server-8.8.3.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
Step 3/4: Initializing the IDE
Step 4/4: Type checking the files
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\test\\Handler\\CommonSpec.hs"
> Using main module: 1. Package `yolo' component yolo:test:yolo-test with main-is file: D:\dev\ws\haskell\issues\yolo\test\Spec.hs
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-644a41095c7ef2a238990df3a08d5e6e5b725b24
[INFO] Making new HscEnv[main]
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\src\\Import.hs"
> The following GHC options are incompatible with GHCi and have not been passed to it: -O2
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-4d06e575115c08914de89690f37be8d24edfb7eb
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-4d06e575115c08914de89690f37be8d24edfb7eb
[INFO] Making new HscEnv[main,main]
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\app\\DevelMain.hs"
> Using main module: 1. Package `yolo' component yolo:exe:yolo with main-is file: D:\dev\ws\haskell\issues\yolo\app\main.hs
> The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
> Configuring GHCi with the following packages: yolo
> D:\dev\ws\haskell\issues\yolo\.stack-work\install\36a45858\pkgdb;C:\sr\snapshots\ff48e525\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-6456e164d9f7fc407f1ca667aca30b4393ef7900
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-6456e164d9f7fc407f1ca667aca30b4393ef7900
[INFO] Using interface files cache dir: C:\Users\atrey\AppData\Local\ghcide\main-6456e164d9f7fc407f1ca667aca30b4393ef7900
[INFO] Making new HscEnv[main,main,main]
[INFO] Consulting the cradle for "D:\\dev\\ws\\haskell\\issues\\yolo\\app\\devel.hs"
File: D:\dev\ws\haskell\issues\yolo\app\devel.hs
Hidden: no
Range: 1:0-2:0
Source: cradle
Severity: DsError
Message:
Multi Cradle: No prefixes matched
pwd: D:\dev\ws\haskell\issues\yolo
filepath: D:\dev\ws\haskell\issues\yolo\app\devel.hs
prefixes:
("./src",Stack {component = Just "yolo:lib"})
("./app/main.hs",Stack {component = Just "yolo:exe:yolo"})
("./app/DevelMain.hs",Stack {component = Just "yolo:exe:yolo"})
("./app/Paths_yolo.hs",Stack {component = Just "yolo:exe:yolo"})
("./test",Stack {component = Just "yolo:test:yolo-test"})
File: D:\dev\ws\haskell\issues\yolo\app\DevelMain.hs
Hidden: no
Range: 9:0-35:46
Source: parser
Severity: DsWarning
Haddock parse error on input ‘-- $ stack ghci yolo:lib --no-load --work-dir .stack-work-devel
--
-- 2. Load this module
--
-- > :l app/DevelMain.hs
--
-- 3. Run @update@
--
-- > DevelMain.update
--
-- 4. Your app should now be running, you can connect at http://localhost:3000
--
-- 5. Make changes to your code
--
-- 6. After saving your changes, reload by running:
--
-- > :r
-- > DevelMain.update
--
-- You can also call @DevelMain.shutdown@ to stop the app
--
-- There is more information about this approach,
-- on the wiki: https://github.com/yesodweb/yesod/wiki/ghci
--
-- WARNING: GHCi does not notice changes made to your template files.
-- If you change a template, you'll need to either exit GHCi and reload,
-- or manually @touch@ another Haskell module.’
[INFO] finish: User TypeCheck (took 38.38s)
Files that failed:
* D:\dev\ws\haskell\issues\yolo\app\devel.hs
Completed (19 files worked, 1 file failed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment