-
Notifications
You must be signed in to change notification settings - Fork 0
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
Code hints: Support require() calls not in an AMD wrapper #12280
Comments
Comment by peterflynn
If it's within the project tree, Brackets should find it. Can you give an example of (a) the code your put your cursor on, and (b) the code for a function definition you expected it to find? |
Comment by pthiess Reviewed |
Comment by ericelliott It is in the same project tree. I see this issue intermittently for all functions which have been I have not tried AMD modules, so I don't know about that. file1.js
file2.js
Place the cursor on foo(); in file2 and hit Command+E. Result: Nothing happens -- OR -- inline edit works very slowly. I have not been able to figure out if there's a deterministic repro case. |
Comment by peterflynn
I can repro this even with a less exotic structure such as: moduleA.js:
main.js: (in same folder)
Even there, Jump to Definition on "bar" doesn't do anything, and Quick Edit falls back to simple string search... |
Comment by eztierney
The requirejs plugin only understands the synchronous call to require when it's inside a simplified CommonJS wrapper. The node plugin referenced in issue #3938 understands that synchronous require calls could be anywhere, which is one reason why we want to turn that on for node files. |
Comment by ericelliott Any progress on this issue? |
Comment by peterflynn Marking needs review -- closely related to #3938. Whether we move them to the backlog or what, both should probably have the same resolution. |
Comment by peterflynn Clarifying title (was: "Inline Edit Broken for Node Projects") |
Issue by ericelliott
Monday May 13, 2013 at 18:29 GMT
Originally opened as adobe/brackets#3801
Using Build 24
Command-E for inline edit sometimes works, but it's very slow. Usually, it just doesn't work at all.
Opening the developer tools doesn't give me any errors. Just a couple warnings about assigning unrelated hotkeys.
The text was updated successfully, but these errors were encountered: