Skip to content

Still getting odd module import errors after updates #27

@rwols

Description

@rwols
LSP-json: internal/modules/cjs/loader.js:800
LSP-json:     throw err;
LSP-json:     ^
LSP-json: 
LSP-json: Error: Cannot find module '/home/raoul/.config/sublime-text-3/Cache/LSP-json/language-server/out/node/jsonServerMain.js'
LSP-json:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
LSP-json:     at Function.Module._load (internal/modules/cjs/loader.js:690:27)
LSP-json:     at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
LSP-json:     at internal/main/run_main_module.js:17:11 {
LSP-json:   code: 'MODULE_NOT_FOUND',
LSP-json:   requireStack: []
LSP-json: }

Use the needs_update_or_installation and install_or_update classmethods and these problems will likely go away.

EDIT: actually I think we need to take care of sublimelsp/LSP#899 to get smooth updates.

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