Coder Social home page Coder Social logo

Comments (6)

bollwyvl avatar bollwyvl commented on May 17, 2024

Fails to build with:

src/index.ts:97:43 - error TS2345: Argument of type 'import("~/jupyterlab-lsp/node_modules/@jupyterlab/docregistry/lib/registry").IDocumentWidget<import("~/jupyterlab-lsp/node_modules/@jupyterlab/fileeditor/lib/widget").FileEditor, import("~/jupyterlab-lsp/node_modules/@jupyterlab/docregi...' is not assignable to parameter of type 'import("~/jupyterlab-lsp/node_modules/@krassowski/jupyterlab_go_to_definition/node_modules/@jupyterlab/docregistry/lib/registry").IDocumentWidget<import("~/jupyterlab-lsp/node_modules/@krassowski/jupyterlab_go_to_definition/node_modules/@jupyterlab/fileeditor/lib...'.
  Types of property 'content' are incompatible.
    Type 'import("~/jupyterlab-lsp/node_modules/@jupyterlab/fileeditor/lib/widget").FileEditor' is not assignable to type 'import("~/jupyterlab-lsp/node_modules/@krassowski/jupyterlab_go_to_definition/node_modules/@jupyterlab/fileeditor/lib/widget").FileEditor'.
      Property 'onAfterAttach' is protected but type 'FileEditor' is not a class derived from 'FileEditor'.

97         let jumper = new FileEditorJumper(widget, documentManager);
                                             ~~~~~~

src/index.ts:119:39 - error TS2345: Argument of type 'import("~/jupyterlab-lsp/node_modules/@jupyterlab/notebook/lib/panel").NotebookPanel' is not assignable to parameter of type 'import("~/jupyterlab-lsp/node_modules/@krassowski/jupyterlab_go_to_definition/node_modules/@jupyterlab/notebook/lib/panel").NotebookPanel'.
  Property '[Printing.symbol]' is missing in type 'import("~/jupyterlab-lsp/node_modules/@jupyterlab/notebook/lib/panel").NotebookPanel' but required in type 'import("~/jupyterlab-lsp/node_modules/@krassowski/jupyterlab_go_to_definition/node_modules/@jupyterlab/notebook/lib/panel").NotebookPanel'.

119       let jumper = new NotebookJumper(widget, documentManager);
                                          ~~~~~~

  node_modules/@krassowski/jupyterlab_go_to_definition/node_modules/@jupyterlab/notebook/lib/panel.d.ts:57:5
    57     [Printing.symbol](): () => Promise<void>;
           ~~~~~~~~~~~~~~~~~
    '[Printing.symbol]' is declared here.


Found 4 errors.

I'll take a look over on @krassowski/jupyterlab_go_to_definition...

from jupyterlab-lsp.

krassowski avatar krassowski commented on May 17, 2024
  Property 'onAfterAttach' is protected but type 'FileEditor' is not a class derived from 'FileEditor'.

Could it be a simple dependency version conflict?

from jupyterlab-lsp.

bollwyvl avatar bollwyvl commented on May 17, 2024

Yeah, probably a version conflict. Gave it a full go anyway (passes acceptance tests locally).

I won't even bother to PR, as we won't know more until later but here's a binder:
Binder

Probably worth at least taking a spin.

So again, one of the big things will be adopting lerna so that packages can be split up... perhaps it will become appropriate to move the jump in as well.

from jupyterlab-lsp.

bollwyvl avatar bollwyvl commented on May 17, 2024

Gave it a go on binder, everything seemed cool. I'll keep this open until we figure out what our version pins actually need to be...

from jupyterlab-lsp.

bollwyvl avatar bollwyvl commented on May 17, 2024

lab 1.2 is out:

I guess I'd like to see the integrity stuff from #79 land before going after that. If we want to claim back-compat with the 1.1 line, we'd probably need to add a test excursion for it... but probably not a whole extra matrix dimension.

from jupyterlab-lsp.

krassowski avatar krassowski commented on May 17, 2024

Thanks for the work here, closing as we are on 1.2 for a long time. We will need a similar one for 2.0 soon

from jupyterlab-lsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.