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

Getting errors on certain files after the new update #40

Closed
ZayRTun opened this issue Dec 4, 2023 · 17 comments
Closed

Getting errors on certain files after the new update #40

ZayRTun opened this issue Dec 4, 2023 · 17 comments

Comments

@ZayRTun
Copy link

ZayRTun commented Dec 4, 2023

I want to express my appreciation to Emran Ramezan and Yaegassy for this Treesitter parser for Laravel Blade. I've been enjoying it a lot, but since the latest update yesterday, I've encountered some errors. It seems to work well on certain Blade files, but on others, I'm facing issues.

I am using it with LazyVim. I am not sure whether it is due tree sitter update or some other plugin. I have also followed the upgrade guide to set up injections.scm file.

Screenshot of the file where I get the error:

Screenshot 2023-12-04 at 19 08 42

Screenshot of the file where there is no error:

Screenshot 2023-12-04 at 19 08 02

Error message

[Neo-tree ERROR] Error opening file: vim/_editor.lua:0: nvim_exec2()..BufReadPost Autocommands for "*": Vim(append):Error executing lua callback: ...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:21: Error executing lua: ...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:22: nvim_exec2()..BufReadPost Autocommands for "*"..FileType Autocommands for "*": Vim(append):Error executing lua callback: ...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:260: Ranges can only be made from 6 element long tables or nodes.
stack traceback:
	[C]: in function 'set_included_ranges'
	...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:260: in function 'parse'
	...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:312: in function 'fn'
	...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:326: in function 'for_each_child'
	...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:330: in function 'for_each_child'
	...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:311: in function 'parse'
	...r/neovim/0.9.1/share/nvim/runtime/lua/vim/treesitter.lua:89: in function '_create_parser'
	...r/neovim/0.9.1/share/nvim/runtime/lua/vim/treesitter.lua:131: in function 'get_parser'
	...r/neovim/0.9.1/share/nvim/runtime/lua/vim/treesitter.lua:459: in function 'start'
	...m/lazy/nvim-treesitter/lua/nvim-treesitter/highlight.lua:20: in function 'attach'
	...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:509: in function 'attach_module'
	...
	[C]: in function 'nvim_buf_call'
	...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:21: in function <...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:10>
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function <vim/_editor.lua:0>
	[C]: in function 'pcall'
	...hare/nvim/lazy/neo-tree.nvim/lua/neo-tree/utils/init.lua:714: in function 'open_file'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:729: in function 'open'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:751: in function 'open_with_cmd'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:760: in function 'open'
	...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:183>
stack traceback:
	[C]: in function 'nvim_cmd'
	...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:22: in function <...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:21>
	[C]: in function 'nvim_buf_call'
	...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:21: in function <...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:10>
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function <vim/_editor.lua:0>
	[C]: in function 'pcall'
	...hare/nvim/lazy/neo-tree.nvim/lua/neo-tree/utils/init.lua:714: in function 'open_file'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:729: in function 'open'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:751: in function 'open_with_cmd'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:760: in function 'open'
	...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:183>
stack traceback:
	[C]: in function 'nvim_buf_call'
	...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:21: in function <...brew/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:10>
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function <vim/_editor.lua:0>
	[C]: in function 'pcall'
	...hare/nvim/lazy/neo-tree.nvim/lua/neo-tree/utils/init.lua:714: in function 'open_file'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:729: in function 'open'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:751: in function 'open_with_cmd'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:760: in function 'open'
	...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:183>
@EmranMR
Copy link
Owner

EmranMR commented Dec 4, 2023

Hey @ZayRTun ! Thank you for the kind words

Mmm can you comment out the 'php_only' stuff in injections.scm and try again? it might be because NVim is trying to find a parser that does not exist? We are still waiting for that to merge with tree-sitter-php

;((php_only) @injection.content
;    (#set! injection.combined)
;    (#set! injection.language php_only))
;((parameter) @injection.content
;    (#set! injection.language php_only))

You know the file without any errors, is that also with the v0.9.0?

If that fixed the issue please do let me know and I will amend the stubs, to avoid confusion until #5 dependancy is fixed! 😊

@ZayRTun
Copy link
Author

ZayRTun commented Dec 4, 2023

Hi @EmranMR, thanks for the response

I tried your suggestion by removing php_only part from injections.scm but still getting the error. I also tried downgrading 'nvim-treesitter` thinking maybe that's the reason, but it was the same.

And yeah, both the screenshots above are using v0.9.0

Another screenshot just for you reference, both files are almost the same

Screenshot 2023-12-04 at 21 51 06

@EmranMR
Copy link
Owner

EmranMR commented Dec 4, 2023

@ZayRTun thats so strange😬

can you do me a favour and drop the entire code excerpt from the file that is not working? so that I can copy and paste, to run some tests using the cli and give it a shot with Nova.

After that I could tell you for certain if it's the neovim, or it's config acting up or the parser, tree-sitter-blade itself!

@ZayRTun
Copy link
Author

ZayRTun commented Dec 4, 2023

@EmranMR sure, here are some that has the error

<!DOCTYPE html>
<html class="h-full bg-gray-100" lang="{{ str_replace('_', '-', app()->getLocale()) }}">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'Laravel') }}</title>

    <!-- Fonts -->
    {{-- <link rel="stylesheet" href="https://fonts.bunny.net/css2?family=Nunito:wght@400;600;700&display=swap"> --}}

    <link href="{{ mix('css/app.css') }}" rel="stylesheet">
    <script src="{{ mix('js/app.js') }}" defer></script>
</head>

<body class="h-full font-sans">
    <div>
        {{ $slot }}
    </div>


</body>

</html>
<nav x-data="{ open: false }" class="bg-white border-b border-gray-100">
    <!-- Primary Navigation Menu -->
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <div class="flex justify-between h-16">
            <div class="flex">
                <!-- Navigation Links -->
                <div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
                    <x-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
                        {{ __('Dashboard') }}
                    </x-nav-link>
                </div>
            </div>

            <!-- Settings Dropdown -->
            <div class="hidden sm:flex sm:items-center sm:ml-6">
                <x-dropdown align="right" width="48">
                    <x-slot name="trigger">
                        <button
                                class="flex items-center text-sm font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out">
                            <div>{{ Auth::user()->name }}</div>

                            <div class="ml-1">
                                <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
                                    <path fill-rule="evenodd"
                                          d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
                                          clip-rule="evenodd" />
                                </svg>
                            </div>
                        </button>
                    </x-slot>

                    <x-slot name="content">
                        <!-- Authentication -->
                        <form method="POST" action="{{ route('logout') }}">
                            @csrf

                            <x-dropdown-link :href="route('logout')"
                                             onclick="event.preventDefault();
                                                this.closest('form').submit();">
                                {{ __('Log Out') }}
                            </x-dropdown-link>
                        </form>
                    </x-slot>
                </x-dropdown>
            </div>

            <!-- Hamburger -->
            <div class="-mr-2 flex items-center sm:hidden">
                <button @click="open = ! open"
                        class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out">
                    <svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
                        <path :class="{ 'hidden': open, 'inline-flex': !open }" class="inline-flex" stroke-linecap="round"
                              stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
                        <path :class="{ 'hidden': !open, 'inline-flex': open }" class="hidden" stroke-linecap="round"
                              stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
                    </svg>
                </button>
            </div>
        </div>
    </div>

    <!-- Responsive Navigation Menu -->
    <div :class="{ 'block': open, 'hidden': !open }" class="hidden sm:hidden">
        <div class="pt-2 pb-3 space-y-1">
            <x-responsive-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
                {{ __('Dashboard') }}
            </x-responsive-nav-link>
        </div>

        <!-- Responsive Settings Options -->
        <div class="pt-4 pb-1 border-t border-gray-200">
            <div class="px-4">
                <div class="font-medium text-base text-gray-800">{{ Auth::user()->name }}</div>
                <div class="font-medium text-sm text-gray-500">{{ Auth::user()->email }}</div>
            </div>

            <div class="mt-3 space-y-1">
                <!-- Authentication -->
                <form method="POST" action="{{ route('logout') }}">
                    @csrf

                    <x-responsive-nav-link :href="route('logout')"
                                           onclick="event.preventDefault();
                                        this.closest('form').submit();">
                        {{ __('Log Out') }}
                    </x-responsive-nav-link>
                </form>
            </div>
        </div>
    </div>
</nav>

@EmranMR
Copy link
Owner

EmranMR commented Dec 4, 2023

Hey @ZayRTun thanks for that, Ok so I ran some tests, found a few bugs but unrelated to your problem I think (#41 & #42) haha.
so.

The tree-sitter-blade parse the files correctly, with no errors:

; File ONE
(blade [0, 0] - [31, 0]
  (text [0, 0] - [3, 10])
  (php_statement [3, 10] - [3, 57]
    (bracket_start [3, 10] - [3, 12])
    (php_only [3, 13] - [3, 54])
    (bracket_end [3, 55] - [3, 57]))
  (text [3, 57] - [11, 41])
  (php_statement [11, 41] - [11, 59]
    (bracket_start [11, 41] - [11, 43])
    (php_only [11, 44] - [11, 56])
    (bracket_end [11, 57] - [11, 59]))
  (text [11, 59] - [13, 15])
  (php_statement [13, 15] - [13, 50]
    (bracket_start [13, 15] - [13, 17])
    (php_only [13, 18] - [13, 47])
    (bracket_end [13, 48] - [13, 50]))
  (text [13, 50] - [23, 20]
    (comment [16, 8] - [21, 12]
      (text [17, 8] - [21, 8])))
  (php_statement [23, 20] - [23, 44]
    (bracket_start [23, 20] - [23, 22])
    (php_only [23, 23] - [23, 41])
    (bracket_end [23, 42] - [23, 44]))
  (text [23, 44] - [24, 21])
  (php_statement [24, 21] - [24, 43]
    (bracket_start [24, 21] - [24, 23])
    (php_only [24, 24] - [24, 40])
    (bracket_end [24, 41] - [24, 43]))
  (text [24, 43] - [28, 13])
  (php_statement [28, 13] - [28, 24]
    (bracket_start [28, 13] - [28, 15])
    (php_only [28, 16] - [28, 22])
    (bracket_end [28, 22] - [28, 24]))
  (php_statement [28, 25] - [28, 41]
    (bracket_start [28, 25] - [28, 27])
    (php_only [28, 27] - [28, 39])
    (bracket_end [28, 39] - [28, 41]))
  (text [28, 41] - [31, 0]))
; File TWO

(blade [0, 0] - [142, 0]
  (text [0, 0] - [16, 24])
  (php_statement [16, 24] - [16, 45]
    (bracket_start [16, 24] - [16, 26])
    (php_only [16, 27] - [16, 42])
    (bracket_end [16, 43] - [16, 45]))
  (text [17, 20] - [28, 33])
  (php_statement [28, 33] - [28, 57]
    (bracket_start [28, 33] - [28, 35])
    (php_only [28, 36] - [28, 55])
    (bracket_end [28, 55] - [28, 57]))
  (text [28, 57] - [50, 36])
  (php_statement [50, 36] - [50, 57]
    (bracket_start [50, 36] - [50, 38])
    (php_only [50, 39] - [50, 54])
    (bracket_end [50, 55] - [50, 57]))
  (text [50, 57] - [52, 28])
  (keyword [52, 28] - [52, 33]
    (directive [52, 28] - [52, 33]))
  (text [54, 28] - [59, 32])
  (php_statement [59, 32] - [59, 51]
    (bracket_start [59, 32] - [59, 34])
    (php_only [59, 35] - [59, 48])
    (bracket_end [59, 49] - [59, 51]))
  (text [60, 28] - [110, 16])
  (php_statement [110, 16] - [110, 37]
    (bracket_start [110, 16] - [110, 18])
    (php_only [110, 19] - [110, 34])
    (bracket_end [110, 35] - [110, 37]))
  (text [111, 12] - [118, 20])
  (php_statement [118, 20] - [118, 44]
    (bracket_start [118, 20] - [118, 22])
    (php_only [118, 23] - [118, 42])
    (bracket_end [118, 42] - [118, 44]))
  (text [119, 16] - [121, 20])
  (php_statement [121, 20] - [121, 45]
    (bracket_start [121, 20] - [121, 22])
    (php_only [121, 23] - [121, 43])
    (bracket_end [121, 43] - [121, 45]))
  (text [122, 16] - [127, 44])
  (php_statement [127, 44] - [127, 65]
    (bracket_start [127, 44] - [127, 46])
    (php_only [127, 47] - [127, 62])
    (bracket_end [127, 63] - [127, 65]))
  (text [127, 65] - [128, 20])
  (keyword [128, 20] - [128, 25]
    (directive [128, 20] - [128, 25]))
  (text [130, 20] - [135, 24])
  (php_statement [135, 24] - [135, 43]
    (bracket_start [135, 24] - [135, 26])
    (php_only [135, 27] - [135, 40])
    (bracket_end [135, 41] - [135, 43]))
  (text [136, 20] - [142, 0]))

Here is how they look in Nova, for the second file I had a close look and I could not find any issues, but the first file there is a tiny bug 🐞

Screenshot 2023-12-04 at 17 48 29

Can you do me a favour and delete this line in the first file and see if it works?

    {{-- <link rel="stylesheet" href="https://fonts.bunny.net/css2?family=Nunito:wght@400;600;700&display=swap"> --}}

@EmranMR
Copy link
Owner

EmranMR commented Dec 4, 2023

@ZayRTun I just released v0.9.1 and I now have 0 bugs or errors when running tests on your code, using cli or in Nova. If that does not fix your problem I am afraid it is likely a problem with NeoVim config?

Regardless keep me posted here! 👍

@ZayRTun
Copy link
Author

ZayRTun commented Dec 5, 2023

@EmranMR I just tested with v0.9.1 and it's working across all files without any issues. Thanks for fixing this.

@ZayRTun
Copy link
Author

ZayRTun commented Dec 5, 2023

@EmranMR I think i found a small little issue. Highlighting goes off after {{ $attributes->wire('model') }} such attributes. Just letting you know.

With the {{ $attributes->wire('model') }}

Screenshot 2023-12-05 at 09 37 08

Without the {{ $attributes->wire('model') }}

Screenshot 2023-12-05 at 09 37 28

Code snippet

<div {{ $attributes->class([]) }}>
    <label for="search" class="block  font-medium text-gray-700 sr-only">Search</label>

    <div class="relative">
        <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
            <svg class="h-5 w-5 text-gray-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                <path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd" />
            </svg>
        </div>

        <input {{ $attributes->wire('model') }} type="text" name="search" id="search"
               autocomplete="off"
               class="focus:ring-yellow-300 focus:border-yellow-300 block w-full pl-10  border-gray-300 rounded-md"
               placeholder="{{ $placeholder }}">
    </div>
</div>

@EmranMR
Copy link
Owner

EmranMR commented Dec 5, 2023

@ZayRTun That does not seem to be an issue with tree-sitter-blade by the looks of it. There were no errors parsing your code using cli, and Nova seem to be functioning fine, picking up everything as well, but I got some insights for you!

Nova With Blade turned on

Screenshot 2023-12-05 at 09 02 01

Nova with tree-sitter-blade turned off.

  • The following is the code editor, with html chosen as the syntax for the document, NOT the blade (as if it is .php or .html)
Screenshot 2023-12-05 at 09 03 31

How to fix?

It seems there is certainly something wrong with your NeoVim config or how it is installed, quite strange the issue started after the update though!
Maybe head over to the NeoVim installation discussion, reference this issue and see if anyone can help? Unfortunately, I am not a NeoVim user myself, so all I can do is to just debug using cli and Nova 😬

@EmranMR
Copy link
Owner

EmranMR commented Dec 5, 2023

Maybe the configuration picking .php as syntax instead of .blade.php?

@ZayRTun
Copy link
Author

ZayRTun commented Dec 5, 2023

@EmranMR I will look into this like you said, maybe there is something wrong with my lazyvim setup, I am not sure. But anyway thanks to you for all this, been using ur tree sitter the whole day without any issue.

@EmranMR
Copy link
Owner

EmranMR commented Dec 5, 2023

@ZayRTun definitely keep me posted here and do let us know if you managed to find the root of the problem! Would be interesting to know for future reference!

@ZayRTun
Copy link
Author

ZayRTun commented Dec 6, 2023

@EmranMR I have been checking out treesitter query, and one thing I noticed is that the parser is detecting blade comment {{-- comment --}} as text but if it's an HTML comments are detected as comment. These both comments are in the same blade file, I have also checked the detected file type and it shows as blade.

Oh, and btw I am using the latest v0.9.2 version.

blade comment

Screenshot 2023-12-07 at 00 19 38

HTML comment

Screenshot 2023-12-07 at 00 18 43

@EmranMR
Copy link
Owner

EmranMR commented Dec 6, 2023

Hey @ZayRTun , I think it is the neovim config for sure, as the commit #45 was tested on NeoVim, Nova and cli.

Prior to the 0.9.2, regardless of the versions it should have been picked as (comment(text)) not (text), for some reason Neovim is treating the entire file as php/html.

Here is a screenshot from Nova, and the parse using the command line. All I can suspect is that something is wrong with the config.
Screenshot 2023-12-06 at 18 48 56

(blade [0, 0] - [1, 0]
  (comment [0, 0] - [0, 43]))

Can you send me the AST like above but for the following?

<html>
    @php
        echo "test";
    @endphp
    
    {{-- <div>{{echo "test"}</div> --}}
</html>

@ZayRTun
Copy link
Author

ZayRTun commented Dec 6, 2023

@EmranMR Below is what I am getting. It seems that it's being picked as comment in this blade file...

Also when ever I insert a comment it always insert html comment <!-- -->, to get blade comment I have to insert them manually.

<html>
    @php
        echo 'test';
    @endphp

    {{-- <div>{{echo "test"}</div> --}}
</html>
(element) ; [1:1 - 7:7]
 (start_tag) ; [1:1 - 6]
  (tag_name) ; [1:2 - 5]
 (text) ; [2:5 - 6:8]
 (element) ; [6:10 - 34]
  (start_tag) ; [6:10 - 14]
   (tag_name) ; [6:11 - 13]
  (text) ; [6:15 - 28]
  (end_tag) ; [6:29 - 34]
   (tag_name) ; [6:31 - 33]
 (text) ; [6:36 - 39]
 (end_tag) ; [7:1 - 7]
  (tag_name) ; [7:3 - 6]
(text) ; [1:1 - 2:4]
(php_statement) ; [2:5 - 4:11]
 (directive_start) ; [2:5 - 8]
 (php_only) ; [3:9 - 4:4]
 (directive_end) ; [4:5 - 11]
(comment) ; [6:5 - 39]
(text) ; [7:1 - 8:0]

my nvim-treesitter setup

return {
    "nvim-treesitter/nvim-treesitter",
    opts = function(_, opts)
        vim.list_extend(opts.ensure_installed, {
            "css",
            "http",
            "markdown",
            "php",
            "phpdoc",
            "rust",
            "vue",
        })
    end,

    config = function(_, opts)
        require("nvim-treesitter.configs").setup(opts)

        ---@class parser_config
        local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
        parser_config.blade = {
            install_info = {
                url = "https://github.com/EmranMR/tree-sitter-blade",
                files = { "src/parser.c" },
                branch = "main",
            },
            filetype = "blade",
        }

        vim.filetype.add({
            pattern = {
                [".*%.blade%.php"] = "blade",
            },
        })
    end,
}

@EmranMR
Copy link
Owner

EmranMR commented Dec 6, 2023

@ZayRTun Mmm that is so strange, so it is basically works when it wants.

I I would just dump the config in the discussion below and reference back to this issue. I am sure someone more seasoned with NeoVim would be able to help out.

Maybe head over to the NeoVim tree-sitter-blade installation discussion

With regards to:

Also when ever I insert a comment it always insert html comment , to get blade comment I have to insert them manually.

This is the same case with Nova #18 . So it might actually be a tree-sitter thing in general I suppose.

@calebdw
Copy link
Contributor

calebdw commented Dec 26, 2023

Also when ever I insert a comment it always insert html comment , to get blade comment I have to insert them manually.

This is expected if you're using treesitter based commenting---the reason is that most of the time you're going to be in an html node instead of a blade node since most of the file is html

@EmranMR EmranMR closed this as completed Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants