zed icon indicating copy to clipboard operation
zed copied to clipboard

Go error messages have all symbols escaped

Open royathan opened this issue 7 months ago • 0 comments

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 Image

Steps to reproduce

  1. Clean install
  2. Open a new project with the code in the description
  3. Run go mod tidy to install dependencies (testify/require)
  4. 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

royathan avatar May 14 '25 13:05 royathan