Sample extension's About page errors
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- java, javascript
调研方向
从 extensions/sample/module/MOD-INF/controller.js 第 75 行开始,检查它如何调用 com.google.refine.sampleExtension.SampleUtil。然后检查 SampleUtil 在哪里被编译或打包,因为错误显示它被公开为 JavaPackage,而不是预期的类。完成的标准是访问 /extension/sample/ 时,About 页面能够渲染其 Velocity 模板,且不会出现 HTTP 500 错误。
由索引模型根据 Issue 内容生成。
描述
The About page for the sample extension fails to render.
To Reproduce
Steps to reproduce the behavior:
Current Results
(From new Butterfly error page for improve readability)
HTTP ERROR 500 Butterfly Error Butterfly caught the following error while processing the request:
URI: | /extension/sample/ -- | -- 500 Butterfly Error Butterfly caught the following error while processing the request: refine org.mozilla.javascript.EcmaError: TypeError: Cannot call property stringArrayLength in object [JavaPackage com.google.refine.sampleExtension.SampleUtil]. It is not a function, it is "object". (file:/Users/tfmorris/git/OpenRefine2/main/webapp/../../extensions/sample/module/MOD-INF/controller.js#75)Caused by:
org.mozilla.javascript.EcmaError: TypeError: Cannot call property stringArrayLength in object [JavaPackage com.google.refine.sampleExtension.SampleUtil]. It is not a function, it is "object". (file:/Users/tfmorris/git/OpenRefine2/main/webapp/../../extensions/sample/module/MOD-INF/controller.js#75) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4563) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4544) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4576) at org.mozilla.javascript.ScriptRuntime.typeErrorById(ScriptRuntime.java:4581) at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4662) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2585) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2568) at org.mozilla.javascript.gen.file__Users_tfmorris_git_OpenRefine2_main_webapp_______extensions_sample_module_MOD_INF_controller_js_18._c_process_2(file:/Users/tfmorris/git/OpenRefine2/main/webapp/../../extensions/sample/module/MOD-INF/controller.js:75) at org.mozilla.javascript.gen.file__Users_tfmorris_git_OpenRefine2_main_webapp_______extensions_sample_module_MOD_INF_controller_js_18.call(file:/Users/tfmorris/git/OpenRefine2/main/webapp/../../extensions/sample/module/MOD-INF/controller.js) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:380) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3868) at org.mozilla.javascript.gen.file__Users_tfmorris_git_OpenRefine2_main_webapp_______extensions_sample_module_MOD_INF_controller_js_18.call(file:/Users/tfmorris/git/OpenRefine2/main/webapp/../../extensions/sample/module/MOD-INF/controller.js) at edu.mit.simile.butterfly.ButterflyModuleImpl$Controller.process(ButterflyModuleImpl.java:399) at edu.mit.simile.butterfly.ButterflyModuleImpl$Controller.run(ButterflyModuleImpl.java:377) at org.mozilla.javascript.Context.call(Context.java:535) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:472) at edu.mit.simile.butterfly.ButterflyModuleImpl.processScript(ButterflyModuleImpl.java:654) at edu.mit.simile.butterfly.ButterflyModuleImpl.process(ButterflyModuleImpl.java:427) at edu.mit.simile.butterfly.Butterfly.service(Butterfly.java:524) at com.google.refine.RefineServlet.service(RefineServlet.java:217) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
Expected Behavior
Velocity template renders correctly.
Versions
- OpenRefine: 3.7 and current HEAD of master (not sure how far back it goes)
Additional context
At first glance it looks like perhaps the SampleUtil class isn't getting compiled or packaged in the right place.
- 主要语言
- JavaScript
- 星标
- 5
- 派生
- 11
- 平均合并
- 1 小时 58 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenRefine/sample-extension 的其他 Issue
-
Add CI tests未关闭
难度 3/5 1-2 天 新手友好度 52/100
-
Move to org.openrefine package instead of com.google.refine可能已有人在做 @tfmorris 于 21 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 25/100
-
Fix SLF4J config for logger in unit tests可能已有人在做 @tfmorris 于 21 天前认领。 未关闭
OpenRefine/sample-extension#54 · 2 条评论 · 已指派 1 人 ·
-
难度 3/5 1-2 天 新手友好度 38/100
-
难度 3/5 1-2 天 新手友好度 42/100
查看 OpenRefine/sample-extension 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 75/100
SACGF/variantgrid#2791 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
zilliztech/memsearch#853 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
MadiroGlobalHealth/UVL-EMR#580 ·
维护者通常 1 天内回复
-
ci enhancement need-triage
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
[BUG] Mobile menu doesn't work on the Rabbit Behaviour page可能已有人在做 @Aryamuh-ynah 今天认领。 未关闭bug
难度 1/5 1 小时以内 新手友好度 88/100
Riya-Kharade/PetSathi#110 · 1 条评论 ·
维护者通常 1 天内回复