eclipse-wildwebdeveloper / wildwebdeveloper

Simple and productive Web Development Tools in the Eclipse IDE
https://projects.eclipse.org/projects/tools.wildwebdeveloper
Eclipse Public License 2.0
190 stars 71 forks source link

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

Open yennor opened 5 months ago

yennor commented 5 months ago

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)