syntax error before [

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

syntax error before [

Peter J Etheridge
dear erlangers,

i have pasted and copied this;

[{inets, [{services, [{httpd, [{proplist_file,
                 "/var/tmp/server_root/conf/8888_props.conf"}]},
                {httpd, [{proplist_file,
                 "/var/tmp/server_root/conf/8080_props.conf"}]}]}]}].

into an application configuration file

and receive;

'...syntax error before '[' .'

where should i look ?

thank you in advance,
peter


by
Reply | Threaded
Open this post in threaded view
|

Re: syntax error before [

by
Properly format the code at first, then things seems clear.

[
 {inets,
  [
   {services,
    [
     {httpd, [{proplist_file, "/var/tmp/server_root/conf/8888_props.conf"}]},
     {httpd, [{proplist_file, "/var/tmp/server_root/conf/8080_props.conf"}]}
    ]}
  ]}
].

Cheers,
Yao

在 2020年3月8日,12:21,Peter J Etheridge <[hidden email]> 写道:

dear erlangers,

i have pasted and copied this;

[{inets, [{services, [{httpd, [{proplist_file,
                 "/var/tmp/server_root/conf/8888_props.conf"}]},
                {httpd, [{proplist_file,
                 "/var/tmp/server_root/conf/8080_props.conf"}]}]}]}].

into an application configuration file

and receive;

'...syntax error before '[' .'

where should i look ?

thank you in advance,
peter



Reply | Threaded
Open this post in threaded view
|

Re: syntax error before [

Fred Youhanaie-2
Peter,

The piece you have pasted here is OK. I would next look within the configuration file and the area where it has been inserted.

Cheers,
Fred

On 08/03/2020 04:58, by wrote:

> Properly format the code at first, then things seems clear.
>
> [
>   {inets,
>    [
>     {services,
>      [
>       {httpd, [{proplist_file, "/var/tmp/server_root/conf/8888_props.conf"}]},
>       {httpd, [{proplist_file, "/var/tmp/server_root/conf/8080_props.conf"}]}
>      ]}
>    ]}
> ].
>
> Cheers,
> Yao
>
>> 在 2020年3月8日,12:21,Peter J Etheridge <[hidden email] <mailto:[hidden email]>> 写道:
>>
>> dear erlangers,
>>
>> i have pasted and copied this;
>>
>> [{inets, [{services, [{httpd, [{proplist_file,
>>                   "/var/tmp/server_root/conf/8888_props.conf"}]},
>>                  {httpd, [{proplist_file,
>>                   "/var/tmp/server_root/conf/8080_props.conf"}]}]}]}].
>>
>> into an application configuration file
>>
>> and receive;
>>
>> '...syntax error before '[' .'
>>
>> where should i look ?
>>
>> thank you in advance,
>> peter
>>
>>
>