vtm icon indicating copy to clipboard operation
vtm copied to clipboard

XML error

Open ghost opened this issue 7 months ago • 3 comments

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

ghost avatar Jun 12 '25 19:06 ghost

 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"==(
    

o-sdn-o avatar Jun 12 '25 19:06 o-sdn-o

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.

o-sdn-o avatar Jun 12 '25 19:06 o-sdn-o

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.

o-sdn-o avatar Jun 12 '25 21:06 o-sdn-o