18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

JEdit is not supporting for Sahi extension files

gaveyomgaveyom Members
edited October 2011 in Sahi - Open Source
Dear All/ Sahi Administrator,

1st of all thanks a lot for introducing such a great automation tool like sahi, it's an amazing tool which i have ever seen among all the automation tools

i have downloaded JEdit for editing sahi code and configured as mentioned in sahi site but it is not working

i have followed the steps which is mentioned in this site

http://sahi.sourceforge.net/ide.html

steps like

******************************************************************************

Download Sahi edit mode.

Installation:

1. Copy sahi.xml to the /modes directory in the jEdit root folder
2. Add the following XML node to the file "catalog" in the same directory

<MODE NAME="sahi" FILE="sahi.xml" FILE_NAME_GLOB="*.sah" />


******************************************************************************

i have followed the above steps and configured sahi.xml file in JEdit software

even i have configured as mentioned above it is not displaying as sahi file, just it is displaying as normal text file

please let me know the solutions y it is not working.

thanks in advance

Comments

  • gaveyomgaveyom Members
    edited October 2011
    Dear Sumitra/ Narayan/ Sahi Team,

    does any 1 know y JEdit is not supporting for sahi extension files despite i have configured as per mentioned in below site

    http://sahi.sourceforge.net/ide.html

    please let me know if any thing i have missed out in configuration steps for the above link

    thanks in advance
  • gaveyomgaveyom Members
    edited October 2011
    please at least reply whether u folks have any idea regarding this or not

    so that i will go for another alternate

    thanks in advance
  • Hi Sahi Team,

    please reply to this post

    if u folks don't have idea on this post then please close this post
  • Hi gaveyom,

    The steps you followed seems to be correct.

    On windows XP it works perfectly fine.

    On windows 7 , i observe that the syntax higlighting is not possbile.

    Regrads
    Sumitra
  • gaveyomgaveyom Members
    edited November 2011
    Hi Sumitra,

    thanks for your quick reply

    my current OS is Windows XP only but it is not working
  • Hi Gaveyom,

    Here are the steps which i followed.

    1)Downloaded Jedit 4.4.1.
    2)Copy sahi.xml to the /modes directory in the jEdit root folder
    Add the following XML node to the file "catalog" in the same directory

    <MODE NAME="sahi" FILE="sahi.xml" FILE_NAME_GLOB="*.sah" />
    3)Launch Jedit. Opened Sahi script from Jedit.

    If you are writing any script in jedit then make sure that it is been saved as xxx.sah file.

    Regards
    Sumitra
  • Hi,

    two things.

    1. You shouldn't put this in the jEdit root folder. If you uninstall/reinstall you will lose the changes and even if you update to a newer version, you will probably loose your customization.
    Do the same in your settings directory instead. You can find it most easily from within jEdit at "Utilities -> Settings Directory". There you also have a "modes" directory and a catalog file.

    2. It should work just find if you followed those instructions. Does your file end in ".sah"? If not, you can still use the sahi edit mode by either manually selecting it from the Buffer Options ("Utilities -> Buffer Options..." or double click on the buffer options indicator in the lower right "(...,...,...)") or by embedding a buffer-local property that specifies the mode. For this just add ":mode=sahi:" somewhere in the first or last 10 lines of your file. It is prefectly fine if this is within a comment.

    If it still doesn't work, despite my comments from "2.", then it would be helpful if you provide me the activity.log from inside your settings directory after you tried to edit a sahi file.

    Sumitra: Why did you download 4.4.1? Current is 4.4.2. I'm just curious to see why/how you came to 4.4.1.
    And why didn't syntax highlighting work for you under Win7? Shouldn't make any difference, there is almost nothing Windows specific or OS version specific in jEdit.
    Is there something suspious in your activity.log when the syntax highlighting doesn't work?
    Was the other OS version really the only difference? Same Java version? Same jEdit version? ...?

    PS: It is jEdit, not JEdit

    Regards
    Vampire
Sign In or Register to comment.