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.
    • CorayzonC
      Corayzon
      last edited by

      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
      • tomas-chrastinaT
        tomas-chrastina
        last edited by

        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
        • tomas-chrastinaT
          tomas-chrastina
          last edited by tomas-chrastina

          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.

          Goten SanG 1 Reply Last reply Reply Quote 0
          • Goten SanG
            Goten San @tomas-chrastina
            last edited by

            @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