Closed unpseudocomplique closed 4 weeks ago
Thanks for the report, but I can't reproduce the problem in the code you provided, auto-complete worked for me when the SFC structure was fixed.
Can you provide a video that fully demonstrates how the problem occurs?
Sorry i tryed a lot and can't reproduce it again 😥
Will try to stay alert when this happen to create another repro!
Anyway is it possible to make the autocompletion keep working even when something is wrong ? This happen a lot allong the day that something is in dev and it's normal that for now it's broken. That might also implicitly fix my issue.
Anyway is it possible to make the autocompletion keep working even when something is wrong ?
The "Vue: Restart Vue and TS servers" command could help.
Yea, i'm doing reload window every time and this fix it ! But i belive this would be a much better dx to just work even with issue with the file?
I had the same issue time to time, but could not reproduce easily ( so I did not create an issue ). My general guessing is there's a race condition ( I could be very wrong ) like:
Request A send
Request B send
Response B
Response A
Can't reproduce in 2.0.28. Is this still an issue for you?
From memory yes, but it happens so rare that my memory about this issue is quite blur. E.g. I am not event sure was it before 2.0.28
or after. Either way I am not too concern of this error to be honestly. I guess you can close this for now, I will remember to post here if I reproduced again.
@davidmatter Same issue, EOF error or something else (sometimes they dont work in top of template) breaks completions 2.0.29 (Windows) https://imgur.com/a/pzoXA40
@zhiyuanzmj Could you take a look at this?
when the SFC structure was fixed.
auto-complete don't work when the SFC structure was fixed?
when the SFC structure was fixed.
auto-complete don't work when the SFC structure was fixed?
Do you mean this? https://imgur.com/a/bp9hTHA With closed tag it works, yes, even if there is no end tag
This url is 403, I can't see it.
This url is 403, I can't see it.
Try this https://i.imgur.com/4t7rFue.png
No also can't see it, why not copy to the comment input box.
Weird, maybe cdn issue
Images in my first comment
Thanks!
Vue - Official extension or vue-tsc version
2.0.26
VSCode version
1.91.0
Vue version
3.4.0
TypeScript version
idk how to get it
System Info
Steps to reproduce
having an unexpected end of file break the autocompletion forever. Like having a component without end tag, the only solution is to do a reload window.
It's also annoying because sometimes i want volar to import my component but because of the end of file it break before importing.
What is expected?
Autocompletion should still work even if an issue is present on the component
What is actually happening?
Autocompletion is break and won't come back even when component is fixed !
Link to minimal reproduction
https://play.vuejs.org/#eNp9kE1Lw0AQhv/KuJcolIjoqaSCSkE9qKjgZS8hmaRb94v9qIGQ/+7shtYepLfd93ln5p0Z2Z215S4iW7LKN07YAB5DtCBr3a84C56zW66FssYFGMFhBxN0zigoqKzgmuvGaB9A+R5WiZ8XjyilgS/jZHtWXHBdXc6tqRF9Aior64D0A6g2V4kfaWxBQ6llJ/py642mZGNyctYYZYVE92qDoJGcLSGTxGqa+POcteAiLvZ6s8Hm+x9964ekcfbm0KPbIWcHFmrXY5jx+uMFB3ofoDJtlOQ+Ad/RGxlTxtl2H3VLsY98Oe1TvqnQ/adfDwG13y+VgibnlP2c0Z0fTqz+F/e6vMl1XE9s+gWabZzJ
Any additional comments?
No response