-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMD recursive define fail #92
Comments
Guys, I am actually dont know what kind of task can it be where such module structure can be handy. |
Yes it's not quite common situation. But Platypus.JS have to handle such situation with normal work or by providing error message. Right now it just stops and do nothing. |
Agree about error message in this kind of situations. |
Can't disagree with @hcspidergrasp. Anyway it's not a question of architecture, it's only bug issue. |
The problem with error message regarding circular dependencies is detection of such references. AMD format is asynchronous and so it is hard to detect such references. If you have such reference there nothing to examine to produce an error message. The system simply stops and it is all. A developer can detect if his project contains circular references with a tool. For example madge from the stackoverflow post mentioned earlier. |
@AlexeyKashintsev, looks like this holy wars caused by closeness of deadline when there is no time for rethinking of software design %))) |
define('mod1', ['mod2'], ...);
define('mod2, ['mod1'], ...);
will fail to load without any exception. Added test for it . Look for platypus-tests pull requestThe text was updated successfully, but these errors were encountered: