Yasnippet not being loaded automatically in php-mode

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 I have a list of yasnippets for php mode in ~/.emacs.d/yasnippets/php-mode. One of the them is var_dump.yasnippet:

#name : var_dump
# key: vd
# --
var_dump($0);

The weird thing is that it's not being loaded when I open a php file. All the other yasnippets are loaded. I thought, that a compiled version of php-mode yasnippets is used. But I don't have any compiled yasnippet files in php-mode directory. I upgraded yasnippet to the last version from github.

Every time I start Emacs I have to manually navigate to var_dump.yasnippet and load it into the memory.

How to load var_dump yasnippet when php file is loaded?

profilepic.png
manpreet 2 years ago

It was another snippet having the same name:

#name : var_dump
# key: getdefinedvars
# --
var_dump(get_defined_vars());

0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.