ViewHelper not found for custom namespace
I get this message while editing a Fluid template:
This view helper couldn't be found. Make sure you added the namespace in this file and check if you included all sources with viewhelpers like TYPO3 itself.
It is related to this line:
<bk2k:inlineSvg src="EXT:site_basis/Resources/Public/Icons/BootstrapIcons/person-circle.svg" width="20" height="20"/>
I added the custom namespace in settings Languages & Framework > Fluid Settings (Project) as bk2k:\BK2K\BootstrapPackage\ViewHelpers
. The issue is solved when I toggle the option Enable the syntax from the Fluid standalone extension
. This seems like a timing related issue when starting the IDE. The issue reappears after restarting the IDE.
Additional notice: My fluid template does not contain a namespace tag, as it is not needed when the namespace is registered globally in TYPO3. The issue does not occur when having a namespace attribute added like
<html xmlns:bk2k="http://typo3.org/ns/BK2K/BootstrapPackage/ViewHelpers" data-namespace-typo3-fluid="true">
Versions:
PhpStorm 2023.1
Build #PS-231.8109.199, built on March 29, 2023
Plugin: 2.6.0