Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment block #107

Closed
smercier opened this issue Oct 17, 2014 · 0 comments
Closed

Comment block #107

smercier opened this issue Oct 17, 2014 · 0 comments
Milestone

Comments

@smercier
Copy link
Contributor

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")
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants