Skip to content

running the solvers in a path with space in the naming #Windows #WSL

I'm here again with some Windows WSL issues :(

I am doing lots of simulations and I have to use Microsoft OneDrive for Business to sync them across computers. I'm running these simulations in WSL but I guess it wouldn't make a difference if I do that in a Docker container or Cygwin. The issue is that OneDrive for business, at least in my university, has an absurd naming where there are multiple spaces in the local folder naming. For example OneDrive saves files in a folder named OneDrive - University of Bar.

Now whenever I try to run a code inside this folder I get the error:

Build : v1806

Arch : "LSB;label=32;scalar=64"

Exec : sonicFoam

Date : Sep 16 2018

Time : 23:30:13

Host : "DESKTOP-4LRIVB8"

PID : 510

fileName::stripInvalid() called for invalid fileName /mnt/c/Users/buzz/OneDrive-UniversityofBar/Projects/…

For debug level (= 2) > 1 this is considered fatal

Aborted (core dumped)

I have tried for almost one week to solve this issue and it has wasted so much of my time already. You may see my struggle here. This actually one of the reasons I am using WSL instead of Docker now. I have tried creating a link by:

ln -s "~/some/path/OneDrive - University of Bar" ~/linkFile

However when I run the solver I get the same error!

I would really appreciate if you could help me solve this problem.

Edited by Foad