-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Cannot find name 'svelteHTML' / Cannot find name '__sveltets_2_any', .... #2584
Comments
I am unable to reproduce this. Please provide a reproduction repository. |
[email protected]:mysolo/vsc-svelte-debug.git I replace version for svelte/sveltekit/typescript. clone repos open page.svelte |
I am unable to reproduce this. Wondering if this is OS-dependent; I'm on Windows. I suspect this came in as a result of #2561. Can you check
|
I managed to get rid of the error by removing the node_modules folder, upgrading svelte and re-installing node modules. That removes the |
- throw an error if writing didn't work (ts doesn't throw itself) - fix html path logic #2584
I was able to reproduce this for the early Svelte 4 versions and fixed the bug related to that. Still not able to reproduce this for Svelte 3, but added some extra checks. @mysolo could you try with the latest version of the extension? |
I still have the problem with version 109.2.3 |
yes
ls -al node_modules/.svelte2tsx-language-server-files git:(feat/posthog|…12⚑13
they not be empty |
This is truly strange. This means they are properly copied over into the hidden folder, but then not actually loaded or picked up, for whatever reason. I'm not sure how to investigate this further. @jasonlyu123 do you have any ideas how to help @mysolo debug this / any ideas why this could happen? |
@reskume mentioned this happens on case sensitive file systems, which may hint at what the problem is |
So it might be something to do with inconsistent case sensitivity handling. Is the extension installed in the case-insensitive part of the system, while the project directory is in the case-sensitive part? But why is the write file work but read file doesn't? And why isn't that affecting normal files in the project? @mysolo, can you confirm if you formatted part of your file system as case-sensitive? Though we are still not sure how this happened at least we can confirm if it's the same issue. |
yes, all my dev projects are on a case-sensitive partition. Applications are on the standard os x partition. |
#2584 Use original casing here: people could have their VS Code extensions in a case insensitive folder but their project in a case sensitive one; and if we copy the shims into the case sensitive part it would break when canonicalizing it.
I can confirm that in VSCode with extension Svelte v109.3.0 this has been
resolved. Thanks a lot!
Am Fr., 22. Nov. 2024 um 19:26 Uhr schrieb Simon H ***@***.***
…:
@mysolo <https://github.com/mysolo> / @reskume
<https://github.com/reskume> can you check if this still happens with the
latest version of the extension?
—
Reply to this email directly, view it on GitHub
<#2584 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABROSQHMRVKXG4DTQC77W3L2B5ZPFAVCNFSM6AAAAABRWWPUWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJUGQ4TEMRQGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
it's ok for me :) |
Describe the bug
bug on a version 109.2.2 , 109.2.1.
no bug on a version 109.2.0
use "svelte": "3.52.0" in a project.
VSCode return a multiple error on a
etc...
Reproduction
simple
Expected behaviour
No error on a code
System Info
Which package is the issue about?
Svelte for VS Code extension, svelte-language-server
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: