-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fails when a file uses the PackageImports extension #40
Comments
How do I reproduce this? |
It seems to be reproducible by opening the following file in a project: {-# LANGUAGE PackageImports #-}
module Foo
(
) where
import "aeson" Data.Aeson |
@ilyakooo0 Can you try building from master again? I added a slightly better diagnostic which may help us see what's going on. |
By |
Yes, sorry about that confusion. |
|
Thanks, that's very useful. Hopefully will get around to fixing it this week. It is probably safe to not error in this case if you want to make progress. |
In particular, be more careful about only returning import paths which could actually be imported into the current module which means excluding 'main' modules. Fixes #40
Can you try this patch? |
I can confirm that the issue is not present in the |
In particular, be more careful about only returning import paths which could actually be imported into the current module which means excluding 'main' modules. Fixes #40
In particular, be more careful about only returning import paths which could actually be imported into the current module which means excluding 'main' modules. Fixes #40
In particular, be more careful about only returning import paths which could actually be imported into the current module which means excluding 'main' modules. Fixes #40
originally posted: https://github.com/digital-asset/ghcide/issues/569
I am fairly certain that the following error is related to the use of the PackageImports extension in the currently open file.
The text was updated successfully, but these errors were encountered: