-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
"Go to definition" for methods/computeds does not work in the template - Unable to open '[somefile].vue': resource is not available. #1484
Comments
Same error occurs on my system with
|
I am experiencing the same problem with a similar error message and the file at given path definitely exist.
|
If you are able to repro, do you mind doing this:
From what I can see in @rs3d's log, it seems to be that the URI is not handled correctly on Windows pathing. |
NVM, should be fixed in #2161. |
I just finished your repro steps 😅. Glad to hear that this one is fixed, looking forward for the next release. |
Info
Problem
Running "Go to definition" on a method/computed name inside the template (with
vetur.experimental.templateInterpolationService
enabled) throws an error:Unable to open 'HelloWorld.vue': resource is not available.
I tested this in Veturpack and the default (babel, eslint) Vue CLI 4 project.
More verbose message from
Log (Window)
in Output panel:When the above gif was made:
"vetur.experimental.templateInterpolationService": true
Reproducible Case
the gif I uploaded is made on the Vue CLI 4 template, here I'll show how to reproduce it in Veturpack
veturpack\client\components\Counter.vue
count
on line 8 and press "Go to definition"You'll get the
Unable to open 'Counter.vue': resource is not available.
errorI'm not sure if what I'm describing is even a feature of Vetur? I'm going by what I've read in https://vuejs.github.io/vetur/interpolation.html#generic-language-features -> :
Currently diagnostics, hover, jump to definition and find references are implemented in this way:
So I'm assuming I should be able to do what I'm trying to do.
This issue is different from #707 because it's related to methods/computeds whereas 707 is related to Go Tos in imports
The text was updated successfully, but these errors were encountered: