bigluck / alfred2-sublimeprojects

Open Sublime Text 2 projects using Alfred 2
29 stars 5 forks source link

Breaks With Ampersands in Project Names #7

Open purplespider opened 9 years ago

purplespider commented 9 years ago

This workflow isn't working for me, and I believe it's because some of my projects have ampersand symbols in their names.

Entering 'sub' in Alfred, gives this debug error:

[ERROR: alfred.workflow.input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 4.)'. Row (null), Col (null): 'Document is empty' in XML:
Warning: SimpleXMLElement::addChild(): unterminated entity reference      Sea Guides in /Users/james/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.970DB83D-6DCD-412A-96EC-18E90E6A822D/sublime.php on line 49

Warning: SimpleXMLElement::addChild(): unterminated entity reference             Van in /Users/james/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.970DB83D-6DCD-412A-96EC-18E90E6A822D/sublime.php on line 49
<?xml version="1.0"?>
<items><item uid="/Users/james/Sites/Deana Rushworth/web/Deana Rushworth.sublime-project" arg="/Users/james/Sites/Deana Rushworth/web/Deana Rushworth.sublime-project"><title>Deana Rushworth</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Cambridge in Africa/web/Cambridge-Africa.sublime-project" arg="/Users/james/Sites/Cambridge in Africa/web/Cambridge-Africa.sublime-project"><title>Cambridge-Africa</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Philipp Metnitz/web metnitz/Metnitz.biz.sublime-project" arg="/Users/james/Sites/Philipp Metnitz/web metnitz/Metnitz.biz.sublime-project"><title>Metnitz.biz</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/SilverStripe Help/web/SilverStripe Help.sublime-project" arg="/Users/james/Sites/SilverStripe Help/web/SilverStripe Help.sublime-project"><title>SilverStripe Help</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_Upside Creative/Eye Candy/web/Eye Candy Illustration Agency.sublime-project" arg="/Users/james/Sites/_Upside Creative/Eye Candy/web/Eye Candy Illustration Agency.sublime-project"><title>Eye Candy Illustration Agency</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/E-Rail/web/E-Rail.sublime-project" arg="/Users/james/Sites/E-Rail/web/E-Rail.sublime-project"><title>E-Rail</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Danish Kids/web/Danish Kids Clothing.sublime-project" arg="/Users/james/Sites/Danish Kids/web/Danish Kids Clothing.sublime-project"><title>Danish Kids Clothing</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/Growler Beers/web/Growler Beers UK.sublime-project" arg="/Users/james/Sites/_darlingforsyth/Growler Beers/web/Growler Beers UK.sublime-project"><title>Growler Beers UK</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Applecross Peninsula/Mountian &amp; Sea Guides/web/Mountain &amp; Sea Guides.sublime-project" arg="/Users/james/Sites/Applecross Peninsula/Mountian &amp; Sea Guides/web/Mountain &amp; Sea Guides.sublime-project"><title/><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Hounslow Travel Active/web/Hounslow Travel Active.sublime-project" arg="/Users/james/Sites/Hounslow Travel Active/web/Hounslow Travel Active.sublime-project"><title>Hounslow Travel Active</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/Africa in Motion/web/Africa in Motion.sublime-project" arg="/Users/james/Sites/_darlingforsyth/Africa in Motion/web/Africa in Motion.sublime-project"><title>Africa in Motion</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Lets Get Golfing/web-golfmagic/Golf Magic Academy.sublime-project" arg="/Users/james/Sites/Lets Get Golfing/web-golfmagic/Golf Magic Academy.sublime-project"><title>Golf Magic Academy</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Newport Girls High School/web/Newport Girls' High School.sublime-project" arg="/Users/james/Sites/Newport Girls High School/web/Newport Girls' High School.sublime-project"><title>Newport Girls' High School</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/Lomax Consulting/web/Lomax Consulting.sublime-project" arg="/Users/james/Sites/_darlingforsyth/Lomax Consulting/web/Lomax Consulting.sublime-project"><title>Lomax Consulting</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Hodos Consulting/web/Hodos Consulting.sublime-project" arg="/Users/james/Sites/Hodos Consulting/web/Hodos Consulting.sublime-project"><title>Hodos Consulting</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/Robin Stewart/web/Robin Stewart Hospitality.sublime-project" arg="/Users/james/Sites/_darlingforsyth/Robin Stewart/web/Robin Stewart Hospitality.sublime-project"><title>Robin Stewart Hospitality</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Library/Application Support/sublime text 3/Packages/User/Sublime User Prefs.sublime-project" arg="/Users/james/Library/Application Support/sublime text 3/Packages/User/Sublime User Prefs.sublime-project"><title>Sublime User Prefs</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/Sheehan Kelsey Oswald/web/Sheehan Kelsey Oswald.sublime-project" arg="/Users/james/Sites/_darlingforsyth/Sheehan Kelsey Oswald/web/Sheehan Kelsey Oswald.sublime-project"><title>Sheehan Kelsey Oswald</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/beswitchedon/web/7 Steps to Love.sublime-project" arg="/Users/james/Sites/_darlingforsyth/beswitchedon/web/7 Steps to Love.sublime-project"><title>7 Steps to Love</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Finest Man &amp; Van/www/Finest Man &amp; Van.sublime-project" arg="/Users/james/Sites/Finest Man &amp; Van/www/Finest Man &amp; Van.sublime-project"><title/><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Silverstripe Template/install-ss3/SilverStripe 3 Tempalte.sublime-project" arg="/Users/james/Sites/Silverstripe Template/install-ss3/SilverStripe 3 Tempalte.sublime-project"><title>SilverStripe 3 Tempalte</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item></items>

Before both "Sea Guides" and "Van" there is an ampersand in the project name.

riotbit commented 9 years ago

Hi James,

I can not reproduce this error with files which have an ampersand in their names. Please send me the two sublime-project files „Sea Guides“ and „Van“, which are mentioned in the error messages you send me. After that I will try my best to fix this problem.

Christian

Am 27.11.2014 um 18:07 schrieb James Cocker notifications@github.com:

This workflow isn't working for me, and I believe it's because some of my projects have ampersand symbols in their names.

Entering 'sub' in Alfred, gives this debug error:

[ERROR: alfred.workflow.input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 4.)'. Row (null), Col (null): 'Document is empty' in XML: Warning: SimpleXMLElement::addChild(): unterminated entity reference Sea Guides in /Users/james/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.970DB83D-6DCD-412A-96EC-18E90E6A822D/sublime.php on line 49

Warning: SimpleXMLElement::addChild(): unterminated entity reference Van in /Users/james/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.970DB83D-6DCD-412A-96EC-18E90E6A822D/sublime.php on line 49 <?xml version="1.0"?>

Deana RushworthOpen (new window) or ⌘ (append) icon.png1Cambridge-AfricaOpen (new window) or ⌘ (append) icon.png1Metnitz.bizOpen (new window) or ⌘ (append) icon.png1SilverStripe HelpOpen (new window) or ⌘ (append) icon.png1Eye Candy Illustration AgencyOpen (new window) or ⌘ (append) icon.png1E-RailOpen (new window) or ⌘ (append) icon.png1Danish Kids ClothingOpen (new window) or ⌘ (append) icon.png1Growler Beers UKOpen (new window) or ⌘ (append) icon.png1<subtitle>Open (new window) or ⌘ (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Hounslow Travel Active/web/Hounslow Travel Active.sublime-project" arg="/Users/james/Sites/Hounslow Travel Active/web/Hounslow Travel Active.sublime-project"><title>Hounslow Travel ActiveOpen (new window) or ⌘ (append) icon.png1Africa in MotionOpen (new window) or ⌘ (append) icon.png1Golf Magic AcademyOpen (new window) or ⌘ (append) icon.png1Newport Girls' High SchoolOpen (new window) or ⌘ (append) icon.png1Lomax ConsultingOpen (new window) or ⌘ (append) icon.png1Hodos ConsultingOpen (new window) or ⌘ (append) icon.png1Robin Stewart HospitalityOpen (new window) or ⌘ (append) icon.png1Sublime User PrefsOpen (new window) or ⌘ (append) icon.png1Sheehan Kelsey OswaldOpen (new window) or ⌘ (append) icon.png17 Steps to LoveOpen (new window) or ⌘ (append) icon.png1<subtitle>Open (new window) or ⌘ (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Silverstripe Template/install-ss3/SilverStripe 3 Tempalte.sublime-project" arg="/Users/james/Sites/Silverstripe Template/install-ss3/SilverStripe 3 Tempalte.sublime-project"><title>SilverStripe 3 TempalteOpen (new window) or ⌘ (append) icon.png1

Before both "Sea Guides" and "Van" there is an ampersand in the project name.

— Reply to this email directly or view it on GitHub https://github.com/bigluck/alfred2-sublimeprojects/issues/7.

purplespider commented 9 years ago

Sure, here you go: http://spdr.me/EIlH