{"action":"created","issue":{"url":"https://api.github.com/repos/hercules-team/augeas/issues/335","labels_url":"https://api.github.com/repos/hercules-team/augeas/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/hercules-team/augeas/issues/335/comments","events_url":"https://api.github.com/repos/hercules-team/augeas/issues/335/events","html_url":"https://github.com/hercules-team/augeas/issues/335","id":122670713,"number":335,"title":"nginx lense can't parse example from linguist","user":{"login":"thedrow","id":48936,"avatar_url":"https://avatars.githubusercontent.com/u/48936?v=3","gravatar_id":"","url":"https://api.github.com/users/thedrow","html_url":"https://github.com/thedrow","followers_url":"https://api.github.com/users/thedrow/followers","following_url":"https://api.github.com/users/thedrow/following{/other_user}","gists_url":"https://api.github.com/users/thedrow/gists{/gist_id}","starred_url":"https://api.github.com/users/thedrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedrow/subscriptions","organizations_url":"https://api.github.com/users/thedrow/orgs","repos_url":"https://api.github.com/users/thedrow/repos","events_url":"https://api.github.com/users/thedrow/events{/privacy}","received_events_url":"https://api.github.com/users/thedrow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-12-17T06:26:57Z","updated_at":"2015-12-21T13:25:11Z","closed_at":null,"body":"I'm trying to learn how to use augtool so I copy pasted the nginx.conf from https://github.com/github/linguist/blob/master/samples/Nginx/filenames/nginx.conf\r\n```nginx\r\nuser       www www;\r\nworker_processes  5;\r\nerror_log  logs/error.log;\r\npid        logs/nginx.pid;\r\nworker_rlimit_nofile 8192;\r\n\r\nevents {\r\n  worker_connections  4096;\r\n}\r\n\r\nhttp {\r\n  include    conf/mime.types;\r\n  include    /etc/nginx/proxy.conf;\r\n  include    /etc/nginx/fastcgi.conf;\r\n  index    index.html index.htm index.php;\r\n\r\n  default_type application/octet-stream;\r\n  log_format   main '$remote_addr - $remote_user [$time_local]  $status '\r\n    '\"$request\" $body_bytes_sent \"$http_referer\" '\r\n    '\"$http_user_agent\" \"$http_x_forwarded_for\"';\r\n  access_log   logs/access.log  main;\r\n  sendfile     on;\r\n  tcp_nopush   on;\r\n  server_names_hash_bucket_size 128; # this seems to be required for some vhosts\r\n\r\n  server { # php/fastcgi\r\n    listen       80;\r\n    server_name  domain1.com www.domain1.com;\r\n    access_log   logs/domain1.access.log  main;\r\n    root         html;\r\n\r\n    location ~ \\.php$ {\r\n      fastcgi_pass   127.0.0.1:1025;\r\n    }\r\n  }\r\n\r\n  server { # simple reverse-proxy\r\n    listen       80;\r\n    server_name  domain2.com www.domain2.com;\r\n    access_log   logs/domain2.access.log  main;\r\n\r\n    # serve static files\r\n    location ~ ^/(images|javascript|js|css|flash|media|static)/  {\r\n      root    /var/www/virtual/big.server.com/htdocs;\r\n      expires 30d;\r\n    }\r\n\r\n    # pass requests for dynamic content to rails/turbogears/zope, et al\r\n    location / {\r\n      proxy_pass      http://127.0.0.1:8080;\r\n    }\r\n  }\r\n\r\n  upstream big_server_com {\r\n    server 127.0.0.3:8000 weight=5;\r\n    server 127.0.0.3:8001 weight=5;\r\n    server 192.168.0.1:8000;\r\n    server 192.168.0.1:8001;\r\n  }\r\n\r\n  server { # simple load balancing\r\n    listen          80;\r\n    server_name     big.server.com;\r\n    access_log      logs/big.server.access.log main;\r\n\r\n    location / {\r\n      proxy_pass      http://big_server_com;\r\n    }\r\n  }\r\n}\r\n```\r\nAny idea why it's not parsing?\r\nI'm getting:\r\n/augeas/files/etc/nginx/nginx.conf/error = \"parse_failed\"\r\n/augeas/files/etc/nginx/nginx.conf/error/pos = \"163\"\r\n/augeas/files/etc/nginx/nginx.conf/error/line = \"11\"\r\n/augeas/files/etc/nginx/nginx.conf/error/char = \"0\"\r\n/augeas/files/etc/nginx/nginx.conf/error/lens = \"/usr/share/augeas/lenses/dist/nginx.aug:57.10-.57:\"\r\n/augeas/files/etc/nginx/nginx.conf/error/message = \"Iterated lens matched less than it should\"\r\n\r\nwhich points to:\r\nhttp {\r\nIs the lens out of date?"},"comment":{"url":"https://api.github.com/repos/hercules-team/augeas/issues/comments/166304994","html_url":"https://github.com/hercules-team/augeas/issues/335#issuecomment-166304994","issue_url":"https://api.github.com/repos/hercules-team/augeas/issues/335","id":166304994,"user":{"login":"raphink","id":650430,"avatar_url":"https://avatars.githubusercontent.com/u/650430?v=3","gravatar_id":"","url":"https://api.github.com/users/raphink","html_url":"https://github.com/raphink","followers_url":"https://api.github.com/users/raphink/followers","following_url":"https://api.github.com/users/raphink/following{/other_user}","gists_url":"https://api.github.com/users/raphink/gists{/gist_id}","starred_url":"https://api.github.com/users/raphink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphink/subscriptions","organizations_url":"https://api.github.com/users/raphink/orgs","repos_url":"https://api.github.com/users/raphink/repos","events_url":"https://api.github.com/users/raphink/events{/privacy}","received_events_url":"https://api.github.com/users/raphink/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T13:25:11Z","updated_at":"2015-12-21T13:25:11Z","body":"@domcleal Are you more in favor of the quick fix, or breaking compatibility?"}}