Skip to content

Comment block #107

@smercier

Description

@smercier

Strange error with comment block:
This config didn't work:

        LABELITEM: 'name'
        CLASSITEM: 'type'
######## --------------- ########            
########    Bridge       ######## 
######## --------------- ########  
        CLASS {
            15-21{
                EXPRESSION: ([bridge]=1 and "[type]" = "motorway_link")
...

**Errors**
----------
Uncatched syntax error :
Traceback (most recent call last):
  File "/opt/scribeui/scribeui_pyramid/modules/maps/scribe.py", line 647, in main
    jsonToMap(jsonContent, outputDirectory, mapName, clean)
  File "/opt/scribeui/scribeui_pyramid/modules/maps/scribe.py", line 285, in jsonToMap
    data = json.loads(content)
  File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 947 column 30 (char 36068)

**Logs**

But this work fine (space at first comment line):

        LABELITEM: 'name'
        CLASSITEM: 'type'
 ######## --------------- ########            
########    Bridge       ######## 
######## --------------- ########  
        CLASS {
            15-21{
                EXPRESSION: ([bridge]=1 and "[type]" = "motorway_link")
...

Or this work fine to:

        LABELITEM: 'name'
        CLASSITEM: 'type'

######## --------------- ########            
########    Bridge       ######## 
######## --------------- ########  
        CLASS {
            15-21{
                EXPRESSION: ([bridge]=1 and "[type]" = "motorway_link")
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions