Skip to content

The filepath is not recognized correctly in a multi-cradle project. #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shin-sakata opened this issue Aug 1, 2020 · 1 comment
Closed
Labels
build tool: stack component: ghcide type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@shin-sakata
Copy link

This is the minimal project that causes the symptoms.
https://github.com/shin-sakata/multi-cradle-example

It's a project that outputs itself to standard output.

stack run component1

{-# LANGUAGE TemplateHaskell #-}

module Lib
    ( someFunc
    ) where

import Data.FileEmbed (embedStringFile)

someFunc :: IO ()
someFunc = putStrLn file

file :: String
file = $(embedStringFile "./src/Lib.hs")

This project works correctly, but I get a warning.

スクリーンショット 2020-08-01 13 50 27

スクリーンショット 2020-08-01 13 51 04

environment:
OS: Catalina 10.15.5
Editor: VScode
haskell-language-server: 0.2.2

@lukel97 lukel97 added type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. component: ghcide labels Aug 1, 2020
@jneira
Copy link
Member

jneira commented Nov 9, 2020

I think this is a duplicate of #481 (that it is blocked upstream and has a workaround).

@jneira jneira closed this as completed Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build tool: stack component: ghcide type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

3 participants