Re: [Oorexx-devel] rxapi queues

2019-03-05 Thread Rick McGuire
I was able get a failure after just over 1000 on Ubuntu. Just committed a
fix that got me to over 1 before I decided to kill it.

Rick

On Tue, Mar 5, 2019 at 4:54 AM Bob Martin via Oorexx-devel <
oorexx-devel@lists.sourceforge.net> wrote:

> I have a program which runs every few seconds to check that several tasks
> are still running,
> and restarts them if not.
> The program fails on every build of ooRexx 5 that I have tried it on, back
> to 11642
>
> I have reduced the code to the minimum required to produce the error:
>
> --
> queue_name = rxqueue('Create')
> call rxqueue 'Set',queue_name
>
> do forever
>'ps -ef | grep rexx | rxqueue' queue_name
>do while queued() <> 0
>   parse pull line
>end
>call SysSleep 1
> end
> exit
> --
>
> It fails after about 1000 passes through the loop with:
>
> The REXX rxapi queuing system is not available.
> grep: write error: Broken pipe
>
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] UTF-8?

2019-03-05 Thread Erich Steinböck
Jason, I've removed a few 8-bit ASCII chars with revision [r11821]
Did your compiler complain? Which one is that?
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Missing "interpreter/classes/EventSemaphore.cpp" when building from "sandbox\rick\sem"

2019-03-05 Thread Rick McGuire
Sorry, forgot to add those files to svn so the commits never picked them
up. They are there now.

Rick

On Tue, Mar 5, 2019 at 1:41 PM Rony G. Flatscher 
wrote:

> Due to a hint from Rick in
> 
>  about the new
> modifier "COUNTER" on loops I wanted to create a 32-bit Windows version for
> ooRexx from "sandbox/rick/sem" for testing, which unfortunately does not
> work due to the following problem when running cmake:
>
> G:\oorexx.tmp\oorexxBuild\sem32.trunk>cmake -G "NMake Makefiles" 
> F:\work\svn\oorexx\sandbox\rick\sem
> -- CMake version is 3.12.0-rc3
> -- The C compiler identification is MSVC 19.0.24215.1
> -- The CXX compiler identification is MSVC 19.0.24215.1
> -- Check for working C compiler: E:/Programme/Microsoft Visual Studio 
> 14.0/VC/bin/cl.exe
> -- Check for working C compiler: E:/Programme/Microsoft Visual Studio 
> 14.0/VC/bin/cl.exe -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: E:/Programme/Microsoft Visual Studio 
> 14.0/VC/bin/cl.exe
> -- Check for working CXX compiler: E:/Programme/Microsoft Visual Studio 
> 14.0/VC/bin/cl.exe -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Building for a 32-bit architecture
> -- OOREXX_SHEBANG_PROGRAM: "/usr/bin/env rexx" (default)
> -- Found Subversion: C:/Program Files/TortoiseSVN/bin/svn.exe (found version 
> "1.10.0")
> -- SVN Revision Number is 11819
> -- Looking for ctype.h
> -- Looking for ctype.h - found
> -- Looking for float.h
> -- Looking for float.h - found
> -- Looking for limits.h
> -- Looking for limits.h - found
> -- Looking for locale.h
> -- Looking for locale.h - found
> -- Looking for malloc.h
> -- Looking for malloc.h - found
> -- Looking for memory.h
> -- Looking for memory.h - found
> -- Looking for memset
> -- Looking for memset - found
> -- Looking for nsleep
> -- Looking for nsleep - not found
> -- Looking for setlocale
> -- Looking for setlocale - found
> -- Looking for signal.h
> -- Looking for signal.h - found
> -- Looking for stdarg.h
> -- Looking for stdarg.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Looking for stdio.h
> -- Looking for stdio.h - found
> -- Looking for stdlib.h
> -- Looking for stdlib.h - found
> -- Looking for string.h
> -- Looking for string.h - found
> -- Looking for time.h
> -- Looking for time.h - found
> -- Looking for vprintf
> -- Looking for vprintf - not found
> -- Looking for fcntl.h
> -- Looking for fcntl.h - found
> -- Looking for nanosleep
> -- Looking for nanosleep - not found
> -- Looking for inttypes.h
> -- Looking for inttypes.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Configuring done*CMake Error at CMakeLists.txt:920 (add_library):**  
> Cannot find source file:**interpreter/classes/EventSemaphore.cpp**  Tried 
> extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm**  .hpp 
> .hxx .in .txx*
>
> CMake Error at CMakeLists.txt:920 (add_library):
>   No SOURCES given to target: rexx
>
>
> -- Build files have been written to: G:/oorexx.tmp/oorexxBuild/sem32.trunk
> G:\oorexx.tmp\oorexxBuild\sem32.trunk>
>
> It seems that EventSemaphore.cpp is not checked in.
>
> ---rony
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Missing "interpreter/classes/EventSemaphore.cpp" when building from "sandbox\rick\sem"

2019-03-05 Thread Rony G. Flatscher
On 05.03.2019 19:51, Enrico Sorichetti via Oorexx-devel wrote:
> I do not see any EventSemaphore.cpp
> In main/trunk
>
> Only a SysSemaphore.cpp
>
> common/platform/unix 
> Common/platform/windows
>
It is supposed to be in Rick's sandbox "sandbox\rick\sem", from his mentioned 
posting:

Branch https://svn.code.sf.net/p/oorexx/code-0/sandbox/rick/sem

Has code in it for the new counter option on loops for anybody interested 
in playing around with
this. It also has new MutexSemaphore and EventSemaphore classes. Still 
writing test cases for
everything.

---rony

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Missing "interpreter/classes/EventSemaphore.cpp" when building from "sandbox\rick\sem"

2019-03-05 Thread Enrico Sorichetti via Oorexx-devel
I do not see any EventSemaphore.cpp
In main/trunk

Only a SysSemaphore.cpp

common/platform/unix 
Common/platform/windows

E


> On 5 Mar 2019, at 19:40, Rony G. Flatscher  wrote:
> 
> EventSemaphore.cpp

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] Missing "interpreter/classes/EventSemaphore.cpp" when building from "sandbox\rick\sem"

2019-03-05 Thread Rony G. Flatscher
Due to a hint from Rick in 
 about the new
modifier "COUNTER" on loops I wanted to create a 32-bit Windows version for 
ooRexx from
"sandbox/rick/sem" for testing, which unfortunately does not work due to the 
following problem when
running cmake:

G:\oorexx.tmp\oorexxBuild\sem32.trunk>cmake -G "NMake Makefiles" 
F:\work\svn\oorexx\sandbox\rick\sem
-- CMake version is 3.12.0-rc3
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: E:/Programme/Microsoft Visual Studio 
14.0/VC/bin/cl.exe
-- Check for working C compiler: E:/Programme/Microsoft Visual Studio 
14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: E:/Programme/Microsoft Visual Studio 
14.0/VC/bin/cl.exe
-- Check for working CXX compiler: E:/Programme/Microsoft Visual Studio 
14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building for a 32-bit architecture
-- OOREXX_SHEBANG_PROGRAM: "/usr/bin/env rexx" (default)
-- Found Subversion: C:/Program Files/TortoiseSVN/bin/svn.exe (found 
version "1.10.0")
-- SVN Revision Number is 11819
-- Looking for ctype.h
-- Looking for ctype.h - found
-- Looking for float.h
-- Looking for float.h - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for locale.h
-- Looking for locale.h - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for memset
-- Looking for memset - found
-- Looking for nsleep
-- Looking for nsleep - not found
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for vprintf
-- Looking for vprintf - not found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for nanosleep
-- Looking for nanosleep - not found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Configuring done
*CMake Error at CMakeLists.txt:920 (add_library):Cannot find source 
file:**interpreter/classes/EventSemaphore.cpp**Tried extensions .c .C 
.c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm.hpp .hxx .in .txx***

CMake Error at CMakeLists.txt:920 (add_library):
  No SOURCES given to target: rexx


-- Build files have been written to: G:/oorexx.tmp/oorexxBuild/sem32.trunk
G:\oorexx.tmp\oorexxBuild\sem32.trunk>

It seems that EventSemaphore.cpp is not checked in.

---rony


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] UTF-8?

2019-03-05 Thread Jason Martin
https://sourceforge.net/p/oorexx/code-0/HEAD/tree/main/trunk/interpreter/platform/unix/SysFileSystem.cpp

Line 1636 char 32 maybe more.
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] rxapi queues

2019-03-05 Thread Jason Martin

Over 1 hour stopping...


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] rxapi queues

2019-03-05 Thread Enrico Sorichetti via Oorexx-devel
“ps -ef” is a linux command 
 

But the same happens on Darwin  after around 200 iterations 

E


> On 5 Mar 2019, at 11:44, Rick McGuire  wrote:
> 
> What operating system are you running this on?
> 
> Rick
> 
> On Tue, Mar 5, 2019 at 4:54 AM Bob Martin via Oorexx-devel 
>  > wrote:
> I have a program which runs every few seconds to check that several tasks are 
> still running,
> and restarts them if not.
> The program fails on every build of ooRexx 5 that I have tried it on, back to 
> 11642
> 
> I have reduced the code to the minimum required to produce the error:
> 
> --
> queue_name = rxqueue('Create')
> call rxqueue 'Set',queue_name
> 
> do forever
>'ps -ef | grep rexx | rxqueue' queue_name
>do while queued() <> 0
>   parse pull line
>end
>call SysSleep 1
> end
> exit
> --
> 
> It fails after about 1000 passes through the loop with:
> 
> The REXX rxapi queuing system is not available.
> grep: write error: Broken pipe
> 
> 
> 
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel 
> 
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] rxapi queues

2019-03-05 Thread Rick McGuire
What operating system are you running this on?

Rick

On Tue, Mar 5, 2019 at 4:54 AM Bob Martin via Oorexx-devel <
oorexx-devel@lists.sourceforge.net> wrote:

> I have a program which runs every few seconds to check that several tasks
> are still running,
> and restarts them if not.
> The program fails on every build of ooRexx 5 that I have tried it on, back
> to 11642
>
> I have reduced the code to the minimum required to produce the error:
>
> --
> queue_name = rxqueue('Create')
> call rxqueue 'Set',queue_name
>
> do forever
>'ps -ef | grep rexx | rxqueue' queue_name
>do while queued() <> 0
>   parse pull line
>end
>call SysSleep 1
> end
> exit
> --
>
> It fails after about 1000 passes through the loop with:
>
> The REXX rxapi queuing system is not available.
> grep: write error: Broken pipe
>
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] rxapi queues

2019-03-05 Thread Bob Martin via Oorexx-devel
I have a program which runs every few seconds to check that several tasks are 
still running,
and restarts them if not.
The program fails on every build of ooRexx 5 that I have tried it on, back to 
11642

I have reduced the code to the minimum required to produce the error:

--
queue_name = rxqueue('Create')
call rxqueue 'Set',queue_name

do forever
   'ps -ef | grep rexx | rxqueue' queue_name
   do while queued() <> 0
  parse pull line
   end
   call SysSleep 1
end
exit
--

It fails after about 1000 passes through the loop with:

The REXX rxapi queuing system is not available.
grep: write error: Broken pipe



___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] testSuite revision 11818

2019-03-05 Thread Enrico Sorichetti via Oorexx-devel
It does not fix anything
It behaves like a politician… it just ignores the problem 

There was not even the need to run the test
Just looking at the code it was easy enough to spot that 
It just runs the  tests on windows only


  subdir = .File~new("Y/Z", f)
  -- verify the separator translation
  -- qualify will translate / to \ on Windows only
  -- on Unix-like systems \ isn't translated to /
  if .File~separator == "\" then do
  self~assertEquals(f~absolutePath||"\Y\Z", subdir~path)
  if \.File~isCaseSensitive then do
  subdir2 = .File~new("y\z", f)
  self~assertEquals(subdir, subdir2)
  end
  end



Jus a little reminder …
On most systems the case sensitivity is an operating system property
On Darwin the case sensitivity is a property of each filesystems
( that is the reason I always run the tests twice ,
On the “Macintosh HD” filesystem and on an usb drive with a case sensitive 
filesystem ) 

the test for case sensitiveness - at least on Darwin - must be done on a real 
file name 

Using.File~isCaseSensitive   returns the case sensitiveness of the boot 
volume  

The docs should be fixed to mention it

So as a courtesy - while I still have some left -
I am posting again the proper solution with a small correction 
Retested on both types of filesystems 


The separator translation and the case sensitivity do NOT depend on each other

  subdir = .File~new("Y/Z", f)
  -- verify the separator translation
  -- qualify will translate / to \ on Windows only
  -- on Unix-like systems \ isn't translated to /
  if .File~separator == "\" then do
  self~assertEquals(f~absolutePath||"\Y\Z", subdir~path)
  end

  -- verify that case sensitivity is properly handled
  —- note the test is done on a Real file  
  subdir = .File~new("Y" || .File~separator || "Z", f)
  if \subdir~isCaseSensitive then do
subdir2 = .File~new("y" || .File~separator || "z", f)
self~assertEquals(subdir, subdir2)
  end


rexx testOORexx.rex -s -F File.testGroup

Run on a case sensitive file system
/Volumes/My Passport for Mac/ooRexx.svn.testSuite

Executing .../ooRexx/base/class/File.testGroup

ooTest Framework - Automated Test of the ooRexx Interpreter

Interpreter:REXX-ooRexx_5.0.0(MT)_64-bit 6.05 2 Mar 2019
OS Name:DARWIN
SysVersion: Darwin 17.7.0

Tests ran:  29
Assertions: 162
Failures:   0
Errors: 0



rexx testOORexx.rex -s -F File.testGroup

Run on a case insensitive file system
/Users/enrico/ooRexx.svn.testSuite

Executing .../ooRexx/base/class/File.testGroup

ooTest Framework - Automated Test of the ooRexx Interpreter

Interpreter:REXX-ooRexx_5.0.0(MT)_64-bit 6.05 2 Mar 2019
OS Name:DARWIN
SysVersion: Darwin 17.7.0

Tests ran:  29
Assertions: 163
Failures:   0
Errors: 0













___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel