{"action":"created","issue":{"url":"https://api.github.com/repos/juanfranblanco/vscode-solidity/issues/57","repository_url":"https://api.github.com/repos/juanfranblanco/vscode-solidity","labels_url":"https://api.github.com/repos/juanfranblanco/vscode-solidity/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/juanfranblanco/vscode-solidity/issues/57/comments","events_url":"https://api.github.com/repos/juanfranblanco/vscode-solidity/issues/57/events","html_url":"https://github.com/juanfranblanco/vscode-solidity/issues/57","id":305074398,"number":57,"title":"Syntax error when emitting events in Solidity 0.4.21","user":{"login":"rrickdar","id":15833027,"avatar_url":"https://avatars0.githubusercontent.com/u/15833027?v=4","gravatar_id":"","url":"https://api.github.com/users/rrickdar","html_url":"https://github.com/rrickdar","followers_url":"https://api.github.com/users/rrickdar/followers","following_url":"https://api.github.com/users/rrickdar/following{/other_user}","gists_url":"https://api.github.com/users/rrickdar/gists{/gist_id}","starred_url":"https://api.github.com/users/rrickdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrickdar/subscriptions","organizations_url":"https://api.github.com/users/rrickdar/orgs","repos_url":"https://api.github.com/users/rrickdar/repos","events_url":"https://api.github.com/users/rrickdar/events{/privacy}","received_events_url":"https://api.github.com/users/rrickdar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-14T09:08:52Z","updated_at":"2018-03-16T10:03:47Z","closed_at":null,"author_association":"NONE","body":"This issue is a duplication of this [question](https://ethereum.stackexchange.com/questions/42671/vs-code-syntax-error-when-emitting-events-in-solidity-0-4-21) on Ethereum StackExchange: \r\n\r\nI'm having a syntax error in VS Code in the parts where I emit events using new notation for Solidity v0.4.21.\r\n\r\nRemix doesn’t raise any errors, though.\r\n\r\nMy User Settings in VS Code contain `\"solidity.compileUsingRemoteVersion\": \"latest\"`, and compiler doesn't raise error on `emit` itself, rather gives this message:\r\n\r\n`Syntax error: Expected \"!=\", \"%\", \"%=\", \"&\", \"&&\", \"&=\", \"*\", \"*=\", \"+\", \"++\", \"+=\", \",\", \"-\", \"--\", \"-=\", \"/\", \"/*\", \"/=\", \";\", \"<\", \"<<\", \"<<=\", \"<=\", \"=\", \"==\", \">\", \">=\", \">>\", \">>=\", \">>>\", \"?\", \"^\", \"^=\", \"|\", \"|=\", \"||\", comment, end of line, or whitespace but \"(\" found.`\r\n\r\nHere's how it looks like (2nd emit event is ok for some reason):\r\n\r\n![screen shot 2018-03-13 at 22 36 25](https://user-images.githubusercontent.com/15833027/37392768-60820358-276f-11e8-828e-88d3a0532404.png)\r\n\r\nThe problem is in syntax only, compilation completes successfully."},"comment":{"url":"https://api.github.com/repos/juanfranblanco/vscode-solidity/issues/comments/373664065","html_url":"https://github.com/juanfranblanco/vscode-solidity/issues/57#issuecomment-373664065","issue_url":"https://api.github.com/repos/juanfranblanco/vscode-solidity/issues/57","id":373664065,"user":{"login":"rrickdar","id":15833027,"avatar_url":"https://avatars0.githubusercontent.com/u/15833027?v=4","gravatar_id":"","url":"https://api.github.com/users/rrickdar","html_url":"https://github.com/rrickdar","followers_url":"https://api.github.com/users/rrickdar/followers","following_url":"https://api.github.com/users/rrickdar/following{/other_user}","gists_url":"https://api.github.com/users/rrickdar/gists{/gist_id}","starred_url":"https://api.github.com/users/rrickdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrickdar/subscriptions","organizations_url":"https://api.github.com/users/rrickdar/orgs","repos_url":"https://api.github.com/users/rrickdar/repos","events_url":"https://api.github.com/users/rrickdar/events{/privacy}","received_events_url":"https://api.github.com/users/rrickdar/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T10:03:47Z","updated_at":"2018-03-16T10:03:47Z","author_association":"NONE","body":"As mentioned by @duaraghav8 in #https://github.com/duaraghav8/Solium/issues/177, the fix will be added in the new version of `Solium`, i.e the `Solparse` dependency where support for `emit` was recently added in v2.2.4 will be updated."}}
{"actor":{"display_login":"rrickdar"}}