No buffer shown for netrw

Say I have the following directory listing:
.
├── a
├── b
├── c
└── dir
    ├── a2
    ├── b2
    └── c2

1 directory, 6 files

I open everything with vim *:

I get my files and the dir/ listing as expected. But if I change to the dir buffer, the dir/ option in the tabline isn't highlighted.

I assume this is because that buffer is listed as "no name". Is this something that's actually possible to fix? If there's no buffer name, I can imagine that with multiple directories open it might not be possible to work out which was highlighted.

It uses the buffer number, not the buffer name. I have no idea how this situation can happen. What does :echo buftabline#user_buffers() say? And :echo winbufnr(0) when you’re in the netrw buffer?

:echo buftabline#user_buffers() shows [1, 2, 3, 4]
:echo winbufnr(0) shows 5

Ohhh, I think I remember now… this is one of these bizarro aspects of netrw. When you open a directory, netrw creates an unlisted unnamed alternative buffer for it and renders the directory into that buffer, and then (if I still have the details right) intercepts switches into the regular (and named) buffer and flips you over to the rendered version in the alternative buffer. This is not something that can be handled without specific support for netrw… and I think I didn’t find a way to detect it reliably at the time (my memory is really hazy at this point…).
I vaguely remember this being among the things that drove me to write readdir – thinking that this has to be doable in a less crazy way.

Okay, that would make sense, so netrw is in buffer 4 but is randomly also working in buffer 5 somehow?
If you're saying the easiest way to fix this is to use readdir, then fair enough, I'll try it out!

Well buffer 4 has the directory name but there is nothing in it. And buffer 5 has no name and is not listed but has the directory contents in it. And when you switch to buffer 4, netrw forces you into buffer 5.
I must admit that after having written readdir and run into the same design issues, I can now appreciate why netrw chose this design. I addressed those issues by modifying the buffer name instead, but that creates a variety of other design problems that I then had to work around. I’m not wild about either design.
The fundamental problem is that in Vim, no two buffers can have the same name. So if you render a directory into the buffer directly named after the directory, you cannot have two directory browser buffers showing the same directory. E.g. if you are browsing your home directory in one buffer and ~/.vim/ in the other, you cannot go up one directory in the ~/.vim/ buffer because you already have ~/ open in another buffer.
In readdir I reacted to this by setting buftype to nofile to divorce the buffer name from the filesystem, and then adding a unique ID to it. That way multiple readdir buffers can never have the same name even when they’re showing the same directory. But then this has to be undone to open a file, and also, changing the name of a buffer interacts a little weirdly with later opening a file into that same buffer, so I had to find a workaround for that, etc etc.
In netrw they solved all this by doing this alternative unlisted buffer dance instead. In some ways this is less crazy – using multiple buffers isolates the state of each of them, so it’s simpler and more robust in some ways. But the bodge is also more visible to the user.
 But under Vim’s constraint that buffer names must be unique, I can’t think of any better alternative.

Hmm, could you just switch buffers when the user tries to cd into a directory that is already open in another buffer? If I have Buffer 1 open at ~, and Buffer 2 open at ~/.vim, and I try to open .. in Buffer 2, you could just leave Buffer 2 as is and switch me into Buffer 1. Or would that not work?
Also, in readdir is there a way to open a file without closing the directory buffer? Put another way, is there a way to open multiple files from a single readdir buffer? I was thinking something like <S-Enter>.

You can hit o on a file to open it in a new buffer, or o to open it into a new tab. Other operations are not yet supported but I intend to add them.
Switching buffers does work – it’s what readdir does when you try to open an already-open file. But I found it rather disorienting for directories because your navigation actions suddenly affect a different directory browser than the one you started with. It would only make sense if you could never change directory within a browser but only open directories, as new buffers. That would make some amount of sense, even… but navigating around your filesystem would quickly accumulate lots of open directory buffers. Dunno if that would really be usable.


Request: Item Descriptions & Repair Rolls

Hello again,
My party and I have now fully transitioned over from 5e to BH2e. We loved our first session, however, there were a few sticking points.

Item descriptions - We would love to be able to either click on or mouse over and item/weapon in the inventory and have the information become visible. Many of the items we create have effects and abilities, and remembering them all is a challenge. Is this something that could be added?

Repair rolls - currently, repair rolls need to be done manually. This is a bit of an inconvenience, especially as usage dice rolls are done automatically. Is there any way that, when a player clicks the repair button, the roll-over mechanic for armour is done in the background and the result is pushed to the chat?

Thank you so much for making this system, my party and I love it so far and would love to see these implemented to make this infinitely more smooth for everyone's play.
Thanks a million,
Andy

The first of these is relatively straight forward but will take a fair bit of work. The second one I'm not clean on, can you provide a more detailed description of what it is that is causing the issue?

Hey,
Thanks for looking at this. I would be more than happy to elaborate.
From what I understand, the armour repair rolls are currently just decremented when you click the lightning bolt icon, tool tipped as "Break Die" button. This is fine as it reduces the number of total dice and makes sense to be manually done, as it is player choice.
The issue is, when you have a rest and repair the broken armour dice (D6), you roll the armour dice (D6) to do so. A value one or under the armours AV, the dice is broken permanently until it is repaired. If all the armour dice are broken, the armour is destroyed. For reference, this is on p.g. 10 of the rule book under Armour.
I hope this clears things up for you, any more questions please ask away.
Andy

Okay, having thought about this a little more the armour thing adds a level of complication I'm not happy with. There are two primary aspects of concern...

Having read back through the armour rules they indicate that, when rolling to repair armour dice after a rest, the total you're aiming for is the total on your main suit of armour. Helmets and shields "add +1 each to the pool size, they do not modify the armours AV value in any way.". That means I'd have to be able to pick out what your 'suit' of armour is from all of your armour items and there isn't currently a mechanism for doing this. Though I could introduce one I'm not sure that's a good idea as it would mean filtering helmets and shields out as separate entities in some way.
The rules also state that a die that fails the armour repair roll is "Broken permanently". This introduces a new state for an armour die that I'd have to record and take into account in the functionality.

Looking at these two points I think these are fundamentally the reason why I implemented the armour die system the way it is. What's there is simple and gives full control. I'll think about it a little more but my feeling at the moment is that it's not worth introducing this complication.

Hey,
Thanks for getting back to me about it. Really happy you gave it some thought. Totally understandable. Running through it like that does sound like a bunch of work that would possibly break things as they are.
On the first idea, though, the item descriptions. Would that be something you would be comfortable working on? No pressure if not.
Thanks a bunch,
Andy

Yeah, the item descriptions is a fine request and I've already done that on other systems I've created. I've already ported that work over and I'm just waiting to see if I can think of something else to add in before going for a release with it. Just to clarify, the descriptions you are looking for is primarily on equipment items (i.e. weapons, armour and general equipment)?

Hey, that's spot on! That way we can look at the abilities each weapon may have easier than opening up the compendium etc.
Cheers for all of this :)

As an alternative;
Please consider adding a simple tracker for armour die to the character sheet and allowing the player to keep track themselves of the number of armour die they have available.
It would also be nice if you could track whether a piece of armor is "broken" on the character sheet.

I'd also be interested in the artwork for the item also being visible with the description if it would fit (this doesn't feel like a separate request, but happy to raise it as one)


Updated angular-search to GA

Q
A

Bug fix?
yes

New feature?
yes

New sample?
no

What's in this Pull Request?
Upgraded the sample to GA.
Added fixes for minor bugs like _spPageContextInfo is undefined
Updated the angular $http methods to make it compliant to v1.6

@gautamdsheth,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Hi Gautam,
this seems to have some issues since it's also overriding code/readme files of other samples and updating them in wrong ways. This means that we can't merge this as such, since it would cause mistakes in the code.


BUTAI

BUTAI created by<EMAIL_ADDRESS>on 2018-05-05 18:52:21

<EMAIL_ADDRESS>replied, Butai?
â€œA Ngiradebar a mesa tia el kliokl me ng chotekelii a butai er ngii el mo tuobed.â€
â€œMeng mlarngii oruer el chom tit? A kuker le cholebo tial butai el mcheltekill er ngiiâ€
Children descendants or something?
Japanese

<EMAIL_ADDRESS>replied, Children, offspring i donâ€™t know if itâ€™s Japanese as butai in Japanese
means stage and buta is pig.

<EMAIL_ADDRESS>replied, butai- Â mostly used when talking about piglets, but people use it when talking about bunch of kids or group of them.
Emails/html
|
|  --- Write ABOVE THIS LINE to reply ---
Ulang Ngiruchelbad posted a new comment on BUTAI :
Children, offspring i donâ€™t know if itâ€™s Japanese as butai in Japanesemeans stage and buta is pig. View this on DebugleStop receiving email notifications about this item.  |
|

<EMAIL_ADDRESS>replied, Yep, a group just tagging along.

