nwolverson / purescript-language-server

MIT License
183 stars 41 forks source link

BUG: Deleting/renaming modules does NOT purge them from the cache #177

Open i-am-the-slime opened 2 years ago

i-am-the-slime commented 2 years ago

After renaming a module, the old one still stays valid in the editor. Also autocomplete will be suggested for both the old and new one.

nwolverson commented 2 years ago

I'm confused, the title and body seem to contradict each other?

wclr commented 2 years ago

This is becase output still contains the old module, purs IDE and the compiler work this way. It will still suggest for something that is in the ouptut, and the compiler build doesn't remove stale (deleted/renamed) modules from the output.

I thought how it should be dealt with, probably we should clear up the output in some valid cases, for example module rename refactoring. Maybe some other mechanics could be used to remove stale modules as well if the compiler is not going to care bout it.

i-am-the-slime commented 2 years ago

@nwolverson Sorry yes, I forgot a NOT! Edit: Or maybe I formulated this as a feature? Can't remember