Compiler doesn't seem to catch all dependencies
- Dominant language
- ActionScript
- Stars
- 380
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I have a new project I'm developing using Royale called XFL Tools, it's designed to parse assets created with Adobe Animate "out of the box" and render them using a replicated Flash API:
https://github.com/tdprogramming/xfltools
I've listed the issues I'm having in the read me file. The main problem is that the compiler seems to leave out needed dependencies, probably due to trying to eliminate circular dependencies? When trying to run the sample project out-of-the-box, for example, the Shape class required by the Greensock Tween libs (used as a ticker) doesn't have its superclasses added as dependencies and so fails to init properly. Manually adding the full hierarchy as dependencies using the Python script I devised addresses this, but it's not a long term solution of course.
Is it possible to add hints for the compiler or force certain dependencies through?
The second issue is that I need to patch the generated HTML file to include the create JS framework and a few other things. Is it possible to inject HTML into the output, for example by using tagged comments in the source? I seem to remember reading about this back when Royale was Flex JS, but haven't been able to get it to work.
Many thanks for any insight you can give on these issues.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the repository README and the XFL Tools sample project described in the report, then review the Python script used to add the missing dependency hierarchy manually. Reproduce the Shape superclass failure and inspect the generated HTML output. Done means the sample resolves required dependencies without manual additions and the requested HTML framework content can be supplied without hand-editing.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, compilers, web-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100