Community
    • Login

    Unable to load Auto Complete file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 3.3k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors