Yes, I haven't gotten around to fixing that although it should be very easy.
But you don't have to use chdir(). You'll note that the error message
from BP console tells you how to fix it! ;-)
> If '/Applications/MAMP/htdocs/bolprocessor/ctests/-gr.NotReich' is an
> input file, indicate the file type (eg. -gr
> /Applications/MAMP/htdocs/bolprocessor/ctests/-gr.NotReich).
Just put "-gr " (with a space) in front of the full pathname.
Anthony
On 7/21/20, 2:57 AM, Bernard Bel wrote:
> Still a small problem trying to do:
>
> /Applications/MAMP/htdocs/bolprocessor/bp compile
> /Applications/MAMP/htdocs/bolprocessor/ctests/-gr.NotReich --traceout
> trace.txt
>
> It generated these messages:
>
> -----------
> Bol Processor console app
> Version 2.999... (Jul 20 2020)
> This is a beta version for evaluation...
>
> Unknown action '/Applications/MAMP/htdocs/bolprocessor/ctests/-gr.NotReich'
> If '/Applications/MAMP/htdocs/bolprocessor/ctests/-gr.NotReich' is an
> input file, indicate the file type (eg. -gr
> /Applications/MAMP/htdocs/bolprocessor/ctests/-gr.NotReich).
> Use '/Applications/MAMP/htdocs/bolprocessor/bp --help' to see help
> information.
> -----------
>
> This means that BP isn't yet able to recognize
> /Applications/MAMP/htdocs/bolprocessor/ctests/-gr.NotReich
>
> as a grammar path, and it complains that the "action" is incorrect.
>
> We can bypass this limitation doing a chdir() to the folder containing
> the grammar, and it does work, but this might not be good practice in
> all situations…
>
> Bernard
|