Save and compile in code editor does not save lua code into panel

Home Forums General Programming Save and compile in code editor does not save lua code into panel

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30166
    synth
    Participant
      • Topics: 13
      • Replies: 35
      • Total: 48

      Hi,

      I have a bzip panel as I want to package all my images and Lua code into 1 file. When I edit the lua code and “Save and compile” it does not seem to save the code into the bzpanel though it does compile it.

      I am wondering if saving/exporting the panel when the user presses “Save and compile”, to ensure any Lua changes are saved, is a good idea.

      Note: I will implement it myself and send a pull request if its a good idea 😀

      • This topic was modified 9 years, 6 months ago by synth.
      #30189
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        It was never designed that way. The save and compile, saves to the Ctrlr state not to the file. Everything is kept there, unless explicitly saved by the user.

        #30232
        synth
        Participant
          • Topics: 13
          • Replies: 35
          • Total: 48

          Oh ok. Is the Ctrlr state then written to disk immediately somewhere, in case there is a crash after a change in a lua method ? (very common during development :P)

          #30233
          atom
          Keymaster
            • Topics: 159
            • Replies: 2945
            • Total: 3104
            • ★★★★★

            No, there is a “Save CTRLR state” menu option that does that and additionaly there is a timer that saves the state at a defined time interval (you can set how often in the global settings).

            #30238
            synth
            Participant
              • Topics: 13
              • Replies: 35
              • Total: 48

              Ah ok thanks.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The forum ‘Programming’ is closed to new topics and replies.
            There is currently 0 users and 56 guests online
            No users are currently active
            Forum Statistics
            Threads: 2,495, Posts: 17,374, Members: 77,605
            Most users ever online was 12 on January 22, 2019 3:47 pm
            Ctrlr