# Cabbage can't execute csd with space in path or file name

**URL:** <https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595>\
**Category:** Cabbage Stew\
**Created:** [1 June 2021 11:57 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595 "2021-06-01T11:57:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tetsuyamiwa](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/tetsuyamiwa/32/3752_2.png) [@tetsuyamiwa](https://forum.cabbageaudio.com/u/tetsuyamiwa)\
**Post date:** [1 June 2021 11:57 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/1 "2021-06-01T11:57:20Z")

</div>

Hi,

Recently I I’ve been gradually changing my main Csound front end from Csound QT to Cabbage because of its nice widgets. I’m very happy with Cabbage, but I’d like to point out a few things that could be updated in the future.

Cabbage can’t execute csd file if the path or file name contains space. I know it’s a standard in code development to avoid space in path or file name. However, it will be very useful If this restriction is removed.  
Multi byte characters are also not allowed in path/file name. I hope this will be solved too.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [1 June 2021 12:04 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/2 "2021-06-01T12:04:17Z")

</div>

Multibyte characters area an issue, but I’ve problems opening files with whitespaces? What version of Cabbage are you using?

btw. welcome to the forum!

---

<div class="post-metadata">

**Author:** ![tetsuyamiwa](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/tetsuyamiwa/32/3752_2.png) [@tetsuyamiwa](https://forum.cabbageaudio.com/u/tetsuyamiwa)\
**Post date:** [1 June 2021 14:57 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/3 "2021-06-01T14:57:04Z")

</div>

Hi Rory,  
I use Cabbage 2.6 on MacOS11.4(Intel MacBook Pro).  
I can open the csd with whitespace in its path and/or file name, but Cabbage does not respond to ‘Play’ button.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [1 June 2021 15:58 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/4 "2021-06-01T15:58:50Z")

</div>

Thanks, I’ll take a look. Although I’m not a fan of whitespaces, I think they should be supported 👍

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [2 June 2021 10:32 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/5 "2021-06-02T10:32:10Z")

</div>

I just tested here with whitespaces, and it loads and runs fine? Can you provide me with the path and file name you are using so I can test here with the same?

---

<div class="post-metadata">

**Author:** ![tetsuyamiwa](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/tetsuyamiwa/32/3752_2.png) [@tetsuyamiwa](https://forum.cabbageaudio.com/u/tetsuyamiwa)\
**Post date:** [2 June 2021 15:23 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/6 "2021-06-02T15:23:02Z")

</div>

[test 1.csd](https://forum.cabbageaudio.com/uploads/short-url/etb7MtSX8Ci65UjFIpXOvLSYz1L.csd) (579 Bytes)

The path is /Users/tetsuya/Desktop.

---

<div class="post-metadata">

**Author:** ![tetsuyamiwa](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/tetsuyamiwa/32/3752_2.png) [@tetsuyamiwa](https://forum.cabbageaudio.com/u/tetsuyamiwa)\
**Post date:** [2 June 2021 15:48 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/7 "2021-06-02T15:48:55Z")

</div>

I guess that the language setting might be responsible for this issue and tested with different settings in System Preferences. The result below is confusing… Not sure if this issue really relates to language setting.

Seq#1 Preferred language=Japanese, open csd on Cabbage =\> Csd can’t be run  
Seq#2 Preferred language=English, restart PC, open csd on Cabbage =\> Csd can be run  
Seq#3 Preferred language=Japanese, restart PC, open csd on Cabbage =\> Csd can be run(!)  
Seq#3 Quit Cabbage, launch Cabbage again and open csd =\> Csd can’t be run(!!)

---

<div class="post-metadata">

**Author:** ![tetsuyamiwa](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/tetsuyamiwa/32/3752_2.png) [@tetsuyamiwa](https://forum.cabbageaudio.com/u/tetsuyamiwa)\
**Post date:** [2 June 2021 16:09 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/8 "2021-06-02T16:09:09Z")

</div>

Further testing(Preferred language=Japanese, tested 2 times):  
If I open the csd in Cabbage which is launched first time after PC restart, the CSD can be run.  
However, once I quit Cabbage and launch again and open the csd, it can’t be run : After clicking ‘Play’ button, no message appears in the console and no sound output. Clicking ‘Stop’ button does not work(the button does not return to ‘Play’)

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [3 June 2021 15:33 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/9 "2021-06-03T15:33:56Z")

</div>

I’m not sure how best I can test this here. When I add non ascii characters to a path, Cabbage can still read the path and load and run the file without issue? The path you posted above contains plain ascii chars:

`/Users/tetsuya/Desktop`

I tried the following and Cabbage also worked fine:

`/Users/walshr/Downloads/À test`

I’m hesitant to change my language preferences to Japanese in case I can’t return them back to English 😬

---

<div class="post-metadata">

**Author:** ![tetsuyamiwa](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/tetsuyamiwa/32/3752_2.png) [@tetsuyamiwa](https://forum.cabbageaudio.com/u/tetsuyamiwa)\
**Post date:** [4 June 2021 15:16 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/10 "2021-06-04T15:16:05Z")

</div>

I found this issue is not related to language preference because I still see it when I set English preferred language.  
I also found that Cabbage patcher can’t configure the connection automatically when this issue happens. Not sure if this is a cause or result of the issue.

This is a minor issue and you don’t have to spend much time on it! 😅

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [4 June 2021 18:06 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/11 "2021-06-04T18:06:07Z")

</div>

> [@tetsuyamiwa](#):
>
> This is a minor issue and you don’t have to spend much time on it! 😅

It may be, but it is still something that pops up from time to time. And I’ve never been able to reproduce it. Would you mind copying and pasting the path I tested with and seeing if it causes problems on your machine?

---

<div class="post-metadata">

**Author:** ![tetsuyamiwa](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/tetsuyamiwa/32/3752_2.png) [@tetsuyamiwa](https://forum.cabbageaudio.com/u/tetsuyamiwa)\
**Post date:** [5 June 2021 14:20 UTC](https://forum.cabbageaudio.com/t/cabbage-cant-execute-csd-with-space-in-path-or-file-name/2595/12 "2021-06-05T14:20:49Z")

</div>

I tried the following path and no csd files in this folder can be executed in Cabbage.  
Mystery 🤔

/Users/tetsuya/Downloads/À test
