Home Download Buy Blog Forum Support

Error reading project ... failed to open file

Error reading project ... failed to open file

Postby mattp on Tue May 18, 2010 3:49 pm

I can open the file directly in sublime, but when I try
Code: Select all
window.runCommand('openBrowseableProject "\\development\w$\project\sublime.xml"')

I get an error ...
Sublime Text 1.3
---------------------------
Error reading project development$projectsublime.xml: Failed to open file


Any ideas?
mattp
 
Posts: 1
Joined: Tue May 18, 2010 3:45 pm

Re: Error reading project ... failed to open file

Postby guillermooo on Tue May 18, 2010 3:58 pm

Have you tried escaping all "\" like so "\\"?

I think that might help.
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am

Re: Error reading project ... failed to open file

Postby guillermooo on Tue May 18, 2010 4:05 pm

Also, you can do view.runCommand('openBrowsableProject', ["path/to/project"]). That's probably the preferred way to call runCommand.
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am

Re: Error reading project ... failed to open file

Postby guillermooo on Tue May 18, 2010 6:21 pm

I've just noticed that you aren't using the standard .sublime-project extension. Is there a reason for that? Sublime seems to be able to read both, at least from Project > Open project, though.
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 23 guests