profile
viewpoint
Jérome Perrin perrinjerome Japan

perrinjerome/mopidy-local-zodb 4

ZODB local library extension for Mopidy http://www.mopidy.com

perrinjerome/cssspriter 2

Simple tool to rewrite a CSS to use sprites in place of images

perrinjerome/music 1

Music player web app for beets.io

perrinjerome/500lines 0

500 Lines or Less

perrinjerome/arduino-mqtt-tutorial 0

A comprehensive tutorial on getting started with MQTT protocol using NodeMCU, MQTTBox and Node-RED

perrinjerome/bk-tools 0

Scripts I wrote to help using MySQL and Percona products.

perrinjerome/buildout 0

Buildout is a deployment automation tool written in and extended with Python

perrinjerome/cloudooo 0

XML-RPC document conversion server

perrinjerome/cmake-language-server 0

CMake LSP Implementation

perrinjerome/d3py 0

a plottling library for python, based on D3

push eventperrinjerome/theia-open

Jérome Perrin

commit sha f5cc5ae4868ac20a36194629a96f25d3192592d6

cli: fix ncurses colors use "default" colors otherwise it's always white on black

view details

Jérome Perrin

commit sha 04c426a093af7148d5628a6708ddc1fff075089d

cli: sleep for shorter delays instead of always waiting 1 seconds starts with 0.1 and increse every loop, in order to decrease the actual delay after closing.

view details

push time in a day

startedsgadrat/super-tilt-bro

started time in 3 days

startedcodemix/ts-sql

started time in 3 days

startedcloudflare/cobaul

started time in 6 days

pull request commentzopefoundation/www.zope.org

zope_secrets/security: fix typo breaking style

great, thank you !

perrinjerome

comment created time in 9 days

PR closed perrinjerome/www.zope.org

zope_secrets/security: fix typo breaking style

In https://www.zope.org/documentation/zope_secrets/security.html#validating-access-to-an-object the style was broken because of this typo

+1 -1

0 comment

1 changed file

perrinjerome

pr closed time in 10 days

PR opened zopefoundation/www.zope.org

zope_secrets/security: fix typo breaking style

In https://www.zope.org/documentation/zope_secrets/security.html#validating-access-to-an-object the style was broken because of this typo

+1 -1

0 comment

1 changed file

pr created time in 10 days

PR opened perrinjerome/www.zope.org

zope_secrets/security: fix typo breaking style

In https://www.zope.org/documentation/zope_secrets/security.html#validating-access-to-an-object the style was broken because of this typo

+1 -1

0 comment

1 changed file

pr created time in 10 days

create barnchperrinjerome/www.zope.org

branch : secrets-security-style

created branch time in 10 days

fork perrinjerome/www.zope.org

The Sphinx sources for https://www.zope.org

fork in 10 days

starteddabeaz/cpython

started time in 10 days

startedsharkdp/hyperfine

started time in 14 days

startedmicrosoft/lsif-node

started time in 16 days

issue commentsourcegraph/sourcegraph

repo-updater crash with gitlab with projects with both id and name

I don't know how we can make the schema accept only name or id while style offering completions. One way I could come with is the following patch, but it looks like a bad workaround.

diff --git a/schema/gitlab.schema.json b/schema/gitlab.schema.json
index febca4e931..d476243b45 100644
--- a/schema/gitlab.schema.json
+++ b/schema/gitlab.schema.json
@@ -68,6 +68,7 @@
         "title": "GitLabProject",
         "additionalProperties": false,
         "anyOf": [{ "required": ["name"] }, { "required": ["id"] }],
+        "maxProperties": 1,
         "properties": {
           "name": {
             "description": "The name of a GitLab project (\"group/name\") to mirror.",
perrinjerome

comment created time in 18 days

issue openedsourcegraph/sourcegraph

repo-updater crash with gitlab with projects with both id and name

  • Sourcegraph version: 3.19.2 <!-- the version of Sourcegraph or "Sourcegraph.com" -->
  • Platform information: <!-- OS version, cloud provider, web browser version, Docker version, etc., depending on the issue -->

Latest release installed locally with:

docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.19.2

Steps to reproduce:

  1. add a repository Manage repositories -> Gitlab Self-Managed 2.enter a json with an entry in projects with both name and id, for example:
{
  "url": "https://gitlab.com",
  "token": "X",
  "projectQuery": [
    "none"
  ],
  "projects": [
    {
      "name": "perrinjerome/music",
      "id": 1969957
    }
  ]
}

Expected behavior:

Probably this should not validate the json schema and saving should not be allowed, at least this should not crash repo-updater component.

Actual behavior:

repo-updater crash:

00:59:35                      repo-updater | panic: invalid args (specify exactly one of id and pathWithNamespace)
00:59:35                      repo-updater | goroutine 862 [running]:
00:59:35                      repo-updater | github.com/sourcegraph/sourcegraph/internal/extsvc/gitlab.(*Client).GetProject(0xc0015cc7e0, 0x1b37260, 0xc0013ad240, 0x1e0f25, 0xc0004a07e0, 0x12, 0xc0013d3c01, 0x1, 0xc001107f78, 0x6f17c0)
00:59:35                      repo-updater |    github.com/sourcegraph/sourcegraph/internal/extsvc/gitlab/projects.go:66 +0x296
00:59:35                      repo-updater | github.com/sourcegraph/sourcegraph/cmd/repo-updater/repos.(*GitLabSource).listAllProjects.func1(0xc00047b0e0, 0xc0010dcd20, 0xc0013ad480, 0x1b37260, 0xc0013ad240, 0xc0010dccc0)
00:59:35                      repo-updater |    github.com/sourcegraph/sourcegraph/cmd/repo-updater/repos/gitlab.go:184 +0x102
00:59:35                      repo-updater | created by github.com/sourcegraph/sourcegraph/cmd/repo-updater/repos.(*GitLabSource).listAllProjects
00:59:35                      repo-updater |    github.com/sourcegraph/sourcegraph/cmd/repo-updater/repos/gitlab.go:181 +0x127
00:59:35                      repo-updater | Terminating repo-updater

created time in 18 days

pull request commentsourcegraph/sourcegraph

Update latest release to 3.19.2

I don't know if that's the right place to report this, but on https://about.sourcegraph.com/get-started/ the version of the image is still 3.19.1

image

uwedeportivo

comment created time in 18 days

issue openedrafaelmaiolla/diff-vscode

How about publishing on open-vsx ?

https://open-vsx.org/ is a vendor neutral repository of vscode extensions that is not limited to vscode (See https://www.eclipse.org/community/eclipse_newsletter/2020/march/1.php for more context).

Would you mind publishing this extension there ? I would love to be able to use this extension from theia .There's a how to you can follow to publish extension yourself https://github.com/eclipse/openvsx/wiki/Publishing-Extensions .

If you prefer, I can also add it to https://github.com/open-vsx/publish-extensions/ so that it gets automatically published.

Thanks in advance !

created time in 20 days

startedrafaelmaiolla/diff-vscode

started time in 20 days

startedperrinjerome/theia-open

started time in 20 days

push eventperrinjerome/buildout

Jürgen Gmach

commit sha e5ddacede223bbeab1af8f2e8bf99bdb2114a0a8

Fix typo.

view details

Laurence Rowe

commit sha 978a6af9e78db44b9db25cb08c7f9d98c24bbc03

Avoid DeprecationWarning: 'U' mode is deprecated Python 3.7 began warning about open's 'U' mode. Universal newline mode (newline=None) is default in Python 3 so avoid specifying it on Python 3.

view details

Marius Gedminas

commit sha 2cf42066fc8238ffe72ce6aeaef0e66b5df13f79

Fix tests Add a RENormalizer so the easy_install.txt will be happy with scripts generated on Python 2 (using open(..., 'U')) and on Python 3 (using just open(...)). This was suggested by @sallner.

view details

Marius Gedminas

commit sha 780af6a638becbc8c38ac404a8bae4b60056305d

Remove deprecation warning suppression Now the deprecation warning itself is fixed, we no longer need to suppress it to have the tests pass.

view details

Reinout van Rees

commit sha ce1d819b5777bb9eb04ab1979c99ed7a3ffe1c1e

Merge pull request #480 from buildout/fix-open-mode Avoid DeprecationWarning: 'U' mode is deprecated (Version 2)

view details

Reinout van Rees

commit sha 799c7d71bbe33e68da8dcaa2e85c7a476bc31115

Added changelog

view details

Reinout van Rees

commit sha a33cb59421881f25f99ec5145c2c2a772cee914c

Preparing release 2.13.2 [ci skip]

view details

Reinout van Rees

commit sha 615c3bd055808d3a276ea6d5a451aaaed1c87037

Back to development: 2.13.3 [ci skip]

view details

Marius Gedminas

commit sha d155e40909ddfa931427a95e45de7519ca56cf7a

Merge pull request #473 from jugmac00/patch-1 Fix typo.

view details

Michael Howitz

commit sha 5aa3e5bda982847e56fb377e272325edc2c8b6d1

Fix DeprecationWarning about MutableMapping. Fixes #484.

view details

Tim Gates

commit sha be26ab1cb9fe1b9ad86cefc4f0f93cdf3f8c21bc

Fix simple typo: expecially -> especially

view details

Reinout van Rees

commit sha e2182e691c41acc8f56119d5ef21a764d9f5e426

Merge pull request #491 from timgates42/bugfix/typo_especially Fix simple typo: expecially -> especially

view details

Godefroid Chapelle

commit sha 00c1df7b7a3f5360b80f527912450b33401b1282

[actions] generate script run buildout and check which files are downloaded and which eggs are installed

view details

Godefroid Chapelle

commit sha b6635825b1c948a92aea3cd663231c72d634c7de

[actions] workflow which uses pypa/setuptools master to generate scripts

view details

Reinout van Rees

commit sha f74af6c5d115fbec7e3282c8559b5a5e38874ec9

Merge pull request #494 from gotcha/master Use Github Actions for smoke tests

view details

Godefroid Chapelle

commit sha 394bb6f2622511ca5e43b39070a528995bc3e2dd

[actions] fix scripts and setuptools-master workflows

view details

Godefroid Chapelle

commit sha 9267aa4095e8e17d134c0284dc70832064b61928

Merge pull request #498 from buildout/gotcha-fixgh [actions] fix scripts and setuptools-master workflows build for 2.7 was broken by new release of more-itertools

view details

Michael Howitz

commit sha 33db4f3e2e8ddcc940e90323b8d04f59b05be327

Fix syntax.

view details

Michael Howitz

commit sha 52469a49a56042fb81ea76cdb8cd5a9cad5c3b70

Pimp Manifest.

view details

Michael Howitz

commit sha 614137e8658c54d646dd61b4dde8c1de49cb6f2d

Preparing release 2.13.3 [ci skip]

view details

push time in 20 days

created tagperrinjerome/theia-open

tag0.1.2

A theia extension to open files from command line

created time in 21 days

push eventperrinjerome/theia-open

Jérome Perrin

commit sha 6f672bf08718317a04acb66b2d465e1912bb329c

tag 0.1.2

view details

push time in 21 days

startedsozu-proxy/sozu

started time in 21 days

push eventperrinjerome/theia-open

Jérome Perrin

commit sha 26eb4ad8f3e4a66da832fb3ad8507ba9ab6cf563

cli: wait for editor to be closed after closing it If editor has unsaved changes we should wait for user to answer the exit confirmation

view details

push time in 21 days

created tagperrinjerome/theia-open

tag0.1.1

A theia extension to open files from command line

created time in 22 days

delete tag perrinjerome/theia-open

delete tag : 0.1.1

delete time in 22 days

push eventperrinjerome/theia-open

Jérome Perrin

commit sha 3e656721c58cbb3d741dd0ef0d65f53694c9f88d

tag 0.1.1

view details

push time in 22 days

created tagperrinjerome/theia-open

tag0.1.1

A theia extension to open files from command line

created time in 22 days

push eventperrinjerome/theia-open

Jérome Perrin

commit sha fa177d56d3683823c3c26ecb60231fc26eb97d2c

fix python packaging

view details

Jérome Perrin

commit sha 71ab671cc6bf4b0a7437401af6f32edca75b3744

fix python package

view details

Jérome Perrin

commit sha 2c65cbbb9d8353a933ecb6dce89bee122d568eb1

fix README

view details

push time in 22 days

create barnchperrinjerome/theia-open

branch : wip

created branch time in 22 days

PublicEvent

push eventperrinjerome/theia-open

Jérome Perrin

commit sha b47c0aba76125a00e3d2bebf3efd68dfa2f8597e

initial revision

view details

push time in 22 days

startedcaptbaritone/webamp

started time in 23 days

push eventzopefoundation/ZODB

Jérome Perrin

commit sha 25f66d34f710679bef37a14f2acf775b5002a726

doc: fix typo _p_changed To manually mark an object modified, `_p_changed` attribute must be set, no `_p_changed__`

view details

push time in 24 days

PR merged zopefoundation/ZODB

doc: fix typo _p_changed

To manually mark an object modified, _p_changed attribute must be set, no _p_changed__

+1 -1

4 comments

1 changed file

perrinjerome

pr closed time in 24 days

pull request commentzopefoundation/ZODB

doc: fix typo _p_changed

Finally after rebasing once more on top of #328 CI is green so let's merge this !

perrinjerome

comment created time in 24 days

push eventperrinjerome/ZODB

Kirill Smelkov

commit sha c1e080520a466d88c2835b7489d01b2dc7e31c2e

interface: Require invalidations to be called with full set of objects and not to skip transactions Currently invalidate documentation is not clear whether it should be called for every transaction and whether it should include full set of objects created/modified by that transaction. Until now this was working relatively well for the sole purpose of invalidating client ZEO cache, because for that particular task it is relatively OK not to include just created objects into invalidation messages, and even to completely skip sending invalidation if transaction only create - not modify - objects. Due to this fact the workings of the client cache was indifferent to the ambiguity of the interface. In 2016 skipping transactions with only created objects was reconsidered as bug and fixed in ZEO5 because ZODB5 relies more heavily on MVCC semantic and needs to be notified about every transaction committed to storage to be able to properly update ZODB.Connection view: https://github.com/zopefoundation/ZEO/commit/02943acd#diff-52fb76aaf08a1643cdb8fdaf69e37802L889-R834 https://github.com/zopefoundation/ZEO/commit/9613f09b However just-created objects were not included into invalidation messages until, hopefully, recently: https://github.com/zopefoundation/ZEO/pull/160 As ZODB is started to be used more widely in areas where it was not traditionally used before, the ambiguity in invalidate interface and the lack of guarantees - for any storage - to be notified with full set of information, creates at least the following problems: - a ZODB client (not necessarily native ZODB/py client) can maintain raw cache for the storage. If such client tries to load an oid at database view when that object did not existed yet, gets "no object" reply and stores that information into raw cache, to properly invalidate the cache it needs an invalidation message from ZODB server that *includes* created object. - tools like `zodb watch` [1,2,3] don't work properly (give incorrect output) if not all objects modified/created by a transaction are included into invalidation messages. - similarly to `zodb watch`, a monitoring tool, that would want to be notified of all created/modified objects, won't see full database-change picture, and so won't work properly without knowing which objects were created. - wendelin.core 2 - which builds data from ZODB BTrees and data objects into virtual filesystem - needs to get invalidation messages with both modified and created objects to properly implement its own lazy invalidation and isolation protocol for file blocks in OS cache: when a block of file is accessed, all clients, that have this block mmaped, need to be notified and asked to remmap that block into particular revision of the file depending on a client's view of the filesystem and database [4,5]. To compute to where a client needs to remmap the block, WCFS server (that in turn acts as ZODB client wrt ZEO/NEO server), needs to be able to see whether client's view of the filesystem is before object creation (and then ask that client to pin that block to hole), or after creation (and then ask the client to pin that block to corresponding revision). This computation needs ZODB server to send invalidation messages in full: with both modified and just created objects. Also: - the property that all objects - both modified and just created - are included into invalidation messages is required and can help to remove `next_serial` from `loadBefore` return in the future. This, in turn, can help to do 2x less SQL queries in loadBefore for NEO and RelStorage (and maybe other storages too): https://github.com/zopefoundation/ZODB/issues/318#issuecomment-657685745 Current state of storages with respect to new requirements: - ZEO: does not skip transactions, but includes only modified - not created - objects. This is fixed by https://github.com/zopefoundation/ZEO/pull/160 - NEO: already implements the requirements in full - RelStorage: already implements the requirements in full, if I understand correctly: https://github.com/zodb/relstorage/blob/3.1.2-1-gaf57d6c/src/relstorage/adapters/poller.py#L28-L145 While editing invalidate documentation, use the occasion to document recently added property that invalidate(tid) is always called before storage starts to report its lastTransaction() ≥ tid - see 4a6b0283 (mvccadapter: check if the last TID changed without invalidation). /cc @jimfulton, @jamadden, @jmuchemb, @vpelletier, @arnaud-fontaine, @gidzit, @klawlf82, @jwolf083 /reviewed-on https://github.com/zopefoundation/ZODB/pull/319 /reviewed-by @dataflake /reviewed-by @jmuchemb [1] https://lab.nexedi.com/kirr/neo/blob/049cb9a0/go/zodb/zodbtools/watch.go [2] https://lab.nexedi.com/kirr/neo/commit/e0d59f5d [3] https://lab.nexedi.com/kirr/neo/commit/c41c2907 [4] https://lab.nexedi.com/kirr/wendelin.core/blob/1efb5876/wcfs/wcfs.go#L94-182 [5] https://lab.nexedi.com/kirr/wendelin.core/blob/1efb5876/wcfs/client/wcfs.h#L20-71

view details

Jérome Perrin

commit sha 1da7a93700bfa53c3558c9033a5ab0701d544f7c

.travis.yml: pin setuptools to 49.6 on pypy3 setutools 50.0.0 does not seem compatible with the pypy3 used on travis.

view details

Jérome Perrin

commit sha aaa7b43654039e8eaea6ba9ed95b7715f244d27e

doc: fix typo _p_changed To manually mark an object modified, `_p_changed` attribute must be set, no `_p_changed__`

view details

push time in 24 days

push eventzopefoundation/ZODB

Jérome Perrin

commit sha 1da7a93700bfa53c3558c9033a5ab0701d544f7c

.travis.yml: pin setuptools to 49.6 on pypy3 setutools 50.0.0 does not seem compatible with the pypy3 used on travis.

view details

push time in 24 days

PR merged zopefoundation/ZODB

.travis.yml: pin setuptools to 49.6 on pypy3

setutools 50.0.0 does not seem compatible with the pypy3 used on travis.

+3 -1

1 comment

1 changed file

perrinjerome

pr closed time in 24 days

pull request commentzopefoundation/ZODB

doc: fix typo _p_changed

I rebased on top of https://github.com/zopefoundation/ZODB/pull/327 to see a green test run before merging, but it seems there was in the meantime a new problem with CI dependencies. I tried to address this in https://github.com/zopefoundation/ZODB/pull/328

perrinjerome

comment created time in a month

pull request commentzopefoundation/ZODB

.travis.yml: pin setuptools to 49.6 on pypy3

https://travis-ci.org/github/zopefoundation/ZODB/jobs/721278991#L217 was a run from last week which succeeded for pyp3, setuptools 49.6.0 was selected. This week the same job https://travis-ci.org/github/zopefoundation/ZODB/jobs/722605925#L214 picks setuptools 50.0.0 with which buildout errors:

$ buildout $BUILOUT_OPTIONS
Traceback (most recent call last):
  File "/home/travis/virtualenv/pypy3.6-7.1.1/bin/buildout", line 5, in <module>
    from zc.buildout.buildout import main
  File "/home/travis/virtualenv/pypy3.6-7.1.1/site-packages/zc/buildout/buildout.py", line 18, in <module>
    import zc.buildout.easy_install
  File "/home/travis/virtualenv/pypy3.6-7.1.1/site-packages/zc/buildout/easy_install.py", line 21, in <module>
    import distutils.errors
  File "/home/travis/virtualenv/pypy3.6-7.1.1/site-packages/_distutils_hack/__init__.py", line 82, in create_module
    return importlib.import_module('._distutils', 'setuptools')
  File "/home/travis/virtualenv/pypy3.6-7.1.1/lib-python/3/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 974, in _gcd_import
  File "<frozen importlib._bootstrap>", line 924, in _sanity_check
SystemError: Parent module 'setuptools' not loaded, cannot perform relative import

I quickly tried pypy v7.3.1 from https://www.pypy.org/download.html and it does not seem to have this problem, so probably once travis ci updates pypy this version pin will no longer be necessary.

perrinjerome

comment created time in a month

PR opened zopefoundation/ZODB

.travis.yml: pin setuptools to 49.6 on pypy3

setutools 50.0.0 does not seem compatible with the pypy3 used on travis.

+3 -1

0 comment

1 changed file

pr created time in a month

create barnchperrinjerome/ZODB

branch : travis-pypy3-setuptools50

created branch time in a month

PR opened python/typeshed

subprocess: make env accept None also on python2

This was made for python3 in https://github.com/python/typeshed/pull/1291 but this is also the case on python2

+3 -3

0 comment

1 changed file

pr created time in a month

create barnchperrinjerome/typeshed

branch : subprocess-py2-env

created branch time in a month

fork perrinjerome/typeshed

Collection of library stubs for Python, with static types

fork in a month

push eventperrinjerome/ZODB

Jérome Perrin

commit sha d08185b3b0a37446fbfa76fea2e2ec1b4226fd70

buildout: pin sphinxcontrib-websupport to < 1.2 on python2 Starting from 1.2.0 sphinxcontrib-websupport officially only supports python3. Since 1.2.4 it depends on sphinxcontrib-serializinghtml which can not even be imported on python2

view details

Jérome Perrin

commit sha 067c9183532c60f8047c3bc8efa688aaa48f4198

buildout: define versions constraints with [versions] For consistency, defined all versions constraints in version section. Also don't mention python34 since ZODB no longer supports python3.4

view details

Jérome Perrin

commit sha b4f233cd83f0b9a6138989b3b1f8f92eeadcfefe

Merge pull request #327 from perrinjerome/doc-sphinx-python3 Fix requirements for sphinx on python2

view details

Jérome Perrin

commit sha ed95ed494e5b940f8e3df3e4136fc474fc728327

doc: fix typo _p_changed To manually mark an object modified, `_p_changed` attribute must be set, no `_p_changed__`

view details

push time in a month

push eventzopefoundation/ZODB

Jérome Perrin

commit sha d08185b3b0a37446fbfa76fea2e2ec1b4226fd70

buildout: pin sphinxcontrib-websupport to < 1.2 on python2 Starting from 1.2.0 sphinxcontrib-websupport officially only supports python3. Since 1.2.4 it depends on sphinxcontrib-serializinghtml which can not even be imported on python2

view details

Jérome Perrin

commit sha 067c9183532c60f8047c3bc8efa688aaa48f4198

buildout: define versions constraints with [versions] For consistency, defined all versions constraints in version section. Also don't mention python34 since ZODB no longer supports python3.4

view details

Jérome Perrin

commit sha b4f233cd83f0b9a6138989b3b1f8f92eeadcfefe

Merge pull request #327 from perrinjerome/doc-sphinx-python3 Fix requirements for sphinx on python2

view details

push time in a month

PR merged zopefoundation/ZODB

Reviewers
Fix requirements for sphinx on python2

Fix errors in test on python2.7 and pypy:

    from sphinxcontrib.serializinghtml.jsonimpl import dumps as dump_json
  File "/home/travis/build/zopefoundation/ZODB/eggs/sphinxcontrib_serializinghtml-1.1.4-py2.7.egg/sphinxcontrib/serializinghtml/__init__.py", line 177
    def setup(app: Sphinx) -> Dict[str, Any]:
                 ^
SyntaxError: invalid syntax
+6 -9

1 comment

1 changed file

perrinjerome

pr closed time in a month

pull request commentzopefoundation/ZODB

Fix requirements for sphinx on python2

Thanks for review @mgedmin ! This is also a zopefoundation repo and I already have a contributor agreement signed, so I guess the "merge your own pull requests" rule is also applied here and I can just go ahead and merge this.

perrinjerome

comment created time in a month

startedhediet/vscode-drawio

started time in a month

startedfgl82/simplemenu

started time in a month

startedgitgitgadget/git

started time in a month

startedPylons/hupper

started time in a month

issue commentopenlawlibrary/pygls

Exception has occurred: Error: Header must provide a Content-Length property.

If vscode communicates with language server by stdout/stdin (which is the default) then it's cricital than the server process does not output random things on stdout otherwise it gets mixed in json-rpc messages.

Does this happen with a language server you are writing ? You should check that you don't have left some debugging print statements, if I remember correctly it causes this kind of errors.

EFFYLYX

comment created time in a month

PR opened zopefoundation/ZODB

Reviewers
Fix requirements for sphinx on python2

Fix errors in test on python2.7 and pypy:

    from sphinxcontrib.serializinghtml.jsonimpl import dumps as dump_json
  File "/home/travis/build/zopefoundation/ZODB/eggs/sphinxcontrib_serializinghtml-1.1.4-py2.7.egg/sphinxcontrib/serializinghtml/__init__.py", line 177
    def setup(app: Sphinx) -> Dict[str, Any]:
                 ^
SyntaxError: invalid syntax
+6 -9

0 comment

1 changed file

pr created time in a month

push eventperrinjerome/ZODB

Jérome Perrin

commit sha d08185b3b0a37446fbfa76fea2e2ec1b4226fd70

buildout: pin sphinxcontrib-websupport to < 1.2 on python2 Starting from 1.2.0 sphinxcontrib-websupport officially only supports python3. Since 1.2.4 it depends on sphinxcontrib-serializinghtml which can not even be imported on python2

view details

Jérome Perrin

commit sha 067c9183532c60f8047c3bc8efa688aaa48f4198

buildout: define versions constraints with [versions] For consistency, defined all versions constraints in version section. Also don't mention python34 since ZODB no longer supports python3.4

view details

push time in a month

push eventperrinjerome/ZODB

Jérome Perrin

commit sha 5f7a555fd0cd4f503a5be1badc59d336231c4839

buildout: define versions constraints with [versions] for consistency, defined all versions constraints in version section

view details

Jérome Perrin

commit sha 7c741cea426e64f779d32c4e5b4eb645862624d2

Revert "doc: pin old sphinx version for python2" This reverts commit 55914ee07f7317ca1b1218a0257573bc8ee34cb7.

view details

push time in a month

pull request commentzopefoundation/ZODB

doc: fix typo _p_changed

Thanks ! I see tests fail building docs, but it does not seem a problem with the changes here but a problem with a python3 only sphinx module. I'm trying to send a pull request for this.

perrinjerome

comment created time in a month

push eventperrinjerome/ZODB

Jérome Perrin

commit sha 88199c56fa8c9652400d04f3b39a62cb432dc31f

WIP

view details

push time in a month

push eventperrinjerome/ZODB

Jérome Perrin

commit sha 55914ee07f7317ca1b1218a0257573bc8ee34cb7

doc: pin old sphinx version for python2 Latest Sphinx depends on sphinxcontrib-serializinghtml which is python3 only. List dependencies with PEP508 environment markers to make python2 stick to an old version of Sphinx which actually supports python2, while letting python3 use latest Sphinx

view details

push time in a month

create barnchperrinjerome/ZODB

branch : doc-sphinx-python3

created branch time in a month

startedmscdex/httpolyglot

started time in a month

pull request commentzopefoundation/ZODB

doc: fix typo _p_changed

I guess this is was typo, it's in the footnotes of https://zodb-docs.readthedocs.io/en/latest/tutorial.html

perrinjerome

comment created time in a month

PR opened zopefoundation/ZODB

doc: fix typo _p_changed

To manually mark an object modified, _p_changed attribute must be set, no _p_changed__

+1 -1

0 comment

1 changed file

pr created time in a month

PR closed perrinjerome/ZODB

doc: fix typo _p_changed

To manually mark an object modified, _p_changed attribute must be set, no _p_changed__

+1 -1

0 comment

1 changed file

perrinjerome

pr closed time in a month

PR opened perrinjerome/ZODB

doc: fix typo _p_changed

To manually mark an object modified, _p_changed attribute must be set, no _p_changed__

+1 -1

0 comment

1 changed file

pr created time in a month

create barnchperrinjerome/ZODB

branch : doc-_p_changed__

created branch time in a month

issue commentpython/mypy

false positive "name not defined" with list comprehension in function arguments default value

Also, this was working before, it seems to be a regression from c610a312853921d09083f7525c183810e4232056

perrinjerome

comment created time in a month

issue openedpython/mypy

false positive "name not defined" with list comprehension in function arguments default value

  • Are you reporting a bug, or opening a feature request?

This is a bug I believe

  • Please insert below the code you are checking with mypy
def a():
  pass

def b(
    bb=[list_comprehension_argument for list_comprehension_argument in "abc" 
          if list_comprehension_argument]
  ):
  pass
  • What is the actual behavior/output?
mypy repro.py
repro.py:5: error: Name 'list_comprehension_argument' is not defined
repro.py:6: error: Name 'list_comprehension_argument' is not defined
Found 2 errors in 1 file (checked 1 source file)
  • What is the behavior/output you expect?

I believe there should be no error reported.

  • What are the versions of mypy and Python you are using? Do you see the same issue after installing mypy from Git master?

this is on mypy from git master, mypy 0.790+dev.2b704df25ca299e6936927be8d41d2ab945cee2a

  • What are the mypy flags you are using? (For example --strict-optional)

This is using the default flags.


This only seem to happens if there's another function like this one, before the function with list comprehension in arguments:

def a():
  pass

When removing this other function or putting it after the one with list comprehension in argument, this false positive is not reported, I mean no error are reported for:

def b(
    bb=[list_comprehension_argument for list_comprehension_argument in "abc" 
          if list_comprehension_argument]
  ):
  pass

def a():
  pass

or

def b(
    bb=[list_comprehension_argument for list_comprehension_argument in "abc" 
          if list_comprehension_argument]
  ):
  pass

created time in a month

startedmholt/conncept

started time in 2 months

PublicEvent

push eventperrinjerome/pyright-playground

Jérome Perrin

commit sha 13d4a7062030048e5b99c7e16a87950a09c080a4

wip

view details

push time in 2 months

push eventperrinjerome/pyright-playground

Jérome Perrin

commit sha c557807730bd0dec9ee06527b5ce32cefc6ef8b6

Fully automate dev setup with Gitpod (#1) This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitHub and GitLab that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click.

view details

push time in 2 months

PR merged perrinjerome/pyright-playground

Fully automate dev setup with Gitpod

This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitHub and GitLab that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click.

+5 -0

0 comment

2 changed files

perrinjerome

pr closed time in 2 months

PR opened perrinjerome/pyright-playground

Fully automate dev setup with Gitpod

This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitHub and GitLab that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click.

+5 -0

0 comment

2 changed files

pr created time in 2 months

push eventperrinjerome/pyright-playground

Jérome Perrin

commit sha 5c16eb73a47f04f9d149854c0df4c4fa7c3b89fb

Fully automate dev setup with Gitpod This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitHub and GitLab that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click.

view details

push time in 2 months

create barnchperrinjerome/pyright-playground

branch : perrinjerome/gitpod-setup

created branch time in 2 months

created tagperrinjerome/vscode-zc-buildout

tagv0.3.0

vscode extension and language server for zc.buildout

created time in 2 months

delete tag perrinjerome/vscode-zc-buildout

delete tag : v0.3.0

delete time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha e623e97c3da0a8539d7bb6c0a6af8bb3c5c48421

parser: don't skip lines containing jinja expressions They can still be parsed as an option=value line, which makes option available for the section.

view details

Jérome Perrin

commit sha 5c570f88e745b949f1accf819f5e15c099ea82dd

diagnostic: tolerate unknown part when extends jinja When extends are defined with some jinja expressions, we don't know all sections, so don't complain about non existing section being listed in parts.

view details

push time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha e623e97c3da0a8539d7bb6c0a6af8bb3c5c48421

parser: don't skip lines containing jinja expressions They can still be parsed as an option=value line, which makes option available for the section.

view details

Jérome Perrin

commit sha 5c570f88e745b949f1accf819f5e15c099ea82dd

diagnostic: tolerate unknown part when extends jinja When extends are defined with some jinja expressions, we don't know all sections, so don't complain about non existing section being listed in parts.

view details

push time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha e19bef443ea2086b07ac02940f02f0b16b36e012

parser: don't skip lines containing jinja expressions They can still be parsed as an option=value line, which makes option available for the section.

view details

Jérome Perrin

commit sha 484469f667f86e6f2afab00e09d041a628a47a65

diagnostic: tolerate unknown part when extends jinja When extends are defined with some jinja expressions, we don't know all sections, so don't complain about non existing section being listed in parts.

view details

push time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha 417896fb3fd021c06f2d65673406fd5dd61f8a2d

parser: don't skip lines containing jinja expressions They can still be parsed as an option=value line, which makes option available for the section.

view details

Jérome Perrin

commit sha 6f592497a0759a11225e959baddafb0827e1c835

WIP: parts OK when extends jinja

view details

push time in 2 months

release perrinjerome/vscode-zc-buildout

v0.3.0

released time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha 4e64bff0664e735632803c99fec87051e2557af5

server: update all dependencies to current versions

view details

Jérome Perrin

commit sha 488b005690f3e087f5825a8bc166930c967b9f09

server: reformat with new yapf version

view details

Jérome Perrin

commit sha a306945e221c3b26ff1c1e827564c91bd6b12cef

support extending http urls

view details

Jérome Perrin

commit sha fecc7b326f67d96a2af1e4eca1266c0f83ec0c25

update vscode extension dependencies

view details

Jérome Perrin

commit sha 41b53be823a66ba3b1bf45e5bee1b5cda8188fe5

Release v0.3.0

view details

push time in 2 months

created tagperrinjerome/vscode-zc-buildout

tagv0.3.0

vscode extension and language server for zc.buildout

created time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha 41b53be823a66ba3b1bf45e5bee1b5cda8188fe5

Release v0.3.0

view details

push time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha 488b005690f3e087f5825a8bc166930c967b9f09

server: reformat with new yapf version

view details

Jérome Perrin

commit sha a306945e221c3b26ff1c1e827564c91bd6b12cef

support extending http urls

view details

Jérome Perrin

commit sha fecc7b326f67d96a2af1e4eca1266c0f83ec0c25

update vscode extension dependencies

view details

push time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha 4e64bff0664e735632803c99fec87051e2557af5

server: update all dependencies to current versions

view details

Jérome Perrin

commit sha 112ad72a0ab1a276a22af12cb8656399a6a475a9

server: reformat with new yapf version

view details

Jérome Perrin

commit sha 7943a9bce50de9258d56842a6370919dec8cf516

support extending http urls

view details

Jérome Perrin

commit sha effe6e66589805a774893a3370b54db589745361

update vscode extension dependencies

view details

push time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha 3133cdfa01e7b20fb8ffe1fc0ec025c7865c9191

update vscode extension dependencies

view details

push time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha bf8c551bee8bc872c1477ece4f78a3e01909befe

server: reformat with new yapf version

view details

Jérome Perrin

commit sha 3039cc9c439dd069fe0fae087f25449ca17e1d2f

support extending http urls

view details

Jérome Perrin

commit sha 11f43fac1a5394c798e068bc85ff0155c9bcbce9

update vscode extension dependencies

view details

push time in 2 months

push eventperrinjerome/vscode-zc-buildout

dependabot[bot]

commit sha 48ccadf5850b9796c466cb1e50d506cf3be1c5c2

build(deps): bump lodash from 4.17.15 to 4.17.19 (#1) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

Jérome Perrin

commit sha 9acb0275afd6c5f9eda2c69450babf59ad69548e

server: update all dependencies to current versions

view details

Jérome Perrin

commit sha 18fe8689e53c175a83c072b6bbc2b74042cb19ea

support extending http urls

view details

Jérome Perrin

commit sha 8a22da68638073b00ec011512a7989d2a1d4357d

update vscode extension dependencies

view details

push time in 2 months

push eventperrinjerome/vscode-zc-buildout

dependabot[bot]

commit sha 48ccadf5850b9796c466cb1e50d506cf3be1c5c2

build(deps): bump lodash from 4.17.15 to 4.17.19 (#1) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

push time in 2 months

PR merged perrinjerome/vscode-zc-buildout

build(deps): bump lodash from 4.17.15 to 4.17.19 dependencies

Bumps lodash from 4.17.15 to 4.17.19. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/lodash/lodash/releases">lodash's releases</a>.</em></p> <blockquote> <h2>4.17.16</h2> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lodash/lodash/commit/d7fbc52ee0466a6d248f047b5d5c3e6d1e099056"><code>d7fbc52</code></a> Bump to v4.17.19</li> <li><a href="https://github.com/lodash/lodash/commit/2e1c0f22f425e9c013815b2cd7c2ebd51f49a8d6"><code>2e1c0f2</code></a> Add npm-package</li> <li><a href="https://github.com/lodash/lodash/commit/1b6c282299f4e0271f932b466c67f0f822aa308e"><code>1b6c282</code></a> Bump to v4.17.18</li> <li><a href="https://github.com/lodash/lodash/commit/a370ac81408de2da77a82b3c4b61a01a3b9c2fac"><code>a370ac8</code></a> Bump to v4.17.17</li> <li><a href="https://github.com/lodash/lodash/commit/1144918f3578a84fcc4986da9b806e63a6175cbb"><code>1144918</code></a> Rebuild lodash and docs</li> <li><a href="https://github.com/lodash/lodash/commit/3a3b0fd339c2109563f7e8167dc95265ed82ef3e"><code>3a3b0fd</code></a> Bump to v4.17.16</li> <li><a href="https://github.com/lodash/lodash/commit/c84fe82760fb2d3e03a63379b297a1cc1a2fce12"><code>c84fe82</code></a> fix(zipObjectDeep): prototype pollution (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4759">#4759</a>)</li> <li><a href="https://github.com/lodash/lodash/commit/e7b28ea6cb17b4ca021e7c9d66218c8c89782f32"><code>e7b28ea</code></a> Sanitize sourceURL so it cannot affect evaled code (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4518">#4518</a>)</li> <li><a href="https://github.com/lodash/lodash/commit/0cec225778d4ac26c2bac95031ecc92a94f08bbb"><code>0cec225</code></a> Fix lodash.isEqual for circular references (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4320">#4320</a>) (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4515">#4515</a>)</li> <li><a href="https://github.com/lodash/lodash/commit/94c3a8133cb4fcdb50db72b4fd14dd884b195cd5"><code>94c3a81</code></a> Document matches* shorthands for over* methods (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4510">#4510</a>) (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4514">#4514</a>)</li> <li>Additional commits viewable in <a href="https://github.com/lodash/lodash/compare/4.17.15...4.17.19">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/~mathias">mathias</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>

+4 -4

0 comment

1 changed file

dependabot[bot]

pr closed time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha e3e9bc9b16d4358282915e5a5917dcf6bb8ee478

support extending http urls

view details

Jérome Perrin

commit sha f846aeeb1e5c0cc4e94c844c884f0210f25069f4

update vscode extension dependencies

view details

push time in 2 months

push eventperrinjerome/vscode-zc-buildout

Jérome Perrin

commit sha 0c38b768a2a53fda0babbec81da8e09059e35b29

Release v0.2.1

view details

Jérome Perrin

commit sha 5e335dcfe1eaeb3acfc7453d8643566c21d08a9b

server: update all dependencies to current versions

view details

Jérome Perrin

commit sha 99938798d88bc15f7c386d5d8f934224607c660d

support extending http urls

view details

push time in 2 months

more