profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/PeterJCLaw/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.
Peter Law PeterJCLaw @thread United Kingdom

davidhalter/jedi 4843

Awesome autocompletion, static analysis and refactoring library for python

PeterJCLaw/build-contents 1

Javascript functions to automatically build the a contents box for an HTML page from its headings

PeterJCLaw/clink-completions 1

Completion files to clink util

PeterJCLaw/code-submitter 1

Code submitter for Student Robotics Virtual Competition.

PeterJCLaw/cyanide-tester 1

A simple PHP test framework, initially targetted for use with the Student Robotics IDE: cyanide

PeterJCLaw/db 1

PHP Database class

penelopezone/badger-vagrant 0

#yolo #swag #srobo #boxes

PR closed PeterJCLaw/vscode-tuck

Bump ssri from 6.0.1 to 6.0.2 dependencies

Bumps ssri from 6.0.1 to 6.0.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md">ssri's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/zkat/ssri/compare/v6.0.1...v6.0.2">6.0.2</a> (2021-04-07)</h2> <h3>Bug Fixes</h3> <ul> <li>backport regex change from 8.0.1 (<a href="https://github.com/zkat/ssri/commit/b30dfdb">b30dfdb</a>), closes <a href="https://github-redirect.dependabot.com/zkat/ssri/issues/19">#19</a></li> </ul> <p><!-- raw HTML omitted --><!-- raw HTML omitted --></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/npm/ssri/commit/b7c8c7c61db89aeb9fbf7596c0ef17071bc216ef"><code>b7c8c7c</code></a> chore(release): 6.0.2</li> <li><a href="https://github.com/npm/ssri/commit/b30dfdb00bb94ddc49a25a85a18fb27afafdfbb1"><code>b30dfdb</code></a> fix: backport regex change from 8.0.1</li> <li>See full diff in <a href="https://github.com/npm/ssri/compare/v6.0.1...v6.0.2">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by <a href="https://www.npmjs.com/~nlf">nlf</a>, a new releaser for ssri since your current version.</p> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+3 -3

1 comment

1 changed file

dependabot[bot]

pr closed time in 14 hours

delete branch PeterJCLaw/vscode-tuck

delete branch : dependabot/npm_and_yarn/ssri-6.0.2

delete time in 14 hours

delete branch PeterJCLaw/vscode-tuck

delete branch : dependabot/npm_and_yarn/elliptic-6.5.4

delete time in 14 hours

PR closed PeterJCLaw/vscode-tuck

Bump elliptic from 6.5.3 to 6.5.4 dependencies

Bumps elliptic from 6.5.3 to 6.5.4. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/indutny/elliptic/commit/43ac7f230069bd1575e1e4a58394a512303ba803"><code>43ac7f2</code></a> 6.5.4</li> <li><a href="https://github.com/indutny/elliptic/commit/f4bc72be11b0a508fb790f445c43534307c9255b"><code>f4bc72b</code></a> package: bump deps</li> <li><a href="https://github.com/indutny/elliptic/commit/441b7428b0e8f6636c42118ad2aaa186d3c34c3f"><code>441b742</code></a> ec: validate that a point before deriving keys</li> <li><a href="https://github.com/indutny/elliptic/commit/e71b2d9359c5fe9437fbf46f1f05096de447de57"><code>e71b2d9</code></a> lib: relint using eslint</li> <li><a href="https://github.com/indutny/elliptic/commit/8421a01aa3ff789c79f91eaf8845558a7be2b9fa"><code>8421a01</code></a> build(deps): bump elliptic from 6.4.1 to 6.5.3 (<a href="https://github-redirect.dependabot.com/indutny/elliptic/issues/231">#231</a>)</li> <li>See full diff in <a href="https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+16 -16

1 comment

1 changed file

dependabot[bot]

pr closed time in 14 hours

pull request commentPeterJCLaw/vscode-tuck

Bump elliptic from 6.5.3 to 6.5.4

Looks like elliptic is up-to-date now, so this is no longer needed.

dependabot[bot]

comment created time in 14 hours

pull request commentPeterJCLaw/vscode-tuck

Bump ssri from 6.0.1 to 6.0.2

Looks like ssri is up-to-date now, so this is no longer needed.

dependabot[bot]

comment created time in 14 hours

PR opened thread/custom-react-elements

Bump lodash from 4.17.19 to 4.17.21

Bumps lodash from 4.17.19 to 4.17.21. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lodash/lodash/commit/f299b52f39486275a9e6483b60a410e06520c538"><code>f299b52</code></a> Bump to v4.17.21</li> <li><a href="https://github.com/lodash/lodash/commit/c4847ebe7d14540bb28a8b932a9ce1b9ecbfee1a"><code>c4847eb</code></a> Improve performance of <code>toNumber</code>, <code>trim</code> and <code>trimEnd</code> on large input strings</li> <li><a href="https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c"><code>3469357</code></a> Prevent command injection through <code>_.template</code>'s <code>variable</code> option</li> <li><a href="https://github.com/lodash/lodash/commit/ded9bc66583ed0b4e3b7dc906206d40757b4a90a"><code>ded9bc6</code></a> Bump to v4.17.20.</li> <li><a href="https://github.com/lodash/lodash/commit/63150ef7645ac07961b63a86490f419f356429aa"><code>63150ef</code></a> Documentation fixes.</li> <li><a href="https://github.com/lodash/lodash/commit/00f0f62a979d2f5fa0287c06eae70cf9a62d8794"><code>00f0f62</code></a> test.js: Remove trailing comma.</li> <li><a href="https://github.com/lodash/lodash/commit/846e434c7a5b5692c55ebf5715ed677b70a32389"><code>846e434</code></a> Temporarily use a custom fork of <code>lodash-cli</code>.</li> <li><a href="https://github.com/lodash/lodash/commit/5d046f39cbd27f573914768e3b36eeefcc4f1229"><code>5d046f3</code></a> Re-enable Travis tests on <code>4.17</code> branch.</li> <li><a href="https://github.com/lodash/lodash/commit/aa816b36d402a1ad9385142ce7188f17dae514fd"><code>aa816b3</code></a> Remove <code>/npm-package</code>.</li> <li>See full diff in <a href="https://github.com/lodash/lodash/compare/4.17.19...4.17.21">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by <a href="https://www.npmjs.com/~bnjmnt4n">bnjmnt4n</a>, a new releaser for lodash since your current version.</p> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+3 -3

0 comment

1 changed file

pr created time in 14 hours

PR opened thread/elm-web-components

Bump url-parse from 1.4.7 to 1.5.1

Bumps url-parse from 1.4.7 to 1.5.1. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/unshiftio/url-parse/commit/eb6d9f51e395b7e47bf2594e457d541db21c713b"><code>eb6d9f5</code></a> [dist] 1.5.1</li> <li><a href="https://github.com/unshiftio/url-parse/commit/750d8e8a9d45dbce9ff09759f0fe4564cdd47d74"><code>750d8e8</code></a> [fix] Fixes relative path resolving <a href="https://github-redirect.dependabot.com/unshiftio/url-parse/issues/199">#199</a> <a href="https://github-redirect.dependabot.com/unshiftio/url-parse/issues/200">#200</a> (<a href="https://github-redirect.dependabot.com/unshiftio/url-parse/issues/201">#201</a>)</li> <li><a href="https://github.com/unshiftio/url-parse/commit/3ac777474ba5dc48a7e33771cbb311fc6f69bef8"><code>3ac7774</code></a> [test] Make test consistent for browser testing</li> <li><a href="https://github.com/unshiftio/url-parse/commit/267a0c6f7ef1a58271be61611c5103daace602c9"><code>267a0c6</code></a> [dist] 1.5.0</li> <li><a href="https://github.com/unshiftio/url-parse/commit/d1e7e8822f26e8a49794b757123b51386325b2b0"><code>d1e7e88</code></a> [security] More backslash fixes (<a href="https://github-redirect.dependabot.com/unshiftio/url-parse/issues/197">#197</a>)</li> <li><a href="https://github.com/unshiftio/url-parse/commit/d99bf4cf259b7378c855f786edc253e70405ffdc"><code>d99bf4c</code></a> [ignore] Remove npm-debug.log from .gitignore</li> <li><a href="https://github.com/unshiftio/url-parse/commit/422c8b5e4cac6a79cd35b4e86731476dcbeec7e4"><code>422c8b5</code></a> [pkg] Replace nyc with c8</li> <li><a href="https://github.com/unshiftio/url-parse/commit/933809d630c7b21399b4e5df59fccccd80033b21"><code>933809d</code></a> [pkg] Move coveralls to dev dependencies</li> <li><a href="https://github.com/unshiftio/url-parse/commit/190b2168035899a2a88f2dc2625963bf7e2f338f"><code>190b216</code></a> [pkg] Add .npmrc</li> <li><a href="https://github.com/unshiftio/url-parse/commit/ce3783f4ea25753cfa36376769c14e4e2fe6ea80"><code>ce3783f</code></a> [test] Do not test on all available versions of Edge and Safari</li> <li>Additional commits viewable in <a href="https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+6 -6

0 comment

1 changed file

pr created time in a day

create barnchsrobo/team-emails

branch : dependabot/npm_and_yarn/lodash-4.17.21

created branch time in a day

PR opened srobo/team-emails

Bump lodash from 4.17.20 to 4.17.21

Bumps lodash from 4.17.20 to 4.17.21. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lodash/lodash/commit/f299b52f39486275a9e6483b60a410e06520c538"><code>f299b52</code></a> Bump to v4.17.21</li> <li><a href="https://github.com/lodash/lodash/commit/c4847ebe7d14540bb28a8b932a9ce1b9ecbfee1a"><code>c4847eb</code></a> Improve performance of <code>toNumber</code>, <code>trim</code> and <code>trimEnd</code> on large input strings</li> <li><a href="https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c"><code>3469357</code></a> Prevent command injection through <code>_.template</code>'s <code>variable</code> option</li> <li>See full diff in <a href="https://github.com/lodash/lodash/compare/4.17.20...4.17.21">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+3 -3

0 comment

1 changed file

pr created time in a day

issue commentdavidhalter/jedi

How to intercept or disable Jedi completely for specific objects/classes?

ak.Array (in ak.highlevel) has an explicit __dir__ method that looks up the fields of record arrays such as these.

https://github.com/scikit-hep/awkward-1.0/blob/5aaf42a60a49a3643e0466d25dcddfe7e6aa395c/src/awkward/highlevel.py#L1123-L1137

It doesn't have an explicit _ipython_key_completions_ method: https://github.com/scikit-hep/awkward-1.0/search?q=ipython_key_completions

I would have thought that IPython would simply call __dir__ if it needs tab-completions, but maybe it's not? The difference between milliseconds and 20 seconds sounds like it's loading data, which is not what you want. If adding an explicit _ipython_key_completions_ method (simply calling __dir__) fixes this, I'm (a) surprised at IPython and (b) willing to accept it as a PR.

tamasgal

comment created time in a day

issue commentdavidhalter/jedi

unhandled operator ':' in PythonNode(subscriptlist, ...

I am having a similar (?) issue with the following snippet:

data = '''def foo():
    """What?

    This. Al
    """
    pass
'''

from jedi.api import Script

i = Script(data)
i.complete(line=4, column=10)

with

  File "/usr/lib/python3.9/site-packages/jedi/inference/syntax_tree.py", line 229, in _infer_node
    raise AssertionError("unhandled operator %s in %s " % (repr(element.value), origin))
AssertionError: unhandled operator '.' in <PythonErrorNode: This.@3,0> 

I have the same issue. Using the provided example, I can reproduce the issue. When using jedi in combination with deoplete-jedi in neovim, the issue appears to only be triggered when working on docstrings.

Carreau

comment created time in 2 days

PR opened thread/custom-react-elements

Bump url-parse from 1.4.7 to 1.5.1

Bumps url-parse from 1.4.7 to 1.5.1. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/unshiftio/url-parse/commit/eb6d9f51e395b7e47bf2594e457d541db21c713b"><code>eb6d9f5</code></a> [dist] 1.5.1</li> <li><a href="https://github.com/unshiftio/url-parse/commit/750d8e8a9d45dbce9ff09759f0fe4564cdd47d74"><code>750d8e8</code></a> [fix] Fixes relative path resolving <a href="https://github-redirect.dependabot.com/unshiftio/url-parse/issues/199">#199</a> <a href="https://github-redirect.dependabot.com/unshiftio/url-parse/issues/200">#200</a> (<a href="https://github-redirect.dependabot.com/unshiftio/url-parse/issues/201">#201</a>)</li> <li><a href="https://github.com/unshiftio/url-parse/commit/3ac777474ba5dc48a7e33771cbb311fc6f69bef8"><code>3ac7774</code></a> [test] Make test consistent for browser testing</li> <li><a href="https://github.com/unshiftio/url-parse/commit/267a0c6f7ef1a58271be61611c5103daace602c9"><code>267a0c6</code></a> [dist] 1.5.0</li> <li><a href="https://github.com/unshiftio/url-parse/commit/d1e7e8822f26e8a49794b757123b51386325b2b0"><code>d1e7e88</code></a> [security] More backslash fixes (<a href="https://github-redirect.dependabot.com/unshiftio/url-parse/issues/197">#197</a>)</li> <li><a href="https://github.com/unshiftio/url-parse/commit/d99bf4cf259b7378c855f786edc253e70405ffdc"><code>d99bf4c</code></a> [ignore] Remove npm-debug.log from .gitignore</li> <li><a href="https://github.com/unshiftio/url-parse/commit/422c8b5e4cac6a79cd35b4e86731476dcbeec7e4"><code>422c8b5</code></a> [pkg] Replace nyc with c8</li> <li><a href="https://github.com/unshiftio/url-parse/commit/933809d630c7b21399b4e5df59fccccd80033b21"><code>933809d</code></a> [pkg] Move coveralls to dev dependencies</li> <li><a href="https://github.com/unshiftio/url-parse/commit/190b2168035899a2a88f2dc2625963bf7e2f338f"><code>190b216</code></a> [pkg] Add .npmrc</li> <li><a href="https://github.com/unshiftio/url-parse/commit/ce3783f4ea25753cfa36376769c14e4e2fe6ea80"><code>ce3783f</code></a> [test] Do not test on all available versions of Edge and Safari</li> <li>Additional commits viewable in <a href="https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+3 -3

0 comment

1 changed file

pr created time in 2 days

issue commentdavidhalter/jedi

How to intercept or disable Jedi completely for specific objects/classes?

Can you maybe call jedi.set_debug_function() and post the output here?

tamasgal

comment created time in 2 days

issue commentdavidhalter/jedi

How to intercept or disable Jedi completely for specific objects/classes?

Here, I have a very small sample file and call all the attributes from dir(f.events.tracks) explicitly. As you can see, the first call takes ~250ms (it does some caching there) and the second ~66ms.

>>> %%time
... for attr in dir(f.events.tracks):
...     print(getattr(f.events.tracks, attr))
...
[[99.1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
[[0.0369, 0.0369, 0.0369, 0.0351, 0.033, ... 0.242, -0.181, 0.409, 0.49, -0.296]]
[[-0.487, -0.487, -0.487, -0.485, -0.491, ... 0.903, -0.638, 0.627, 0.447, -0.594]]
[[-0.873, -0.873, -0.873, -0.874, -0.871, ... -0.749, -0.663, -0.749, -0.749]]
[[[0.00496, 0.00342, -295, 142, 99.1, 1.8e+308, 4.24e-12, 10, ... [], [], [], []]]
[[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]]
[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
[[295, 295, 295, 292, 291, 291, 289, ... 34.9, 34.9, 34.7, 33.9, 33.9, 33.8, 33.8]]
[[446, 446, 448, 448, 448, 448, 448, 448, ... 448, 451, 453, 448, 455, 457, 447]]
[[615, 615, 585, 583, 583, 583, 583, 583, ... 568, 567, 574, 568, 565, 568, 570]]
[[125, 125, 70.7, 67.2, 68.4, 68.3, 68.3, ... 135, 135, 128, 134, 132, 127, 133]]
[[[1, 3, 5, 4], [1, 3, 5], [1, 3], [1, 3], [1, ... 1], [1], [1], [1], [1], [1], [1]]]
[[4000, 4000, 4000, 4000, 4000, 4000, 4000, ... 4000, 4000, 4000, 4000, 4000, 4000]]
[[7.03e+07, 7.03e+07, 7.03e+07, 7.03e+07, ... 5.5e+07, 5.5e+07, 5.5e+07, 5.5e+07]]
CPU times: user 180 ms, sys: 12.4 ms, total: 192 ms
Wall time: 247 ms

>>> %%time
... for attr in dir(f.events.tracks):
...     print(getattr(f.events.tracks, attr))
...
[[99.1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
[[0.0369, 0.0369, 0.0369, 0.0351, 0.033, ... 0.242, -0.181, 0.409, 0.49, -0.296]]
[[-0.487, -0.487, -0.487, -0.485, -0.491, ... 0.903, -0.638, 0.627, 0.447, -0.594]]
[[-0.873, -0.873, -0.873, -0.874, -0.871, ... -0.749, -0.663, -0.749, -0.749]]
[[[0.00496, 0.00342, -295, 142, 99.1, 1.8e+308, 4.24e-12, 10, ... [], [], [], []]]
[[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]]
[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
[[295, 295, 295, 292, 291, 291, 289, ... 34.9, 34.9, 34.7, 33.9, 33.9, 33.8, 33.8]]
[[446, 446, 448, 448, 448, 448, 448, 448, ... 448, 451, 453, 448, 455, 457, 447]]
[[615, 615, 585, 583, 583, 583, 583, 583, ... 568, 567, 574, 568, 565, 568, 570]]
[[125, 125, 70.7, 67.2, 68.4, 68.3, 68.3, ... 135, 135, 128, 134, 132, 127, 133]]
[[[1, 3, 5, 4], [1, 3, 5], [1, 3], [1, 3], [1, ... 1], [1], [1], [1], [1], [1], [1]]]
[[4000, 4000, 4000, 4000, 4000, 4000, 4000, ... 4000, 4000, 4000, 4000, 4000, 4000]]
[[7.03e+07, 7.03e+07, 7.03e+07, 7.03e+07, ... 5.5e+07, 5.5e+07, 5.5e+07, 5.5e+07]]
CPU times: user 60.3 ms, sys: 3.05 ms, total: 63.3 ms
Wall time: 66.2 ms

When invoking the Jedi autocompletion for f.events.tracks. through IPython, I get ~20sec:

>>> import IPython

>>> ipy = IPython.get_ipython()

>>> %time ipy.Completer.all_completions("f.events.tracks.")
CPU times: user 17.7 s, sys: 2.03 s, total: 19.7 s
Wall time: 21 s
['f.events.tracks.dir_x',
 'f.events.tracks.dir_y',
 'f.events.tracks.dir_z',
 'f.events.tracks.E',
 'f.events.tracks.fitinf',
 'f.events.tracks.id',
 'f.events.tracks.len',
 'f.events.tracks.lik',
 'f.events.tracks.pos_x',
 'f.events.tracks.pos_y',
 'f.events.tracks.pos_z',
 'f.events.tracks.rec_stages',
 'f.events.tracks.rec_type',
 'f.events.tracks.t']

>>> %time ipy.Completer.all_completions("f.events.tracks.")
CPU times: user 18.6 s, sys: 2.16 s, total: 20.7 s
Wall time: 22.6 s
['f.events.tracks.dir_x',
 'f.events.tracks.dir_y',
 'f.events.tracks.dir_z',
 'f.events.tracks.E',
 'f.events.tracks.fitinf',
 'f.events.tracks.id',
 'f.events.tracks.len',
 'f.events.tracks.lik',
 'f.events.tracks.pos_x',
 'f.events.tracks.pos_y',
 'f.events.tracks.pos_z',
 'f.events.tracks.rec_stages',
 'f.events.tracks.rec_type',
 'f.events.tracks.t']

If I uninstall jedi completely, I get 800ms for the first invoke and ~4ms for consecutive calls to the TAB completion:

>>> %time ipy.Completer.all_completions("f.events.tracks.")
CPU times: user 777 ms, sys: 21.2 ms, total: 798 ms
Wall time: 828 ms
['f.events.tracks.E',
 'f.events.tracks.arrays',
 'f.events.tracks.dir_x',
 'f.events.tracks.dir_y',
 'f.events.tracks.dir_z',
 'f.events.tracks.fitinf',
 'f.events.tracks.id',
 'f.events.tracks.len',
 'f.events.tracks.lik',
 'f.events.tracks.ndim',
 'f.events.tracks.pos_x',
 'f.events.tracks.pos_y',
 'f.events.tracks.pos_z',
 'f.events.tracks.rec_stages',
 'f.events.tracks.rec_type',
 'f.events.tracks.t']

>>> %time ipy.Completer.all_completions("f.events.tracks.")
CPU times: user 4.28 ms, sys: 680 µs, total: 4.96 ms
Wall time: 4.49 ms
['f.events.tracks.E',
 'f.events.tracks.arrays',
 'f.events.tracks.dir_x',
 'f.events.tracks.dir_y',
 'f.events.tracks.dir_z',
 'f.events.tracks.fitinf',
 'f.events.tracks.id',
 'f.events.tracks.len',
 'f.events.tracks.lik',
 'f.events.tracks.ndim',
 'f.events.tracks.pos_x',
 'f.events.tracks.pos_y',
 'f.events.tracks.pos_z',
 'f.events.tracks.rec_stages',
 'f.events.tracks.rec_type',
 'f.events.tracks.t']
tamasgal

comment created time in 2 days

issue commentdavidhalter/jedi

How to intercept or disable Jedi completely for specific objects/classes?

Maybe I forgot to mention but the main problem is also that hitting TAB takes the same time always. If it was just a 30sec hang for the very first invocation, we might be able to live with it but it's every time at least 30sec (and way longer for larger files).

tamasgal

comment created time in 2 days

issue commentdavidhalter/jedi

How to intercept or disable Jedi completely for specific objects/classes?

That's very fast:

>>> %time dir(f.events.tracks)
CPU times: user 3.29 ms, sys: 32 µs, total: 3.32 ms
Wall time: 3.37 ms
['E',
 'dir_x',
 'dir_y',
 'dir_z',
 'fitinf',
 'id',
 'len',
 'lik',
 'pos_x',
 'pos_y',
 'pos_z',
 'rec_stages',
 'rec_type',
 't']
tamasgal

comment created time in 2 days

issue commentdavidhalter/jedi

How to intercept or disable Jedi completely for specific objects/classes?

How long does dir(f.events.tracks) take if you do not invoke Jedi the first time?

tamasgal

comment created time in 2 days

issue closeddavidhalter/jedi

Improper Syntax Validation - Jedi - SyntaxError: cannot delete starred - Python39/lib/logging/__init__.py - Line 1034

Originally filed by @kathleenwest : https://github.com/microsoft/vscode-python/issues/16174

Jedi is a static analysis tool for Python that is typically used in IDEs/editors plugins (VS Code). This line of code is falsely marked as having a syntax error. https://github.com/python/cpython/blob/1f2e3088f3c097b5bde69bbd63dfcd0852d31984/Lib/logging/init.py#L1034

Environment data

Version: 1.56.0 (user setup) Commit: cfa2e218100323074ac1948c885448fdf4de2a7f Date: 2021-05-04T22:09:06.405Z Electron: 12.0.4 Chrome: 89.0.4389.114 Node.js: 14.16.0 V8: 8.9.255.24-electron.0 OS: Windows_NT x64 10.0.19042

Python 3.9.4 ms-python.python: v2021.4.765268190 .venv Python39/lib/logging/init.py jedi

Expected behaviour

Pass/Validate Syntax at Line https://github.com/python/cpython/blob/1f2e3088f3c097b5bde69bbd63dfcd0852d31984/Lib/logging/init.py#L1034 del t, v, tb

Actual behaviour

See Picture Here https://bugs.python.org/file50021/PythonError.jpg

Documented Originally Described Here https://bugs.python.org/issue44064

{ "resource": "/C:/Users/kathl/AppData/Local/Programs/Python/Python39/lib/logging/init.py", "owner": "generated_diagnostic_collection_name#0", "severity": 8, "message": "SyntaxError: cannot delete starred", "source": "jedi", "startLineNumber": 1030, "startColumn": 17, "endLineNumber": 1030, "endColumn": 29 }

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Use the Logger (example) logging.info('I am going to cause a syntax error in VS Code using jedi')

Logs

Python39/lib/logging/init.py

{ "resource": "/C:/Users/kathl/AppData/Local/Programs/Python/Python39/lib/logging/init.py", "owner": "generated_diagnostic_collection_name#0", "severity": 8, "message": "SyntaxError: cannot delete starred", "source": "jedi", "startLineNumber": 1030, "startColumn": 17, "endLineNumber": 1030, "endColumn": 29 }

closed time in 2 days

karthiknadig

issue commentdavidhalter/jedi

Improper Syntax Validation - Jedi - SyntaxError: cannot delete starred - Python39/lib/logging/__init__.py - Line 1034

I can reproduce this with parso 0.8.1:

$ python3.9 -c "import jedi; print(jedi.Script('del t, v, tb\n').get_syntax_errors())"
[<SyntaxError from=(1, 0) to=(1, 12)>]

However parso 0.8.2 does not have this error:

$ python3.9 -c "import jedi; print(jedi.Script('del t, v, tb\n').get_syntax_errors())"
[]

So I guess the solution is to upgrade parso :)

karthiknadig

comment created time in 2 days

issue closeddavidhalter/jedi

SyntaxError non-default argument follows default argument false negative

Hey folks,

I'm on Jedi 0.18.0 and using VSCode specifically. I just noticed that Jedi is flagging the following function signature as a:

SyntaxError: non-default argument follows default argument

signature:

def f(*args, blah):
    pass

closed time in 2 days

mzjp2

issue commentdavidhalter/jedi

SyntaxError non-default argument follows default argument false negative

This should be fixed with parso 0.8.2. Upgrade and retry :)

mzjp2

comment created time in 2 days

issue openeddavidhalter/jedi

Improper Syntax Validation - Jedi - SyntaxError: cannot delete starred - Python39/lib/logging/__init__.py - Line 1034

Originally filed here: https://github.com/microsoft/vscode-python/issues/16174

Jedi is a static analysis tool for Python that is typically used in IDEs/editors plugins (VS Code). This line of code is falsely marked as having a syntax error. https://github.com/python/cpython/blob/1f2e3088f3c097b5bde69bbd63dfcd0852d31984/Lib/logging/init.py#L1034

Environment data

Version: 1.56.0 (user setup) Commit: cfa2e218100323074ac1948c885448fdf4de2a7f Date: 2021-05-04T22:09:06.405Z Electron: 12.0.4 Chrome: 89.0.4389.114 Node.js: 14.16.0 V8: 8.9.255.24-electron.0 OS: Windows_NT x64 10.0.19042

Python 3.9.4 ms-python.python: v2021.4.765268190 .venv Python39/lib/logging/init.py jedi

Expected behaviour

Pass/Validate Syntax at Line https://github.com/python/cpython/blob/1f2e3088f3c097b5bde69bbd63dfcd0852d31984/Lib/logging/init.py#L1034 del t, v, tb

Actual behaviour

See Picture Here https://bugs.python.org/file50021/PythonError.jpg

Documented Originally Described Here https://bugs.python.org/issue44064

{ "resource": "/C:/Users/kathl/AppData/Local/Programs/Python/Python39/lib/logging/init.py", "owner": "generated_diagnostic_collection_name#0", "severity": 8, "message": "SyntaxError: cannot delete starred", "source": "jedi", "startLineNumber": 1030, "startColumn": 17, "endLineNumber": 1030, "endColumn": 29 }

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Use the Logger (example) logging.info('I am going to cause a syntax error in VS Code using jedi')

Logs

Python39/lib/logging/init.py

{ "resource": "/C:/Users/kathl/AppData/Local/Programs/Python/Python39/lib/logging/init.py", "owner": "generated_diagnostic_collection_name#0", "severity": 8, "message": "SyntaxError: cannot delete starred", "source": "jedi", "startLineNumber": 1030, "startColumn": 17, "endLineNumber": 1030, "endColumn": 29 }

created time in 2 days

issue openeddavidhalter/jedi

SyntaxError non-default argument follows default argument false negative

Hey folks,

I'm on Jedi 0.18.0 and using VSCode specifically. I just noticed that Jedi is flagging the following function signature as a:

SyntaxError: non-default argument follows default argument

signature:

def f(*args, blah):
    pass

created time in 3 days

push eventdavidhalter/jedi

Dan Rosén

commit sha 41652507b3de645a8a4329299e8e40bff68c8da7

Fix grammar in features.rst

view details

push time in 3 days

PR merged davidhalter/jedi

Fix grammar in features.rst
+1 -1

2 comments

1 changed file

danr

pr closed time in 3 days