Community
    • 登入

    Snippets crashes when trying to use "language" drop down

    已排程 已置頂 已鎖定 已移動 Notepad++ & Plugin Development
    4 貼文 3 Posters 1.4k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Ken BaumbachK
      Ken Baumbach
      最後由 編輯

      Hey all,

      I finally got Snippets to work (I thought) by renaming the template.sqlite file and moving it to the Config folder. I shut down and reopened N++ and the Snippets frame appeared on the right, but when I try to change the drop down from CSS2 Tags to anything else I get “Notepad++ has stopped working” and the Close Program button as the only option. It’s v.7.6.3. and Snippets v1.4.

      Any ideas? Thanks!

      Meta ChuhM 1 條回覆 最後回覆 回覆 引用 0
      • Meta ChuhM
        Meta Chuh moderator @Ken Baumbach
        最後由 Meta Chuh 編輯

        welcome to the notepad++ community, @Ken-Baumbach

        the way you’ve installed your snippets 1.4 plugin and NppSnippet.sqlite on notepad++ 7.6.3 seems to be correct.

        usually it works fine on a clean, non corrupted NppSnippet.sqlite database.
        but just in case there’s something missing, or too much on your setup, here’s the current guide for notepad++ 7.6.3:

        how to install snippets 1.4 (NppSnippets) on notepad++ 7.6.3:

        (note: the paths in this guide are for the installed versions of notepad++, the paths of a portable version depend on where the portable folder is placed)

        • install snippets 1.4 using the built in plugins admin from the menu plugins > plugins admin

        • after installation you will see unable to find database, check your installation!
          press ok to continue and close notepad++

        • open an explorer window and enter one of the following addresses, depending on your notepad++ installation.
          notepad++ 32 bit on 64 bit windows: %ProgramFiles(x86)%\Notepad++\plugins\NppSnippets\NppSnippets\
          notepad++ 32 bit on 32 bit windows: %ProgramFiles%\Notepad++\plugins\NppSnippets\NppSnippets\
          notepad++ 64 bit on 64 bit windows: %ProgramFiles%\Notepad++\plugins\NppSnippets\NppSnippets\
          notepad++ 64 bit on 32 bit windows: mission_impossible 😉

        • copy Template.sqlite from this folder to %AppData%\Notepad++\plugins\config

        • rename Template.sqlite to NppSnippets.sqlite


        here’s a screenshot of switching form css2 to for example js basics:

        Imgur

        note:
        the author is currently working on nppsnippets 1.5 that also resolves some minor issues with the newer notepad++ versions, including the missing auto creation of nppsnippets.sqlite at the correct location, using the existing template.sqlite.

        1 條回覆 最後回覆 回覆 引用 1
        • Ken BaumbachK
          Ken Baumbach
          最後由 編輯

          Yes, that’s exactly what I did. I also uninstalled and reinstalled it with no luck.

          1 條回覆 最後回覆 回覆 引用 0
          • Ololadeh LigaliO
            Ololadeh Ligali
            最後由 編輯

            此回覆已被刪除!
            1 條回覆 最後回覆 回覆 引用 0
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors