GenericMappingTools / gmt

The Generic Mapping Tools
https://www.generic-mapping-tools.org
Other
843 stars 352 forks source link

Modern mode compatibility error if there is a pre-existing gmt.conf #1980

Closed seisman closed 4 years ago

seisman commented 4 years ago

First reported in https://github.com/GenericMappingTools/pygmt/issues/365.

If there is a pre-existing gmt.conf file, especially old GMT5 gmt.conf which lists all GMT settings, using modern mode commands reports errors.

gmt [ERROR]: GMT_COMPATIBILITY: Expects values from 6 to 6; reset to 6.
gmt [ERROR]: GMT_COMPATIBILITY: Expects values from 6 to 6; reset to 6.

A minimal script to reproduce the issue.

cat << EOF > gmt.conf
GMT_COMPATIBILITY = 4
EOF

gmt begin map
gmt coast -Rg -JH10c -Baf -W1p
gmt end show

Should it be a warning or a compatibility message, instead of an error?

seisman commented 4 years ago

Closed by #1981.