Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Don't use NSFileManager api for path existence detection in IsNetworkDrive api. #355

Merged
merged 1 commit into from
Oct 15, 2013

Conversation

RaymondLim
Copy link
Contributor

This fixes the debug issue (adobe/brackets#5277) introduced by pull request #281 and also fixes adobe/brackets#4410 that pull request tried to fix.

This simplifies the code in checking the existence of file/folder path on Mac. The original code added to fix adobe/brackets#4410 is somehow making debug crash issue (adobe/brackets#5277) happening sooner in a debugging session.

@RaymondLim
Copy link
Contributor Author

@redmunds Can you please review this since you're the one who identifies my pr as the culprit?

@redmunds
Copy link
Contributor

I'm still seeing the same problem. Code runs slow in Debug mode so you can watch these phases in this order:

  1. Brackets window frame is drawn
  2. Native menus are added
  3. Brackets empty Side Panel, empty Editor, and Toolbar are drawn
  4. Project Tree and Working Set are populated
  5. Before any file is selected in Working Set and loaded into Editor, entire Brackets window is painted color of titlebar (which is now dark)

@redmunds
Copy link
Contributor

If I double-click directly on debug executable, it crashes on startup. I saved the crash log if anyone wants to look at it.

@RaymondLim
Copy link
Contributor Author

@redmunds I added some clarification in adobe/brackets#5277 (comment) and also updated the description of this pull request.

@redmunds
Copy link
Contributor

Verified original bug is still fixed. Merging.

redmunds added a commit that referenced this pull request Oct 15, 2013
Don't use NSFileManager api for path existence detection in IsNetworkDrive api.
@redmunds redmunds merged commit 7e55937 into master Oct 15, 2013
@redmunds redmunds deleted the rlim/mac-debug-issue branch October 15, 2013 20:22
redmunds added a commit that referenced this pull request Dec 8, 2015
Don't use NSFileManager api for path existence detection in IsNetworkDrive api.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Core][Delete from OS][MAC only]: Brackets crash if click the folder which is deleted from OS.
2 participants