-
-
Notifications
You must be signed in to change notification settings - Fork 29
Description
When moving an elm file to another folder by dragging it in VSCode, the language server reports non-existent errors. In order to clear the errors, the files must be opened and saved (no changes required) - this only works though if there are no real errors, otherwise the non-existent errors remain.
The non-existent errors reappear on saving other files, which becomes extremely annoying - especially during refactoring when trying to follow the compilers [real] errors.
Eventually, the errors do reduce (but never go away completely) - no idea what is actually going on here. Restarting VSCode has no effect. Restarting the language server has no effect. Uninstalling and re-installing the language server has no effect, so must assume that something is left hanging around that is causing the language server to report the false-positives.
OS: OSX Sequoia 15.5
Language Server: 2.8.0
VSCode :
Version: 1.100.2 (Universal)
Commit: 848b80aeb52026648a8ff9f7c45a9b0a80641e2e
Date: 2025-05-14T21:47:40.416Z
Electron: 34.5.1
ElectronBuildId: 11369351
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0
Workaround - don’t drag files around. Create a new file, copy the contents of the old file, delete old file, manually update import statements to reference the new files location 🤷