killme2008 / killme2008/aviatorscript
无法获取module路径问题
- Dominant language
- Java
- Stars
- 5.2k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
使用demo里面的__MODULE__,直接报错:Exception in thread "main" com.googlecode.aviator.exception.ExpressionRuntimeException: Could not find variable __MODULE__.dir
路径无法获取是什么问题?
本地使用绝对路径能读取到module,但是打包jar,无法获取
let q = require('script/v2/module/xxxx_module');
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the demo usage of __MODULE__ and the require('script/v2/module/xxxx_module') example. Reproduce the difference between an absolute path and a packaged JAR, then trace the module-path lookup and its handling of __MODULE__.dir. Done means module resolution has a defined, working behavior when the application is packaged as a JAR.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100