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

Trying to format .vue file results in an empty file #1608

Open
yennor opened this issue Jun 21, 2024 · 0 comments
Open

Trying to format .vue file results in an empty file #1608

yennor opened this issue Jun 21, 2024 · 0 comments

Comments

@yennor
Copy link

yennor commented Jun 21, 2024

When opening a .vue sfc file and trying to auto-format it (ctrl-shift-f) the whole content of the file just disappears.
There are no errors logged in the .metadata/.log file. :-(
The problem was there with eclipse 2024-03 and still is with 2024-06. I'm using the eclipse j2ee flavour.
Eclipse running under debian linux.

I've also tried out to do a new clean installation of eclipse without marketplace plugins or anything. Without any better result.
With the new installation there is an error, which I didn't have with the previous installation (so I don't think it is related) when opening a .vue file:

!ENTRY org.eclipse.lsp4e 2 0 2024-06-21 02:32:01.504
!MESSAGE [Warning]      TypeError: Cannot read properties of undefined (reading 'updateFromProject')
    at synchronizeHostData (/home/rmm/.p2/pool/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/typescript/lib/typescript.js:144203:16)
    at Object.getProgram (/home/rmm/.p2/pool/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/typescript/lib/typescript.js:144384:7)
    at /home/rmm/.p2/pool/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-typescript/lib/plugins/semantic.js:646:57
    at worker (/home/rmm/.p2/pool/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-typescript/lib/plugins/semantic.js:695:40)
    at async provideDiagnosticsWorker (/home/rmm/.p2/pool/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-typescript/lib/plugins/semantic.js:644:24)
    at async /home/rmm/.p2/pool/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@volar/language-service/lib/features/provideDiagnostics.js:158:32
    at async safeCall (/home/rmm/.p2/pool/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@volar/language-service/lib/utils/featureWorkers.js:72:16)
    at async languageFeatureWorker (/home/rmm/.p2/pool/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@volar/language-service/lib/utils/featureWorkers.js:25:44)
    at async worker (/home/rmm/.p2/pool/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@volar/language-service/lib/features/provideDiagnostics.js:142:28)
    at async Object.doValidation (/home/rmm/.p2/pool/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/@volar/language-service/lib/features/provideDiagnostics.js:130:9)

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

No branches or pull requests

1 participant