profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/jakebailey/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Jake Bailey jakebailey @Microsoft Python team at Microsoft 🙂 (formerly PL / architecture / CS education guy at Illinois)

jakebailey/pyright-action 4

GitHub Action for pyright (experimental)

jakebailey/plugingen 3

Code generator for hashicorp/go-plugin

jakebailey/irc 2

Fast IRC library in Go

jakebailey/docker-emby-vaapi 1

dperson/emby, but with repo ffmpeg and vaapi support via /dev/dri

jakebailey/dr 1

ERE derivative-based regex engine

jakebailey/irc-benchmarks 1

Go IRC library benchmarks (w/ IRCv3 tags)

jakebailey/ircold 1

Package irc implements generic support for the IRC protocol in Go.

benschreiber/deaddrop 0

A covert channel implemented with RDSEED and SGX.

jakebailey/alpine-sane 0

Some sane defaults for using Alpine as a human

jakebailey/berry 0

📦🐈 Active development trunk for Yarn ⚒

issue openedmicrosoft/vscode-python

Browser entrypoint tracker

  • Set up browser webpack configuration to package alternate entrypoint, declare in package.json.
  • Get a basic client running that calls the pylance API for its dist URI and passes it into the worker.
  • Get telemetry call wired up to browser-based library (challenging given the extension's use of globals).
  • Port / refactor language client middleware for RPC telemetry https://github.com/microsoft/vscode-python/blob/main/src/client/activation/languageClientMiddleware.ts

@karthiknadig @brettcannon

created time in 8 hours

issue closedmicrosoft/pylance-release

BUG: Exception received when installing recursive file system watcher

<h3> Environment data </h3>

  • Language Server version: 2021.7.7
  • OS and version: linux x64 (Pop_OS 21.04)
  • Python version: CPython 3.9.5
  • python.analysis.indexing: undefined
  • python.analysis.typeCheckingMode: off

<h3> Expected behaviour </h3>

Language server works and provides intellisense

<h3> Actual behaviour </h3>

Language server doesn't work, no intellisense

<h3> Logs </h3>

Python Language Server Log

[Info  - 20:42:34] Pylance language server 2021.7.7 (pyright fa453b2e) starting
[Info  - 20:42:34] Server root directory: /home/$USER/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist
Exception received when installing recursive file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js

closed time in 9 hours

JordyScript

issue commentmicrosoft/pylance-release

BUG: Exception received when installing recursive file system watcher

The same place, but with "python.analysis.logLevel": "Trace" set (it was in the issue template).

I'll close this, as the issue went away, but if it comes back and you can provide logs and a description of which features are broken, that would be helpful.

Largely, open file mode has a few shortcomings because it doesn't have any context about what code is available, so imports, some refactorings, reference finding, etc, will all be limited. Opening a folder for your project is the best method to have a working experience.

JordyScript

comment created time in 9 hours

issue commentmicrosoft/pylance-release

Autocomplete suggestions not working for OpenCV built from source

Thanks. What might be happening in this case is that your own setup differs from what is normally shipped on PyPI; I think that our current stub is for cv2.cv2 with the expectation that there's an __init__.py that is reexporting attributes, not that the module itself is compiled (but I'd need to check).

mosdeo

comment created time in 9 hours

issue commentmicrosoft/pylance-release

attrs factory parameter gives "Fields without default values cannot appear after fields with default values" error

I know we don't necessarily want to add any library specific functionality if we can achieve it via proper typing spec improvements, but I think there is still work to be done to better support attrs as the current coverage doesn't always meet user expectations (and I don't think it's true that we have no plans to try and work on handling specific libs as a whole either).

This one in particular is a problem because the diagnostic is emitted regardless of the type checking level, so anyone using attrs with code that happens to fall the bucket of an unsupported usage ends up with a message that can't be dismissed except via # type: ignore, in addition to it functionally not working as expected (which is another problem that would have happened before transforms anyway).

craigholm

comment created time in 10 hours

issue commentmicrosoft/pylance-release

BUG: Exception received when installing recursive file system watcher

This message is a red herring and has nothing to do with not getting intellisense. See also #923.

Can you provide your full trace logs? What isn't working? What folder have you opened?

JordyScript

comment created time in 10 hours

issue commentmicrosoft/pylance-release

pandas read_excel(), DataFrame.iloc[] stubs issues

We're the maintainers of both repos, so we will see both issue trackers and handle them when we have the opportunity.

Our stubs override what pandas ships (IIRC we are still more type complete, and the effort to have them port our changes back hasn't happened), so we still have to apply fixes in our repo when possible.

I'm pretty sure that iloc slice issue was fixed last week in https://github.com/microsoft/python-type-stubs/commit/ce88d833900b04c290ff7a30071a66448ac13bd0

DramatikMan

comment created time in 12 hours

issue commentmicrosoft/pylance-release

Local imports not resolving correctly

That's sort of expected; you're not supposed to name modules the same as standard library modules unless you're importing them like import foo.parser to avoid naming conflict. Python has two different kinds of standard library modules, some of which cannot be overridden by a local module, even if it's named the same, and we don't try and make the distinction (not that the info is really available), so just bulk disallow it by putting the stdlib's stub import root first.

A message that explicitly states that some module is named the same as a stdlib module sounds good in theory, but I'm not sure how we would detect such a thing; it's up to the importer how it's going to name an import, and we're going to see those imports as going to the stdlib. We can't put a diagnostic in parser.py, as it may never actually be intended to be imported via import parser, so we're only left with "for all valid imports that go to the stdlib, scan every other search path for modules named the same thing and warn", which feels pretty expensive and noisy.

aaronsmith1234

comment created time in 12 hours

issue commentmicrosoft/pylance-release

No completions on modules in zip file

I'm not sure why the logs are jumbled up like this (so I can't see the search paths), but this isn't how I understand zips to work.

When a zip is a search path, its contents are what are searched, meaning that the correct import for this would just be import Module2, because the zips are effectively just folders.

ttSpace

comment created time in 12 hours

issue commentmicrosoft/pylance-release

Autocomplete suggestions not working for OpenCV built from source

Can you show the output of:

$ ls -l /Library/OpenCV/opencv-4.5.3/build/lib/python3
$ ls -l /usr/local/lib/python3.9/site-packages/cv2/python-3.9

Just to see the structure?

mosdeo

comment created time in 3 days

issue commentmicrosoft/pylance-release

Pylance takes up 100% CPU

Those logs are VS Code's logs; the logs I'm asking for are from the Output panel with Python Language Server selected. You can find "Output" in the View context menu, or using the command palette and selecting "show output".

Honghe

comment created time in 3 days

PullRequestReviewEvent

Pull request review commentmicrosoft/vscode-python

Remove MPLS as enum from package.json

                         "Default",                         "Jedi",                         "JediLSP",-                        "Microsoft",                         "None",                         "Pylance"

Can you swap these so None is last?

karthiknadig

comment created time in 4 days

PullRequestReviewEvent
PullRequestReviewEvent

fork jakebailey/content

The content behind MDN Web Docs

fork in 4 days

issue commentmicrosoft/pylance-release

Definition not found for string module imports

I'm not aware of any special extension that would do this, no. Pylance is included with the Python extension by default (and is an extension itself), and there aren't any extensions to Pylance to add this, but we are certainly interested in django-related improvements.

wizardion

comment created time in 4 days

issue commentmicrosoft/pylance-release

Definition not found for string module imports

We have no special cases for django; we treat this as effectively any other string, not some special module name that can be navigated to. This would be a django-specific enhancement.

wizardion

comment created time in 4 days

issue commentmicrosoft/pylance-release

Implement format on type for proper indentation

We could ask them to set:

{
    "[python]": {
        "editor.formatOnType": true
    }
}

Manually. It's just not super discoverable.

brettcannon

comment created time in 4 days

issue commentmicrosoft/python-language-server

The Python Tools server crashed 5 times in the last 3 minutes. The server will not be restarted. (Stack overflow error)

If you open your settings UI, you can search for python.languageServer and change its value. You can also use the JSON UI to search for where you've set it to "Microsoft"; it was always opt-in so must be set somewhere.

luisccomp

comment created time in 4 days

issue commentmicrosoft/pylance-release

subtraction of numpy.ndarrays results in incorrect NoReturn type

You're probably thinking of this rule

Yes, I misspoke!

bcolloran

comment created time in 5 days

issue commentmicrosoft/pylance-release

subtraction of numpy.ndarrays results in incorrect NoReturn type

These NoReturns were added in https://github.com/numpy/numpy/pull/18128; I'm not really sure I understand why.

bcolloran

comment created time in 5 days

issue commentmicrosoft/pylance-release

subtraction of numpy.ndarrays results in incorrect NoReturn type

Ah, my mistake.

I was thinking of this mypy behavior, where if you call an overloaded function and nothing matches, it gives you Any: https://mypy-play.net/?mypy=latest&python=3.10&gist=c2140e98625318f0005542193960c79c

(whereas we pick the first overload, which has always felt odd to me given it's usually the narrowest option)

bcolloran

comment created time in 5 days

issue commentmicrosoft/pylance-release

subtraction of numpy.ndarrays results in incorrect NoReturn type

Incredibly, they really do have NoReturn for these operators on the first overload. We hit this because if we don't match an overload, we pick the first one, I think. I don't think that's what mypy does, but I haven't tested.

https://github.com/numpy/numpy/blob/2f782a2f1afa1b25ffacb3ca1ffdbbab0abc1504/numpy/init.pyi#L2270

bcolloran

comment created time in 5 days

issue commentmicrosoft/pylance-release

Intellisense not working at all, even when I press ctrl+space

This isn't enough info to help us; our template asks for logs and code samples so we can help, but you haven't provided any. Can you please provide them?

https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue

cmbrodie

comment created time in 5 days

issue commentmicrosoft/pylance-release

Autocomplete suggestions not working for OpenCV built from source

This line is suspicious:

/Users/lky/code_repos/extract_old_roof/ls /usr/local/lib/python3.9/site-packages/cv2/python-3.9

This to me looks like a symlink error or something.

I'm also not seeing /Library/OpenCV/opencv-4.5.3/build/lib/python3 show up; can you undo the symlinking and show logs for your original case?

mosdeo

comment created time in 5 days

issue commentmicrosoft/pylance-release

Pylance takes up 100% CPU

I can't read the logs from "Python Language Server" output window, cause the vscode windows is closed, but the processes still run in background.

If VS Code closes, then it should be stopping all of its subprocesses, including the Pylance server, so that is odd. Especially on Linux, which should be much more keen to kill zombie processes (as compared to Windows).

Can you kill these processes and reopen the editor so you can get trace logs?

Honghe

comment created time in 5 days

issue commentfaster-cpython/ideas

Profiling

May have misheard; I use https://github.com/google/pprof (mainly for Go and Node), which does have a C/C++ library I haven't tried out (but is used for profiling chromium, for example).

ericsnowcurrently

comment created time in 5 days

issue closedmicrosoft/pylance-release

Function named constructor breaks linting.

Having a function named constructor seemingly breaks linting, is pylance thinking this is a keyword?

Environment data

<!-- To find your version, you can either:

  • Open the VS Code extensions panel. Locate Pylance from the list of installed extensions. The version appears next to the name.

  • Select "View: Toggle Output" from the command palette (Ctrl+Shift+P on Windows/Linux, Command+Shift+P on macOS), then select "Python Language Server" in the dropdown on the right. Look for the line Pylance Language Server version X in the console. -->

  • Language Server version: 2021.7.6

  • OS and version: Win 11

  • Python version (& distribution if applicable, e.g. Anaconda): N/A but 3.9

Expected behaviour

Nothing would happen.

Actual behaviour

image

Code Snippet / Additional information

def constructor():
    ...

closed time in 5 days

bijij

issue commentmicrosoft/pylance-release

Function named constructor breaks linting.

We've just released a hotfix (2021.7.7) which should fix this. Thanks for the issue!

bijij

comment created time in 5 days