purescript-language-server icon indicating copy to clipboard operation
purescript-language-server copied to clipboard

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

Open i-am-the-slime opened this issue 3 years ago • 3 comments

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.

i-am-the-slime avatar Jun 14 '22 07:06 i-am-the-slime

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

nwolverson avatar Jun 14 '22 07:06 nwolverson

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.

wclr avatar Jun 14 '22 10:06 wclr

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

i-am-the-slime avatar Jun 28 '22 08:06 i-am-the-slime