Re: sysError List?
Hi Rick, > On 14. May 2017, at 15:51, Rick Harrison via use-livecode > wrote: > > Hi Ralf, > > Are you doing this in an LC Server > by accessing the script through a > web-browser such as Safari? yes, the path the script yields is: /private/var/folders/zz/zyxvpxvq6csfxvn_n08r26/T/TemporaryItems no matter which browser I use. > > As I’m not getting a path - what > path are you getting specifically? > I’m still trying to locate where my > temp files are ending up. I don’t > know if they are just going to the > bit bucket in the sky or what! > > If this is working for you given the > above parameters then it probably > means it isn’t a bug with LC but > a problem with my system or > some quirk with setup of the server. > > Thanks in advance. > > Rick Ralf ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Hi Ralf, Are you doing this in an LC Server by accessing the script through a web-browser such as Safari? As I’m not getting a path - what path are you getting specifically? I’m still trying to locate where my temp files are ending up. I don’t know if they are just going to the bit bucket in the sky or what! If this is working for you given the above parameters then it probably means it isn’t a bug with LC but a problem with my system or some quirk with setup of the server. Thanks in advance. Rick > On May 14, 2017, at 7:20 AM, Ralf Bitter via use-livecode > wrote: > > MacOS 10.12.4 > LC server 8.1.4-rc-2 > > Your script works as expected here, > yields the path to the temporary items folder. > > > Ralf ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
MacOS 10.12.4 LC server 8.1.4-rc-2 Your script works as expected here, yields the path to the temporary items folder. Ralf > On 13. May 2017, at 18:27, Rick Harrison via use-livecode > wrote: > > Hi Richard, > > Ok, so I did the upgrade to version 8.1.4 RC 2 and > after rebooting I found that it made no difference at all. > > When you are using lc-server and use > the following script, what do you get? > > put specialFolderPath("temporary") > ?> > > Thanks, > > Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
I don't normally use LC Server because its syntax cannot be tested in the IDE, preferring to use standalones in server apps. But I just downloaded LCS 8,.1.4 RC2, and running it from the command line with your sample script yields the expected valid path to my temp folder. You may have found a Mac-specific bug worth reporting: http://quality.livecode.com/ -- Richard Gaskin Fourth World Systems Rick Harrison wrote: Hi Richard, Ok, so I did the upgrade to version 8.1.4 RC 2 and after rebooting I found that it made no difference at all. When you are using lc-server and use the following script, what do you get? Thanks, Rick On May 13, 2017, at 11:15 AM, Richard Gaskin via use-livecode wrote: That value is either accurate or inaccurate. Either way, it seems a bug - the question is, where? If accurate, it would appear there's something very unusual about your OS config, since temp files are a common necessity in modern OSes. If inaccurate, it would appear to be a bug in LC 8.1.4 RC1. Have you tried that in 8.1.4 RC2? http://downloads.livecode.com/livecode/ If the problem is repeatable with the latest build you might want to file a bug report on that. FWIW, testing both LC 8.1.4 RC2 and 9.0 DP6 I get a valid path to my system's temp folder. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web Ambassador at FourthWorld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Hi Richard, Ok, so I did the upgrade to version 8.1.4 RC 2 and after rebooting I found that it made no difference at all. When you are using lc-server and use the following script, what do you get? Thanks, Rick > On May 13, 2017, at 11:15 AM, Richard Gaskin via use-livecode > wrote: > > That value is either accurate or inaccurate. Either way, it seems a bug - the > question is, where? > > If accurate, it would appear there's something very unusual about your OS > config, since temp files are a common necessity in modern OSes. > > If inaccurate, it would appear to be a bug in LC 8.1.4 RC1. > > Have you tried that in 8.1.4 RC2? > http://downloads.livecode.com/livecode/ > > If the problem is repeatable with the latest build you might want to file a > bug report on that. > > FWIW, testing both LC 8.1.4 RC2 and 9.0 DP6 I get a valid path to my system's > temp folder. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > > ambassa...@fourthworld.comhttp://www.FourthWorld.com > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Hi Richard, Ok, I’ll try an upgrade to 8.1.4 RC2 to see if that works, and then get back to you. Thanks, Rick > On May 13, 2017, at 11:15 AM, Richard Gaskin via use-livecode > wrote: > > Rick Harrison wrote: > > >> On May 12, 2017, at 10:40 PM, Richard Gaskin wrote: > >> > >> put specialFolderPath("temporary") > > > > Hi Richard, > > > > It returns blank. > > > > So now what? > > That value is either accurate or inaccurate. Either way, it seems a bug - the > question is, where? > > If accurate, it would appear there's something very unusual about your OS > config, since temp files are a common necessity in modern OSes. > > If inaccurate, it would appear to be a bug in LC 8.1.4 RC1. > > Have you tried that in 8.1.4 RC2? > http://downloads.livecode.com/livecode/ > > If the problem is repeatable with the latest build you might want to file a > bug report on that. > > FWIW, testing both LC 8.1.4 RC2 and 9.0 DP6 I get a valid path to my system's > temp folder. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > > ambassa...@fourthworld.comhttp://www.FourthWorld.com > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Rick Harrison wrote: >> On May 12, 2017, at 10:40 PM, Richard Gaskin wrote: >> >> put specialFolderPath("temporary") > > Hi Richard, > > It returns blank. > > So now what? That value is either accurate or inaccurate. Either way, it seems a bug - the question is, where? If accurate, it would appear there's something very unusual about your OS config, since temp files are a common necessity in modern OSes. If inaccurate, it would appear to be a bug in LC 8.1.4 RC1. Have you tried that in 8.1.4 RC2? http://downloads.livecode.com/livecode/ If the problem is repeatable with the latest build you might want to file a bug report on that. FWIW, testing both LC 8.1.4 RC2 and 9.0 DP6 I get a valid path to my system's temp folder. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Hi Richard, It returns blank. So now what? Rick > On May 12, 2017, at 10:40 PM, Richard Gaskin via use-livecode > wrote: > > put specialFolderPath("temporary") ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Rick Harrison wrote: > LC version 8.1.4-rc-1 > macOS El Capitan (10.11.6) > > put specialFolderPath("documents”) > > yields: > /Library/WebServer/Documents > > Your thoughts? What does this return?: put specialFolderPath("temporary") -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Hi Richard, LC version 8.1.4-rc-1 macOS El Capitan (10.11.6) put specialFolderPath("documents”) yields: /Library/WebServer/Documents Your thoughts? Rick > On May 12, 2017, at 5:10 PM, Richard Gaskin via use-livecode > wrote: > > Scary. Looks like the specialFolderPath function is returning empty with the > "temporary" constant on your system? > > LC and OS versions? > > Just for diagnostics, what does this do there?: > > put specialFolderPath("documents") > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > > ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Rick Harrison wrote: >> On May 12, 2017, at 2:54 PM, Richard Gaskin wrote: >> >> put specialFolderPath("temporary") &"/livecode_qpSKBPng" \ >> into tPath > > That yields: > > tPath = /livecode_qpSKBPng > > Does that help? Scary. Looks like the specialFolderPath function is returning empty with the "temporary" constant on your system? LC and OS versions? Just for diagnostics, what does this do there?: put specialFolderPath("documents") -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Hi Richard, That yields: tPath = /livecode_qpSKBPng Does that help? Rick > On May 12, 2017, at 2:54 PM, Richard Gaskin via use-livecode > wrote: > > put specialFolderPath("temporary") &"/livecode_qpSKBPng" \ > into tPath ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Rick Harrison wrote: > Sorry it has been a couple days before I could > get back to this task. > > Ok, so my file uploaded to: /tmp/livecode_qpSKBPng > > I thought that perhaps tmp was a hidden folder > so I looked on my Mac after first unhiding all files. > I’m still not seeing it. Where is this located? > > Then I’m getting an error 20 when I try to > rename (move) the file to the proper folder > where I want it to go. I don’t know what > error 20 is. Does it mean it is a permissions > problem? The file wasn’t found? I don’t know. What path do you get with the specialFolderPath function?, e.g.: put specialFolderPath("temporary") &"/livecode_qpSKBPng" \ into tPath -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Hi Richard, Sorry it has been a couple days before I could get back to this task. Ok, so my file uploaded to: /tmp/livecode_qpSKBPng I thought that perhaps tmp was a hidden folder so I looked on my Mac after first unhiding all files. I’m still not seeing it. Where is this located? Then I’m getting an error 20 when I try to rename (move) the file to the proper folder where I want it to go. I don’t know what error 20 is. Does it mean it is a permissions problem? The file wasn’t found? I don’t know. Let me know if you have any ideas. Thanks, Rick > On May 9, 2017, at 8:20 PM, Richard Gaskin via use-livecode > wrote: > > Rick Harrison wrote: > > > I did some experiments and did get one instance > > of rename to work properly. Apparently I had > > a permissions problem with writing to the folder/file. > > Yep, most things with file I/O that fails are either paths or permissions. > Glad you got that sorted. > > > Other issues I’m running into are: > > > > 1. I’m running into some 32,767 array size > > error when trying to upload large images > > to the server. Images smaller than > > the magic figure upload fine, and larger > > files over that figure throw and error > > message and fail to upload. > > "array size"? Where is that error coming from, the client or the server? > > > > 2. Where can I find the LiveCode tmp folder > > where the images are initially uploaded? > > > > I need the complete file path to that so > > I can move the images where I want them. > > Unless there is a way I can upload directly > > to the file folder I want? > > I generally only use standalones on the server, and I handle buffering to > disk myself. > > Anyone here know if LC Server does that differently? If so, where are those > temp files? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > > ambassa...@fourthworld.comhttp://www.FourthWorld.com > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Rick Harrison wrote: > I did some experiments and did get one instance > of rename to work properly. Apparently I had > a permissions problem with writing to the folder/file. Yep, most things with file I/O that fails are either paths or permissions. Glad you got that sorted. > Other issues I’m running into are: > > 1. I’m running into some 32,767 array size > error when trying to upload large images > to the server. Images smaller than > the magic figure upload fine, and larger > files over that figure throw and error > message and fail to upload. "array size"? Where is that error coming from, the client or the server? > 2. Where can I find the LiveCode tmp folder > where the images are initially uploaded? > > I need the complete file path to that so > I can move the images where I want them. > Unless there is a way I can upload directly > to the file folder I want? I generally only use standalones on the server, and I handle buffering to disk myself. Anyone here know if LC Server does that differently? If so, where are those temp files? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Hi Richard, I did some experiments and did get one instance of rename to work properly. Apparently I had a permissions problem with writing to the folder/file. I did the search on google for macOS errors. The lists that I found weren’t much help and said at the very beginning that they weren’t up to date. It also stated they could in fact be entirely wrong due to frequent updates of error codes. Other issues I’m running into are: 1. I’m running into some 32,767 array size error when trying to upload large images to the server. Images smaller than the magic figure upload fine, and larger files over that figure throw and error message and fail to upload. 2. Where can I find the LiveCode tmp folder where the images are initially uploaded? I need the complete file path to that so I can move the images where I want them. Unless there is a way I can upload directly to the file folder I want? Thanks for your help! Rick > On May 9, 2017, at 3:40 PM, Richard Gaskin via use-livecode > wrote: > > The value returned from sysError is the OS error ID, which will vary from OS > to OS and is subject to change. > > I usually do a search at Google for something like: > > Windows OS error 20 > > I looked up yours and it seems to be either "invalid path" or "device not > found", depending on the OS and version. They may be related, where perhaps > "device" refers to storage device. > > What are the source and dest paths you were using with your rename command? > > -- > Richard Gaskin ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sysError List?
Rick Harrison wrote: > Does anyone know where I can a sysError list > so I can figure out what the numbers mean? The value returned from sysError is the OS error ID, which will vary from OS to OS and is subject to change. I usually do a search at Google for something like: Windows OS error 20 I looked up yours and it seems to be either "invalid path" or "device not found", depending on the OS and version. They may be related, where perhaps "device" refers to storage device. What are the source and dest paths you were using with your rename command? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
sysError List?
Hi there, Does anyone know where I can a sysError list so I can figure out what the numbers mean? Thanks, Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode