Haehnchen / idea-php-symfony2-plugin

IntelliJ IDEA / PhpStorm Symfony Plugin
https://plugins.jetbrains.com/plugin/7219
MIT License
913 stars 137 forks source link

Argument for @NotNull parameter 'path' #1135

Closed vuras closed 2 years ago

vuras commented 6 years ago

Argument for @NotNull parameter 'path' of fr/adrienbrault/idea/symfony2plugin/templating/path/TwigPath. must not be null

It is constantly thhrowing this exception. What can be done to solve it?

I think it is related to this. It started to throw error when I added a path to Twig config. config

codeclipse commented 6 years ago

I encountered the same bug. Problem occurs when path starts with / (I'm using linux, not sure if windows has same problem with absolute paths). After saving there is an IDE plugin exception and added entry cannot be removed from settings window (just like on @vuras screenshot).

For now the only way to fix this is either remove added template from .idea/symfony2.xml file (looks like this: <twig_namespace custom="true" namespaceType="ADD_PATH" />, or set path propery by hand in the same place, f.ex. <twig_namespace custom="true" namespaceType="ADD_PATH" path="/var/www/project/templates" />.

Haehnchen commented 2 years ago

duplicate: https://github.com/Haehnchen/idea-php-symfony2-plugin/issues/1331