From f987b93f816301a05958abd37090712c82838d6b Mon Sep 17 00:00:00 2001 From: Lazar Bulovan Date: Sat, 18 Jul 2026 16:41:49 +0200 Subject: [PATCH] fix: replace heredoc with printf in build script The heredoc inside the YAML block scalar (|) broke YAML parsing because the heredoc body lines (#!/bin/bash, exec lua...) were at column 0, which YAML interpreted as top-level keys. The ':' in the exec line triggered 'could not find expected ':'' parse errors. Replace with printf to keep the entire build script as properly-indented YAML block scalar content. This also fixes the mason UI crash where the newline-containing error message triggered 'replacement string item contains newlines' in nvim_buf_set_lines. --- packages/tia-lsp/package.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/tia-lsp/package.yaml b/packages/tia-lsp/package.yaml index be8f025..9e6cfb9 100644 --- a/packages/tia-lsp/package.yaml +++ b/packages/tia-lsp/package.yaml @@ -16,10 +16,7 @@ source: git clone --depth 1 --branch v{{version}} https://gitea.l-tech.rs/lazar/tia-lsp.git tia-lsp-src cp -r tia-lsp-src/src ./src mkdir -p bin - cat > bin/tia-lsp << 'EOF' -#!/bin/bash -exec lua "$(dirname "$0")/../src/main.lua" "$@" -EOF + printf '#!/bin/bash\nexec lua "$(dirname "$0")/../src/main.lua" "$@"\n' > bin/tia-lsp chmod +x bin/tia-lsp bin: