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

Solved displaying error and not opening generated file after success #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mettjus
Copy link

@mettjus mettjus commented May 14, 2013

I played with it a little and noticed it generated the views but the status_message said failure and sublime didn't open newly generated file.

I had not tested it with all generate commands before and haven't tested after modification.

Hope it is useful.
Met

(using Mac)

@@ -58,10 +58,10 @@ def proc_status(self, proc):
sublime.set_timeout(lambda: self.proc_status(proc), 200)
else:
output = proc.communicate()[0].decode('utf-8')
match = re.search(r'/app/\w+/.*[.]php', output)
match = re.search(r'app/\w+/.*[.]php', output)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't match the path of the newly generated file

@Jamesking56
Copy link

Tested on Mac OS X Mavericks with Sublime Text 2 (2.0.2 build 2221) and this fixes the errors but then tries to open the file with the wrong location.

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

Successfully merging this pull request may close these issues.

2 participants