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

Autocompletion does not work on variables defined using the set tag #154

Open
syzsh opened this issue Jan 31, 2023 · 1 comment
Open

Autocompletion does not work on variables defined using the set tag #154

syzsh opened this issue Jan 31, 2023 · 1 comment
Labels

Comments

@syzsh
Copy link

syzsh commented Jan 31, 2023

版本号: 0.9.1
问题:

{# @pebvariable name="foo" type="com.github.syzsh.test.TestPebble.Foo" #}

{% set bar=foo.bar %} {# 这里是正常的 #}

{{ bar.str }} {# 代码完成不起作用 #}

{# @pebvariable name="bar" type="com.github.syzsh.test.TestPebble.Bar" #}
{{ bar.str }} {# 加上了pebvariable注释, 仍然不起作用 #}

{{ foo.bar.str }} {# 这样写是可以的 #}


{#
class Foo {
    public Bar bar;

    public Foo(Bar bar) {
        this.bar = bar;
    }
}

class Bar {
    public String str;

    public Bar(String str) {
        this.str = str;
    }
}
#}

请求协助~
多谢~

@bjansen bjansen added the t-bug label Jan 31, 2023
@bjansen
Copy link
Owner

bjansen commented Jan 31, 2023

Translation: autocompletion does not work on variables defined using the set tag:

{% set bar=foo.bar %} {# new variable defined here #}

{{ bar.str }} {# no autocompletion #}

@bjansen bjansen added this to the 0.10 milestone Feb 27, 2023
@bjansen bjansen changed the title 对于set标签设置的变量, 代码完成不起作用 Autocompletion does not work on variables defined using the set tag Feb 3, 2024
@bjansen bjansen removed this from the 0.10 milestone Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants