{"action":"created","issue":{"url":"https://api.github.com/repos/google/blockly/issues/1697","repository_url":"https://api.github.com/repos/google/blockly","labels_url":"https://api.github.com/repos/google/blockly/issues/1697/labels{/name}","comments_url":"https://api.github.com/repos/google/blockly/issues/1697/comments","events_url":"https://api.github.com/repos/google/blockly/issues/1697/events","html_url":"https://github.com/google/blockly/issues/1697","id":304083619,"number":1697,"title":"`namespace never provided` Error with closure-compiler.jar","user":{"login":"ShenTengTu","id":9195850,"avatar_url":"https://avatars3.githubusercontent.com/u/9195850?v=4","gravatar_id":"","url":"https://api.github.com/users/ShenTengTu","html_url":"https://github.com/ShenTengTu","followers_url":"https://api.github.com/users/ShenTengTu/followers","following_url":"https://api.github.com/users/ShenTengTu/following{/other_user}","gists_url":"https://api.github.com/users/ShenTengTu/gists{/gist_id}","starred_url":"https://api.github.com/users/ShenTengTu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShenTengTu/subscriptions","organizations_url":"https://api.github.com/users/ShenTengTu/orgs","repos_url":"https://api.github.com/users/ShenTengTu/repos","events_url":"https://api.github.com/users/ShenTengTu/events{/privacy}","received_events_url":"https://api.github.com/users/ShenTengTu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-10T16:29:57Z","updated_at":"2018-03-13T00:19:59Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  - Thanks for opening an issue for us!  Before you open an issue,\r\n  - please check if a similar issue exists or has been closed before.\r\n  -\r\n  - If you're asking a question about how to use Blockly in your application,\r\n  - please ask questions on the mailing list, instead of filing issues:\r\n  -       https://groups.google.com/forum/#!forum/blockly\r\n  -->\r\n\r\n### Problem statement\r\nI follow [Advanced Compilation](https://developers.google.com/blockly/guides/modify/web/advanced) tutorial to try. I did not create a new directory in the Blockly root directory to test, but instead used `blockly` and `closure-library` as subdirectories (submodules) in project as below : \r\n```\r\nproject\r\n├─blockly\r\n├─closure-library\r\n├─closure-compiler.jar\r\n├─index.html\r\n└─main.js\r\n```\r\nThen compile files using the commend as below : \r\n```shell\r\njava -jar closure-compiler.jar --js='main.js' ^\r\n  --js='./blockly/**.js' ^\r\n  --js='!./blockly/externs/**.js' ^\r\n  --js='!./blockly/msg/messages.js' ^\r\n  --js='./closure-library/closure/goog/**.js' ^\r\n  --js='./closure-library/third_party/closure/goog/**.js' ^\r\n  --generate_exports ^\r\n  --externs ./blockly/externs/svg-externs.js ^\r\n  --compilation_level ADVANCED_OPTIMIZATIONS ^\r\n  --dependency_mode=STRICT --entry_point=Main ^\r\n  --js_output_file main_compressed.js\r\n```  \r\n### Expected Behavior\r\nIt should output file `main_compressed.js`.\r\n\r\n### Actual Behavior\r\nGet error like ` required \"Blockly\" namespace never provided` .\r\n\r\n### Stack Traces\r\n```shell\r\nmain.js:3: ERROR - required \"Blockly.Msg.en\" namespace never provided\r\ngoog.require('Blockly.Msg.en');\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\nmain.js:5: ERROR - required \"Blockly\" namespace never provided\r\ngoog.require('Blockly');\r\n^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\nmain.js:7: ERROR - required \"Blockly.Constants.Logic\" namespace never provided\r\ngoog.require('Blockly.Constants.Logic');\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\nmain.js:8: ERROR - required \"Blockly.Constants.Loops\" namespace never provided\r\ngoog.require('Blockly.Constants.Loops');\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\nmain.js:9: ERROR - required \"Blockly.Constants.Math\" namespace never provided\r\ngoog.require('Blockly.Constants.Math');\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\nmain.js:10: ERROR - required \"Blockly.Constants.Text\" namespace never provided\r\ngoog.require('Blockly.Constants.Text');\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n6 error(s), 0 warning(s)\r\n                                                                                                                                                                                                                                                                                                                                                                                        \r\n```\r\n### Operating System and Browser\r\nOS: Windows 7\r\njava version : 1.8.0_161\r\nClosure Compiler Version: v20180204"},"comment":{"url":"https://api.github.com/repos/google/blockly/issues/comments/372504978","html_url":"https://github.com/google/blockly/issues/1697#issuecomment-372504978","issue_url":"https://api.github.com/repos/google/blockly/issues/1697","id":372504978,"user":{"login":"rachel-fenichel","id":13686399,"avatar_url":"https://avatars2.githubusercontent.com/u/13686399?v=4","gravatar_id":"","url":"https://api.github.com/users/rachel-fenichel","html_url":"https://github.com/rachel-fenichel","followers_url":"https://api.github.com/users/rachel-fenichel/followers","following_url":"https://api.github.com/users/rachel-fenichel/following{/other_user}","gists_url":"https://api.github.com/users/rachel-fenichel/gists{/gist_id}","starred_url":"https://api.github.com/users/rachel-fenichel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachel-fenichel/subscriptions","organizations_url":"https://api.github.com/users/rachel-fenichel/orgs","repos_url":"https://api.github.com/users/rachel-fenichel/repos","events_url":"https://api.github.com/users/rachel-fenichel/events{/privacy}","received_events_url":"https://api.github.com/users/rachel-fenichel/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T00:19:59Z","updated_at":"2018-03-13T00:19:59Z","author_association":"COLLABORATOR","body":"I tried a few variations on this command, and it looks like you're not finding the correct blockly files.  Your output matches what I get if I run \r\n```\r\njava -jar closure-compiler.jar --js='main.js' --js='/**.js'\r\n```\r\nor \r\n```\r\njava -jar closure-compiler.jar --js='main.js'\r\n```\r\n\r\nThe first has an incorrect path name for the second `--js` specifier, and the other is missing the second `--js` specifier."}}
{"actor":{"display_login":"rachel-fenichel"}}