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

"expr" Cannot be referenced directly in an expression #151

Open
mzzsfy opened this issue Dec 21, 2019 · 6 comments
Open

"expr" Cannot be referenced directly in an expression #151

mzzsfy opened this issue Dec 21, 2019 · 6 comments
Labels
too much work Issue needs to much work

Comments

@mzzsfy
Copy link

mzzsfy commented Dec 21, 2019

I want to write a template about "AopContext.currentProxy", but I can't do it

template:
image

result:
image

As you can see, if I didn't quote $expr$ separately, "expr" in the template would not work

@mzzsfy
Copy link
Author

mzzsfy commented Dec 21, 2019

If I have any incorrect use, please point out

@mzzsfy
Copy link
Author

mzzsfy commented Dec 21, 2019

This is the test result with 'this' observation keyword
image

@xylo
Copy link
Owner

xylo commented Dec 21, 2019

Your syntax and use is correct. The problem is the plugin does not identify "expr" as variable if it's only used in the script part of variables. I haven't thought of this option yet. So thanks for reporting this bug.

@mzzsfy
Copy link
Author

mzzsfy commented Dec 21, 2019

Ok, hope to fix this soon,thank you

@xylo
Copy link
Owner

xylo commented Dec 21, 2019

Unfortunately it seems to be more complicated as expected. First I thought that the problem is related to my plugin code, but seemingly it's not. Instead it seems that the postfix completion is not capable of using variables in variable expressions when these variables have not been used as placeholders somewhere. :(

@xylo xylo added the too much work Issue needs to much work label Mar 16, 2020
@mzzsfy
Copy link
Author

mzzsfy commented May 16, 2022

It looks like you are preparing a brand new version?
Is there any progress on this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
too much work Issue needs to much work
Projects
None yet
Development

No branches or pull requests

2 participants