Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP postfix templates blank in settings #200

Open
dj1020 opened this issue Jun 24, 2021 · 2 comments
Open

PHP postfix templates blank in settings #200

dj1020 opened this issue Jun 24, 2021 · 2 comments

Comments

@dj1020
Copy link

dj1020 commented Jun 24, 2021

image

I have tried to reinstall the plugin.

Also tried to remove /Users/{me}/Library/Application Support/JetBrains/Toolbox/apps/PhpStorm/ch-0/211.7142.44/PhpStorm.app.plugins/intellij-postfix-templates_templates and reinstall the plugin

Tried both PhpStorm version: 211.7142.44 (2021.1.2) and (2021.1.3)

and the plugin version is 212.0.211

All the same, nothing in the 'before' and the 'after' window.

but it still working.

@xylo
Copy link
Owner

xylo commented Jun 26, 2021

The "before" and "after" text areas are automatically filled in by Intellij IDEA when IDEA loads a statically defined postfix completion template from a plugin. However, this does not really work for plugins (such as Custom Postfix Templates) which load postfix completion templates at runtime. But in your case you should at least see the text

// this is a custom template defined by the user
// see "Custom Postfix Templates" for template definition

It's unclear to me why this isn't the case in your case.

If you want to see which templates are defined by Custom Postfix Templates and how they are defined, take a look at Editor->"Custom Postfix Templates" in the settings dialog.

@xylo
Copy link
Owner

xylo commented Jun 26, 2021

But the fact that "before" and "after" are blank is indeed a bug. Unfortunately, I cannot reproduce it. :( Maybe it only appears on Macs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants