question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Format feature does not work in 0.9.0

See original GitHub issue

Format (either format on save or format on demand) does not work with 0.9.0.

Also, server trace does not show up at all (even with verbose mode)

(Feel free to contact me on Slack if further communication required!)

Current Behavior

  • With “format on save” enabled, after edit and save, it does not format the document.
  • Neither “Format Document” from command palette work

Steps to Reproduce (for bugs)

  • Clone rtfeldman/elm-spa-example
  • Open the repository in VSCode (versions below)
  • Open src/Main.elm
  • (elm-analyse result and reference conters should be rendered shortly)
  • Edit some lines like inserting newlines, then save (with format on save active,) or “Format Document”

Context

  • elm-format is installed globally, available in PATH
  • elm-format from command line works properly
  • Also, even with verbose mode, LS trace does not show up at all in OUTPUT pane
    • I found that it DOES NOT show up with 0.8.0 either, so this could be older regression
    • I do remember this had worked in some versions before (but not sure when)
  • Downgrading to 0.8.0 fixes the formatter
  • Possibly the same situation as #80 , but syntax highlighting, elm-analyse results and compile results (failures) are at least properly shown in my case
  • My colleague and local Elm friends are also encountering similar issues

Your Environment

  • Version used: 0.9.0
  • VSCode environment:
Version: 1.42.1
Commit: c47d83b293181d9be64f27ff093689e8e7aed054
Date: 2020-02-11T14:44:27.652Z
Electron: 6.1.6
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 19.3.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
razzeeecommented, Feb 18, 2020

I released 0.9.1 an hour ago, it resolves the problem for me. I’m hoping it works for you too.

5reactions
razzeeecommented, Feb 18, 2020

I won’t have much time till tonight to look at this, but I guess there might be a problem with diffing whitespaces introduced due to the new version of the language server or the split to the new textdocument package https://github.com/microsoft/vscode-languageserver-node/tree/master/textDocument

Read more comments on GitHub >

github_iconTop Results From Across the Web

FreeMind 0.9.0: The New Features
A great release is out. We have many exciting new features: WYSIWYG-Editing for nodes and notes, scripting, filter, attributes and many more.
Read more >
Files not autoformatted on save when other options that ...
inspect file in external editor to see it has not been formatted. In spyder, press CTRL+ALT+I to format the file. You get the...
Read more >
Release notes — anndata 0.9.0.dev36+g18078aa ...
The on disk format of AnnData objects has been updated with this release. Previous releases of anndata will not be able to read...
Read more >
New features from Apache Hudi 0.9.0 on Amazon EMR
Furthermore, Apache Hudi lets you maintain data in Amazon S3 or Apache HDFS in open formats such as Apache Parquet and Apache Avro....
Read more >
Migrating Between Versions
You are not reading the most recent version of this documentation. ... In the 0.9.0 release, there are several changes to the DataContext...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found