Shared VMware folders between Ubuntu/OSX causes "invisble characters" and syntax errors
I'm experincing an annoying issue, which (I think) is caused by a discrepancy between Ubuntu filesystem and Mac OSX filesystem. Hidden characters are inserted into source files, which cause syntax errors.
My setup
My host is Mac OSX where all source files are located. My guest OS is Ubuntu Server (non-gui) where all dev tools and compilers are installed (python, php etc). My virtualization software is VMware Fusion.
I couldn't get VMware Tools to work, so I followed these steps, to share files from OSX to Ubuntu: Getting an error trying to set up shared folders on an Ubuntu instance of VMWare Fusion running on OSX
Once again: files are located on OSX, shared to guest (Ubuntu) where PHP can read them.
Case: Wordpress plugins
Every time I install a Wordpress plugin through the browser, a syntax error is shown, located in the newly installed plugin. This syntax error can be resolved in to ways:
Restart the VM (Ubuntu)
Find the file where the syntax error is located, open it in Sublime Text on OSX and save it (no need to change anything). A diff between the old and the new file will show that the "tab" characters have changed.
Please, if anyone has any suggestions I will try anything out.
I'm experincing an annoying issue, which (I think) is caused by a discrepancy between Ubuntu filesystem and Mac OSX filesystem. Hidden characters are inserted into source files, which cause syntax errors.
My setup
My host is Mac OSX where all source files are located. My guest OS is Ubuntu Server (non-gui) where all dev tools and compilers are installed (python, php etc). My virtualization software is VMware Fusion.
I couldn't get VMware Tools to work, so I followed these steps, to share files from OSX to Ubuntu: Getting an error trying to set up shared folders on an Ubuntu instance of VMWare Fusion running on OSX
Once again: files are located on OSX, shared to guest (Ubuntu) where PHP can read them.
Case: Wordpress plugins
Every time I install a Wordpress plugin through the browser, a syntax error is shown, located in the newly installed plugin. This syntax error can be resolved in to ways:
Restart the VM (Ubuntu)
Find the file where the syntax error is located, open it in Sublime Text on OSX and save it (no need to change anything). A diff between the old and the new file will show that the "tab" characters have changed.
Please, if anyone has any suggestions I will try anything out.
No comments:
Post a Comment