w -o J butai n. A group (typically refers to piglets and other young animals [including human children]).


Update build.gradle

Spring Boot version upgrade in build.gradle

Hi @jeschkies ! Should I close the pull request ?
Thanks

I'm sorry. I didn't get notified. Let me take a look.

Hello @jeschkies ,
Applied the changes. Please check :)


Implement NullMarginModel for Live Trading

Expected Behavior
Live trading should lean on the brokerage margin limitations and not impose them in LEAN.
Actual Behavior
LEAN models restrict brokerage margin.
Potential Solution

Improve option margin models
and Implement null margin model to disable restrictions for live trading.

Reproducing the Problem
Live trading straddles.
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues

Are there any updates on this request? Implementing a NullMarginModel will open up a much wider array of options strategies that can be deployed via QuantConnect. Thank you!

This would be very valuable to me as well.

+1

Has this issue been resolved? Is there a way to turn off margin limitations for options?

Has this issue been resolved? Is there a way to turn off margin limitations for options?

Very interested in this!

Confirm if same or different to ConstantBuyingPowerModel
If same; then add a shim NullMarginModel with default 0.001 (tiny incase account currency BTC)
Add an example algorithm using it.
https://github.com/QuantConnect/Lean/blob/master/Common/Securities/ConstantBuyingPowerModel.cs


Plugin install gui

Depends on #1965 so review/merge that one first.
Modifies the command retrieval to retrieve only active commands (this way only active commands are shown in the GUI).
Makes sure that when Qiita starts, the plugins are called so they register their commands.
The call to create types need to be idempotent, instead of failing. So I changed it here.

Changes Unknown when pulling 9baf42500d626a907ee9458a587579bb3833eff2 on josenavas:plugin-install-gui into ** on biocore:plugin-installation**.

Changes Unknown when pulling a2ecb013224c6c8c8a89ecef42dbda8c4fd739ed on josenavas:plugin-install-gui into ** on biocore:plugin-installation**.

Changes Unknown when pulling a2ecb013224c6c8c8a89ecef42dbda8c4fd739ed on josenavas:plugin-install-gui into ** on biocore:plugin-installation**.

Changes Unknown when pulling 66717070fcac8a814ed5ec3d981c2a1889433161 on josenavas:plugin-install-gui into ** on biocore:plugin-installation**.

Thanks @josenavas

Changes Unknown when pulling 66717070fcac8a814ed5ec3d981c2a1889433161 on josenavas:plugin-install-gui into ** on biocore:plugin-installation**.


Cannot import "_psutil_linux" with Python 3.11 and WSL2 ( Ubuntu 22.04)

Applies To

[X] Notebooks (.ipynb files)
[X] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
throws errors as described in issue title when click run section button
VS Code Version
1.72.2
Jupyter Extension Version
v2022.9.1202862440
Jupyter logs
info 07:17:52.617: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23./usr/bin/python3.11./usr/bin/python3.11.-m#ipykernel_launcher (Python Path: , EnvType: Global, EnvName: '', Version: 3.11.0) for '/mnt/c/projects/gdrl/notebooks/chapter_02/chapter-02.ipynb' (disableUI=false)
info 07:17:52.617: Computing working directory for resource '/mnt/c/projects/gdrl/notebooks/chapter_02/chapter-02.ipynb'
info 07:17:52.620: Got env vars ourselves faster /usr/bin/python3.11 with env var count 42 in 0ms
info 07:17:52.622: Process Execution: > /usr/bin/python3.11 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
> /usr/bin/python3.11 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
info 07:17:52.625: Got env vars ourselves faster /usr/bin/python3.11 with env var count 42 in 1ms
info 07:17:52.625: Got env vars ourselves faster /usr/bin/python3.11 with env var count 42 in 0ms
info 07:17:52.628: Process Execution: > /usr/bin/python3.11 -m ipykernel_launcher --ip=<IP_ADDRESS> --stdin=9051 --control=9049 --hb=9048 --Session.signature_scheme="hmac-sha256" --Session.key=b"2928af81-23f1-44b5-9279-b24e6c38b389" --shell=9050 --transport="tcp" --iopub=9052 --f=/home/jack/.local/share/jupyter/runtime/kernel-v2-1328BXk624imwb9.json
> /usr/bin/python3.11 -m ipykernel_launcher --ip=<IP_ADDRESS> --stdin=9051 --control=9049 --hb=9048 --Session.signature_scheme="hmac-sha256" --Session.key=b"2928af81-23f1-44b5-9279-b24e6c38b389" --shell=9050 --transport="tcp" --iopub=9052 --f=/home/jack/.local/share/jupyter/runtime/kernel-v2-1328BXk624imwb9.json
info 07:17:52.628: Process Execution: cwd: /mnt/c/projects/gdrl/notebooks/chapter_02
cwd: /mnt/c/projects/gdrl/notebooks/chapter_02
info 07:17:52.682: Got empty env vars with python /usr/bin/python3.11 in 62ms
info 07:17:52.682: Got empty env vars with python /usr/bin/python3.11 in 57ms
info 07:17:52.682: Got empty env vars with python /usr/bin/python3.11 in 57ms
info 07:17:52.713: ipykernel version & path 6.16.2, ~/.local/lib/python3.11/site-packages/ipykernel/__init__.py for /usr/bin/python3.11
warn 07:17:52.826: StdErr from Kernel Process Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>

warn 07:17:52.826: StdErr from Kernel Process     from ipykernel import kernelapp as app
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>
    from .ipkernel import IPythonKernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>
    from .comm import CommManager
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>
    from .comm import *  # noqa
    ^^^^^^^^^^^^^^^^^^^
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>
    from ipykernel.kernelbase import Kernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>
    import psutil
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>
    from . import _pslinux as _psplatform
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>
    from . import _psutil_linux as cext
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)

error 07:17:52.854: Disposing kernel process due to an error [o [Error]: The kernel died. Error: Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>
    from .ipkernel import IPythonKernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>
    from .comm import CommManager
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>
    from .comm import *  # noqa
    ^^^^^^^^^^^^^^^^^^^
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>
    from ipykernel.kernelbase import Kernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>
    import psutil
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>
    from . import _pslinux as _psplatform
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>
    from . import _psutil_linux as cext
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)... View Jupyter [log](command:jupyter.viewOutput) for further details.
	at ChildProcess.<anonymous> (/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/out/extension.node.js:2:2194951)
	at ChildProcess.emit (node:events:538:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/temp/jupyter/kernels/python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23/kernel.json',
      interpreterPath: '/usr/bin/python3.11',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23',
      argv: [Array],
      language: 'python',
      executable: 'python',
      display_name: 'Python 3.11.0 64-bit',
      metadata: [Object],
      env: {}
    },
    interpreter: {
      id: '/usr/bin/python3.11',
      sysPrefix: '/usr',
      envType: 'Global',
      envName: '',
      architecture: 3,
      sysVersion: '3.11.0 (main, Oct 24 2022, 19:56:13) [GCC 11.2.0]',
      version: [Object],
      displayName: 'Python 3.11.0 64-bit',
      detailedDisplayName: 'Python 3.11.0 64-bit',
      uri: [p]
    },
    id: '.jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23./usr/bin/python3.11./usr/bin/python3.11.-m#ipykernel_launcher'
  },
  exitCode: 1,
  stdErr: 'Traceback (most recent call last):\n' +
    '  File "<frozen runpy>", line 198, in _run_module_as_main\n' +
    '  File "<frozen runpy>", line 88, in _run_code\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>\n' +
    '    from ipykernel import kernelapp as app\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>\n' +
    '    from .ipkernel import IPythonKernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>\n' +
    '    from .comm import CommManager\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>\n' +
    '    from .comm import *  # noqa\n' +
    '    ^^^^^^^^^^^^^^^^^^^\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>\n' +
    '    from ipykernel.kernelbase import Kernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>\n' +
    '    import psutil\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>\n' +
    '    from . import _pslinux as _psplatform\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>\n' +
    '    from . import _psutil_linux as cext\n' +
    "ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)\n"
}
error 07:17:52.854: Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>
    from .ipkernel import IPythonKernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>
    from .comm import CommManager
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>
    from .comm import *  # noqa
    ^^^^^^^^^^^^^^^^^^^
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>
    from ipykernel.kernelbase import Kernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>
    import psutil
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>
    from . import _pslinux as _psplatform
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>
    from . import _psutil_linux as cext
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)

info 07:17:52.854: Dispose Kernel process 616.
error 07:17:52.855: Kernel Launcher. launch, Class name = r, completed in 235ms, has a falsy return value, Arg 1: {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/temp/jupyter/kernels/python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23/kernel.json","interpreterPath":"/usr/bin/python3.11","isRegisteredByVSC":"registeredByNewVersionOfExt","name":"python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","executable":"python","display_name":"Python 3.11.0 64-bit","metadata":{"interpreter":{"path":"/usr/bin/python3.11"}},"env":{}},"interpreter":{"id":"/usr/bin/python3.11","sysPrefix":"/usr","envType":"Global","envName":"","architecture":3,"sysVersion":"3.11.0 (main, Oct 24 2022, 19:56:13) [GCC 11.2.0]","version":{"raw":"3.11.0","major":3,"minor":11,"patch":0,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.11.0 64-bit","detailedDisplayName":"Python 3.11.0 64-bit","uri":{"$mid":1,"fsPath":"/usr/bin/python3.11","external":"file:///usr/bin/python3.11","path":"/usr/bin/python3.11","scheme":"file"}},"id":".jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23./usr/bin/python3.11./usr/bin/python3.11.-m#ipykernel_launcher"}, Arg 2: 60000, Arg 3: "/mnt/c/projects/gdrl/notebooks/chapter_02/chapter-02.ipynb", Arg 4: "/mnt/c/projects/gdrl/notebooks/chapter_02", Arg 5: <argument cannot be serialized for logging> [o [Error]: The kernel died. Error: Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>
    from .ipkernel import IPythonKernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>
    from .comm import CommManager
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>
    from .comm import *  # noqa
    ^^^^^^^^^^^^^^^^^^^
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>
    from ipykernel.kernelbase import Kernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>
    import psutil
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>
    from . import _pslinux as _psplatform
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>
    from . import _psutil_linux as cext
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)... View Jupyter [log](command:jupyter.viewOutput) for further details.
	at ChildProcess.<anonymous> (/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/out/extension.node.js:2:2194951)
	at ChildProcess.emit (node:events:538:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/temp/jupyter/kernels/python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23/kernel.json',
      interpreterPath: '/usr/bin/python3.11',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23',
      argv: [Array],
      language: 'python',
      executable: 'python',
      display_name: 'Python 3.11.0 64-bit',
      metadata: [Object],
      env: {}
    },
    interpreter: {
      id: '/usr/bin/python3.11',
      sysPrefix: '/usr',
      envType: 'Global',
      envName: '',
      architecture: 3,
      sysVersion: '3.11.0 (main, Oct 24 2022, 19:56:13) [GCC 11.2.0]',
      version: [Object],
      displayName: 'Python 3.11.0 64-bit',
      detailedDisplayName: 'Python 3.11.0 64-bit',
      uri: [p]
    },
    id: '.jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23./usr/bin/python3.11./usr/bin/python3.11.-m#ipykernel_launcher'
  },
  exitCode: 1,
  stdErr: 'Traceback (most recent call last):\n' +
    '  File "<frozen runpy>", line 198, in _run_module_as_main\n' +
    '  File "<frozen runpy>", line 88, in _run_code\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>\n' +
    '    from ipykernel import kernelapp as app\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>\n' +
    '    from .ipkernel import IPythonKernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>\n' +
    '    from .comm import CommManager\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>\n' +
    '    from .comm import *  # noqa\n' +
    '    ^^^^^^^^^^^^^^^^^^^\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>\n' +
    '    from ipykernel.kernelbase import Kernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>\n' +
    '    import psutil\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>\n' +
    '    from . import _pslinux as _psplatform\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>\n' +
    '    from . import _psutil_linux as cext\n' +
    "ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)\n"
}
error 07:17:52.855: Failed to connect raw kernel session: Error: The kernel died. Error: Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>
    from .ipkernel import IPythonKernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>
    from .comm import CommManager
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>
    from .comm import *  # noqa
    ^^^^^^^^^^^^^^^^^^^
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>
    from ipykernel.kernelbase import Kernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>
    import psutil
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>
    from . import _pslinux as _psplatform
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>
    from . import _psutil_linux as cext
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)... View Jupyter [log](command:jupyter.viewOutput) for further details.
warn 07:17:52.856: Error occurred while trying to start the kernel, options.disableUI=false [o [Error]: The kernel died. Error: Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>
    from .ipkernel import IPythonKernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>
    from .comm import CommManager
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>
    from .comm import *  # noqa
    ^^^^^^^^^^^^^^^^^^^
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>
    from ipykernel.kernelbase import Kernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>
    import psutil
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>
    from . import _pslinux as _psplatform
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>
    from . import _psutil_linux as cext
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)... View Jupyter [log](command:jupyter.viewOutput) for further details.
	at ChildProcess.<anonymous> (/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/out/extension.node.js:2:2194951)
	at ChildProcess.emit (node:events:538:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/temp/jupyter/kernels/python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23/kernel.json',
      interpreterPath: '/usr/bin/python3.11',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23',
      argv: [Array],
      language: 'python',
      executable: 'python',
      display_name: 'Python 3.11.0 64-bit',
      metadata: [Object],
      env: {}
    },
    interpreter: {
      id: '/usr/bin/python3.11',
      sysPrefix: '/usr',
      envType: 'Global',
      envName: '',
      architecture: 3,
      sysVersion: '3.11.0 (main, Oct 24 2022, 19:56:13) [GCC 11.2.0]',
      version: [Object],
      displayName: 'Python 3.11.0 64-bit',
      detailedDisplayName: 'Python 3.11.0 64-bit',
      uri: [p]
    },
    id: '.jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23./usr/bin/python3.11./usr/bin/python3.11.-m#ipykernel_launcher'
  },
  exitCode: 1,
  stdErr: 'Traceback (most recent call last):\n' +
    '  File "<frozen runpy>", line 198, in _run_module_as_main\n' +
    '  File "<frozen runpy>", line 88, in _run_code\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>\n' +
    '    from ipykernel import kernelapp as app\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>\n' +
    '    from .ipkernel import IPythonKernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>\n' +
    '    from .comm import CommManager\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>\n' +
    '    from .comm import *  # noqa\n' +
    '    ^^^^^^^^^^^^^^^^^^^\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>\n' +
    '    from ipykernel.kernelbase import Kernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>\n' +
    '    import psutil\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>\n' +
    '    from . import _pslinux as _psplatform\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>\n' +
    '    from . import _psutil_linux as cext\n' +
    "ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)\n"
}
warn 07:17:52.857: Kernel Error, context = start [o [Error]: The kernel died. Error: Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>
    from .ipkernel import IPythonKernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>
    from .comm import CommManager
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>
    from .comm import *  # noqa
    ^^^^^^^^^^^^^^^^^^^
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>
    from ipykernel.kernelbase import Kernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>
    import psutil
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>
    from . import _pslinux as _psplatform
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>
    from . import _psutil_linux as cext
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)... View Jupyter [log](command:jupyter.viewOutput) for further details.
	at ChildProcess.<anonymous> (/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/out/extension.node.js:2:2194951)
	at ChildProcess.emit (node:events:538:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/temp/jupyter/kernels/python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23/kernel.json',
      interpreterPath: '/usr/bin/python3.11',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23',
      argv: [Array],
      language: 'python',
      executable: 'python',
      display_name: 'Python 3.11.0 64-bit',
      metadata: [Object],
      env: {}
    },
    interpreter: {
      id: '/usr/bin/python3.11',
      sysPrefix: '/usr',
      envType: 'Global',
      envName: '',
      architecture: 3,
      sysVersion: '3.11.0 (main, Oct 24 2022, 19:56:13) [GCC 11.2.0]',
      version: [Object],
      displayName: 'Python 3.11.0 64-bit',
      detailedDisplayName: 'Python 3.11.0 64-bit',
      uri: [p]
    },
    id: '.jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23./usr/bin/python3.11./usr/bin/python3.11.-m#ipykernel_launcher'
  },
  exitCode: 1,
  stdErr: 'Traceback (most recent call last):\n' +
    '  File "<frozen runpy>", line 198, in _run_module_as_main\n' +
    '  File "<frozen runpy>", line 88, in _run_code\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>\n' +
    '    from ipykernel import kernelapp as app\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>\n' +
    '    from .ipkernel import IPythonKernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>\n' +
    '    from .comm import CommManager\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>\n' +
    '    from .comm import *  # noqa\n' +
    '    ^^^^^^^^^^^^^^^^^^^\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>\n' +
    '    from ipykernel.kernelbase import Kernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>\n' +
    '    import psutil\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>\n' +
    '    from . import _pslinux as _psplatform\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>\n' +
    '    from . import _psutil_linux as cext\n' +
    "ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)\n"
}
info 07:17:52.857: Got env vars ourselves faster /usr/bin/python3.11 with env var count 42 in 0ms
info 07:17:52.859: Process Execution: > /usr/bin/python3.11 -c "import ipykernel"
> /usr/bin/python3.11 -c "import ipykernel"
info 07:17:52.931: Got empty env vars with python /usr/bin/python3.11 in 74ms
info 07:17:52.956: Dispose Kernel '/mnt/c/projects/gdrl/notebooks/chapter_02/chapter-02.ipynb' associated with '/mnt/c/projects/gdrl/notebooks/chapter_02/chapter-02.ipynb'
error 07:17:52.957: Error in execution [o [Error]: The kernel died. Error: Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>
    from .ipkernel import IPythonKernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>
    from .comm import CommManager
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>
    from .comm import *  # noqa
    ^^^^^^^^^^^^^^^^^^^
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>
    from ipykernel.kernelbase import Kernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>
    import psutil
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>
    from . import _pslinux as _psplatform
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>
    from . import _psutil_linux as cext
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)... View Jupyter [log](command:jupyter.viewOutput) for further details.
	at ChildProcess.<anonymous> (/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/out/extension.node.js:2:2194951)
	at ChildProcess.emit (node:events:538:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/temp/jupyter/kernels/python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23/kernel.json',
      interpreterPath: '/usr/bin/python3.11',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23',
      argv: [Array],
      language: 'python',
      executable: 'python',
      display_name: 'Python 3.11.0 64-bit',
      metadata: [Object],
      env: {}
    },
    interpreter: {
      id: '/usr/bin/python3.11',
      sysPrefix: '/usr',
      envType: 'Global',
      envName: '',
      architecture: 3,
      sysVersion: '3.11.0 (main, Oct 24 2022, 19:56:13) [GCC 11.2.0]',
      version: [Object],
      displayName: 'Python 3.11.0 64-bit',
      detailedDisplayName: 'Python 3.11.0 64-bit',
      uri: [p]
    },
    id: '.jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23./usr/bin/python3.11./usr/bin/python3.11.-m#ipykernel_launcher'
  },
  exitCode: 1,
  stdErr: 'Traceback (most recent call last):\n' +
    '  File "<frozen runpy>", line 198, in _run_module_as_main\n' +
    '  File "<frozen runpy>", line 88, in _run_code\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>\n' +
    '    from ipykernel import kernelapp as app\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>\n' +
    '    from .ipkernel import IPythonKernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>\n' +
    '    from .comm import CommManager\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>\n' +
    '    from .comm import *  # noqa\n' +
    '    ^^^^^^^^^^^^^^^^^^^\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>\n' +
    '    from ipykernel.kernelbase import Kernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>\n' +
    '    import psutil\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>\n' +
    '    from . import _pslinux as _psplatform\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>\n' +
    '    from . import _psutil_linux as cext\n' +
    "ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)\n"
}
error 07:17:52.957: Error in execution (get message for cell) [o [Error]: The kernel died. Error: Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>
    from .ipkernel import IPythonKernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>
    from .comm import CommManager
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>
    from .comm import *  # noqa
    ^^^^^^^^^^^^^^^^^^^
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>
    from ipykernel.kernelbase import Kernel
  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>
    import psutil
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>
    from . import _pslinux as _psplatform
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>
    from . import _psutil_linux as cext
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)... View Jupyter [log](command:jupyter.viewOutput) for further details.
	at ChildProcess.<anonymous> (/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/out/extension.node.js:2:2194951)
	at ChildProcess.emit (node:events:538:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/jack/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1202862440/temp/jupyter/kernels/python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23/kernel.json',
      interpreterPath: '/usr/bin/python3.11',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3110jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23',
      argv: [Array],
      language: 'python',
      executable: 'python',
      display_name: 'Python 3.11.0 64-bit',
      metadata: [Object],
      env: {}
    },
    interpreter: {
      id: '/usr/bin/python3.11',
      sysPrefix: '/usr',
      envType: 'Global',
      envName: '',
      architecture: 3,
      sysVersion: '3.11.0 (main, Oct 24 2022, 19:56:13) [GCC 11.2.0]',
      version: [Object],
      displayName: 'Python 3.11.0 64-bit',
      detailedDisplayName: 'Python 3.11.0 64-bit',
      uri: [p]
    },
    id: '.jvsc74a57bd0ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23./usr/bin/python3.11./usr/bin/python3.11.-m#ipykernel_launcher'
  },
  exitCode: 1,
  stdErr: 'Traceback (most recent call last):\n' +
    '  File "<frozen runpy>", line 198, in _run_module_as_main\n' +
    '  File "<frozen runpy>", line 88, in _run_code\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>\n' +
    '    from ipykernel import kernelapp as app\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 51, in <module>\n' +
    '    from .ipkernel import IPythonKernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 17, in <module>\n' +
    '    from .comm import CommManager\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/__init__.py", line 1, in <module>\n' +
    '    from .comm import *  # noqa\n' +
    '    ^^^^^^^^^^^^^^^^^^^\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/comm/comm.py", line 12, in <module>\n' +
    '    from ipykernel.kernelbase import Kernel\n' +
    '  File "/home/jack/.local/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 35, in <module>\n' +
    '    import psutil\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 102, in <module>\n' +
    '    from . import _pslinux as _psplatform\n' +
    '  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 26, in <module>\n' +
    '    from . import _psutil_linux as cext\n' +
    "ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/lib/python3/dist-packages/psutil/__init__.py)\n"
}
info 07:17:52.957: Got env vars ourselves faster /usr/bin/python3.11 with env var count 42 in 0ms
info 07:17:52.959: Process Execution: > /usr/bin/python3.11 -c "import ipykernel"
> /usr/bin/python3.11 -c "import ipykernel"
info 07:17:53.050: Got empty env vars with python /usr/bin/python3.11 in 93ms

Coding Language and Runtime Version
Python 3.11 x64 on WSL2 Ubuntu 22.04 x64
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
N/A or Not sure

Thanks for filing this isuse,
Based on the logs it looks like there a problem with the Python enviornment,
i.e psutils isn't getting loaded correctly.
See here for others running into similar issues
https://github.com/pytest-dev/pytest-cloud/issues/24
https://access.redhat.com/solutions/6964764
I'm not entirely sure what's going on however this isn't an issue with the Jupyer extension.

Please could you confirm you can use Jupyter in this Python Environment
Optionally try installing psutils manually as follows /usr/bin/python3.11  -m pip install psutil --user

Let me know how this goes.
Once again, this doesn't look like a problem with the extension, but more like a problem with the enviroinment

python3.11 -m jupyter notebook running no problem on WSL2 terminal
psutil already installed.

the problem persists.
thx

just found that somehow python3.11 invokes psutil for 3.10, after cleaning it up, everything is fine now. thx.


error showing while opening uncommon file extensions

Neovim version (nvim -v | head -n1)
0.8 nightly
Operating system/version
macOS 12
How to reproduce the issue
Plugin and fold works great for common file types (javascript, json, html etc)
but, on opening a file of a uncommon/unknown extension (i.e: .huskyrc, .dockerignore),  it immediately errors out with the message below
Expected behavior
I don't expect the fold to work on these files, but at least the plugin should not throw error
Actual behavior
Error executing vim.schedule lua callback: UnhandledPromiseRejection with the reason:
...re/nvim/site/pack/packer/start/nvim-ufo/lua/ufo/fold.lua:112: ...ck/packer/start/nvim-ufo/lua/ufo/provider/treesitter.lua:95: UfoFallbackException
stack traceback:
        ...re/nvim/site/pack/packer/start/nvim-ufo/lua/ufo/fold.lua:45: in function <Anonymous:26>

can't reproduce, please provider min.lua

I guess you set
        provider_selector = function(bufnr, filetype, buftype)
            return {'lsp', 'treesitter'}
        end,

lsp and treesitter are main provider, fallback provider is only indent  for now.

setting to just
provider_selector = function()
   return {  "indent" }
end,

works for me
was looking at the line of code that was throwing error in treesitter.lua
local parser = parsers.get_parser(bufnr)
    if not parser then
      hasProviders[ft] = false
      error('UfoFallbackException')
end

isn't the issue my .dockerignore file has no associated TS parser so it throws, is that error throwing necessary


renewable subscription suddenly cancelled

Version of react-native-iap
3.3.6
Version of react-native
0.60.0
Platforms you faced the error (IOS or Android or both?)
Android Only
Expected behavior
Renewable Subscription
Actual behavior
We have user experiencing some strange issue. The issue is that we have a monthly renewable subscription plan, and during this two months some users who were in the middle of the subscription suddenly received an email which said that their subscription was cancelled automatically, and we also received refund report. May I know am I missing anything which may cause this issue? Thank you.
Tested environment (Emulator? Real Device?)
Customer Problem
Steps to reproduce the behavior
Unknown

The reason of the above problem is that I did not call acknowledgePurchaseAndroid after purchasing, thank you.

I also want to leave a comment here to help anyone who forget to call the acknowledgePurchaseAndroid function in app. If you have the purchase record with the purchase token in server, you can use googleapi to acknowledge the receipt from server.

I didn't forget to add the acknowledgePurchaseAndroid method, even though I got the same issue. My live users have subscribed to the product and after some time or days, the membership was auto cancelled and received an email from Google that "money was refunded and membership cancelled" even if the users did not unsubscribe.
Can anyone please look into this?
Thank you.

If this still happens on the latest version, please create a ticket with all the details and I'll take a look. in the latest library, callingfinishTransactions takes care of the acknowledgment depending on the type of product


neonime: update extVersionCode

next time just push to the same pr, don't open a new PR for every commit 😂


Safety documentation

I've developed a crate for my bachelor's thesis to make working with unsafe code a little bit safer.
It works by annotating unsafe functions with the preconditions that need to be upheld for their safety.
A call to an annotated function will fail to compile, unless it is assured at the call site that the preconditions hold.
Assuring this uses another attribute at the call site.
This has two main advantages:

It is documented in the code why a piece of unsafe code is safe.
This documentation is partially checked by the compiler. If the conditions that need to be upheld change, it can be noticed right away.

I think that secstr could benefit from such safety annotations.
If you're interested, I'd be happy to prepare a pull request to add them (as a dev-dependency).
While doing so, I'd also be going over all unsafe code in secstr to find out whether its usage is safe.
If you're not interested, I'd appreciate it, if you could briefly let me know why, as that would be valuable feedback for my thesis.

I saw the crate yesterday on /r/rust, it is pretty cool :)
From quickly looking at this crate again, seems like all the uses of unsafe are calls to the standard library, libc, or libsodium — I don't think any of them have pre annotations?
But according to #15 maybe some of our API should be unsafe — I guess that can be annotated.
So yeah, please do make a PR, that would be good.

I don't think any of them have pre annotations?

Not directly, but those can be added using the extern_crate attribute.

But according to #15 maybe some of our API should be unsafe  — I guess that can be annotated.

Do you want me to change that in the PR then? And would you want the pre annotations to be part of your public API (behind a feature flag)?

Do you want me to change that in the PR then?

Sure, go ahead. I don't currently use this crate tbh, I could give you committer access if you want.

And would you want the pre annotations to be part of your public API (behind a feature flag)?

Yes! (I didn't even think about feature flags, I thought they would always be mandatory haha)

I could give you committer access if you want

I think I'd prefer to open a PR. That way there's a higher chance that a mistake that I might have made is found.
I think I'll leave off the assure attributes on the FFI functions, since I don't know enough about those to really verify that they're safe.
Unfortunately I realized that adding preconditions to the function SecBox::zero_out wouldn't directly be possible in the general case, because of a current limitation in pre for the stable compiler that does not allow preconditions for functions in impl blocks. I could either make it a freestanding function taking a &mut SecBox argument or leave off the preconditions and just write the "Safety" section in the documentation - your choice.
Working on this also made me aware of some things that pre really should support (such as cfg_attr attributes), so I'll have to add these first.


Remove serde-hjson transitive dependency

serde-hjson crate is not maintained anymore
With removing this dependency we also remove duplicate of old serde
Also in new version of config crate hjson also removed

Or maybe we want only toml config?

Thanks for this!


Fix pytest.raises usage for pytest 5

This PR fixes #288, i.e. the pytest.raises related fails that appeared with the pytest 5 release.
I have changed from err or exc to expinfo to make it clear(er) that it's an an ExceptionInfo object, not an Exception object. This is following the variable name pytest uses in its docs: https://docs.pytest.org/en/latest/assert.html#assertions-about-expected-exceptions
@bsipocz - I would suggest to revert #287 for now, and only then merge this in. Assigning to you.

Thanks @cdeil!


Improve the test suite setup time by caching the python package repository

Description
The slow setup times of the test suite were holding me back as well. So I decided to fix it.
closes #4618
Self Check:

[x] Attached issue to pull request
[x] Changelog entry
[x] Type annotations are present
[x] Code is clear and sufficiently documented
[x] No (preventable) type errors (check using make mypy or make mypy-diff)
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation

Reviewer Checklist:

[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Code is clear and sufficiently documented
[ ] Correct, in line with design

Processing this pull request

Merged into branches master in 47d26e6a441bcbb3766c688c4891505690b2db58

Processing #4626.


[KAFKA-12635] auto sync consumer offset 0 when translated offset larger than partition end offset

https://issues.apache.org/jira/browse/KAFKA-12635
This issue has been verified and reproduced by some users. Here are the reproduce steps:

Create a topic with 1 partition on the source cluster, with retention.ms set to something short like 10 seconds.
./kafka-topics.sh --bootstrap-server $SOURCE --create --topic myTopic --config 'retention.ms=10000'
Create a consumer that consumes from the topic
./kafka-console-consumer.sh --bootstrap-server $SOURCE --group myConsumer --topic myTopic
Send 100 messages to the topic. These should get consumed by the consumer. Offset for this consumer on source cluster should be 100.
for i in $(seq 1 100); do echo $i; done | ./kafka-console-producer.sh --bootstrap-server $SOURCE --topic myTopic
Wait until the retention policy deletes the records
Start MM2 with source->target.sync.group.offsets.enabled = true
Observe on the target cluster that log-end-offset is 0, offset is 100, and lag is -100.
./kafka-consumer-groups.sh --bootstrap-server $TARGET --describe --group myConsumer

users have verified that the PR is working. Please take the initial review when available cc @ryannedolan  @mimaison  Thanks

Hello team!
@ning2008wisc thank you very much for the bug fix, any update on when we can expect this to be merged to the upstream and released?

Hello! What's the current status of this PR?

I'm having a similar problem. I was looking for a solution to my problem and found here. Please forgive me for expressing my personal opinion and sharing my similar problem.
I believe the consumer offset should be log-end-offset, not 0, when translated offset larger than partition end offset.
(Actually, in the original problem reproduction, log-end-offset is also 0, so the current implementation that resets offset to 0 will be able to be simply replaced with log-end-offset.)
When translated offset larger than partition end offset or lower than partition earliest offset, once the consumer client start in the target cluster, the consumer client will be reset based on "auto.offset.reset(default: latest)" because the broker will return InvalidOffsetException. Then the consumer in the target cluster will duplicate or skip a large number of messages.
In order to avoid automatic reset by the consumer, I believe that the translated offset should stay within the valid log offset(from earliest offset to end offset). So the consumer offset should be log-end-offset, not 0, when translated offset larger than partition end offset.
FYI, in addition to the original problem, I also found another way to reproduce the negative lag caused by the translated offset being larger than the partition end offset. In the following case, the solution is to use log-end-offset(, not 0 because it will lead a large number of duplicate messages) for the translated offset.
0. The topic can hold only 100,000 messages based on retention.bytes.
1. Add 10,000 messages to the topic on the source cluster and consume it by a consumer on the source cluster, then wait for MM2 to synchronize.
     =>
          The source cluster:
                  log: from 1 to 10,000
                  Consumer group offset : 10,000
                  lag: 0
          The target cluster:
                  log: from 1 to 10,000
                  Consumer group offset : 10,000
                  lag: 0
2. Stop MM2 and add 1,000,000 messages to the topic on the source cluster and consume it by a consumer on the source cluster.
     =>
          The source cluster:
                  log: from 910,001 to 1,010,000 (cut by retention.bytes)
                  Consumer group offset : 1,010,000
                  lag: 0
          The target cluster [not changed]:
                  log: from 1 to 10,000
                  Consumer group offset : 10,000
                  lag: 0
3. Restart MM2, then wait for MM2 to synchronize.
     Although this is a timing issue, the problem occurs if the MirrorCheckpointConnector synchronizes the consumer group offset before the MirrorSourceConnector updates the offsetSyncTopic.
     =>
          The source cluster [not changed]:
                  log: from 910,001 to 1,010,000
                  Consumer group offset : 1,010,000
                  lag: 0
          The target cluster:
                  log: from 10,001 to 110,000
                  Consumer group offset : 1,010,000
                  lag: -900,000

Closing, this issue has been fixed in https://github.com/apache/kafka/pull/11748


Use the request path base when creating location header urls

Use the request path base when creating url for the upload location header. The base base is only used for the endpoint based invoker, as this is backwards compatible with the previouse behaviour.
The middleware approach always defined the absolut url which is used, and if there are existing configurations which include the path base this will break the backwards compat.

Thanks for this PR! This seems like a bug on my end. I'll run some tests and merge if everything looks ok 👍
Are you running tusdotnet as a virtual application in IIS or are you routing it through a subfolder in a reverse proxy?

It depends, we deploy via IIS or as Standalone with Krestrel and a reverse proxy. When running in IIS it's ran as virtual application.

Fixed some issues in the PR (see commits above). Still needs some more testing. Test setup used was a nginx reverse proxy running the following config:
  location /tusdotnet {
            proxy_buffering off;
            proxy_pass http://localhost:5008;
        }

The net6 test app was updated to use this path base:
app.UsePathBase("/tusdotnet/");


Entities Module - Include raw entity data

Sample:
{
  "Accounts": [
    {
      "userPrincipalName"<EMAIL_ADDRESS>      "id": "186a8e5b-448d-400e-b306-84d8e551e93e",
      "onPremisesSecurityIdentifier": null,
      "onPremisesDistinguishedName": null,
      "onPremisesDomainName": null,
      "onPremisesSamAccountName": null,
      "onPremisesSyncEnabled": null,
      "mail"<EMAIL_ADDRESS>      "city": "Toronto",
      "state": "ON",
      "country": "CA",
      "department": "Department",
      "jobTitle": "Cloud Title",
      "officeLocation": null,
      "accountEnabled": true,
      "AssignedRoles": [],
      "RawEntity": []
    }
  ],
  "AccountsAllEnriched": true,
  "AccountsInput": 2,
  "AccountsEnriched": 2,
}

While at it, maybe we can do hostname? so far, just pass as-is, later maybe adding info such as AadDeviceId

@piaudonn you can try the version now in 66341bc as well as the new return schema in the same branch.  This version now won't drop the account entity if enrichment fails and will return RawEntity data only for those entities.
I don't believe there's a path where host entities would be dropped, but RawEntity data was added there as well.  In the IP path there is a situation with an IP would be dropped, if Geo Enrichment is selected and Geo Enrichment fails the IP entity would presently be dropped.

@briandelmsft beautiful :) works great, parsing in the module was easy too with the operator I can't pronounce.
Note that since the input is no longer only entities but also a bunf of metadata, shall we call it EnrichedInput instead of Entities?

@piaudonn i agree I think a rename is in order... Enrich-Input is pretty good... i think i'll also move it out of the /Shared and we'll just call this a module since at this point it could potentially stand on its own

@briandelmsft can you pass through the File entity? My FileInisght module works but need to use the Entnties from the incident trigger instead of the EnrichedEntities.

will do, also will pass through domain and URL entities since those would likely be needed at some point

@piaudonn 1780763 contains (untested) support for file, filehash, url and dns domain entity types... RawEntity data only, no enrichment


Add Code of Conduct

what is the change?:
Adding a document linking to the Facebook Open Source Code of Conduct,
for visibility and to meet Github community standards.
why make this change?:
Facebook Open Source provides a Code of Conduct statement for all
projects to follow.
Exposing the COC via a separate markdown file is a standard being
promoted by Github via the Community Profile in order to meet their Open
Source Guide's recommended community standards.
As you can see, adding this file will complete Yoga's Community Profile
checklist and increase the visibility of our COC.
We also added a link to the COC in the CONTRIBUTING doc because folks may miss the separate CODE_OF_CONDUCT document.
test plan:
Viewing it on my branch -

issue:
internal task t23481323

Awesome! Merging as soon as I get into the office


Prepare release 0.2.0 by improving README files for pypi

Checklist

[x] Added a CHANGELOG.rst entry

I will also merge this PR without review in order to compile release 0.2.0.


python2 fails on first run of test.sh

I git pulled the most recent changes. I then created a new vagrant machine, ran setup.sh, then ran test.sh. The Python2 test failed. I ran test.sh a second time and all tests passed. Below is the output.
vagrant@vagrant-ubuntu-trusty-64:~/interop$ ./test.sh
Testing server...
Creating test database for alias 'default'...
................................................................................................................................................................................................................UAS Post Rate (174.986346)
......Server Info Rate (125.038069)
...........Obstacle Info Rate (100.393715)
.........
----------------------------------------------------------------------
Ran 234 tests in 105.419s

OK
Destroying test database for alias 'default'...

=====================================================================

Testing Python 2 client...
EE..............
======================================================================
ERROR: Test getting obstacles.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vagrant/interop/client/interop/client_test.py", line 54, in setUp
    self.client = Client(server, username, password)
  File "/home/vagrant/interop/client/interop/client.py", line 46, in __init__
    'password': password})
  File "/home/vagrant/interop/client/interop/client.py", line 75, in post
    r = self.session.post(self.url + uri, timeout=self.timeout, **kwargs)
  File "/interop/client/venv2/local/lib/python2.7/site-packages/requests/sessions.py", line 508, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/interop/client/venv2/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/interop/client/venv2/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/interop/client/venv2/local/lib/python2.7/site-packages/requests/adapters.py", line 433, in send
    raise ReadTimeout(e, request=request)
ReadTimeout: HTTPConnectionPool(host='localhost', port=80): Read timed out. (read timeout=1)
-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): localhost
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Test getting server info.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vagrant/interop/client/interop/client_test.py", line 54, in setUp
    self.client = Client(server, username, password)
  File "/home/vagrant/interop/client/interop/client.py", line 46, in __init__
    'password': password})
  File "/home/vagrant/interop/client/interop/client.py", line 75, in post
    r = self.session.post(self.url + uri, timeout=self.timeout, **kwargs)
  File "/interop/client/venv2/local/lib/python2.7/site-packages/requests/sessions.py", line 508, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/interop/client/venv2/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/interop/client/venv2/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/interop/client/venv2/local/lib/python2.7/site-packages/requests/adapters.py", line 433, in send
    raise ReadTimeout(e, request=request)
ReadTimeout: HTTPConnectionPool(host='localhost', port=80): Read timed out. (read timeout=1)
-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): localhost
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 16 tests in 5.360s

FAILED (errors=2)

=====================================================================

Testing Python 3 client...
................
----------------------------------------------------------------------
Ran 16 tests in 2.021s

OK

=====================================================================

Testing JavaScript Frontend...
02 11 2015 22:07:37.365:INFO [karma]: Karma v0.13.14 server started at http://localhost:9876/
02 11 2015 22:07:37.372:INFO [launcher]: Starting browser PhantomJS
02 11 2015 22:07:38.120:INFO [PhantomJS 1.9.8 (Linux 0.0.0)]: Connected on socket f8nRvHZczZKPyqeXAAAA with id 9324519
PhantomJS 1.9.8 (Linux 0.0.0): Executed 15 of 15 SUCCESS (0.052 secs / 0.052 secs)

=====================================================================

Server PASSED
Python 2 client FAILED
Python 3 client PASSED
JavaScript Frontend PASSED
vagrant@vagrant-ubuntu-trusty-64:~/interop$ ./test.sh
Testing server...
Creating test database for alias 'default'...
................................................................................................................................................................................................................UAS Post Rate (176.993734)
......Server Info Rate (124.911775)
...........Obstacle Info Rate (100.971334)
.........
----------------------------------------------------------------------
Ran 234 tests in 106.336s

OK
Destroying test database for alias 'default'...

=====================================================================

Testing Python 2 client...
................
----------------------------------------------------------------------
Ran 16 tests in 2.246s

OK

=====================================================================

Testing Python 3 client...
................
----------------------------------------------------------------------
Ran 16 tests in 1.942s

OK

=====================================================================

Testing JavaScript Frontend...
02 11 2015 22:11:12.276:INFO [karma]: Karma v0.13.14 server started at http://localhost:9876/
02 11 2015 22:11:12.283:INFO [launcher]: Starting browser PhantomJS
02 11 2015 22:11:12.622:INFO [PhantomJS 1.9.8 (Linux 0.0.0)]: Connected on socket RQDxMrm31E8oXO8jAAAA with id 35986502
PhantomJS 1.9.8 (Linux 0.0.0): Executed 15 of 15 SUCCESS (0.088 secs / 0.052 secs)

=====================================================================

Server PASSED
Python 2 client PASSED
Python 3 client PASSED
JavaScript Frontend PASSED

Ah, yes. This is a known issue.  The problem is that the shared filesystem that Vagrant is using is really slow. When the tests make the first request, Apache loads the Python server from disk. The Vagrant shared filesystem is so slow that the test request times out before the server is ready to handle it. Once loaded, the server remains in memory and this problem goes away.
I'll work on fixing this.


Unified formatting through clang-format

Is your feature request related to a problem? Please describe.
During PRs developers spend time on making formatting consistent across the project. That takes time and a thing that could be totally automated.
Describe the solution you'd like
Add a .clang-format file that would dictate how files are formatted, and possibly create a hook so that it gets reformatted automatically
Describe alternatives you've considered
I haven't found any formatting engine that would be as good as clang-format. Other IDEs either have their proprietary version or have moved to clang-format
Proposed .clang-format
Language:        Cpp
# BasedOnStyle:  LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands:   true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortLambdasOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
  AfterCaseLabel:  true
  AfterClass:      true
  AfterControlStatement: true
  AfterEnum:       true
  AfterFunction:   true
  AfterNamespace:  false
  AfterObjCDeclaration: true
  AfterStruct:     true
  AfterUnion:      false
  AfterExternBlock: false
  BeforeCatch:     false
  BeforeElse:      true
  BeforeLambdaBody: true
  IndentBraces:    false
  SplitEmptyFunction: false
  SplitEmptyRecord: true
  SplitEmptyNamespace: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit:     100
CommentPragmas:  '^ IWYU pragma:'
CompactNamespaces: true
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: false
DisableFormat:   false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
  - foreach
  - Q_FOREACH
  - BOOST_FOREACH
IncludeBlocks:   Preserve
IncludeCategories:
  - Regex:           '^"(llvm|llvm-c|clang|clang-c)/'
    Priority:        2
    SortPriority:    0
  - Regex:           '^(<|"(gtest|gmock|isl|json)/)'
    Priority:        3
    SortPriority:    0
  - Regex:           '.*'

I have tried this out, and it works for our codebase. The only problem being BeforeLambdaBody is introduced in clang-format 12 I believe, which is yet to be released.

First, I'm a huge supporter of incorporating clang-format. I'm happy to be not a lonely one :)
Have you seen these?

https://github.com/boostorg/gil/pull/87
https://github.com/boostorg/gil/blob/23702f9879e81bb3b08971eb153b199ea56bb0af/example/clang-format/README.md

Perhaps I could submit a PR then to update the file, and the people who want it will just
ln -s $PWD/example/clang-format/.clang-format $PWD/.clang-format ?
I believe that would be a reasonable tradeoff. @lpranam @codejaeger @stefanseefeld what do you think?

I personally give

higher priority to consistent coding style and formatting throughout the whole codebase
lower priority to what particular coding style is used

As long as the coding style makes code readable, compact, horizontally limited, I'm fine with it.
The lack of consistency in GIL, especially in parts of IO, have been annoying, but manual improvements and maintenance cost lots of time. Hence, I'm eager to require use of clang-format, even if I need to trade personal preferences :-)

Perhaps we could try testing it on latest PRs and put it at the root of the project?

I agree with this.  At least we can have consistent styling in new code.

I'd add to the overall discussion this RFC of mine https://trac.osgeo.org/geos/wiki/RFC4 where some details and implications are discussed, including external references, especially three parts of MongoDB story how they managed the "big reformat":

Succeeding With ClangFormat, Part 1: Pitfalls And Planning
Succeeding With ClangFormat, Part 2: The Big Reformat
Succeeding With ClangFormat, Part 3: Persisting The Change

We should give this a try :-)
https://www.youtube.com/watch?v=_EaU3VsDOJM

I am also all in for clang-format.
To avoid introducing a git diff barrier, making difficult to compare code before and after the "big reformat", we recently end-up rewriting the all repos history with git filter-repo. We kept "replace reference" for the old commits so that it did not break the reference to the commits in the master project (and since GIL is a git submodule for Boost we are in the same situation). Note that sometimes clang-format needs to be applied several times (or even does not converge!), aka first run leads some reformating, reapplying leads to more reformating. At least that my experience with this repo.

Once we agree on the definition of .clang-format, I don't mind either exploring the history rewrite option or just swallowing the "big reformat" pill.

In past, I have used git filter-branch --tree-filter to reformate the entire code base while also maintaining the git commit history for blaming but I think this too would require force push and actually rewriting history. I have never used git filter-repo but I suspect it would be doing the same thing and would rewrite the history...

Quoting the git filter-branch doc:

The git filter-repo tool is an alternative to git-filter-branch which does not suffer from these performance problems or the safety problems (mentioned below).

Is there any Boost wide .clang-format that we could use?

@sdebionne

Is there any Boost wide .clang-format that we could use?

No, or I don't know about any, but some individual libraries have some (including us):
/d/boost.win (develop u= origin/develop) $ find . -name .clang-format
./libs/gil/example/clang-format/.clang-format
./libs/graph/.clang-format
./libs/histogram/.clang-format
./libs/multiprecision/.clang-format
./libs/nowide/.clang-format
./libs/numeric/ublas/.clang-format
./libs/outcome/.clang-format
./libs/yap/.clang-format


Change image name from umbr3l-lite.zip to umbrel-.zip

I think this name is a bit neater.
So on a release tag the zip will be called:
umbrel-v1.2.3.zip

On a normal commit it will be:
umbrel-v0.0.4-beta.3-1-g4893c29.zip

Which is:
umbrel-<last tag>-<commits since last tag>-g<commit hash prefix>.zip

Note: I haven't tested this yet, I'll let it run live on GitHub actions to check.

Awesome, thanks. Very clean, I can't tell how for how long this has bothered me too. 😂

Can I enable GitHub Actions builds on PRs?

Yeah, we can (should) do that. It's free, why not haha.

Also umbrel-v1.2.3.zip or umbrel-os-v1.2.3.zip?

umbrel-os-v1.2.3.zip 👍
Because umbrel-v1.2.3.zip can be confused with getumbrel/umbrel

Can you also prettify the default SSH password from umbr3lb0x to something else while you're at it? Trying to think of something funny

Because umbrel-v1.2.3.zip can be confused with getumbrel/umbrel

My thoughts exactly.

Can you also prettify the default SSH password from umbr3lb0x to something else while you're at it? Trying to think of something funny

Yeah, I'll do it in a new PR.

All appears to be working, I can't test .github/workflows/on-tag-only.yml until we actually tag a new release but I think it should work ok.
If it fails for any reason we can just manually upload the release asset and then fix the issue.

Sounds good, nothing in life thrills as much as testing on master. ;)


improve navigation goto another directory than predefined

We need a feature to escape to an other filesystem level, e.g. to a root or home dir.
Currently we have only access to the initial fs_url and not siblings of that url.

implemented in 0.1.2


Mixin error

https://paste.ubuntu.com/p/RwS5QVZwDp/

Please fill the issue template.

JDK 21
OS: Win 11 IoT LTSC 24H2
I downloaded the mod, put it in the mods folder, and got this error
I am using 'Archlight-Fabric' as the core

up


Isochronous adc example

I used https://github.com/hyOzd/serialplot to test the serial output. Works fine with 48 kHz and 2MBaud, but if serial output is not required or the signal is downsampled before transmission, it should operate at the maximum possible sampling rate of 1 MHz. Useful for software oversampling and other DSP stuff :)

Thank you!


Fix several bitstamp API issues

Fix calls to endpoints beginning with "api/".
Allow to get all user_transactions at once (pair is optional!).
Allow to get deposit address and to withdraw BCH.
Add missing withdrawal_requests method.
Remove inexistent withdrawal_request method (withdraw exists already).
Fix transfer_sub_to_main and transfer_main_to_sub endpoints.
Various DRY-ups, clean-ups, code style improvements.

@nlsdfnbch : based on your feedback on my other PRs I kept the args/kwargs in the standardized methods, but removed it when not needed, in the exchange specific methods.
Also, the withdraw/deposit methods were not supporting all cryptos, e.g. BCH was missing. I initially did some logic to check the valid ones, but based on your feedback on cryptopia it seems better not to bother, if the user tries to withdraw an invalid currency, the API will fail and an exception will be thrown.
I noticed that bitcoin and ripple used a different notation (currency entire name, not symbol), but the new ones use the symbol, so like this if bitstamp adds new coins, it should work also for the future ones, unless they become "creative" and change naming convention and become inconsistent.

Actually, python is smart about  its parameters - if you pass pair as a positional argument, but no positional argument is defined in the function signature, it'll automatically assign it to the first explicitly defined kwarg. So, despite having it defined as a keyword argument, you can still call it like so:
b.hourly_ticker('btcusd')

On 8 May 2018 19:42:35 CEST, firepol<EMAIL_ADDRESS>wrote:

firepol commented on this pull request.

         except AttributeError:

           pair = kwargs['pair']

       return self.request('balance/%s/' % pair,

authenticate=True, params=kwargs)

   return self.request('balance/', authenticate=True,

params=kwargs)

           pair = pair

I found a better way: pass
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/Crypto-toolbox/bitex/pull/184#discussion_r186810257

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Hi,
I tried it using this mwethod with kwargs:
def hourly_ticker(self, **kwargs):
"""Return the hourly ticker for the given pair."""
pair = kwargs.get('pair') or ''
return self.request('ticker_hour/' + pair)
In python 3.6 this doesn't work for me:
import bitex
bitstamp = bitex.Bitstamp()
hourly = bitstamp.hourly_ticker('xrpusd').json()
print(hourly)
I get this error:
hourly = bitstamp.hourly_ticker('xrpusd').json()

TypeError: hourly_ticker() takes 1 positional argument but 2 were given
Also, the bitstamp v2 API actually requires the pair, so I really don't see
why not just putting it in the method...
Bitstamp v1 api seems it was done when they were actually offering only
btcusd (thats' why lots of old methods don't need a parameter and actually
offer btcusd as default), super old now, nobody should use it...
On Tue, May 8, 2018 at 8:00 PM, Nils Diefenbach<EMAIL_ADDRESS>wrote:

Actually, python is smart about its parameters - if you pass pair as a
positional argument, but no positional argument is defined in the function
signature, it'll automatically assign it to the first explicitly defined
kwarg. So, despite having it defined as a keyword argument, you can still
call it like so:
b.hourly_ticker('btcusd')

On 8 May 2018 19:42:35 CEST, firepol<EMAIL_ADDRESS>wrote:

firepol commented on this pull request.

except AttributeError:

pair = kwargs['pair']

return self.request('balance/%s/' % pair,
authenticate=True, params=kwargs)
return self.request('balance/', authenticate=True,
params=kwargs)

pair = pair

I found a better way: pass
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/Crypto-toolbox/bitex/pull/184#discussion_r186810257

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Crypto-toolbox/bitex/pull/184#issuecomment-387489654,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABn7PoTzK9NZ19lE7hz7r0LgSxHSJRgtks5twd1IgaJpZM4TgsLT
.

You misunderstood me. Try this:
def foo(bar=None, **kwargs):
    print(bar)

foo("cheese balls")

On 8 May 2018 22:00:34 CEST, firepol<EMAIL_ADDRESS>wrote:

Hi,
I tried it using this mwethod with kwargs:
def hourly_ticker(self, **kwargs):
"""Return the hourly ticker for the given pair."""
pair = kwargs.get('pair') or ''
return self.request('ticker_hour/' + pair)
In python 3.6 this doesn't work for me:
import bitex
bitstamp = bitex.Bitstamp()
hourly = bitstamp.hourly_ticker('xrpusd').json()
print(hourly)
I get this error:
hourly = bitstamp.hourly_ticker('xrpusd').json()
TypeError: hourly_ticker() takes 1 positional argument but 2 were given
Also, the bitstamp v2 API actually requires the pair, so I really don't
see
why not just putting it in the method...
Bitstamp v1 api seems it was done when they were actually offering only
btcusd (thats' why lots of old methods don't need a parameter and
actually
offer btcusd as default), super old now, nobody should use it...
On Tue, May 8, 2018 at 8:00 PM, Nils Diefenbach
<EMAIL_ADDRESS>wrote:

Actually, python is smart about its parameters - if you pass pair as
a
positional argument, but no positional argument is defined in the
function
signature, it'll automatically assign it to the first explicitly
defined
kwarg. So, despite having it defined as a keyword argument, you can
still
call it like so:
b.hourly_ticker('btcusd')

On 8 May 2018 19:42:35 CEST, firepol<EMAIL_ADDRESS>wrote:

firepol commented on this pull request.

except AttributeError:

pair = kwargs['pair']

return self.request('balance/%s/' % pair,
authenticate=True, params=kwargs)
return self.request('balance/', authenticate=True,
params=kwargs)

pair = pair

I found a better way: pass
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:

https://github.com/Crypto-toolbox/bitex/pull/184#discussion_r186810257
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub

https://github.com/Crypto-toolbox/bitex/pull/184#issuecomment-387489654,

or mute the thread

https://github.com/notifications/unsubscribe-auth/ABn7PoTzK9NZ19lE7hz7r0LgSxHSJRgtks5twd1IgaJpZM4TgsLT

.

--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/Crypto-toolbox/bitex/pull/184#issuecomment-387524298

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Aaaah ok I get it now ;)
But I still don't understand what would be the code change to do here.
Let's have a look at the old method:
@check_and_format_pair
def hourly_ticker(self, pair, **kwargs):
    """Return the hourly ticker for the given pair."""
    if pair:
        return self.request('ticker_hour/%s/' % pair, params=kwargs)
    return self.request('api/ticker_hour/')

New method:
@check_and_format_pair
def hourly_ticker(self, pair):
    """Return the hourly ticker for the given pair."""
    return self.request('ticker_hour/' + pair)

I removed kwargs, because this is not a standardized method and also
because no additional parameters are needed here.
The old method supports a call without "pair", but it's wrong: the method
signature should have been pair=None. Anyway, even with fixed signature: If
no pair is given, by default it'll return the hourly ticker for btcusd
using the old API call. Not really needed on my opinion (because it makes
more sense to pass a pair, not just to expect a default, even if the
bitstamp api allows that), thus I cleaned up the code like that.
I removed kwargs also in: eur_usd_conversion_rate(self)
Hope it works for you?
On Tue, May 8, 2018 at 10:50 PM, Nils Diefenbach<EMAIL_ADDRESS>wrote:

You misunderstood me. Try this:
def foo(bar=None, **kwargs):
print(bar)

foo("cheese balls")

On 8 May 2018 22:00:34 CEST, firepol<EMAIL_ADDRESS>wrote:

Hi,
I tried it using this mwethod with kwargs:
def hourly_ticker(self, **kwargs):
"""Return the hourly ticker for the given pair."""
pair = kwargs.get('pair') or ''
return self.request('ticker_hour/' + pair)
In python 3.6 this doesn't work for me:
import bitex
bitstamp = bitex.Bitstamp()
hourly = bitstamp.hourly_ticker('xrpusd').json()
print(hourly)
I get this error:
hourly = bitstamp.hourly_ticker('xrpusd').json()
TypeError: hourly_ticker() takes 1 positional argument but 2 were given
Also, the bitstamp v2 API actually requires the pair, so I really don't
see
why not just putting it in the method...
Bitstamp v1 api seems it was done when they were actually offering only
btcusd (thats' why lots of old methods don't need a parameter and
actually
offer btcusd as default), super old now, nobody should use it...
On Tue, May 8, 2018 at 8:00 PM, Nils Diefenbach
<EMAIL_ADDRESS>wrote:

Actually, python is smart about its parameters - if you pass pair as
a
positional argument, but no positional argument is defined in the
function
signature, it'll automatically assign it to the first explicitly
defined
kwarg. So, despite having it defined as a keyword argument, you can
still
call it like so:
b.hourly_ticker('btcusd')

On 8 May 2018 19:42:35 CEST, firepol<EMAIL_ADDRESS>wrote:

firepol commented on this pull request.

except AttributeError:

pair = kwargs['pair']

return self.request('balance/%s/' % pair,
authenticate=True, params=kwargs)
return self.request('balance/', authenticate=True,
params=kwargs)

pair = pair

I found a better way: pass
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:

https://github.com/Crypto-toolbox/bitex/pull/184#discussion_r186810257
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub

<https://github.com/Crypto-toolbox/bitex/pull/184#issuecomment-387489654
,

or mute the thread

<https://github.com/notifications/unsubscribe-auth/
ABn7PoTzK9NZ19lE7hz7r0LgSxHSJRgtks5twd1IgaJpZM4TgsLT>

.

--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/Crypto-toolbox/bitex/pull/184#issuecomment-387524298

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Crypto-toolbox/bitex/pull/184#issuecomment-387538037,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABn7PloeINafDw8zWvNpPrH7SwHR4FeFks5twgT-gaJpZM4TgsLT
.


Emails should be downcased before saving

Feature
Why is this feature being added?

Emails should be stored in all lowercase in the database.
What should your feature do?
Add a before_save filter to downcase email addresses on the User model.

Hi I'd like to try this one out. Is there any additional information that you think I will need? I noticed that in the user model has two validations for emails should I look to add a validation for this lowercase feature as well?

I've actually been trying to get this setup, but having some issues getting my tests to run. Looks like @sabrown84 is going to take this 1, but I'd love to help on other issues so would still like to resolve the problems I'm having with the tests.
When I run rake test, I get the following error:
rake test
rake aborted!
Bundler::GemNotFound: Could not find nokogiri-1.7.1 in any of the sources

When I bundle install, I then get the following:
Gem::InstallError: nokogiri requires Ruby version < 2.4, >= 2.1.0.
An error occurred while installing nokogiri (1.7.1), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.7.1'` succeeds before bundling.

Any ideas? Thanks for your help.

Ok @ianroberts131 I haven't started setting it up I was just starting to think it through before jumping in. I may run into the same error...

@ianroberts131 - You can run the tests through Docker.  Try this:

Start Docker
run make setup
run make test

Thanks @hpjaj, that got me going in the right direction. Unfortunately, the version of Make installed here, per the CONTRIBUTING.MD file, is one version before a bug I was facing got fixed. Here's the error message I was getting:
C:\Program: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3)

Ultimately was able to get it working by running make via MinGW, like so:
mingw32-make.exe test

Anyway, this isn't really relevant since @sabrown84 is taking this issue, but figured I would report back in case she or anyone else faces the same issue.

Thank you @ianroberts131 and @hpjaj. I thought I would have a similar problem, but I didn't.

np.  Feel free to ping me if you need a hand with anything!  If you're on the OC Slack channel, my handle is @harry

What about tackling this from the frontend? I think it would be easy to accomplish.

@sethbergman - I can't hurt to have a layer of validation on the frontend, but IMO we should have backstopped data integrity insurance in the backend.
@sabrown84 - In case you're interested, here's a similar implementation in the backend.

@hpjaj thank you yes I did see that and I used that, I'm just having trouble with creating a test and getting it to pass that test. I'm really close though.

@sethbergman I'll make a ticket. We should do both.

should remove issues once they are merged so it is easier to see what issues are currently open to be worked on

@DRBragg indeed. We have placeholder text on all PRs that automatically close fixed issues, but sometimes we miss it, if people remove that text.