Closed dimitri-bourreau closed 2 years ago
Hmm . . . this appears to be an issue with mac specifically as it doesn't happen on windows. We'll have to take a look and fix it.
Looks like it's the cert verification that is creating the problem . . . the path to the verify script file is the project path the space isn't escaped or quoted.
Is there anything planned on this? (I'm reviewing all my GitHub issues, this one seems quick to be fixed)
This fix has been added to the office-addin-script repo where the actual problem is. I don't believe it has been pushed out in a new version yet, but it should be in the next month.
Expected behavior
npm start
should execute the server correctly, no matter if in the path of the current directory is a white space.Current behavior
If a white space is in the path of the current directory,
npm start
will log this:Steps to Reproduce
Confirm expected success when no parent directory has a white space in its name
pwd
here is :/Users/dimitri/Desktop
.(last errors are another subject, though, the server is listening as
lsof -i -P | grep 3000
confirms and the add-in working just fine)Repeat the previous steps, while a parent directory has a white space in its name
pwd
here is :/Users/dimitri/Desktop/this is-a-test
.Weirdly, when the parent directories have no white space there is nothing about the certificate.
Context
I have the habit to store my code bases in an external SSD, which is named after my name
Dimitri Bourreau
.The issue is not new, the last comment of #470 from 2019/08 refers to it. I had a very similar issue with another program: I found somewhere files paths were managed as URL, thus white spaces would not be kept later on the code.