Keyword expansion on Keil uvision

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Andrew3579
Posts: 2
Joined: Thu Aug 06, 2015 4:34 am

Keyword expansion on Keil uvision

Post by Andrew3579 » Thu Aug 06, 2015 4:52 am

keyword expansion enabled for .c and .h files. Using Keil uvision 5 but not expanding.
Below is extract from .c file

Client Information
Vault Standard Client Version: 5.1.2.19281

Server Information
Server Version: 5.1.2.19281

Any thoughts ?

/******************************************************************************
* Copyright : © xxxxxxxxxx, 2015
* Confidential Document *
*
* All rights reserved. No part of this publication may be reproduced, stored
* in a retrieval system, or transmitted in any form or by any means,
* electronic, mechanical, photocopying, recording or otherwise, without the
* prior written permission of xxxxxxxxxxxx.
*
* $Archive:: $
*
* $Header: $
*
*****************************************************************************/

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Keyword expansion on Keil uvision

Post by Beth » Thu Aug 06, 2015 8:52 am

In what you posted, I can see Archive has too many colons.

Also, you might try and extra space both between the * and the header and/or between the colon and dollar sign.

In Vault, check out, edit, and check in the file, then perform a Get on it again, and open it in notepad. Do you see expansion then?

Has the Vault client been restarted since keyword expansion was enabled?
Beth Kieler
SourceGear Technical Support

Andrew3579
Posts: 2
Joined: Thu Aug 06, 2015 4:34 am

Re: Keyword expansion on Keil uvision

Post by Andrew3579 » Fri Aug 07, 2015 1:45 am

We have tried this with no success.

Please can you indentify the exact steps with examples to configure this and offer a working header to try with.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Keyword expansion on Keil uvision

Post by Beth » Tue Aug 18, 2015 3:59 pm

After testing, what I've learned is that there is something I can't see in what you pasted in the forum. If I copy it and put it into a file, it doesn't work, but if I type out my own, it does work.

You can see what I did by connecting to our Vault demo server using a web browser (your regular client won't work, plus, I tested against Vault Pro). The URL is vaultprodemo.sourcegear.com. Login with the name guest3 and password guest3. Choose the Initial Repository and Look in the path $/Documents/Folder1/. The files I tested the expansion with were Test 2 in c.h, Test 1 in c.c, Test1a.txt, and Test1b.txt.

Try not doing a copy paste into your files and see if that works instead, or type it out at least once in notepad, and then copy from notepad instead of some other program that might have hidden characters.
Beth Kieler
SourceGear Technical Support

Post Reply