joeferraro/mm — pull request #33 by daveespo (2014-08-06 17:19:34+00:00)
Title: Error when deleting Checkpoint: global name 'project' is not defined

When you delete a checkpoint (related to [MavensMate-SublimeText#354](https://github.com/joeferraro/MavensMate-SublimeText/issues/354)), you get:

````
Operation: Deleting checkpoint...
Timestamp: Wed, 06 Aug 2014 13:12:42
Result: [OPERATION FAILED]: global name 'project' is not defined
````

In the Console log, this is logged:

````
MAVENSMATE]: Reloading Apex Checkpoints
[MAVENSMATE]: Reloading Apex Checkpoints
[MAVENSMATE]: attempting to load apex overlays for current file
[MAVENSMATE]: Calling mm_interface
[MAVENSMATE]: OPERATION: delete_apex_overlay
[MAVENSMATE]: {'params': {'id': '1do50000000CahgAAC'}, 'callback': >, 'message': 'Deleting checkpoint...', 'context': }
[MAVENSMATE]: executing mm terminal call:
[MAVENSMATE]: "C:\Program Files (x86)\MavensMate\App\python.exe" -E "C:\Users\esposito\AppData\Roaming\Sublime Text 3\Packages\MavensMate\mm\mm.py" -c SUBLIME_TEXT_3 -o delete_apex_overlay
[MAVENSMATE]: {"id": "1do50000000CahgAAC", "workspace": "C:\\Users\\esposito\\Documents\\\\mm_workspace", "project_name": "patronquery"}
[MAVENSMATE]: response from mm: {"body": "global name 'project' is not defined", "stack_trace": "Traceback (most recent call last):\n File \"C:\\Users\\esposito\\AppData\\Roaming\\Sublime Text 3\\Packages\\MavensMate\\mm\\lib\\request.py\", line 87, in execute\n self.__printr(command_clazz.execute())\n File \"C:\\Users\\esposito\\AppData\\Roaming\\Sublime Text 3\\Packages\\MavensMate\\mm\\lib\\commands\\debug.py\", line 219, in execute\n IndexApexOverlaysCommand(params=self.params).execute()\n File \"C:\\Users\\esposito\\AppData\\Roaming\\Sublime Text 3\\Packages\\MavensMate\\mm\\lib\\commands\\debug.py\", line 150, in execute\n project.put_overlays_file('[]')\nNameError: global name 'project' is not defined\n", "success": false}

````