{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/wax/issues/9","labels_url":"https://api.github.com/repos/alibaba/wax/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/wax/issues/9/comments","events_url":"https://api.github.com/repos/alibaba/wax/issues/9/events","html_url":"https://github.com/alibaba/wax/issues/9","id":115428024,"number":9,"title":"import <ObjectiveGumbo.h> 这种导入方式在 wax 里应该怎么写？","user":{"login":"Mr-ZeroX","id":3412003,"avatar_url":"https://avatars.githubusercontent.com/u/3412003?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-ZeroX","html_url":"https://github.com/Mr-ZeroX","followers_url":"https://api.github.com/users/Mr-ZeroX/followers","following_url":"https://api.github.com/users/Mr-ZeroX/following{/other_user}","gists_url":"https://api.github.com/users/Mr-ZeroX/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-ZeroX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-ZeroX/subscriptions","organizations_url":"https://api.github.com/users/Mr-ZeroX/orgs","repos_url":"https://api.github.com/users/Mr-ZeroX/repos","events_url":"https://api.github.com/users/Mr-ZeroX/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-ZeroX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-06T03:38:58Z","updated_at":"2015-11-16T03:51:19Z","closed_at":null,"body":"ObjectiveGumbo 是用 pod 安装的一个库，在 oc 里 `import <ObjectiveGumbo.h>` 这样导入没问题，但在 .lua 文件中写 `require \"ObjectiveGumbo.h\"` 和 `require \"ObjectiveGumbo\"` 均报错：\r\n```\r\nError opening wax scripts: ParserController.lua:1: module 'ObjectiveGumbo.h' not found:\r\n\tno field package.preload['ObjectiveGumbo.h']\r\n\tno file 'scripts/ObjectiveGumbo/h.lua'\r\n\tno file 'scripts/ObjectiveGumbo/h/init.lua'\r\n\tno file 'scripts/ObjectiveGumbo/h.dat'\r\n\tno file 'ObjectiveGumbo/h.lua'\r\n\tno file 'ObjectiveGumbo/h/init.lua'\r\n\tno file 'ObjectiveGumbo/h.dat'\r\n```\r\n是写法问题还是因为不在文件搜索路径里？"},"comment":{"url":"https://api.github.com/repos/alibaba/wax/issues/comments/156908713","html_url":"https://github.com/alibaba/wax/issues/9#issuecomment-156908713","issue_url":"https://api.github.com/repos/alibaba/wax/issues/9","id":156908713,"user":{"login":"Mr-ZeroX","id":3412003,"avatar_url":"https://avatars.githubusercontent.com/u/3412003?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-ZeroX","html_url":"https://github.com/Mr-ZeroX","followers_url":"https://api.github.com/users/Mr-ZeroX/followers","following_url":"https://api.github.com/users/Mr-ZeroX/following{/other_user}","gists_url":"https://api.github.com/users/Mr-ZeroX/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-ZeroX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-ZeroX/subscriptions","organizations_url":"https://api.github.com/users/Mr-ZeroX/orgs","repos_url":"https://api.github.com/users/Mr-ZeroX/repos","events_url":"https://api.github.com/users/Mr-ZeroX/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-ZeroX/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T03:51:19Z","updated_at":"2015-11-16T03:51:19Z","body":"@intheway It works, thanks!"}}