mapbox / carto

fast CSS-like map stylesheets
https://cartocss.readthedocs.io/
Apache License 2.0
652 stars 129 forks source link

Use mapnik-reference to validate datasource related parameters in MML #480

Open nebulon42 opened 7 years ago

nebulon42 commented 7 years ago

mapnik-reference defines which parameters can be used for which type of datasource. This information should be used to validate the parameters given for different layers in the MML file. The information could also be used for documentation of Mapnik datasources and their parameters.

StyXman commented 7 years ago

Related to this, today I pulled the latest master and I started getting this error:

./bin/carto ~/src/projects/osm/osm-carto/project.mml
Error: Invalid API version. A valid version is e.g. 3.0.0 or 3.0.10

I tried with some values:

With all attemps I get:

Error: Version x.y.z is not supported

The default was removed in b0a03fa. I don't know what else should I do.

nebulon42 commented 7 years ago

I cannot reproduce that. Are you sure that this is a vanilla master? You could try rm -rf node_modules and npm install. Maybe that helps.

StyXman commented 7 years ago

Yeah, that was it. So it means I updated a dependency. I wish the language would warn about those (but to be fair, Python does not do it either).