Cannot Save Live Template

I want to create a PHP Autoloader as LiveTemplate in PHPStorm.

IN that moment, if something added or edited , I will get the following error

 

This template Doctrine Entity Repository is given once and cannot be deleted

 

1
9 comments

You have Doctrine Entity Repository listed twice in templates list; check you <IDE config folder>/fileTemplates - what custom templates do you have there?

0
Avatar
Permanently deleted user

Same here, and I don't have that file.

I also disabled the Symfony plugin, and nothing happened.

It doesn't allows to delete or rename it.

```

➜ fileTemplates ls -R
code includes internal j2ee

./code:

./includes:

./internal:
PHP Class.php PHP Trait.php PHPUnit Test.php
PHP File.php PHPSpec Specification.php
PHP Interface.php PHPUnit 6 Test.php

./j2ee:
```

0

please share your log folder (Help | Compress Logs and Show in ...)

0
Avatar
Permanently deleted user

How can I share the zip file or the text files? This tool gives me this error when I try:

You can only upload images (jpeg, gif or png). Image uploads are limited to 2 MB.

The file generated is a zip file `phpstorm-logs-20190825-121808.zip`, which has two text files inside:
- idea.log
- troubleshooting.txt

0

you can upload it to some file server and share a link here... For example, you can put it on our ftp ftp://ftp.intellij.net/.uploads/ (anonymous login, .uploads directory has no permissions to list/download files, only for upload, so that other users will not be able to download your files)

0
Avatar
Permanently deleted user

.uploads direcoty is not given. therefore I get permission denied.

0

Thanks!

It's a problem with PHP Annotations plugin, it registers this template twice - https://github.com/Haehnchen/idea-php-annotation-plugin/issues/151. Disabling this plugin should help

0

Please sign in to leave a comment.