Standalone RUN for .bxs file not working in version 8.4
Hi,
I'm unable to use RUN in standalone mode in BaseX 8.4, including the latest downloadable snapshot dated yesterday. The same thing in BaseX 8.3 works fine.
java -cp BaseX842-20160310.184258.jar org.basex.BaseXC:/Users/username/.basex: writing new configuration file. BaseX 8.4.2 beta 9b9f74a [Standalone] Try 'help' to get more information.
Quoted text · 1 line
> RUN blah.bxs
Stopped at ., 1/20: [XPST0003] Incomplete expression.
The reference to "1/20" comes up no matter which .bxs file I try to run, even if line 1 is a comment.
Did I miss a deliberate change in configuration or syntax?
Thanks, Amanda
Hi Amanda,
I just tried to reproduce this, but I didn’t succeed (see below)… Do you have more information?
Quoted text · Amanda Galtman · 1 line
> basex
BaseX 8.4.2 beta [Standalone] Try 'help' to get more information.
Quoted text · Amanda Galtman · 1 line
> xquery file:write('x.bxs', 'help create')
Query executed in 176.42 ms.
Quoted text · Amanda Galtman · 1 line
> run x.bxs
CREATE [BACKUP|DATABASE|INDEX|USER] [...] Create database, index, user, backup or event.
Creates a new database, index, user, backup or event:
- BACKUP [name]:
creates a backup of the database [name]
- DATABASE [name] ([input]):
creates the database [name] with an optional [input]
- INDEX [TEXT|ATTRIBUTE|TOKEN|FULLTEXT]:
creates the specified index
- USER [name] ([password]):
Quoted text · Amanda Galtman · 2 lines
creates the specified user > exit
Have a nice day.
Quoted text · Amanda Galtman · 21 lines
On Fri, Mar 11, 2016 at 6:42 PM, Amanda Galtman <Amanda.Galtman at mathworks.com> wrote: > Hi, > > I'm unable to use RUN in standalone mode in BaseX 8.4, including the latest downloadable snapshot dated yesterday. The same thing in BaseX 8.3 works fine. > > java -cp BaseX842-20160310.184258.jar org.basex.BaseX > > C:/Users/username/.basex: writing new configuration file. > BaseX 8.4.2 beta 9b9f74a [Standalone] > Try 'help' to get more information. >> RUN blah.bxs > Stopped at ., 1/20: > [XPST0003] Incomplete expression. > > The reference to "1/20" comes up no matter which .bxs file I try to run, even if line 1 is a comment. > > Did I miss a deliberate change in configuration or syntax? > > Thanks, > Amanda
Hi Christian,
It turns out the contents of my script were relevant after all. As part of the script, I was trying to display a time stamp, like this. xquery (current-time() || " ")
If my x.bxs file has the content xquery ' '
then I can run it in BaseX 8.3 but not 8.4. In 8.4, even typing that command directly at the prompt instead of using RUN gives me the same error.
Quoted text · Christian Grün · 1 line
>basex
BaseX 8.4 [Standalone] Try 'help' to get more information.
Quoted text · Christian Grün · 1 line
> xquery out:nl()
Query executed in 265.95 ms.
Quoted text · Christian Grün · 1 line
> xquery '
'
Stopped at , 1/15: Unknown command: '. Try 'help'.
Quoted text · Christian Grün · 1 line
> run x.bxs
Stopped at , 1/15: Unknown command: '. Try 'help'.
Quoted text · Christian Grün · 1 line
>
Are you now able to reproduce any of this?
Amanda
Quoted text · Christian Grün · 63 lines
> -----Original Message----- > From: Christian Grün [mailto:christian.gruen at gmail.com] > Sent: Friday, March 11, 2016 12:47 PM > To: Amanda Galtman <Amanda.Galtman at mathworks.com> > Cc: basex-talk at mailman.uni-konstanz.de > Subject: Re: [basex-talk] Standalone RUN for .bxs file not working in version > 8.4 > > Hi Amanda, > > I just tried to reproduce this, but I didn’t succeed (see below)… Do > you have more information? > > > basex > BaseX 8.4.2 beta [Standalone] > Try 'help' to get more information. > > xquery file:write('x.bxs', 'help create') > > Query executed in 176.42 ms. > > run x.bxs > CREATE [BACKUP|DATABASE|INDEX|USER] [...] > Create database, index, user, backup or event. > > Creates a new database, index, user, backup or event: > - BACKUP [name]: > creates a backup of the database [name] > - DATABASE [name] ([input]): > creates the database [name] with an optional [input] > - INDEX [TEXT|ATTRIBUTE|TOKEN|FULLTEXT]: > creates the specified index > - USER [name] ([password]): > creates the specified user > > exit > Have a nice day. > > > > > > On Fri, Mar 11, 2016 at 6:42 PM, Amanda Galtman > <Amanda.Galtman at mathworks.com> wrote: > > Hi, > > > > I'm unable to use RUN in standalone mode in BaseX 8.4, including the latest > downloadable snapshot dated yesterday. The same thing in BaseX 8.3 works > fine. > > > > java -cp BaseX842-20160310.184258.jar org.basex.BaseX > > > > C:/Users/username/.basex: writing new configuration file. > > BaseX 8.4.2 beta 9b9f74a [Standalone] > > Try 'help' to get more information. > >> RUN blah.bxs > > Stopped at ., 1/20: > > [XPST0003] Incomplete expression. > > > > The reference to "1/20" comes up no matter which .bxs file I try to run, > even if line 1 is a comment. > > > > Did I miss a deliberate change in configuration or syntax? > > > > Thanks, > > Amanda
Hi Amanda,
Back again… The issue you reported is fixed. The new snapshot is available in a few minutes [1].
Thanks Christian
Quoted text · Amanda Galtman · 95 lines
On Fri, Mar 11, 2016 at 7:56 PM, Amanda Galtman <Amanda.Galtman at mathworks.com> wrote: > Hi Christian, > > It turns out the contents of my script were relevant after all. As part of the script, I was trying to display a time stamp, like this. > xquery (current-time() || " ") > > If my x.bxs file has the content > xquery ' ' > > then I can run it in BaseX 8.3 but not 8.4. In 8.4, even typing that command directly at the prompt instead of using RUN gives me the same error. > >>basex > BaseX 8.4 [Standalone] > Try 'help' to get more information. >> xquery out:nl() > > > Query executed in 265.95 ms. >> xquery '
' > Stopped at , 1/15: > Unknown command: '. Try 'help'. >> run x.bxs > Stopped at , 1/15: > Unknown command: '. Try 'help'. >> > > > Are you now able to reproduce any of this? > > Amanda > >> -----Original Message----- >> From: Christian Grün [mailto:christian.gruen at gmail.com] >> Sent: Friday, March 11, 2016 12:47 PM >> To: Amanda Galtman <Amanda.Galtman at mathworks.com> >> Cc: basex-talk at mailman.uni-konstanz.de >> Subject: Re: [basex-talk] Standalone RUN for .bxs file not working in version >> 8.4 >> >> Hi Amanda, >> >> I just tried to reproduce this, but I didn’t succeed (see below)… Do >> you have more information? >> >> > basex >> BaseX 8.4.2 beta [Standalone] >> Try 'help' to get more information. >> > xquery file:write('x.bxs', 'help create') >> >> Query executed in 176.42 ms. >> > run x.bxs >> CREATE [BACKUP|DATABASE|INDEX|USER] [...] >> Create database, index, user, backup or event. >> >> Creates a new database, index, user, backup or event: >> - BACKUP [name]: >> creates a backup of the database [name] >> - DATABASE [name] ([input]): >> creates the database [name] with an optional [input] >> - INDEX [TEXT|ATTRIBUTE|TOKEN|FULLTEXT]: >> creates the specified index >> - USER [name] ([password]): >> creates the specified user >> > exit >> Have a nice day. >> >> >> >> >> >> On Fri, Mar 11, 2016 at 6:42 PM, Amanda Galtman >> <Amanda.Galtman at mathworks.com> wrote: >> > Hi, >> > >> > I'm unable to use RUN in standalone mode in BaseX 8.4, including the latest >> downloadable snapshot dated yesterday. The same thing in BaseX 8.3 works >> fine. >> > >> > java -cp BaseX842-20160310.184258.jar org.basex.BaseX >> > >> > C:/Users/username/.basex: writing new configuration file. >> > BaseX 8.4.2 beta 9b9f74a [Standalone] >> > Try 'help' to get more information. >> >> RUN blah.bxs >> > Stopped at ., 1/20: >> > [XPST0003] Incomplete expression. >> > >> > The reference to "1/20" comes up no matter which .bxs file I try to run, >> even if line 1 is a comment. >> > >> > Did I miss a deliberate change in configuration or syntax? >> > >> > Thanks, >> > Amanda
Christian,
Thank you! I hope you enjoyed your time off.
Regards, Amanda
Quoted text · Christian Grün · 121 lines
> -----Original Message----- > From: Christian Grün [mailto:christian.gruen at gmail.com] > Sent: Monday, March 21, 2016 6:31 AM > To: Amanda Galtman <Amanda.Galtman at mathworks.com> > Cc: basex-talk at mailman.uni-konstanz.de > Subject: Re: [basex-talk] Standalone RUN for .bxs file not working in version > 8.4 > > Hi Amanda, > > Back again… The issue you reported is fixed. The new snapshot is > available in a few minutes [1]. > > Thanks > Christian > > [1] http://files.basex.org/releases/latest/ > > > > > On Fri, Mar 11, 2016 at 7:56 PM, Amanda Galtman > <Amanda.Galtman at mathworks.com> wrote: > > Hi Christian, > > > > It turns out the contents of my script were relevant after all. As part of the > script, I was trying to display a time stamp, like this. > > xquery (current-time() || " ") > > > > If my x.bxs file has the content > > xquery ' ' > > > > then I can run it in BaseX 8.3 but not 8.4. In 8.4, even typing that command > directly at the prompt instead of using RUN gives me the same error. > > > >>basex > > BaseX 8.4 [Standalone] > > Try 'help' to get more information. > >> xquery out:nl() > > > > > > Query executed in 265.95 ms. > >> xquery '
' > > Stopped at , 1/15: > > Unknown command: '. Try 'help'. > >> run x.bxs > > Stopped at , 1/15: > > Unknown command: '. Try 'help'. > >> > > > > > > Are you now able to reproduce any of this? > > > > Amanda > > > >> -----Original Message----- > >> From: Christian Grün [mailto:christian.gruen at gmail.com] > >> Sent: Friday, March 11, 2016 12:47 PM > >> To: Amanda Galtman <Amanda.Galtman at mathworks.com> > >> Cc: basex-talk at mailman.uni-konstanz.de > >> Subject: Re: [basex-talk] Standalone RUN for .bxs file not working in > version > >> 8.4 > >> > >> Hi Amanda, > >> > >> I just tried to reproduce this, but I didn’t succeed (see below)… Do > >> you have more information? > >> > >> > basex > >> BaseX 8.4.2 beta [Standalone] > >> Try 'help' to get more information. > >> > xquery file:write('x.bxs', 'help create') > >> > >> Query executed in 176.42 ms. > >> > run x.bxs > >> CREATE [BACKUP|DATABASE|INDEX|USER] [...] > >> Create database, index, user, backup or event. > >> > >> Creates a new database, index, user, backup or event: > >> - BACKUP [name]: > >> creates a backup of the database [name] > >> - DATABASE [name] ([input]): > >> creates the database [name] with an optional [input] > >> - INDEX [TEXT|ATTRIBUTE|TOKEN|FULLTEXT]: > >> creates the specified index > >> - USER [name] ([password]): > >> creates the specified user > >> > exit > >> Have a nice day. > >> > >> > >> > >> > >> > >> On Fri, Mar 11, 2016 at 6:42 PM, Amanda Galtman > >> <Amanda.Galtman at mathworks.com> wrote: > >> > Hi, > >> > > >> > I'm unable to use RUN in standalone mode in BaseX 8.4, including the > latest > >> downloadable snapshot dated yesterday. The same thing in BaseX 8.3 > works > >> fine. > >> > > >> > java -cp BaseX842-20160310.184258.jar org.basex.BaseX > >> > > >> > C:/Users/username/.basex: writing new configuration file. > >> > BaseX 8.4.2 beta 9b9f74a [Standalone] > >> > Try 'help' to get more information. > >> >> RUN blah.bxs > >> > Stopped at ., 1/20: > >> > [XPST0003] Incomplete expression. > >> > > >> > The reference to "1/20" comes up no matter which .bxs file I try to run, > >> even if line 1 is a comment. > >> > > >> > Did I miss a deliberate change in configuration or syntax? > >> > > >> > Thanks, > >> > Amanda
Written for BaseX 8.4. BaseX may have changed since: please check the current documentation.