• Login
Community
  • Login

Unable to load Auto Complete file

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 2.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    Corayzon
    last edited by Oct 17, 2015, 1:22 AM

    I use a python script to generate a auto complete file.

    After a recent format and reinstall of Notepad++ (to the latest version).

    This auto complete file wont load:

    http://fastdl.aus-tg.com/sourcemod.xml

    I made a truncated version with the first two entries and it works fine.

    http://fastdl.aus-tg.com/sourcemod_truncated.xml

    Can someone please help me understand why the full version of the auto complete file doesn’t load anymore?

    1 Reply Last reply Reply Quote 0
    • T
      tomas-chrastina
      last edited by Oct 18, 2015, 5:20 PM

      Hi,

      I was unable to download files from links you provided, so please try to find another location for them.

      Meanwhile try to check XML format, using plugin “XML Tools” Menu: Plugins -> XML Tools -> Check XML syntax now. Also check if keywords are sorted.


      Best regards,
      Tomas.

      1 Reply Last reply Reply Quote 0
      • T
        tomas-chrastina
        last edited by tomas-chrastina Oct 19, 2015, 11:55 AM Oct 19, 2015, 11:53 AM

        Hi,

        finally I downloaded files. I checked file using XML Tools, and found errors. So you need to correct them.

        First you should use escaped characters for attribute values of generated XML file (it will solve most of errors I can see):
        < -> &lt;
        > -> &gt;
        & -> &amp;
        " -> &quot;
        …

        To change this lines containing special characters like:

        <Param name="&flags"/>
        <Overload retVal=">"
        ...
        

        I don’t know python, but it should be easy to implement escaping for you I guess -> Escaping XML.

        Then simply use XML Tools to check file, until it will be correct.

        Hint: You can use &#x0a; for new line in descr attribute. It will made file easier to read.

        descr="1st Line&#x0a;2nd Line"
        

        Best regards,
        Tomas.

        G 1 Reply Last reply Apr 3, 2023, 6:32 PM Reply Quote 0
        • G
          Goten San @tomas-chrastina
          last edited by Apr 3, 2023, 6:32 PM

          @tomas-chrastina said in Unable to load Auto Complete file:

          Hi,

          finally I downloaded files. I checked file using XML Tools, and found errors. So you need to correct them.

          First you should use escaped characters for attribute values of generated XML file (it will solve most of errors I can see):
          < -> <
          > -> >
          & -> &
          " -> "
          …

          To change this lines containing special characters like:

          <Param name="&flags"/>
          <Overload retVal=">"
          ...
          

          I don’t know python, but it should be easy to implement escaping for you I guess -> Escaping XML.

          Then simply use XML Tools to check file, until it will be correct.

          Hint: You can use for new line in descr attribute. It will made file easier to read.

          descr="1st Line
          

          2nd Line"

          
          
          ---
          Best regards,
          Tomas.
          

          Thanks.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors