Re: Phix 0.8.2 uploaded
- Posted by petelomax Dec 12, 2020
- 1354 views
C:\Program Files (x86)\Phix\pmsgs.e:564 in procedure Fatal() invalid file number (-1)There's no mention of why editing installation.e has no effect. I don't know what to do.
Looks like a permissions error:
global procedure Fatal(string msg) ... fn = open("ex.err","w") puts(fn,msg) -- <<============================= this is line 564
If I right click on C:\Program Files (x86)\Phix, properties, security tab, then Users (Pete-PC/Users) has Full Control checked. I recommend you try the same.
I suspect windows is saving mods/edits in a "VirtualStore", and then running the now hidden original...
Some background: https://stackoverflow.com/questions/3219255/why-do-files-get-placed-in-c-users-usernameappdata-local-virtualstore-progra
and https://interworks.com/blog/dsmith/2011/09/21/disabling-windows-7-virtual-store and lastly the last line of post #16 above.
I'm open to suggestions for improvement, but ultimately I believe that kind of security model simply does not make any sense for a self-hosted compiler with the source files in C:\Program Files. On reflection, that is probably why my C:Root is now a messy circus of two dozen or more compiler-related directories that I always thought should have been put in C:\Program Files instead. As if whacking things in root is secure...
<rant class="sarcasm"> Here is our new security model. Here are some ways you'll need to get around it, making it completely pointless. But we'll still make your life a misery. Aren't we clever? </rant>