Git Product home page Git Product logo

Comments (17)

PaolaRuby avatar PaolaRuby commented on June 5, 2024 3

It's also possible for this to happened due to custom path configuration for blade views

My views are on path: resources/views/ folder/file.blade.php

To fix this manually try to change the targeted file (the path from the include) save and then undo and save again.

It didn't work for me

Maybe is because paths on @include use dot instead of slash

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 5, 2024 1

Except for fixing the parser errors warning when you use expressions in directives with path. I didn't change the flow.
Maybe there's a logic which is too permissive for the declaration path which I think I can remove.
It's allowing fragments of blade view names to be detected as declaration results.

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 5, 2024

Hi,
It's likely to be a bug, sometimes this can be caused by cached file info in the netbeans editor.
To fix this manually try to change the targeted file (the path from the include) save and then undo and save again. This will trigger a clear cache.
It's also possible for this to happened due to custom path configuration for blade views. At the moment it's developed just for the standard relative paths starting with views. For this I will have to develop a include view path option to the folder or make the path declaration search more permissive.

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 5, 2024

I've managed to reproduce the bug. I will study the issue.

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 5, 2024

I've published a new release on https://github.com/haidubogdan/netbeans-php-blade-plugin/releases/tag/nb122-126-04032022.
the current version 1.0.0.2 . Hope this will fix the issue.

from netbeans-php-blade-plugin.

PaolaRuby avatar PaolaRuby commented on June 5, 2024

To fix this manually try to change the targeted file (the path from the include) save and then undo and save again.
the current version 1.0.0.2 . Hope this will fix the issue.

Still not working, also i note that only the two first files are shown on the autocomplete suggestion, but I have 10 files in the folder, when I continue writing the number of suggestions does not increase, and the expected file doesn't appear, like it doesn't exists

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 5, 2024

Sorry, I missed some use case
I hope with this release is better :
https://github.com/haidubogdan/netbeans-php-blade-plugin/releases/tag/nb122-126-04032022a

from netbeans-php-blade-plugin.

PaolaRuby avatar PaolaRuby commented on June 5, 2024

I hope with this release is better : https://github.com/haidubogdan/netbeans-php-blade-plugin/releases/tag/nb122-126-04032022a

still suggestions fails, not all the files are shown
image
image
image
On those captures _audit and _modal are not shown

To fix this manually try to change the targeted file (the path from the include) save and then undo and save again.

Also tried and didn't work
Links to files still doesn't open the files

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 5, 2024

Just to check, are you referring to relative paths autocomplete?

  • /layouts
    --- default.blade.php
    --- admin.blade.php
    so inside admin.blade.php I should see the 'default' suggestion directly without using the full path 'layout.default'

Some laravel features might have escaped me. I saw now this very old commit
laravel/framework#7215

from netbeans-php-blade-plugin.

PaolaRuby avatar PaolaRuby commented on June 5, 2024

Just to check, are you referring to relative paths autocomplete?

Not relative, full path

My views are on path: resources/views/folder/file.blade.php, and my include looks like

@include('folder.file')

Also i have others on path: resources/views/folder/subfolder/file.blade.php, and my include looks like

@include('folder.subfolder.file')
  • resources
    • views
      • folder
        • subfolder
          • file.blade.php
        • file.blade.php

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 5, 2024

On my side it seems to works fine ... maybe I have some exceptions or untreated error cases which might block the indexing / declaration process of the plugin.

from netbeans-php-blade-plugin.

PaolaRuby avatar PaolaRuby commented on June 5, 2024

πŸ˜”πŸ₯ΊπŸ˜­πŸ˜­πŸ˜­

I give up, I already tried to uninstall and reinstall, delete the netbeans cache, I don't know how to make you replicate the bug if it works correctly on your side

  • [CTRL] + CLICK / Navigate > Go to declaration doesn't work for me
  • Path Suggestions doesn't show all the blade files in folders

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 5, 2024

Sorry about that :(
I will see how the indexing and code completion can be more permissive.
I've added a small update for declaration finder for backward file path matching in case the blade file is in a custom directory.
https://github.com/haidubogdan/netbeans-php-blade-plugin/releases/tag/nb122-126-05032022a

from netbeans-php-blade-plugin.

PaolaRuby avatar PaolaRuby commented on June 5, 2024

πŸ˜€πŸ˜€

Amazing, you fixed it, everything works now,

Thanks a lot, works like a charm

from netbeans-php-blade-plugin.

PaolaRuby avatar PaolaRuby commented on June 5, 2024

@haidubogdan after upgrade to 1.0.0.6 CTRL + CLICK stop working, did you change something about @include/@extend? It is showing other not related blade files on other paths with other names

Look, there is only one file on that path, but Go to declaration shows many(and there is not the correct file)
image

Path suggestions still works at least

from netbeans-php-blade-plugin.

PaolaRuby avatar PaolaRuby commented on June 5, 2024

Yes, seems like shows the firsts blade files always

Path suggestions still works, please don't change that

from netbeans-php-blade-plugin.

PaolaRuby avatar PaolaRuby commented on June 5, 2024

Yes, seems like shows the firsts blade files always

from netbeans-php-blade-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.