Skip to content

Failure to load project with spaces on its absolute path #4225

Open
@arbitrary-dev

Description

@arbitrary-dev

Your environment

Which OS do you use?
Gentoo

Which version of GHC do you use and how did you install it?
9.8.2 compiled from sources

How is your project built?

cabal-version:      3.0
name:               project
version:            0.1.0.0
-- synopsis:
-- description:
license:            NONE
author:             Me
maintainer:         no
-- copyright:
category:           Testing
build-type:         Simple
extra-doc-files:    CHANGELOG.md
-- extra-source-files:

common warnings
    ghc-options: -Wall -main-is Server

executable app
    import:           warnings
    main-is:          Main.hs
    -- other-modules:
    -- other-extensions:
    build-depends:
        ...
    hs-source-dirs:   app
    default-language: GHC2021

Which LSP client (editor/plugin) do you use?
neovim + lsp-configs

Which version of HLS do you use and how did you install it?
2.7.0.0 compiled from sources

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

Steps to reproduce

Put a sample project on a path with spaces, e.g:
/tmp/ab c/project

Expected behaviour

HLS successfully loads the project.

Actual behaviour

 Diagnostics:
 Loading the module '/tmp/ab c/project/app/Main.hs' failed.

 It may not be listed in your .cabal file!
 Perhaps you need to add `Main` to other-modules or exposed-modules.

 For more information, visit: https://cabal.readthedocs.io/en/3.4/developing-pa
 ckages.html#modules-included-in-the-package

Metadata

Metadata

Assignees

No one assigned

    Labels

    build tool: cabalstatus: blockedNot actionable, because blocked by upstream/GHC etc.type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions