XML error
I am getting XML configuration error, why so?
username@amazingozingozo ~ % rm -rf .config/vtm/
username@amazingozingozo ~ % vtm
os: Terminal type: tmux-256color
os: Color mode: xterm truecolor
os: Mouse mode: VT-style
vtm: v2025.06.12b
args: vtm
apps: Update settings source files from
/usr/local/etc/vtm/settings.xml
~/.config/vtm/settings.xml
apps: Loading settings from "/usr/local/etc/vtm/settings.xml"...
Loaded 54289 bytes
Merging settings from "/usr/local/etc/vtm/settings.xml"
xml: There are no placeholders to store the value; it is possible the target is in a compact form
value: R"==(
value:
)=="
R"==(
value:
)==" // MSVC2022: C2026 String too big, trailing characters truncated.
R"==(
value:
)=="
xml: There is no placeholders for ext value (target item in an inline form)
xml: There is no placeholders for ext value (target item in an inline form)
apps: Loading settings from "/home/username/.config/vtm/settings.xml"...
Not found
main: New desktop session for [username@amazingozingozo]
os: Process forked
open: File system socket /home/username/.config/vtm/vtm-1001.sock
vtm version:
vtm-2025.06.12b
apps: Loading settings from "/usr/local/etc/vtm/settings.xml"... Loaded 54289 bytes
xml: There are no placeholders to store the value; it is possible the target is in a compact form value: R"==( ...
Hi! The vtm/src/vtm.xml file serves as a default settings template and is not directly suitable for use as settings.xml.
vtm/src/vtm.xml needs to be cleared of service C++ inserts, just remove it:
)=="R"==()==" // MSVC2022: C2026 String too big, trailing characters truncated.-
)==" #if defined (WIN32) R"==( -
)==" #else R"==( -
)==" #endif R"==(
Or you can copy the working settings from here. There may be minor differences from the actual default settings. I sometimes forget to sync doc/settings.md with /src/vtm.xml.
You can also get the default settings using the command vtm -l.
But in general you are right, there shouldn’t be such errors and I have to fix the XML parser so that it doesn’t complain about these C++ inserts.