Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Cannot save Java-files when languageserver is running #115

Closed
@mdiin

Description

@mdiin

Prerequisites

Description

After the Java language server has started, attempting to save Java-files results in an error.

Steps to Reproduce

  1. Open any Java file
  2. Wait for languageserver to be running
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions