简体   繁体   English

PhpStorm 2017.1在读取vendor / autoload.php时出错了PHPUnit-Path

[英]PhpStorm 2017.1 gets the PHPUnit-Path wrong while reading vendor/autoload.php

I am trying to execute PHPUnit within Vagrant with PhpStorm 2017. I am able to run PHPUnit via SSH (Putty). 我正在尝试使用PhpStorm 2017在Vagrant中执行PHPUnit。我能够通过SSH(Putty)运行PHPUnit。

I've set up a remote PHP interpreter, which correctly displays "PHP version: 5.6.31-4+ubuntu14.04.1+deb.sury.org+4". 我已经设置了一个远程PHP解释器,它可以正确显示“ PHP版本:5.6.31-4 + ubuntu14.04.1 + deb.sury.org + 4”。 When I navigate to Settings/Languages/PHPUnit, select "Use Composer Autoloader" and enter the path to /mnt/asf/vendor/autoload.php , it displays 当我导航到Settings / Languages / PHPUnit时,选择“ Use Composer Autoloader”并输入/mnt/asf/vendor/autoload.php的路径,

Can not parse PHPUnit version output: Could not open input file: /mnt/asf/vendorphpunitphpunitphpunit

As you can see it basically gets the path mostly right, but somehow drops the slashes. 如您所见,它基本上使路径基本正确,但是以某种方式降低了斜线。

I suspected the fact that the host is Windows (backslashes used) and that path is in a shared folder. 我怀疑主机是Windows(使用反斜杠)并且该路径位于共享文件夹中。 But then on the other hand, everything happens via remote connection in a Linux environment. 但是另一方面,一切都通过Linux环境中的远程连接进行。

Any hints welcome. 任何提示欢迎。 Thanks 谢谢

(Please do not mark as duplicate with questions more than 2 years old. PhpStorm only recently added that composer option.) (请不要将重复超过2年的问题标记为重复。PhpStorm仅在最近才添加了该作曲家选项。)

Please try latest 2017.2.4 version. 请尝试最新的2017.2.4版本。

Based on description this could be WI-35806 .. which supposed to be fixed even in 2017.1.4. 根据描述,这可能是WI-35806 ..甚至应该在2017.1.4中修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM