can't find the path Reflexil.window\\index.dat

Explore, browse and analyze .NET assemblies

Moderators: Luke Jefferson, Charles Brown, StephenC, Alex.Davies, Greg.Tillman, melvyn.harbour

can't find the path Reflexil.window\\index.dat

Postby flourishing » Thu Jan 28, 2010 8:23 am

I use the newest beta reflector pro,
and i download the plugin reflexil 1.0 version.
where i try to use replace all with code
reflector pop up a messagebox,said.

can't find the path c:\\users\\xx\\appdata\\local\\temp\\reflexil.window\\index.dat
then crashed. i have tryed the stable version, and change the reflexil version to 0.9,the same question.

i run on windows7, so i changes to windows xp too. the same problem appeared.
wear?
thank you for any help.
flourishing
 
Posts: 2
Joined: Thu Jan 28, 2010 8:14 am

Postby Clive Tong » Thu Jan 28, 2010 10:51 am

I managed to reproduce the problem here, but it doesn't appear to be connected with any Reflector code.

The error when I run as administrator is

System.IO.DirectoryNotFoundException
Could not find a part of the path 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\Reflexil.Window\\index.dat'.

The stacktrace for the error is
System.IO.__Error
WinIOError(Int32 errorCode, String maybeFullPath)
System.IO.FileStream
Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
System.IO.FileStream.
ctor(String path, FileMode mode, FileAccess access)
ICSharpCode.SharpDevelop.Dom.DomPersistence
SaveCacheIndex(Dictionary`2 cacheIndex)
ICSharpCode.SharpDevelop.Dom.DomPersistence
AddFileNameToCacheIndex(String cacheFile, ReflectionProjectContent pc)
ICSharpCode.SharpDevelop.Dom.DomPersistence
SaveProjectContent(ReflectionProjectContent pc)
ICSharpCode.SharpDevelop.Dom.ProjectContentRegistry
get_Mscorlib()
Reflexil.Forms.IntellisenseForm
ParserThread()
System.Threading.ThreadHelper
ThreadStart_Context(Object state)

so it looks like the problem is just that the code in the assembly ICSharpCode.SharpDevelop.Dom.dll expects the directory to exist. Hence the workaround is probably to create the directory, though the longer term solution is probably to get the add-in author to use an API to create the necessary directory.
Clive Tong
 
Posts: 283
Joined: Thu Dec 04, 2008 5:42 pm

Postby reflexil » Fri Dec 03, 2010 5:37 pm

This is fixed with Reflexil 1.2 (coming in January 2011)

Regards
reflexil
 
Posts: 10
Joined: Fri Dec 03, 2010 5:28 pm

reflexil does not work

Postby Neil » Tue Jan 04, 2011 1:58 am

if your Windows language is not english, when you use reflexil to replace the method code, an exception will thrown, and the reflector will crash.
the exception message may be like:
Could not find a part of the path 'C:\\Users\\xxxxxx\\AppData\\Local\\Temp\\Reflexil.Window\\index.dat'.

i think this is a bug of reflexil. the solution is: you can create a folder of 'Reflexil.Window' in '...AppData\\Local\\Temp\\'

then restart reflector, reflexil works now.
Neil
 
Posts: 1
Joined: Sat Jan 01, 2011 3:04 am

Postby reflexil » Mon Feb 07, 2011 12:06 pm

Was related to the cache system used by the completion engine. It's fixed in the SVN (and will be available in v1.2)
reflexil
 
Posts: 10
Joined: Fri Dec 03, 2010 5:28 pm


Return to .Net Reflector 6.x and .NET Reflector 6.x Pro

Who is online

Users browsing this forum: No registered users and 1 guest