Sublime Forum

ST3 + WSL 2 + PATH doesn't work?

#1

Hey,

I have PHP Code Sniffer plugin installed and I’m trying to setup the executable paths. However, the PHP files are in my WSL Ubuntu instance. So, I thought I could reach them via network address. This is what I have:

{
	"phpcs_php_path": "\\wsl$\Ubuntu-18.04\usr\local\bin\phpcbf",
	"phpcs_executable_path": "\\wsl$\Ubuntu-18.04\usr\local\bin\phpcs",
	"phpmd_executable_path": "\\wsl$\Ubuntu-18.04\usr\local\bin\phpmd",
	"php_cs_fixer_executable_path": "\\wsl$\Ubuntu-18.04\usr\local\bin\php-cs-fixer",
	"phpcs_show_errors_on_save": false,
	"phpcs_outline_for_errors": false,
	"php_cs_fixer_on_save": false
}

As you can imagine, it doesn’t even let me save the file.

Any idea how I can that this working?

0 Likes

#2

I have no experience with WSL.

Does your description implies you can save a file, which is in WSL, without the plugin?
Does the saving problem actually have something to do with a plugin?

It makes me feel it’s either a path problem or a permission problem.

0 Likes