dtvkriz / flashdevelop

Automatically exported from code.google.com/p/flashdevelop
0 stars 1 forks source link

mm.cfg location with Homedir + Homepath issue on enterprise machines running Win XP #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have a laptop that is remotely configured so that the user's homedrive and 
homepath and on a network share. The full path is not writable and mm.cfg does 
live on the network.
2. Attempt to open FlashDevelop 3.3.3+

What is the expected output? What do you see instead?
You will see an error saying that access to the path [NETWORK DRIVE 
LETTER]:\[path]\mm.cfg is denied.

What version of the product are you using? On what operating system?
3.3.3 RTM & 3.3.4

Please provide any additional information below.
If us who are stuck on enterprise networks could have a setting where we could 
override the path that FD uses to edit the mm.cfg that would be awesome! Thanks!

Original issue reported on code.google.com by jmvrba...@gmail.com on 18 Mar 2011 at 8:38

GoogleCodeExporter commented 8 years ago
I have the same issues with Windows 7 x64 and FlashDevelop 3.3.4 RTM at startup 
and at close.

Access to the path 'M:\mm.cfg' is denied.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
   at PluginCore.Helpers.FileHelper.WriteFile(String file, String text, Encoding encoding, Boolean saveBOM)

Original comment by kinnabu...@gmail.com on 28 Apr 2011 at 1:30

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Lets try this again... my first fix was pushing it to the wrong place... woops!
This should fix it in FD4:

Line 320 of AS3Context\Controls\ProfilerUI.cs:
string home = Environment.GetEnvironmentVariable("USERPROFILE");

I have attached the full file for reference.
Posting this in the forums..

Original comment by jmvrba...@gmail.com on 29 Apr 2011 at 7:51

Attachments:

GoogleCodeExporter commented 8 years ago
FYI: It looks like this same fix applies to FD3.

Original comment by jmvrba...@gmail.com on 2 May 2011 at 5:19

GoogleCodeExporter commented 8 years ago
I've read a bit about this issue in various places. Is there any way to fix 
this issue without downloading source files?

Original comment by josh.sam...@gmail.com on 24 Oct 2011 at 1:31

GoogleCodeExporter commented 8 years ago
The fix was applied to FD4 a few months or so ago. They maybe still a slight 
issue with the profiler, but that one is much much harder to duplicate so I'm 
not sure if that has anything to do with this.

Original comment by jmvrba...@gmail.com on 24 Oct 2011 at 10:47

GoogleCodeExporter commented 8 years ago
I'll make sure this kind of error is handled silently.

Original comment by philippe...@gmail.com on 12 Dec 2011 at 8:49

GoogleCodeExporter commented 8 years ago

Original comment by philippe...@gmail.com on 12 Dec 2011 at 8:54