Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Highlighting the current line
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

thameera
New Member

Sri Lanka
6 Posts

Posted - Mar 12 2012 :  11:41:20 PM  Show Profile  Reply with Quote
I have selected 'Highlight the current line' option and chose 'Foreground and Background'. When I go to Tools | Options | Environment | Fonts and colors | VA X Current Line, it shows only the options to change the formatting of the dotted line style, not the foreground/background style. (And yes, I've tried restarting Visual Studio).



Any help would be appreciated.

(I'm using Visual Assist 10.6.1830.0 and Visual Studio 2008)

Edited by - thameera on Mar 13 2012 01:08:30 AM

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Mar 13 2012 :  12:21:14 PM  Show Profile  Reply with Quote
Can you try the following please. First exit VS2008
Now run regedit, and find and delete the registry key:

HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\9.0\\FontAndColors\\Cache\
This key and all of its values will be recreated by the IDE. Now restart VS2008. Are you now able to set the background colour for the current line?

zen is the art of being at one with the two'ness
Go to Top of Page

thameera
New Member

Sri Lanka
6 Posts

Posted - Mar 13 2012 :  12:27:06 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

Can you try the following please. First exit VS2008
Now run regedit, and find and delete the registry key:

HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\9.0\\FontAndColors\\Cache\
This key and all of its values will be recreated by the IDE. Now restart VS2008. Are you now able to set the background colour for the current line?



This is my work PC; no access to registry. :(
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Mar 13 2012 :  3:29:08 PM  Show Profile  Reply with Quote
Would you be able to run / import a .reg file on your machine?

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Mar 13 2012 :  4:29:32 PM  Show Profile  Reply with Quote
When you say you have no access to the registry, what do you mean? You cannot run regedit? VA and IDE options are saved to the registry, in the HKEY_CURRENT_USER section, so if you can change your settings then you should be able to edit this part of your registry.

zen is the art of being at one with the two'ness
Go to Top of Page

thameera
New Member

Sri Lanka
6 Posts

Posted - Mar 13 2012 :  11:19:25 PM  Show Profile  Reply with Quote
I can't run regedit in this. I can of course change the VA settings through Visual Studio.
So there's no solution other than going to the registry? Is this some kind of bug? :S
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Mar 14 2012 :  5:19:58 PM  Show Profile  Reply with Quote
There is a bug at work here, but I am not entirely sure where that bug is. To update your registry please create a new plain text file, and paste in the following 3 lines:

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\9.0\\FontAndColors\\Cache]


and call the file something like "remove_cache.reg"

Now make sure all instances of VS2008 have been closed, and then run this .reg file. This will delete the Cache key and all of its children from your registry.

If you now load VS2008 you should be able to set the background colour for the current line without any problems.

zen is the art of being at one with the two'ness
Go to Top of Page

thameera
New Member

Sri Lanka
6 Posts

Posted - Mar 14 2012 :  11:27:51 PM  Show Profile  Reply with Quote
As I mentioned previously, I have no access to the registry, so can't run .reg files. There's no way I can solve this without accessing the registry?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Mar 14 2012 :  11:58:38 PM  Show Profile  Reply with Quote
Do you have any form of ability at all to change the current user registry settings? What things can you do? Since program settings are being changed, installed programs are being allowed to edit keys in this registry branch.

Would a vbscript be allowed to run and modify the registry? Where does the boundary lay?

So far I have not been able to find any other solution. I have tried various things, but without a registry edit I seem unable to force VS2008 to delete and rebuild its cache, and thus fix this problem.

zen is the art of being at one with the two'ness
Go to Top of Page

thameera
New Member

Sri Lanka
6 Posts

Posted - Mar 15 2012 :  12:09:38 AM  Show Profile  Reply with Quote
I'm afraid I have no idea about the exact boundary. Don't have access to much of the Control Panel either, but I can install and uninstall applications. Can run vbscript files, but not sure if it'd work for editing the registry.
Sorry if I'm being a nuisance.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Mar 15 2012 :  11:27:52 AM  Show Profile  Reply with Quote
Can you please create a .vbs file, perhaps "delete_cache.vbs" and paste in the following code:


Const HKEY_CURRENT_USER  = &H80000001

' Object used to get StdRegProv Namespace
Set wmiLocator = CreateObject("WbemScripting.SWbemLocator")

' Object used to determine local machine name
Set wshNetwork = CreateObject("WScript.Network")

' Registry Provider (StdRegProv) lives in root\\default namespace.
Set wmiNameSpace = wmiLocator.ConnectServer(wshNetwork.ComputerName, "root\\default")
Set objRegistry = wmiNameSpace.Get("StdRegProv")

' Deletes Key with alle subkeys
sPath = "Software\\Microsoft\\VisualStudio\\9.0\\FontAndColors\\Cache"

lRC = DeleteRegEntry(HKEY_CURRENT_USER, sPath)

Function DeleteRegEntry(sHive, sEnumPath)
	' Attempt to delete key.  If it fails, start the subkey
	' enumration process.
	lRC = objRegistry.DeleteKey(sHive, sEnumPath)
	
	' The deletion failed, start deleting subkeys.
	If (lRC <> 0) Then
		' Subkey Enumerator
		On Error Resume Next
		
		lRC = objRegistry.EnumKey(HKEY_CURRENT_USER, sEnumPath, sNames)
		
		For Each sKeyName In sNames
			If Err.Number <> 0 Then Exit For
			lRC = DeleteRegEntry(sHive, sEnumPath & "\\" & sKeyName)
		Next
		
		On Error Goto 0
		
		' At this point we should have looped through all subkeys, trying
		' to delete the registry key again.
		lRC = objRegistry.DeleteKey(sHive, sEnumPath)
	End If
End Function



This iterates across all of the sub keys, deleting them, before finally deleting the empty cache. I have tested this script, and it works correctly here. Hopefully you will have permission to run this on your system. Obviously please run this with all instances of VS2008 closed.

zen is the art of being at one with the two'ness
Go to Top of Page

thameera
New Member

Sri Lanka
6 Posts

Posted - Mar 15 2012 :  12:14:24 PM  Show Profile  Reply with Quote
It works like a charm! I have the Item Background option now. Thanks a lot for your time! Much appreciated. :)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Mar 15 2012 :  8:15:47 PM  Show Profile  Reply with Quote
Thank you for the update, it is good to have a working solution for situations like this

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000