-
-
Notifications
You must be signed in to change notification settings - Fork 390
incorrect suggestion for module name - missing first character of directory name #3047
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
Comments
@July541 you looked at the module name plugin not that long ago, maybe you have an idea? |
@adamgundry, Thank you for your report! I can't repro this, did I miss something? Or would you mind sharing a repo that can reproduce this? |
I am not surprised; i suppose it is a strange interaction. I currently work on |
Confirmed on your project. It's weird and can't figure out what happened with one glance. I'll check it while I have enough bandwidth (Or someone is pleased to chime in). As I can repro, it doesn't look like about caching. FYI, I often follow the following steps to clear hls caches:
|
For a reminder, implementing #1682 may be useful. |
Thank you for the confirmation that you can see the same problem in my project, and special thanks for the procedures to clean the caches. |
I can report that the but happens if the code is structured such that the whole directory (not just src) is
When the code structure is changed moving the libraries into |
Thank you! |
* Make path canonicalized * Update extra-source-files * Replace with normalise * Change to a more detailed log * Comment patch detail * 2 spaces indent
Your environment
Which OS do you use?
Which version of GHC do you use and how did you install it?
debian 11 actualized
ghc 8.10.7 installed with ghcup
3.6.2.0 of the Cabal library
I have in a directory Lib a file Example.hs in my project; it compiles without error.
In VScode I see a problem:
Set module name to
ib.Example
above the linemodule Lib.Example
This is systematic and happens with all my modules.
Which LSP client (editor/plugin) do you use?
Which version of HLS do you use and how did you install it?
Version: 1.69.1
Commit: b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a
Date: 2022-07-12T08:28:29.328Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Linux x64 5.10.0-16-amd64
Have you configured HLS in any way (especially: a
hie.yaml
file)?no hie.yaml file - rely on automatic one
The Haskell Language server with the plugin for VScode works well - except it drops the first character of the directory for a suggested module name.
For example:
I have in a directory Lib a file Example.hs in my project; it compiles without error.
In VScode I see a problem:
Set module name to
ib.Example
above the linemodule Lib.Example
This is systematic and happens with all my modules. Is there a problem in any of my setup files and which files should I check?
Steps to reproduce
open a file, see the suggestion for a change in the module name.
Expected behaviour
no suggestion - resp. a correct suggestion (which would then not be made). correct means with the first character of the directory name. (e.g. Lib, when directory is Lib and current suggestion is
ib
).Actual behaviour
Debug information
The text was updated successfully, but these errors were encountered: