While testing the resolution of #686 I ran across another crash with "Request testDocument/documentSystem failed" error in vs code. Like #686 this is in a new phoenix project. The error happens when typing a '@' on a new line before an existing @callback line. It doesn't happen when you type after the existing @callback.
defmodule Myapp.Backend do
@|
@callback test() :: :ok
end
Create a new phoenix project with mix phx.new myapp
Create "lib/myapp/backend.ex"
Type in the code above, starting with the @callback test() :: :ok
Insert a new line before the @callback test() :: :ok line and type a single "@" character.
This also seems to happen with @spec instead of @callback.
This happened prior to commit db866eff38ad66dc6182605f4aaa3cd1309c1edc that fixed #686, as well as after that commit. So I think it's a different bug, just somewhat related because it deals with type specs.
While testing the resolution of #686 I ran across another crash with "Request testDocument/documentSystem failed" error in vs code. Like #686 this is in a new phoenix project. The error happens when typing a '@' on a new line before an existing
@callback
line. It doesn't happen when you type after the existing@callback
.The error:
Steps to reproduce:
mix phx.new myapp
@callback test() :: :ok
@callback test() :: :ok
line and type a single "@" character.This also seems to happen with
@spec
instead of@callback
.This happened prior to commit db866eff38ad66dc6182605f4aaa3cd1309c1edc that fixed #686, as well as after that commit. So I think it's a different bug, just somewhat related because it deals with type specs.
Thanks!