External TCL Editor

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf External TCL Editor

  • Creator
    Topic
  • #52732
    Mohammed Muzammil
    Participant

      All,

      Can someone point out how we could setup an external TCL editor to use within CL for creating/modifying TPS?

      I have used the External Command option, however after clicking on tcl scripts, it just opens up a blank notepad++ file – am I missing something?

      regards,

    Viewing 8 reply threads
    • Author
      Replies
      • #75308
        David Barr
        Participant

          I use an external editor, but I never use the Cloverleaf IDE button to launch it. I either run Emacs locally or on our Linux Cloverleaf server. When I run it locally, I can edit files remotely through FTP.

        • #75309
          Jeff Dinsmore
          Participant

            I edit all of my scripts on my desktop Windows PC using Komodo.

            I do most of my TCL component testing on my PC, then move the code to CL and do final test.

            Jeff Dinsmore
            Chesapeake Regional Healthcare

          • #75310
            bill bearden
            Participant

              Mohammed,

              I am not certain I understand so excuse me if this isn’t to the point.

              You can set up an external editor to automatically launch from in Cloverleaf. To set this up, pull down Options>Client Options… Then go to the External Command tab. There is a field for setting the External Editor Command.

              I use the standard editor. The things I would check are if CL maintains revisions with an external editor. I like revisions. Also, check to see if the tclindex is rebuilt when a new tps script is created.

              BTW, we are using CL 5.8.4. Your mileage may vary.

              Good luck,

              b

            • #75311
              Mohammed Muzammil
              Participant

                Thanks Bill.

                I did try that, however when trying to edit a TCL, it was opening up an empty editor..

                I have attached the settings screen shot in the first post. Probably I have missed something very basic!

                Let me know.

                regards,

              • #75312
                David Harrison
                Participant

                  Mohammed,

                  I think that’s how it’s supposed to work – just opening an empty editor. Cloverleaf doesn’t associate it with a tcl script or anything else.

                  I find the easiest way is to use a Windows editor (I use ConText) to enter the tcl script and then cut and paste into Cloverleaf.

                  Regards,

                  Dave

                • #75313
                  Cullen Linn
                  Participant

                    Mohammed,

                    When you set the external editor, make sure and add the “@F” after the editor path. In your example, you would want to use “notepad++ @F”. The @F causes Cloverleaf to pass in the file path to your editor.

                    Cheers,

                    Cullen

                  • #75314
                    Mohammed Muzammil
                    Participant

                      Super.. that does work Cullen. Thanks.

                      In the meanwhile I have set up a profile on Notepad++ to point to the tclprocs directory: /hci/healthvision/cis5.8/integrator/rbhtest/tclprocs

                      Once a new proc has been added clicking the refresh button in the sitemanager would allow the tcl proc to be used from within Clover.

                      This does help quite a lot in creating/editing TCL’s, especially for someone from a .NET background..!

                      thanks

                    • #75315
                      Jerry Tilsley
                      Participant

                        If I set the external editor for notepad++ and use the @F option then this points to a temp file on my windows client which is never copied over to the Linux Server.  Any suggestions on correcting this?

                      • #75316
                        Mohammed Muzammil
                        Participant

                          Jerry,

                          Sorry – I may not be able to answer that.

                          But as mentioned in the post above you could follow the steps for setting up a profile in NP++ pointing to /tclprocs.. I am currently using this and it is working quite well.

                          Also found this useful link about, NP++ settings for TCL:

                          http://wiki.tcl.tk/14992

                          (see post by scottdware)

                      Viewing 8 reply threads
                      • The forum ‘Cloverleaf’ is closed to new topics and replies.