Skip to content
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

[CLOSED] Code Cleanup: Live Dev _loadedAgentNames is not accurate. #3185

Open
core-ai-bot opened this issue Aug 29, 2021 · 3 comments
Open

Comments

@core-ai-bot
Copy link
Member

Issue by redmunds
Tuesday Apr 09, 2013 at 22:08 GMT
Originally opened as adobe/brackets#3390


This was split off of pull adobe/brackets#3203

In LiveDevelopment.js loadAgents() function, agent names are synchronously added to the _loadedAgentNames array after calling agents[name].load(). Seems like they should only be in the list if the call to load() is resolved.

This does not seem to cause any known problem. It just seems to imply that it contains a list of successfully loaded agents and someone may try to use that for something in the future. Possible solutions:

  1. If it simply contains the same list as _enabledAgentNames, then the _loadedAgentNames array is not needed
  2. If the _loadedAgentNames array is needed, then it should be accurate.
  3. The name should be changed to describe what's actually in the array.
@core-ai-bot
Copy link
Member Author

Comment by pthiess
Wednesday Apr 10, 2013 at 17:40 GMT


This would be a good thing for the community to look at, therefore I assign it at@dangoor but don't expect him to fix it by himself.

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Wednesday Apr 17, 2013 at 01:13 GMT


Also see@iwehrman comment about possible race conditions in loadAgents/unloadAgents here adobe/brackets#3203 (comment).

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Saturday Mar 08, 2014 at 01:08 GMT


If any agent doesn't load, then Live Preview fails, so this isn't really an issue. The race condition mentioned by Ian was fixed with _loadAgentsPromise in PR #6889. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant