Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save scottcorgan/8231ee560293449fd0d682c58c835c02 to your computer and use it in GitHub Desktop.
Save scottcorgan/8231ee560293449fd0d682c58c835c02 to your computer and use it in GitHub Desktop.

How to make VSCode work with Elm 0.18 again

With the update to Elm to 0.19, extensions in IDEs are going to start getting weird for 0.18. It's really hard to support to different versions of language. Because of this, I recently needed to figure out how to install a different version of an extension in VSCode (my IDE of choice). I am not quite ready to update all my code to Elm 0.19, so I want to make sure I still have the best experience in my IDE.

Some of the problems I was facing was no error/warning highlighting in the text editor, and no errors showing up in the output/problems panel.

Here are the steps to do that:

  1. Remove current installation of vscode-elm from VSCode
  2. Download version 0.19.0 of vscode-elm (the last version with no Elm 0.19 support) here https://marketplace.visualstudio.com/_apis/public/gallery/publishers/sbrink/vsextensions/elm/0.19.0/vspackage
  3. Open VSCode and open the Command Palette (cmd+shift+p on macOS)
  4. type in VSIX and click on Extensions: Install from VSIX...
  5. The file choosing dialog will open and you can select the file you downloaded in step 2.
  6. Reload/Restart VSCode.

If you have any issues with this, hit me up on Twitter -> @scottcorgan

@BendingBender
Copy link

Before/after uninstalling, you should disable auto-updates, too: settings > "extensions.autoUpdate" : false,. See: microsoft/vscode#12764 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment