#1502·nuclide

Troubles writing an IDE debugger plugin

Author: lloiserCreated Apr 21, 2018Updated Dec 12, 2018

I'm currently trying to write a atom-ide-ui debugger. As mentioned in the README of atom-ide-ui

Debugger integrations should be modeled after atom-ide-debugger-node.

Which uses nuclide-debugger-common/AutoGenLaunchAttachProvider.

So I started a new project and added flow-bin (0.70.0) and nuclide-debugger-common (0.7.0) to my dependencies.

Now flow status reports 52 errors when I import nuclide-debugger-common/AutoGenLaunchAttachProvider. Here is the flow status output: errors-52.txt

Once I added https://github.com/facebook/nuclide/blob/master/flow-libs/atom.js.flow to my flow-libs folder (and add it in the flowconfig too) the number dropped to 38: errors-38.txt

After adding

type IDisposable = {
  dispose(): mixed
};

to atom.js.flow the number of errors dropped to 29: errors-29.txt

I just want to build a new debugger...

Here is a minimal project to reproduce it my-debugger.zip

Am I missing something? Or is the npm package nuclide-debugger-common faulty (and maybe others too)?