What is the ‘Resource Root’ designation for in PHPStorm? For that matter, what does PHPStorm consider to be a resource?

I can answer anecdotally that URL paths will be resolved against “resource roots” where applicable. For instance, in HTML <a href=”https://stackoverflow.com/questions/24852739/…”> or <img src=”https://stackoverflow.com/questions/24852739/…”> elements, relative URLs are looked up against resource roots. When you start typing within the href or src attributes, auto-completion will suggest items in those directories, and URLs which cannot be … Read more

WebStorm 2018.1.4 + ESLint: TypeError: this.CliEngine is not a constructor

WEB-38922 is fixed in 2019.1.3. The issue is with ESLint version 6.x. If upgrading Webstorm is not an option for you, you have to downgrade to ESLint version 5: npm install –save-dev eslint@5 Update: if you see similar error when working with ESLint 8, please make sure to upgrade to version 2021.2.2 where it’s supported … Read more

Enabling Liquid templating syntax highlight in webStorm/phpStorm

I’ve found out that Twig have a very similar syntax to Liquid, enabling the Twig plugin will highlight Liquid syntax and will keep the HTML highlight/autocomplete/emmet functionality working as opposed to the “textMate Liquid bundle”. Go to Settings > Editor > File Types find “Twig” on that list and associate Liquid files with it by … Read more

How to create run configuration with Yarn instead of npm in WebStorm 2016.2.3

yarn will be supported in 2016.3 As stated in https://youtrack.jetbrains.com/issue/WEB-23737#comment=27-1669437 In WebStorm 2016.3 it will be possible to select yarn package instead of npm: go to Settings | Languages & Frameworks | Node.js and NPM click ellipsis button next to Node.js interpreter to open “Node.js interpreters” dialog Also, installed yarn packages will be available in … Read more

Grunt debugging from Webstorm

You have to run grunt-cli as a Node application: Create a new Node.js Run/Debug configuration: Run->Edit configurations… In Path to Node choose your node binary, ie: /Users/someuser/nvm/v0.10.5/bin/node In Working Directory, choose your Gruntfile.js directory, ie /Projects/someproject In Path to Node App JS File, choose your Grunt CLI path (you can choose the grunt-cli symlink created … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)