{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/1213","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/1213/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/1213/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/1213/events","html_url":"https://github.com/dart-lang/pub/issues/1213","id":85646555,"number":1213,"title":"Using enum with pub serve","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/AsDesigned","name":"AsDesigned","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Pub-Serve","name":"Pub-Serve","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-05T22:24:51Z","updated_at":"2015-06-05T22:24:52Z","closed_at":null,"body":"<a href=\"https://github.com/isaacbernat\"><img src=\"https://avatars.githubusercontent.com/u/2509809?v=3\" align=\"left\" width=\"96\" height=\"96\"hspace=\"10\"></img></a> **Issue by [isaacbernat](https://github.com/isaacbernat)**\n_Originally opened as dart-lang/sdk#21871_\n\n----\n\n**What steps will reproduce the problem?**\n1. Have enums in you .dart files\n2. Try to run everything using `pub serve`\n\n**What is the expected output? What do you see instead?**\nExpected: my contents when I go to localhost:8080 on my browser\nWhat I get: an error message saying `Experimental language feature 'enums' is not supported. Use option '--enable-enum' to use enum declarations.`. I can't seem to be able to add these &quot;options&quot; on `pub serve`\n\n**What version of the product are you using?**\nDart VM version: 1.8.0 (Thu Nov 27 00:59:46 2014) on &quot;macos_ia32&quot;\nPub 1.8.0\n\n**On what operating system?**\nMacos mounatin lion\n\n**What browser (if applicable)?**\nChrome\n\n**Please provide any additional information below.**\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/pub/issues/comments/109462042","html_url":"https://github.com/dart-lang/pub/issues/1213#issuecomment-109462042","issue_url":"https://api.github.com/repos/dart-lang/pub/issues/1213","id":109462042,"user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T22:24:52Z","updated_at":"2015-06-05T22:24:52Z","body":"<a href=\"https://github.com/isaacbernat\"><img src=\"https://avatars.githubusercontent.com/u/2509809?v=3\" align=\"left\" width=\"48\" height=\"48\"hspace=\"10\"></img></a> **Comment by [isaacbernat](https://github.com/isaacbernat)**\n\n----\n\nTL;DR That seems to fix the issue. Thanks Seth.\n\n--\nI googled fora while and didn't find that ^_^. Also it is worth noting that one should add the $dart2js as the last option in transformer, or pub serve would complain, (in my case that'd be after polymer stuff). E.g.\n\ndependencies:\n&nbsp;&nbsp;polymer: '>=0.14.0 &lt;0.15.0'\n&nbsp;&nbsp;core_elements: any\n&nbsp;&nbsp;browser: any\n&nbsp;&nbsp;range:\ntransformers:\n- polymer:\n&nbsp;&nbsp;&nbsp;&nbsp;entry_points: web/index.html\n- $dart2js:\n&nbsp;&nbsp;&nbsp;&nbsp;commandLineOptions: [\"--enable-enum\"]\n"}}