haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.65k stars 354 forks source link

Sometimes imports from other modules cause typecheck failure with "Could not find module ‘SomeModule’" #3124

Closed lf- closed 3 months ago

lf- commented 2 years ago

Your environment

Which OS do you use? macOS 12.5.1 on aarch64

Which version of GHC do you use and how did you install it? ghc-9.2.4 from nix

How is your project built (alternative: link to the project)? This has happened on HLS itself in the past, I think, but I can't repro it >:(

The work code uses cabal and the standard nix Haskell infrastructure.

The case of this happening on dependencies is where the dependencies are provided by Nix and overridden to local development versions in cabal.project.local.

It also happens to my work testsuite on imports of files in the main lib package.

Which LSP client (editor/plugin) do you use? coc.nvim on nvim

Which version of HLS do you use and how did you install it? 1.7.0.0, commit b5ab14cfbe7a992739167fce6671cf1881211566, built with nix.

Have you configured HLS in any way (especially: a hie.yaml file)? See hie.yaml snippet below.

Steps to reproduce

It seems that this happens when I open a file that imports something from some other package in the cabal.project and the imported file is not open in the editor.

In this case, it was importing <projectRoot>/hs-opentelemetry/sdk/src/OpenTelemetry/Processor/Simple.hs.

To my great annoyance, my efforts to make any kind of repro have fallen flat on their face :(

It's quite reproducible in my closed source work code plus nix setup, but that's not very helpful.

Some snippets of the shape of the config files:

cabal.project.local:

packages:
    ./
    hs-opentelemetry/exporters/handle
    hs-opentelemetry/otlp
    hs-opentelemetry/api
    hs-opentelemetry/propagators/w3c
    hs-opentelemetry/sdk
    hs-opentelemetry/exporters/otlp
    hs-opentelemetry/instrumentation/persistent
    hs-opentelemetry/instrumentation/conduit
    hs-opentelemetry/instrumentation/postgresql-simple
    hs-opentelemetry/instrumentation/http-client
    hs-opentelemetry/instrumentation/wai
    hs-opentelemetry/instrumentation/yesod

hie.yaml:

content ```yaml cradle: multi: - path: "./" config: cradle: cabal: - path: "hs-opentelemetry/examples/hspec/src" component: "lib:hspec-example" - path: "hs-opentelemetry/examples/hspec/test" component: "hspec-example:test:test" - path: "hs-opentelemetry/api/src" component: "lib:hs-opentelemetry-api" - path: "hs-opentelemetry/api/test" component: "hs-opentelemetry-api:test:hs-opentelemetry-api-test" - path: "hs-opentelemetry/exporters/handle/src" component: "lib:hs-opentelemetry-exporter-handle" - path: "hs-opentelemetry/exporters/otlp/src" component: "lib:hs-opentelemetry-exporter-otlp" - path: "hs-opentelemetry/exporters/otlp/test" component: "hs-opentelemetry-exporter-otlp:test:hs-opentelemetry-exporter-otlp-test" - path: "hs-opentelemetry/instrumentation/cloudflare/src" component: "lib:hs-opentelemetry-instrumentation-cloudflare" - path: "hs-opentelemetry/instrumentation/cloudflare/test" component: "hs-opentelemetry-instrumentation-cloudflare:test:cloudflare-test" - path: "hs-opentelemetry/instrumentation/conduit/src" component: "lib:hs-opentelemetry-instrumentation-conduit" - path: "hs-opentelemetry/instrumentation/conduit/test" component: "hs-opentelemetry-instrumentation-conduit:test:hs-opentelemetry-instrumentation-conduit-test" - path: "hs-opentelemetry/instrumentation/http-client/src" component: "lib:hs-opentelemetry-instrumentation-http-client" - path: "hs-opentelemetry/instrumentation/http-client/test" component: "hs-opentelemetry-instrumentation-http-client:test:hs-opentelemetry-instrumentation-http-client-t est" - path: "hs-opentelemetry/instrumentation/persistent/src" component: "lib:hs-opentelemetry-instrumentation-persistent" - path: "hs-opentelemetry/instrumentation/persistent/test" component: "hs-opentelemetry-instrumentation-persistent:test:hs-opentelemetry-persistent-test" - path: "hs-opentelemetry/instrumentation/postgresql-simple/src" component: "lib:hs-opentelemetry-instrumentation-postgresql-simple" - path: "hs-opentelemetry/instrumentation/postgresql-simple/test" component: "hs-opentelemetry-instrumentation-postgresql-simple:test:hs-opentelemetry-instrumentation-postgre sql-simple-test" - path: "hs-opentelemetry/instrumentation/wai/src" component: "lib:hs-opentelemetry-instrumentation-wai" - path: "hs-opentelemetry/instrumentation/wai/test" component: "hs-opentelemetry-instrumentation-wai:test:hs-opentelemetry-instrumentation-wai-test" - path: "hs-opentelemetry/instrumentation/yesod/src" component: "lib:hs-opentelemetry-instrumentation-yesod" - path: "hs-opentelemetry/instrumentation/yesod/test" component: "hs-opentelemetry-instrumentation-yesod:test:hs-opentelemetry-instrumentation-yesod-test" - path: "hs-opentelemetry/otlp/src" component: "lib:hs-opentelemetry-otlp" - path: "hs-opentelemetry/propagators/w3c/src" component: "lib:hs-opentelemetry-propagator-w3c" - path: "hs-opentelemetry/propagators/w3c/test" component: "hs-opentelemetry-propagator-w3c:test:hs-opentelemetry-propagator-w3c-test" - path: "hs-opentelemetry/sdk/src" component: "lib:hs-opentelemetry-sdk" - path: "hs-opentelemetry/sdk/test" component: "hs-opentelemetry-sdk:test:hs-opentelemetry-sdk-test" ```

Expected behaviour

I would like HLS to load up my file with full diagnostics working.

Actual behaviour

image

error example:

Could not find module ‘OpenTelemetry.Exporter’
There are files missing in the ‘hs-opentelemetry-api-0.0.3.5’ package,
try running 'ghc-pkg check'.
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
[typecheck:]

Debug information

Logs:

 2022-08-24T20:24:12.588227Z | Info | Staring LSP server...
If you are seeing this in a terminal, you probably should have run WITHOUT the --lsp option!
2022-08-24T20:24:12.589833Z | Info | Started LSP server in 0.00s
2022-08-24T20:24:13.889235Z | Warning | Currently, HLS supports GHC 9.2 only partially. See [issue #2982](https://github.com/haskell/haskell-language-server/issues/2982) for more detail.
2022-08-24T20:24:13.889611Z | Info | Registering IDE configuration: IdeConfiguration {workspaceFolders = fromList [NormalizedUri (-6163768064377842716) "file:///Users/jade/dev/mwb"], clientSettings = hashed (Just (Object (fromList [])))}
2022-08-24T20:24:13.894841Z | Info | Cradle path: hs-opentelemetry/sdk/src/OpenTelemetry/Processor/Simple.hs
[Info  - 1:24:13 PM] haskell-language-server version: 1.7.0.0 (GHC: 9.2.4) (PATH: /nix/store/any1yygzjgxqcbp49pr25ph3fhkskdkn-haskell-language-server-ghc9.2.4-1.7.0.0/bin/haskell-language-server)
[Info  - 1:24:13 PM] Directory: /Users/jade/dev/mwb
[Info  - 1:24:13 PM] Starting (haskell-language-server) LSP server...
  GhcideArguments {argsCommand = LSP, argsCwd = Nothing, argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = False, argsLogFile = Nothing, argsThreads = 0, argsProjectGhcVersion = False}
  PluginIds: [ pragmas
             , floskell
             , fourmolu
             , ormolu
             , stylish-haskell
             , rename
             , callHierarchy
             , class
             , eval
             , importLens
             , qualifyImportedNames
             , refineImports
             , moduleName
             , hlint
             , alternateNumberFormat
             , codeRange
             , changeTypeSignature
             , gadt
             , ghcide-hover-and-symbols
             , ghcide-code-actions-imports-exports
             , ghcide-code-actions-type-signatures
             , ghcide-code-actions-bindings
             , ghcide-code-actions-fill-holes
             , ghcide-completions
             , ghcide-type-lenses
             , ghcide-core
             , LSPRecorderCallback ]
[Info  - 1:24:13 PM] Logging heap statistics every 60.00s
[Info  - 1:24:13 PM] Staring LSP server...
If you are seeing this in a terminal, you probably should have run WITHOUT the --lsp option!
[Info  - 1:24:13 PM] Started LSP server in 0.00s
[Warn  - 1:24:13 PM] Currently, HLS supports GHC 9.2 only partially. See [issue #2982](https://github.com/haskell/haskell-language-server/issues/2982) for more detail.
[Info  - 1:24:13 PM] Registering IDE configuration: IdeConfiguration {workspaceFolders = fromList [NormalizedUri (-6163768064377842716) "file:///Users/jade/dev/mwb"], clientSettings = hashed (Just (Object (fromList [])))}
[Info  - 1:24:13 PM] Cradle path: hs-opentelemetry/sdk/src/OpenTelemetry/Processor/Simple.hs
2022-08-24 13:24:15.103489 [ThreadId 83] INFO hie-bios: Build profile: -w ghc-9.2.4 -O0
2022-08-24 13:24:15.104206 [ThreadId 83] INFO hie-bios: In order, the following will be built (use -v for more details):
2022-08-24 13:24:15.104243 [ThreadId 83] INFO hie-bios:  - hs-opentelemetry-api-0.0.3.5 (lib) (file src/OpenTelemetry/Internal/Trace/Types.hs changed)
2022-08-24 13:24:15.104264 [ThreadId 83] INFO hie-bios:  - hs-opentelemetry-propagator-w3c-0.0.1.2 (lib) (dependency rebuilt)
2022-08-24 13:24:15.104282 [ThreadId 83] INFO hie-bios:  - hs-opentelemetry-exporter-otlp-0.0.1.3 (lib) (dependency rebuilt)
2022-08-24 13:24:15.104298 [ThreadId 83] INFO hie-bios:  - hs-opentelemetry-sdk-0.0.3.2 (lib) (dependency rebuilt)
2022-08-24 13:24:15.132185 [ThreadId 83] INFO hie-bios: ./hs-opentelemetry-api.cabal has been changed. Re-configuring with most
2022-08-24 13:24:15.132333 [ThreadId 83] INFO hie-bios: recently used options. If this fails, please run configure manually.
2022-08-24 13:24:15.134344 [ThreadId 83] INFO hie-bios: Configuring library for hs-opentelemetry-api-0.0.3.5..
2022-08-24 13:24:17.071274 [ThreadId 83] INFO hie-bios: Preprocessing library for hs-opentelemetry-api-0.0.3.5..
2022-08-24 13:24:17.078401 [ThreadId 83] INFO hie-bios: Building library for hs-opentelemetry-api-0.0.3.5..
2022-08-24 13:24:17.445899 [ThreadId 83] INFO hie-bios: [20 of 32] Compiling OpenTelemetry.Baggage ( src/OpenTelemetry/Baggage.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-api-0.0.3.5/noopt/build/OpenTelemetry/Baggage.dyn_o )
2022-08-24 13:24:17.616882 [ThreadId 83] INFO hie-bios: [21 of 32] Compiling OpenTelemetry.Context.Types ( src/OpenTelemetry/Context/Types.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-api-0.0.3.5/noopt/build/OpenTelemetry/Context/Types.dyn_o )
2022-08-24 13:24:17.616965 [ThreadId 83] INFO hie-bios: [22 of 32] Compiling OpenTelemetry.Trace.Id ( src/OpenTelemetry/Trace/Id.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-api-0.0.3.5/noopt/build/OpenTelemetry/Trace/Id.dyn_o )
2022-08-24 13:24:17.617014 [ThreadId 83] INFO hie-bios: [24 of 32] Compiling OpenTelemetry.Util ( src/OpenTelemetry/Util.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-api-0.0.3.5/noopt/build/OpenTelemetry/Util.dyn_o )
2022-08-24 13:24:17.731182 [ThreadId 81] INFO hie-bios: ld: warning: /nix/store/jn87zpinz338xah0hpbdwlmka422b0ri-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
2022-08-24 13:24:17.741546 [ThreadId 83] INFO hie-bios: [25 of 32] Compiling OpenTelemetry.Internal.Trace.Types ( src/OpenTelemetry/Internal/Trace/Types.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-api-0.0.3.5/noopt/build/OpenTelemetry/Internal/Trace/Types.dyn_o )
2022-08-24 13:24:17.997178 [ThreadId 83] INFO hie-bios: [27 of 32] Compiling OpenTelemetry.Exporter ( src/OpenTelemetry/Exporter.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-api-0.0.3.5/noopt/build/OpenTelemetry/Exporter.dyn_o ) [OpenTelemetry.Internal.Trace.Types changed]
2022-08-24 13:24:18.05993 [ThreadId 83] INFO hie-bios:  [28 of 32] Compiling OpenTelemetry.Context ( src/OpenTelemetry/Context.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-api-0.0.3.5/noopt/build/OpenTelemetry/Context.dyn_o )
2022-08-24 13:24:18.071229 [ThreadId 83] INFO hie-bios: [29 of 32] Compiling OpenTelemetry.Trace.Sampler ( src/OpenTelemetry/Trace/Sampler.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-api-0.0.3.5/noopt/build/OpenTelemetry/Trace/Sampler.dyn_o )
2022-08-24 13:24:18.167011 [ThreadId 83] INFO hie-bios: [30 of 32] Compiling OpenTelemetry.Context.ThreadLocal ( src/OpenTelemetry/Context/ThreadLocal.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-api-0.0.3.5/noopt/build/OpenTelemetry/Context/ThreadLocal.dyn_o )
2022-08-24 13:24:18.167665 [ThreadId 83] INFO hie-bios: [31 of 32] Compiling OpenTelemetry.Trace.Core ( src/OpenTelemetry/Trace/Core.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-api-0.0.3.5/noopt/build/OpenTelemetry/Trace/Core.dyn_o )
2022-08-24 13:24:18.400702 [ThreadId 81] INFO hie-bios: 
2022-08-24 13:24:18.400815 [ThreadId 81] INFO hie-bios: src/OpenTelemetry/Trace/Id.hs:67:1: warning: [-Wunused-imports]
2022-08-24 13:24:18.40085 [ThreadId 81] INFO hie-bios:      The import of ‘GHC.ST’ is redundant
2022-08-24 13:24:18.400879 [ThreadId 81] INFO hie-bios:       except perhaps to import instances from ‘GHC.ST’
2022-08-24 13:24:18.400901 [ThreadId 81] INFO hie-bios:     To import instances alone, use: import GHC.ST()
2022-08-24 13:24:18.400919 [ThreadId 81] INFO hie-bios:    |
2022-08-24 13:24:18.400935 [ThreadId 81] INFO hie-bios: 67 | import GHC.ST
2022-08-24 13:24:18.400954 [ThreadId 81] INFO hie-bios:    | ^^^^^^^^^^^^^
2022-08-24 13:24:18.400971 [ThreadId 81] INFO hie-bios: 
2022-08-24 13:24:18.40099 [ThreadId 81] INFO hie-bios:  src/OpenTelemetry/Util.hs:83:5: warning: [-Wunused-top-binds]
2022-08-24 13:24:18.401009 [ThreadId 81] INFO hie-bios:     Defined but not used: ‘maxSize’
2022-08-24 13:24:18.401028 [ThreadId 81] INFO hie-bios:    |
2022-08-24 13:24:18.401046 [ThreadId 81] INFO hie-bios: 83 |   , maxSize :: {-# UNPACK #-} !Int
2022-08-24 13:24:18.401064 [ThreadId 81] INFO hie-bios:    |     ^^^^^^^
2022-08-24 13:24:18.40108 [ThreadId 81] INFO hie-bios:  
2022-08-24 13:24:18.401096 [ThreadId 81] INFO hie-bios: src/OpenTelemetry/Util.hs:84:5: warning: [-Wunused-top-binds]
2022-08-24 13:24:18.401112 [ThreadId 81] INFO hie-bios:     Defined but not used: ‘dropped’
2022-08-24 13:24:18.401129 [ThreadId 81] INFO hie-bios:    |
2022-08-24 13:24:18.401146 [ThreadId 81] INFO hie-bios: 84 |   , dropped :: {-# UNPACK #-} !Int
2022-08-24 13:24:18.401163 [ThreadId 81] INFO hie-bios:    |     ^^^^^^^
2022-08-24 13:24:18.833468 [ThreadId 83] INFO hie-bios: Preprocessing library for hs-opentelemetry-propagator-w3c-0.0.1.2..
2022-08-24 13:24:18.834362 [ThreadId 83] INFO hie-bios: Building library for hs-opentelemetry-propagator-w3c-0.0.1.2..
2022-08-24 13:24:18.855526 [ThreadId 83] INFO hie-bios: Preprocessing library for hs-opentelemetry-exporter-otlp-0.0.1.3..
2022-08-24 13:24:18.856329 [ThreadId 83] INFO hie-bios: Building library for hs-opentelemetry-exporter-otlp-0.0.1.3..
2022-08-24 13:24:19.077486 [ThreadId 83] INFO hie-bios: [2 of 3] Compiling OpenTelemetry.Propagator.W3CTraceContext ( src/OpenTelemetry/Propagator/W3CTraceContext.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-propagator-w3c-0.0.1.2/noopt/build/OpenTelemetry/Propagator/W3CTraceContext.dyn_o ) [OpenTelemetry.Internal.Trace.Types changed]
2022-08-24 13:24:19.098044 [ThreadId 83] INFO hie-bios: [2 of 2] Compiling OpenTelemetry.Exporter.OTLP ( src/OpenTelemetry/Exporter/OTLP.hs, /Users/jade/.cache/hie-bios/dist-mwb-07245096cdcadc0ca45906a67923fa98/build/aarch64-osx/ghc-9.2.4/hs-opentelemetry-exporter-otlp-0.0.1.3/noopt/build/OpenTelemetry/Exporter/OTLP.dyn_o )
2022-08-24 13:24:20.02108 [ThreadId 83] INFO hie-bios:  ./hs-opentelemetry-sdk.cabal has been changed. Re-configuring with most
2022-08-24 13:24:20.021171 [ThreadId 83] INFO hie-bios: recently used options. If this fails, please run configure manually.
2022-08-24 13:24:20.022903 [ThreadId 83] INFO hie-bios: Configuring library for hs-opentelemetry-sdk-0.0.3.2..
2022-08-24 13:24:21.948289 [ThreadId 83] INFO hie-bios: Preprocessing library for hs-opentelemetry-sdk-0.0.3.2..
2022-08-24T20:24:22.109748Z | Info | Interface files cache directory: /Users/jade/.cache/ghcide/hs-opentelemetry-sdk-0.0.3.2-inplace-e4e4e7aa5fc3973e573f89c275b20acb54944bd3
2022-08-24T20:24:22.110022Z | Info | Making new HscEnv. In-place unit ids: [hs-opentelemetry-sdk-0.0.3.2-inplace]
[Info  - 1:24:22 PM] Interface files cache directory: /Users/jade/.cache/ghcide/hs-opentelemetry-sdk-0.0.3.2-inplace-e4e4e7aa5fc3973e573f89c275b20acb54944bd3
[Info  - 1:24:22 PM] Making new HscEnv. In-place unit ids: [hs-opentelemetry-sdk-0.0.3.2-inplace]
2022-08-24T20:24:23.180180Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:24:23 PM] InternalError: Unable to typecheck
2022-08-24T20:24:25.754542Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:24:25 PM] InternalError: Unable to typecheck
2022-08-24T20:24:26.554117Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:24:26 PM] InternalError: Unable to typecheck
2022-08-24T20:24:27.044433Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:24:27 PM] InternalError: Unable to typecheck
2022-08-24T20:24:28.080672Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:24:28 PM] InternalError: Unable to typecheck
2022-08-24T20:25:12.553321Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:25:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:26:12.563606Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:26:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:27:12.565859Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:27:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:28:12.566840Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:28:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:28:54.916176Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:28:54 PM] InternalError: Unable to typecheck
2022-08-24T20:28:56.229400Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:28:56 PM] InternalError: Unable to typecheck
2022-08-24T20:29:12.567955Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:29:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:30:12.569896Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:30:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:31:12.570756Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:31:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:32:12.571723Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:32:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:33:12.572699Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:33:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:34:12.573702Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:34:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:35:12.574783Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:35:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:35:42.485748Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:35:42 PM] InternalError: Unable to typecheck
2022-08-24T20:35:43.482997Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:35:43 PM] InternalError: Unable to typecheck
2022-08-24T20:36:00.035818Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:36:00 PM] InternalError: Unable to typecheck
2022-08-24T20:36:12.576534Z | Info | Live bytes: 144.58MB Heap size: 939.52MB
[Info  - 1:36:12 PM] Live bytes: 144.58MB Heap size: 939.52MB
2022-08-24T20:36:16.082801Z | Warning | InternalError: Unable to typecheck
[Warn  - 1:36:16 PM] InternalError: Unable to typecheck
lf- commented 2 years ago

This was hacked around on the testsuite (although at the cost of waiting like 5 minutes for it to interpret multiple thousand modules and using an even more hilarious than usual amount of RAM [currently my heap is 42GB, 25GB live. god help me]) by a test-dev target which includes src/ and test/.

michaelpj commented 3 months ago

This should be fixed with the new multi-component support.