Skip to content

HdevtoolsType generates errors as if not configured using hdevtools_options #32

Open
@EdmundsEcho

Description

@EdmundsEcho

Hello, working with vim (nvim) with the integration of hdevtools improves my workflow a great deal. Thank you for this contribution.

Issue
When I call HdevtoolsType from vim's command line I get errors that say the binary can't find the modules in the project. I suspect this is an issue because of the following:

  1. in terminal, hdevtools check -g -isrc -g -Wall -g -hide-package -g transformers src/Render/Pre.hs works as expected
  2. in vim's command line, echo hdevtools_options I get what is expect: -g -isrc -g -Wall -g -hide-package -g transformers

... so why might I be getting the following when I call HdevtoolsType from vim's command line?

Failed to load targets
/Users/.../src/Render/Pre.hs:12:1: error:
    Could not find module ‘Models’
    Use -v to see a list of the files searched for.
/Users/.../src/Render/Pre.hs:13:1: error:
    Could not find module ‘Lib.Lens’
    Use -v to see a list of the files searched for.

Finally, when I look at the list of files searched, it seems to find them!

Failed to load targets
<no location info>: *** Chasing dependencies:
<no location info>:
    Chasing modules from: */Users/.../src/Render/Pre.hs
<no location info>:
    !!! Chasing dependencies: finished in 0.52 milliseconds, allocated 0.228 megabytes
<no location info>: *** Chasing dependencies:
<no location info>:
    Chasing modules from: */Users/.../src/Render/Pre.hs
<no location info>:
    !!! Chasing dependencies: finished in 0.52 milliseconds, allocated 0.225 megabytes
<no location info>:
    Stable obj: []
    Stable BCO: []
<no location info>:
    Ready for upsweep
      [NONREC
          ModSummary {
             ms_hs_date = 2018-04-07 13:34:20.687163728 UTC
             ms_mod = Render.Pre,
             ms_textual_imps = [(Nothing, Prelude), (Nothing, Lib.Lens),
                                (Nothing, Models)]
             ms_srcimps = []
          }]
<no location info>: *** Deleting temp files:
<no location info>: Deleting: 
<no location info>:
    compile: input file /Users/.../src/Render/Pre.hs
<no location info>:
    *** Checking old interface for Render.Pre (use -ddump-hi-diffs for more details):
<no location info>:
    [1 of 1] Compiling Render.Pre       ( /Users/.../src/Render/Pre.hs, nothing )
<no location info>: *** Parser [Render.Pre]:
<no location info>:
    !!! Parser [Render.Pre]: finished in 1.96 milliseconds, allocated 2.882 megabytes
<no location info>: *** Renamer/typechecker [Render.Pre]:
<no location info>:
    !!! Renamer/typechecker [Render.Pre]: finished in 0.04 milliseconds, allocated 0.020 megabytes
/Users/.../src/Render/Pre.hs:12:1: error:
    Could not find module ‘Models’
    Locations searched:
      Models.hs
      Models.lhs
      Models.hsig
      Models.lhsig
      src/Models.hs
      src/Models.lhs
      src/Models.hsig
      src/Models.lhsig
/Users/.../src/Render/Pre.hs:13:1: error:
    Could not find module ‘Lib.Lens’
    Locations searched:
      Lib/Lens.hs
      Lib/Lens.lhs
      Lib/Lens.hsig
      Lib/Lens.lhsig
      src/Lib/Lens.hs
      src/Lib/Lens.lhs
      src/Lib/Lens.hsig
      src/Lib/Lens.lhsig
<no location info>: Upsweep partially successful.
<no location info>: *** Deleting temp files:
<no location info>: Deleting: 

Thank you in advance for any pointers to resolving this issue.

- E

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions