Trevoke / alchemist.el

Elixir Tooling Integration Into Emacs
http://www.alchemist-elixir.org
5 stars 2 forks source link

Constant heredoc warnings #14

Open zachdaniel opened 6 years ago

zachdaniel commented 6 years ago

Describe the bug Whenever I move my cursor inside of a heredoc (even when it is correctly aligned) I get the following message a whole bunch of times (more than the 2 occurrences shown here).

warning: outdented heredoc line. The contents inside the heredoc should be indented at the same level as the closing """. The following is forbidden:

    def text do
      """
    contents
      """
    end

Instead make sure the contents are indented as much as the heredoc closing:

    def text do
      """
      contents
      """
    end

The current heredoc line is indented too little
  nofile:18
 [2 times]

To Reproduce Create a heredoc and place your cursor in it and move it around. Hard to say if this will be reproducible elsewhere :(

Setup I'm using spacemacs. OTP version 20. I have excluded alchemist from the packages brought in by layers, and then I've added:

  (push "~/spacemacs_plugins/alchemist.el" load-path)
  (require 'alchemist-elixir-ls)
  (require 'alchemist-goto)
  (require 'alchemist)