-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Console error whenever new file is created in project where defaultExtension is set #6539
Comments
This is happening because ScopeManager doesn't support untitled documents. Before #6428 it was never exposed to such documents, they never had a file extension and thus were never seen as JS content. @iwehrman and I spent some time trying to fix ScopeManager for this case back in the day, and were unsuccessful. So for now I think we need to stick with simply treating these files as not JS. I can think of a few quick fixes:
|
This appears to be happening even in projects where |
Ah, I forgot that Getting Started is in the brackets folder, which does set the pref. Updated title. |
disable defaultExtension pref, for issue #6539
So we've done the first bullet for now -- removing support for this pref entirely. I'm leaving this bug open to track doing either one of the nicer fixes listed above, or actually fixing the underlying ScopeManager problems so it can be fully re-enabled. (The latter would also unblock #6409, but it may be a backlog-sized chunk of work). |
Should we close this one since the symptoms are fixed, and open a separate code cleanup bug on the desired improvements? |
@njx yeah, that was my thinking. I opened #6559 to get the preference in working order. I wasn't sure if ScopeManager was the only thing that is unhappy with untitled files of a certain type. (Actually, we'll want to fix that anyhow at some point since we want users to be able to select the mode for the current file...) Now that the immediate symptoms are gone, I'll close this and use #6559 to track the final implementation |
Result:
Error resolving /_brackets_83937217/
at ScopeManager.js:1071.The text was updated successfully, but these errors were encountered: