zed
zed copied to clipboard
Go error messages have all symbols escaped
Summary
Go error messages have all symbols escaped
Description
With a clean install of Zed the hovered error message shown because require.Never() isn't being passed enough arguments has every symbol escaped.
Go code
click to expand
package main
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestStuff(t *testing.T) {
t.Run("Test Stuff", func(t *testing.T) {
require.Never()
})
}
Screenshot
click to expand
Steps to reproduce
- Clean install
- Open a new project with the code in the description
- Run
go mod tidyto install dependencies (testify/require) - Hover over the error message shown on the
require.Never()line
Expected Behavior: Unescaped symbols/text in the error message Actual Behavior: Escaped symbols/text in the error message
Zed Version and System Specs
Zed: v0.186.7 (Zed) OS: macOS 15.4.1 Memory: 16 GiB Architecture: aarch64