Closed
Description
Description
Hello,
Not sure when did this start, but I'm getting the following error when using code search:
An error occurred:
Render failed, failed to render template: explore/code, error: template error: builtin(bindata):code/searchresults:34:83 : executing "code/searchresults" at <Safe>: wrong type for value; expected string; got template.HTML
----------------------------------------------------------------------
<td class="lines-code chroma"><code class="code-inner">{{.FormattedLines | Safe}}</code></td>
^
----------------------------------------------------------------------
Looks like the search does work but rendering the results fails:
I'm using bleve
indexer with the following settings:
[indexer]
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = indexers/repos.bleve
MAX_FILE_SIZE = 1048576
REPO_INDEXER_INCLUDE =
REPO_INDEXER_EXCLUDE = resources/bin/**
The above config worked for me until I upgraded to one of the recent version (not sure which update, I haven't used code search for a bit).
I will appreciate any help - thanks very much!
Gitea Version
1.21.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
ubuntu
How are you running Gitea?
Running gitea binary as a systemd service on Ubuntu 22.04
Database
MySQL/MariaDB