Windows 10 and OneDrive error on starting APL session

Installing APL, Sorting out Fonts, Keyboards, etc.

Windows 10 and OneDrive error on starting APL session

Postby woody on Wed Feb 27, 2019 12:02 am

Hello,

I got a new Windows 10 laptop... and installed Dyalog v17 ...

but, there is this strange feature called OneDrive

For some reason, when I start Dyalog v17 ... I get access denied error.
I have tried sharing the OneDrive sub-folder with "everyone" granting full access...
but no good.

Why does the Cache file want to be created under this woody/onedrive path ?

I looked everywhere ... but could not seem to find this PATH setting ... so I might change it to /woody/.... skipping around the OneDrive sub-folder.

I'm stuck on this one.

Any ideas?

Dyalog APL/W-64 Version 17.0.33755
Serial No : xxxxxx
Unicode Edition
Tue Feb 26 15:56:46 2019

FILE ACCESS ERROR: Unable to create file ("Access is denied.")
ResetUCMDcache[27] fe←{22::0 ⋄ 1⊣⎕FUNTIE(1 3⍴0 ¯1)⎕FSTAC ⍵ ⎕FCREATE 0}uf ⍝ create the file if not there


uf
C:\Users\woody\OneDrive\Documents\Dyalog APL-64 17.0 Unicode Files\UserCommand20.cache

Thanks!
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: Windows 10 and OneDrive error on starting APL session

Postby AndyS|Dyalog on Wed Feb 27, 2019 11:23 am

By default we attempt create the user command cache file in a Dyalog APL-version specific directory (in your case \Dyalog APL-64 17.0 Unicode Files\) in the folder which your "My Documents" icon points to.

I suspect that OneDrive has altered that location (on my laptop, for example, "My Documents" points to C:\Users\andys\Documents). So one option is to disable OneDrive and hopefully that will set "My Documents" back to its default value.

You can define the UCMDCACHEFILE configuration parameter to override the location of the cahce file .. either add it to the Target field of the properties of the Dyalog APL startup icon, or add it to the registry.

As a matter of interest, can you ⎕ncreate a file in that directory ?
User avatar
AndyS|Dyalog
 
Posts: 255
Joined: Tue May 12, 2009 6:06 pm

Re: Windows 10 and OneDrive error on starting APL session

Postby woody on Wed Feb 27, 2019 9:24 pm

Still stuck.

I disabled OneDrive ... and it is "off" ...
but the PATH continues to embrace OneDrive

Also, no, I can not create a simple file from APL 'testfile' ⎕NCREATE 0
I get same file access error.

I can not find the reference you mentioned ... but I feel this issue is deeper / wider than just the one access error I see when I open Dyalog APL.

I notice the other Configuration PATHS inside APl reference the /OneDrive/ path also

The issue I am having ... is my DESKTOP seems to be physically under the /OneDrive/Desktop

Now that OneDrive is disabled ... I create a test.txt file on my desktop ..
but it does NOT show under C:\users\username\desktop
However, it does show under C:\users\username\OneDrive\desktop

I need to find a way to change my Windows 10 user Desktop to POINT at the normal traditional desktop C:\users\username\desktop

rather than C:\users\username\OneDrive\desktop

I have searched and read dozens of Windows 10 posts ...

I'm amazed that other Dyalog APLers have not run into this Windows10 + OneDrive issue ...

OneDrive CLONED my Desktop and Documents folders ... and keeps a cloned copy of all files in these 2 folders ... under username\OneDrive\desktop and Documents

Something inside Windows has interjected /OneDrive/ as the default path ... for my user session.

But there seems to be some very strange permissions settings for this special OneDrive folder.

I am running Dyalog.exe with Admin level security ...

I'll keep digging around and trying some things...

Thanks
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: Windows 10 and OneDrive error on starting APL session

Postby woody on Thu Feb 28, 2019 8:16 pm

Update:
I'm going to try to uninstall OneDrive

https://www.howtogeek.com/225973/how-to ... indows-10/

Then, uninstall DyalogAPL v17

Reboot

Then reinstall DyalogAPL v17

I'll let you know how it goes..

//W
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: Windows 10 and OneDrive error on starting APL session

Postby woody on Thu Feb 28, 2019 11:16 pm

OK.. good news.

Here's the issue.

If you have OneDrive installed ...
and you have checkmarked SYNC Desktop
then the install of Dyalog APL may get confused.

It creates the folder in username\desktop\APLfolder
Then OneDrive CLONES that folder and puts it under username\OneDrive\desktop\APLfolder

Then, APL LOOKS for that folder name .... and FINDS IT under the cloned version
C:\users\username\OneDrive\Desktop\APLfolder

It then tries to CREATE the session Cache working file under that xxx\OneDrive\xxxx path

OneDrive will not allow direct access to that special OneDrive folder ...
So, it throws the File Access Error.

Solution:
FIRST make sure your OneDrive does NOT include Desktop folder in the TO BE SYNC'd settings.

Then reinstall APL and it is able to create the session Cache file... and all is good.

Thanks!

Here's a link on how to disable or uninstall OneDrive.

https://support.office.com/en-us/articl ... fb09f944b0

//W
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: Windows 10 and OneDrive error on starting APL session

Postby woody on Sun Mar 15, 2020 5:44 pm

Here's a follow-up post on the subject of DyalogAPL install along with Windows 10 ONEDRIVE.

Can anyone confirm that this COULD be a conflict between DyalogAPL normal installation ... And the placement of Dyalog folder and files on the WIN10 (documents, desktop folders?).

When a user gets a new WIN10 OS ... it comes bundled with ONEDRIVE and a "free trial" O365 account. The new WIN10 "boot-up configuration prompts" ask the user if they want to enable ONEDRIVE.

I believe that the ONEDRIVE client-side tool actually modifies Windows Permissions on several folders ... so it can CLONE and MANAGE syncing between the user's PC and O365 cloud.

I'm thinking that by DEFAULT ... ONEDRIVE will try to "OWN" the Desktop and Documents folders ... changing security permissions ... and CLONING these folders where ONEDRIVE can keep everything "IN SYNC".

QUESTION1:
Are there any considerations or precautions that APLers should keep in mind when installing DyalogAPL on a WIN10 OS that has ONEDRIVE configured?

See this BLOG:
https://support.office.com/en-us/article/Files-save-to-OneDrive-by-default-in-Windows-10-33da0077-770c-4bda-b61e-8c8e8ca70ac7

Does Dyalog APL put anything (like log or session files) under Documents ?


QUESTION2:
Is there any advantage for installing DyalogAPL on a new folder C:\Dyalog
Rather than the default path C:\Program Files\Dyalog ?

Thanks for the help.

//W
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest