{"action":"created","issue":{"url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1/issues/188","repository_url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1","labels_url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1/issues/188/comments","events_url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1/issues/188/events","html_url":"https://github.com/alashworth/stan-monorepo-stage1/issues/188","id":419913114,"node_id":"MDU6SXNzdWU0MTk5MTMxMTQ=","number":188,"title":"improve error msg when delcaration is made after assignment","user":{"login":"alashworth","id":3664221,"node_id":"MDQ6VXNlcjM2NjQyMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/3664221?v=4","gravatar_id":"","url":"https://api.github.com/users/alashworth","html_url":"https://github.com/alashworth","followers_url":"https://api.github.com/users/alashworth/followers","following_url":"https://api.github.com/users/alashworth/following{/other_user}","gists_url":"https://api.github.com/users/alashworth/gists{/gist_id}","starred_url":"https://api.github.com/users/alashworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alashworth/subscriptions","organizations_url":"https://api.github.com/users/alashworth/orgs","repos_url":"https://api.github.com/users/alashworth/repos","events_url":"https://api.github.com/users/alashworth/events{/privacy}","received_events_url":"https://api.github.com/users/alashworth/received_events","type":"User","site_admin":false},"labels":[{"id":1269276566,"node_id":"MDU6TGFiZWwxMjY5Mjc2NTY2","url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1/labels/feature","name":"feature","color":"84b6eb","default":false},{"id":1269276578,"node_id":"MDU6TGFiZWwxMjY5Mjc2NTc4","url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1/labels/language","name":"language","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1/milestones/3","html_url":"https://github.com/alashworth/stan-monorepo-stage1/milestone/3","labels_url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1/milestones/3/labels","id":4132511,"node_id":"MDk6TWlsZXN0b25lNDEzMjUxMQ==","number":3,"title":"v3","description":"Stan 3.\r\n\r\nBreak backwards compatibility.","creator":{"login":"alashworth","id":3664221,"node_id":"MDQ6VXNlcjM2NjQyMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/3664221?v=4","gravatar_id":"","url":"https://api.github.com/users/alashworth","html_url":"https://github.com/alashworth","followers_url":"https://api.github.com/users/alashworth/followers","following_url":"https://api.github.com/users/alashworth/following{/other_user}","gists_url":"https://api.github.com/users/alashworth/gists{/gist_id}","starred_url":"https://api.github.com/users/alashworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alashworth/subscriptions","organizations_url":"https://api.github.com/users/alashworth/orgs","repos_url":"https://api.github.com/users/alashworth/repos","events_url":"https://api.github.com/users/alashworth/events{/privacy}","received_events_url":"https://api.github.com/users/alashworth/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":0,"state":"open","created_at":"2019-03-12T09:00:17Z","updated_at":"2019-03-12T10:36:36Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2019-03-12T10:36:35Z","updated_at":"2019-03-12T10:36:38Z","closed_at":null,"author_association":"OWNER","body":"<a href=\"https://github.com/yizhang-cae\"><img src=\"https://avatars0.githubusercontent.com/u/33104304?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [yizhang-cae](https://github.com/yizhang-cae)**\n_Monday May 07, 2018 at 03:31 GMT_\n_Originally opened as https://github.com/stan-dev/stan/issues/2523_\n\n----\n\n#### Summary:\r\nWhen declare after assignment the msg is not informative.\r\n\r\n\r\n#### Description:\r\nWhen declare after assignment the error msg is\r\n`variable xxx does not exitst`\r\nwhere `xxx` is the type name of the declared variable. This is not informative to beginners.\r\n\r\n\r\n#### Reproducible Steps:\r\n`make` a model with the following `transformed data`\r\n```stan\r\ntransformed data {\r\n  real x;\r\n  x = 3.0;\r\n  real z;\r\n  z = 3.0\r\n}\r\n```\r\n\r\n#### Current Output:\r\n```sh\r\nSYNTAX ERROR, MESSAGE(S) FROM PARSER:\r\n\r\nvariable \"real\" does not exist.\r\n```\r\n\r\n\r\n#### Expected Output:\r\nMore informative information on the order of declaration & assignment.\r\n\r\n#### Current Version:\r\nv2.17.1\r\n\n"},"comment":{"url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1/issues/comments/471946451","html_url":"https://github.com/alashworth/stan-monorepo-stage1/issues/188#issuecomment-471946451","issue_url":"https://api.github.com/repos/alashworth/stan-monorepo-stage1/issues/188","id":471946451,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MTk0NjQ1MQ==","user":{"login":"alashworth","id":3664221,"node_id":"MDQ6VXNlcjM2NjQyMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/3664221?v=4","gravatar_id":"","url":"https://api.github.com/users/alashworth","html_url":"https://github.com/alashworth","followers_url":"https://api.github.com/users/alashworth/followers","following_url":"https://api.github.com/users/alashworth/following{/other_user}","gists_url":"https://api.github.com/users/alashworth/gists{/gist_id}","starred_url":"https://api.github.com/users/alashworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alashworth/subscriptions","organizations_url":"https://api.github.com/users/alashworth/orgs","repos_url":"https://api.github.com/users/alashworth/repos","events_url":"https://api.github.com/users/alashworth/events{/privacy}","received_events_url":"https://api.github.com/users/alashworth/received_events","type":"User","site_admin":false},"created_at":"2019-03-12T10:36:38Z","updated_at":"2019-03-12T10:36:38Z","author_association":"OWNER","body":"<a href=\"https://github.com/bob-carpenter\"><img src=\"https://avatars1.githubusercontent.com/u/3383807?v=4\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [bob-carpenter](https://github.com/bob-carpenter)**\n_Tuesday May 08, 2018 at 03:12 GMT_\n\n----\n\nThanks---the message should definitely be improved.  The plan is to relax the language to allow that to be legal, but until then, there needs to be a better message.\n"}}
{"actor":{"display_login":"alashworth"}}