Author Topic: Global Alias Settings Import not working  (Read 1776 times)

mdorsey

  • Community Member
  • Posts: 5
  • Hero Points: 0
Global Alias Settings Import not working
« on: March 14, 2014, 08:15:53 pm »
I'm attempting to setup some global aliases for my team.  The export goes smoothly, but the import doesn't seem to work.  I am modifying the existing global alias "file comment", but when importing, it doesn't seem to want to overwrite the existing entry.  Is this by design?  I working with SlickEdit 18.0.1.2 64bit on Linux.

Also the /** comment expansion is basically the same.  I can modify my local settings, export them and then attempt to import them into another SlickEdit and it won't overwrite the existing settings.  This one is a bit worse since there doesn't seem to be a way to create any new comment expansions there.
« Last Edit: March 14, 2014, 08:26:43 pm by mdorsey »

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 35
Re: Global Alias Settings Import not working
« Reply #1 on: March 17, 2014, 04:16:03 pm »
Could you post your import file here?  When we import aliases, existing aliases with the same name should be overwritten.

mdorsey

  • Community Member
  • Posts: 5
  • Hero Points: 0
Re: Global Alias Settings Import not working
« Reply #2 on: March 17, 2014, 05:13:42 pm »
So the alias in question is the "filecomment", which is at the top of the file.  Since this alias already exists in the standard SE settings, it does not seem to get overwritten when importing this file.  The comment expansion for C/C++ functions does not seem to get overwritten either. 

cat alias.als.xml
<profile>
   <p n="filecomment">
      <text>
         /** @file %\f
          *  %\S
          * @brief %\c
          *  %\S
          * (c) Copyright &lt;2013-2014&gt; Hewlett-Packard Development Company, L.P. %\S
          * All Rights Reserved %\S
          *  %\S
          * @author %\a (%\d)
          * @version 1.0
          */
         %\l
      </text>
   </p>
   <p n="ma">
      <text>
         "%VSROOT%macros%\g
      </text>
   </p>
   <p n="vs">
      <text>
         "%VSROOT%
      </text>
   </p>
   <p n="functioncomment">
      <params>
         <param n="fname" default="" prompt="Function Name:"/>
      </params>
      <text>
         /*
          *Function Name:%(fname)
          *
          *Parameters:%\c
          *
          *Description:
          *
          *Returns:
          *
          */
      </text>
   </p>
   <p n="config">
      <text>
         "%\M_config_path%
      </text>
   </p>
   <p n="bin">
      <text>
         "%VSLICKBIN1%
      </text>
   </p>
</profile>

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 35
Re: Global Alias Settings Import not working
« Reply #3 on: March 18, 2014, 03:27:59 pm »
I've reproduced your problem and am now looking into it.  Will let you know what I find.  Thanks for your help in tracking this down!

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 35
Re: Global Alias Settings Import not working
« Reply #4 on: March 19, 2014, 06:08:35 pm »
The latest hotfix takes care of this issue.  You can find it here:  http://www.slickedit.com/index.php?option=com_content&view=article&id=190&Itemid=41

Let me know if that helps!

mdorsey

  • Community Member
  • Posts: 5
  • Hero Points: 0
Re: Global Alias Settings Import not working
« Reply #5 on: March 21, 2014, 05:56:50 pm »
Yes, that fixed half of the problem.  The global alias update now works, but the comment expansion is still broken.  The comment expansion I'm referring to is the tools->settings->application languages->c++->comments->edit expansion.  There are only 4 alias definitions here and there does not seem to be a way to create or delete them, only edit them.  Again, I'm attempting to roll out a standard expansion template to our whole team.

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 35
Re: Global Alias Settings Import not working
« Reply #6 on: March 21, 2014, 07:17:56 pm »
Argh, you're right.  I'm so sorry, I totally missed the other part of your question.  I'll look into this part now.

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 35
Re: Global Alias Settings Import not working
« Reply #7 on: March 24, 2014, 02:50:36 pm »
I've got this one fixed now, too.  The fix will be in the next hotfix.

mdorsey

  • Community Member
  • Posts: 5
  • Hero Points: 0
Re: Global Alias Settings Import not working
« Reply #8 on: March 24, 2014, 08:24:07 pm »
How often are hotfixes created?

Thanks!

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 35
Re: Global Alias Settings Import not working
« Reply #9 on: March 24, 2014, 08:28:53 pm »

mdorsey

  • Community Member
  • Posts: 5
  • Hero Points: 0
Re: Global Alias Settings Import not working
« Reply #10 on: March 28, 2014, 02:57:43 pm »
Okay, that fixed both issues!  Thanks!