Cannot save Java-files when languageserver is running #115
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
After the Java language server has started, attempting to save Java-files results in an error.
Steps to Reproduce
- Open any Java file
- Wait for languageserver to be running
- Save file
Expected behavior:
I would expect the file to be saved.
Actual behavior:
In the UI, nothing happens.
In the developer console, this error is visible:
Uncaught (in promise) TypeError: Cannot read property 'Manual' of undefined
at TextEditorSyncAdapter.willSave (document-sync-adapter.ts:331)
at Function.simpleDispatch (/usr/lib/atom/node_modules/event-kit/dist/emitter.js:64)
at /usr/lib/atom/node_modules/event-kit/dist/emitter.js:270
at Array.map (<anonymous>)
at Emitter.emitAsync (/usr/lib/atom/node_modules/event-kit/dist/emitter.js:269)
at TextBuffer.saveTo (/usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:1923)
willSave @ document-sync-adapter.ts:331
simpleDispatch @ /usr/lib/atom/node_modules/event-kit/dist/emitter.js:64
(anonymous) @ /usr/lib/atom/node_modules/event-kit/dist/emitter.js:270
emitAsync @ /usr/lib/atom/node_modules/event-kit/dist/emitter.js:269
saveTo @ /usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:1923
Reproduces how often:
Every time.
Versions
atom --version
:
Atom : 1.42.0
Electron: 4.2.12
Chrome : 69.0.3497.128
Node : 10.11.0
apm --version
:
apm 2.4.5
npm 6.13.6
node 13.6.0 x64
atom 1.42.0
python 3.8.1
git 2.25.0
OS:
ArchLinux, kernel 5.4.10-arch1-1
Additional Information
This was working last week, yet nothing on my atom install or OS has been updated since then. I have tried full reinstall, including reset of ~/.atom
, to no effect.
I think this is the proper project for this issue, since this is the project that includes the vscode-languageserver-protocol package, but it might not be?