haidubogdan / netbeans-php-blade-plugin

Netbeans 18+ module plugin for php blade template files
Apache License 2.0
26 stars 4 forks source link

[BUG] Blade autocomplete break **CTRL + Z** when custom blade directives #24

Closed parallels999 closed 2 years ago

parallels999 commented 2 years ago

Custom blade directives are added on Project Properties -> Blade Directives

Steps to Reproduce:

Just write anything, and use Blade Autocomplete for any custom blade directive, after text autocomplete try CTRL + Z for undo everything, it doesn't works anymore, you can't undo the directive and the first writing

With the Laravel oficial blade directives CTRL + Z works

NOTE: I'm trying with spatie/laravel-permission/src/PermissionServiceProvider.php#L103-L110, spatie/laravel-blade-javascript/src/BladeJavaScriptServiceProvider.php#L21-L25 spatie/laravel-honeypot/src/HoneypotServiceProvider.php#L45-L47

haidubogdan commented 2 years ago

Sorry I can't reproduce the bug.

When you have this issue can you look at the bottom of the screen for a error balloon and do a printscreen with a detail info?

image

It might be some netbeans cache data corruption also. you can try the following things

Please tell me if this still happens and I will try to check for possible file reference errors.

parallels999 commented 2 years ago

I already try that and it give me the same result I am using Netbeans 14 Also, I noticed that after using CTRL + Z between 30 and 80 times, it start the undo action again

When you have this issue can you look at the bottom of the screen for a error balloon

There is not an error balloon

haidubogdan commented 2 years ago

It's strange I still can't reproduce the bug, and in a way the error doesn't make sense without a error notification from netbeans. Before preparing to add just a small validation. Can you check if the bug will be reproduced You should have the following file {YourProject}/nbproject/private/private.properties

image

Try to empty the config for complier like

auxiliary.php-blade.compiler_2e_path_2e_list=

Now try to add again the provider files for the custom directives and check if the bug still occurs

parallels999 commented 2 years ago

it still happens

Before image After image No error notification image

parallels999 commented 2 years ago

I tried installing Netbeans 12.5 and in this version it seems to work correctly, is the problem only with Netbeans 14?

parallels999 commented 2 years ago

i did upgrade to Netbeans 15, and everything works, thanks for your time

haidubogdan commented 2 years ago

Good news :) . I'm using netbeans 14 also, and didn't encountered problem. I presume that it can be related to additional installed plugin as it looks to be a typehook issue.