pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

create stub file not working

Open heejaechang opened this issue 1 year ago • 1 comments

  1. install pip install zope.event
  2. enable in setting.json
"python.analysis.diagnosticSeverityOverrides": {
        "reportMissingTypeStubs": "information"
    },
  1. create python file and add import zope.event
  2. place cursor on event
  3. open create type stub code action and run

Expected: type stub created Actual: Nothing happens.

looks like something around pyright command controller not being called anymore.

heejaechang avatar Nov 30 '23 22:11 heejaechang

PylanceAsyncServer.executeCodeAction returns (amongst other things) pyright.createtypestub. But BaseCommandController.getCommand only supports python.createtypestub. Looks like there's history of us supporting both command names, but it's not clear to me why. This support was broken by https://github.com/microsoft/pyrx/pull/3633.

Reassigning to @rchiodo who should have more context.

debonte avatar Dec 19 '23 01:12 debonte

This issue has been fixed in prerelease version 2024.5.100, which we've just released. You can find the changelog here: CHANGELOG.md

KacieKK avatar May 09 '24 23:05 KacieKK