Idea-php-symfony2-plugin: Argument for @NotNull parameter 'path'

Created on 3 Jan 2018  路  1Comment  路  Source: Haehnchen/idea-php-symfony2-plugin

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

Most helpful comment

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" />.

>All comments

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" />.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stephanvierkant picture stephanvierkant  路  3Comments

Anubarak picture Anubarak  路  5Comments

stof picture stof  路  6Comments

Haehnchen picture Haehnchen  路  4Comments

Haehnchen picture Haehnchen  路  7Comments