Interactive window not using Active Interpreter  when running a cell

Environment data

Steps to reproduce:

Open the file manualTestFile.py in VSCode
Select conda Interpreter as current environment
On the first cell click Run Cell And All Below
Observes

Actual behaviour
An unexcepted error message "Python 3.9.2 64-bit requires ipykernel to be installed." pops up.

Excepted result
Interactive Window should open, show connection information, and execute cells
Jupyter log
Info 2021-04-26 03:42:28: Loading webview. View is notset
Info 2021-04-26 03:42:28: Loading web view...
Info 2021-04-26 03:42:28: Webview panel created.
Info 2021-04-26 03:42:28: Waiting for jupyter server and web panel ...
Info 2021-04-26 03:42:28: Checking for server existence.
Info 2021-04-26 03:42:28: Checking for server usability.
Info 2021-04-26 03:42:28: Starting notebook server.
Info 2021-04-26 03:42:28: Connecting to history server
Info 2021-04-26 03:42:28: Getting kernel specs for history server
Info 2021-04-26 03:42:28: Launching history server
Info 2021-04-26 03:42:28: Starting Notebook
Info 2021-04-26 03:42:28: findPreferredKernel score for Python 3.9.2 64-bit is 1
Info 2021-04-26 03:42:28: findPreferredKernel score for Python 3.8.5 64-bit ('base': conda) is 1
Info 2021-04-26 03:42:28: Find kernel spec, Class name = D, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Arg 3: {"_isCancelled":false,"_emitter":null}, Return Value: {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"C:\\Users\\vyizh12\\AppData\\Roaming\\jupyter\\kernels\\python392jvsc74a57bd0759c7f225eb6103d05b6052b85a418acc6f601f5328f5590e50c93e379f51487\\kernel.json","interpreterPath":"C:\\Python39-64\\python.exe","name":"python392jvsc74a57bd0759c7f225eb6103d05b6052b85a418acc6f601f5328f5590e50c93e379f51487","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.9.2 64-bit","metadata":{"interpreter":{"sysPrefix":"C:\\Python39-64","envType":"Unknown","envName":"","envPath":"","path":"C:\\Python39-64\\python.exe","architecture":3,"sysVersion":"3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)]","version":{"raw":"3.9.2","major":3,"minor":9,"patch":2,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.9.2 64-bit"}},"env":{}},"interpreter":{"sysPrefix":"C:\\Python39-64","envType":"Unknown","envName":"","envPath":"","path":"C:\\Python39-64\\python.exe","architecture":3,"sysVersion":"3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)]","version":{"raw":"3.9.2","major":3,"minor":9,"patch":2,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.9.2 64-bit"},"id":".python392jvsc74a57bd0759c7f225eb6103d05b6052b85a418acc6f601f5328f5590e50c93e379f51487.python.C:\\Python39-64\\python.exe.Python 3.9.2 64-bit"}
Info 2021-04-26 03:42:28: Generating custom default config at C:\Users\vyizh12\AppData\Local\Temp\e1a1de35-b58c-4dbc-a26d-9f3095228c3b\jupyter_notebook_config.py
Info 2021-04-26 03:42:28: Starting Jupyter Notebook
Starting Jupyter from C:\ProgramData\Anaconda3\python.exe with command line --no-browser --notebook-dir="c:\\Users\\vyizh12\\Downloads\\Test5" --config=C:\Users\vyizh12\AppData\Local\Temp\e1a1de35-b58c-4dbc-a26d-9f3095228c3b\jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 2021-04-26 03:42:28: Process Execution: > C:\ProgramData\Anaconda3\python.exe (daemon) -m jupyter notebook --no-browser --notebook-dir="c:\\Users\\vyizh12\\Downloads\\Test5" --config=C:\Users\vyizh12\AppData\Local\Temp\e1a1de35-b58c-4dbc-a26d-9f3095228c3b\jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> C:\ProgramData\Anaconda3\python.exe (daemon) -m jupyter notebook --no-browser --notebook-dir="c:\\Users\\vyizh12\\Downloads\\Test5" --config=C:\Users\vyizh12\AppData\Local\Temp\e1a1de35-b58c-4dbc-a26d-9f3095228c3b\jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 2021-04-26 03:42:28: Waiting for Jupyter Notebook
Info 2021-04-26 03:42:28: Python Daemon (pid: 9060): Execute rpc method exec_module_observable in DS Daemon
Info 2021-04-26 03:42:28: Python Daemon (pid: 9060): Execute rpc method exec_module_observable from C:\ProgramData\Anaconda3\python.exe
Info 2021-04-26 03:42:28: Python Daemon (pid: 9060): Exec in DS Daemon (observable) jupyter with args ['notebook', '--no-browser', '--notebook-dir="c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"', '--config=C:\\Users\\vyizh12\\AppData\\Local\\Temp\\e1a1de35-b58c-4dbc-a26d-9f3095228c3b\\jupyter_notebook_config.py', '--NotebookApp.iopub_data_rate_limit=10000000000.0']
Info 2021-04-26 03:42:28: Python Daemon (pid: 9060): Starting notebook with args ['--no-browser', '--notebook-dir="c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"', '--config=C:\\Users\\vyizh12\\AppData\\Local\\Temp\\e1a1de35-b58c-4dbc-a26d-9f3095228c3b\\jupyter_notebook_config.py', '--NotebookApp.iopub_data_rate_limit=10000000000.0']
Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): write to stderr: C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5' instead of '"c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"' – or use CUnicode.
  warn(

C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5' instead of '"c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"' – or use CUnicode.
  warn(
Info 2021-04-26 03:42:29: C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5' instead of '"c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"' – or use CUnicode.
  warn(

Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): getting attr for stdout: encoding
Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): getting attr for stdout: encoding
Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): write to stderr: [I 03:42:29.555 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab

[I 03:42:29.555 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab
Info 2021-04-26 03:42:29: C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5' instead of '"c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"' – or use CUnicode.
  warn(
[I 03:42:29.555 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab

Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): write to stderr: [I 03:42:29.556 NotebookApp] JupyterLab application directory is C:\ProgramData\Anaconda3\share\jupyter\lab

[I 03:42:29.556 NotebookApp] JupyterLab application directory is C:\ProgramData\Anaconda3\share\jupyter\lab
Info 2021-04-26 03:42:29: C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5' instead of '"c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"' – or use CUnicode.
  warn(
[I 03:42:29.555 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab
[I 03:42:29.556 NotebookApp] JupyterLab application directory is C:\ProgramData\Anaconda3\share\jupyter\lab

Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): write to stderr: [I 03:42:29.560 NotebookApp] Serving notebooks from local directory: c:\\Users\\vyizh12\\Downloads\\Test5

[I 03:42:29.560 NotebookApp] Serving notebooks from local directory: c:\\Users\\vyizh12\\Downloads\\Test5
Info 2021-04-26 03:42:29: C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5' instead of '"c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"' – or use CUnicode.
  warn(
[I 03:42:29.555 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab
[I 03:42:29.556 NotebookApp] JupyterLab application directory is C:\ProgramData\Anaconda3\share\jupyter\lab
[I 03:42:29.560 NotebookApp] Serving notebooks from local directory: c:\\Users\\vyizh12\\Downloads\\Test5

Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): write to stderr: [I 03:42:29.561 NotebookApp] Jupyter Notebook 6.1.4 is running at:

[I 03:42:29.561 NotebookApp] Jupyter Notebook 6.1.4 is running at:
Info 2021-04-26 03:42:29: C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5' instead of '"c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"' – or use CUnicode.
  warn(
[I 03:42:29.555 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab
[I 03:42:29.556 NotebookApp] JupyterLab application directory is C:\ProgramData\Anaconda3\share\jupyter\lab
[I 03:42:29.560 NotebookApp] Serving notebooks from local directory: c:\\Users\\vyizh12\\Downloads\\Test5
[I 03:42:29.561 NotebookApp] Jupyter Notebook 6.1.4 is running at:

Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): write to stderr: [I 03:42:29.561 NotebookApp] http://localhost:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23

[I 03:42:29.561 NotebookApp] http://localhost:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23
Info 2021-04-26 03:42:29: C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5' instead of '"c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"' – or use CUnicode.
  warn(
[I 03:42:29.555 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab
[I 03:42:29.556 NotebookApp] JupyterLab application directory is C:\ProgramData\Anaconda3\share\jupyter\lab
[I 03:42:29.560 NotebookApp] Serving notebooks from local directory: c:\\Users\\vyizh12\\Downloads\\Test5
[I 03:42:29.561 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 03:42:29.561 NotebookApp] http://localhost:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23

Info 2021-04-26 03:42:29: Process Execution: > C:\ProgramData\Anaconda3\python.exe (daemon) c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py
> C:\ProgramData\Anaconda3\python.exe (daemon) c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py
Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): write to stderr: [I 03:42:29.561 NotebookApp]  or http://<IP_ADDRESS>:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23

[I 03:42:29.561 NotebookApp]  or http://<IP_ADDRESS>:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23
Info 2021-04-26 03:42:29: C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5' instead of '"c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"' – or use CUnicode.
  warn(
[I 03:42:29.555 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab
[I 03:42:29.556 NotebookApp] JupyterLab application directory is C:\ProgramData\Anaconda3\share\jupyter\lab
[I 03:42:29.560 NotebookApp] Serving notebooks from local directory: c:\\Users\\vyizh12\\Downloads\\Test5
[I 03:42:29.561 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 03:42:29.561 NotebookApp] http://localhost:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23
[I 03:42:29.561 NotebookApp]  or http://<IP_ADDRESS>:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23

Info 2021-04-26 03:42:29: Process Execution: > C:\ProgramData\Anaconda3\python.exe (daemon) c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py
> C:\ProgramData\Anaconda3\python.exe (daemon) c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py
Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): write to stderr: [I 03:42:29.561 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

[I 03:42:29.561 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Info 2021-04-26 03:42:29: C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5' instead of '"c:\\\\Users\\\\vyizh12\\\\Downloads\\\\Test5"' – or use CUnicode.
  warn(
[I 03:42:29.555 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda3\lib\site-packages\jupyterlab
[I 03:42:29.556 NotebookApp] JupyterLab application directory is C:\ProgramData\Anaconda3\share\jupyter\lab
[I 03:42:29.560 NotebookApp] Serving notebooks from local directory: c:\\Users\\vyizh12\\Downloads\\Test5
[I 03:42:29.561 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 03:42:29.561 NotebookApp] http://localhost:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23
[I 03:42:29.561 NotebookApp]  or http://<IP_ADDRESS>:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23
[I 03:42:29.561 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

Info 2021-04-26 03:42:29: Python Daemon (pid: 10304): Execute rpc method exec_file in DS Daemon
Info 2021-04-26 03:42:29: Python Daemon (pid: 10304): Execute rpc method exec_file from C:\ProgramData\Anaconda3\python.exe
Info 2021-04-26 03:42:29: Python Daemon (pid: 10304): Exec file c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py with args []
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): Execute rpc method exec_file in DS Daemon
Info 2021-04-26 03:42:29: Python Daemon (pid: 10304): execute file c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): Execute rpc method exec_file from C:\ProgramData\Anaconda3\python.exe
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): Exec file c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py with args []
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): execute file c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py
Info 2021-04-26 03:42:29: Connecting to process for history server
Info 2021-04-26 03:42:29: Creating jupyter server: 5373043b-f4a1-499a-b4b5-52b426253261
Info 2021-04-26 03:42:29: Connecting server 5373043b-f4a1-499a-b4b5-52b426253261 kernelSpec Python 3.9.2 64-bit
Info 2021-04-26 03:42:29: Creating server with settings : {"baseUrl":"http://localhost:8888/","appUrl":"","wsUrl":"ws://localhost:8888/","token":"2550dead9f7d2db3211c25e29130dd963548a23872ac0c23","init":{"cache":"no-store","credentials":"same-origin"}}
Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): write to stderr: [C 03:42:29.580 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///C:/Users/vyizh12/AppData/Roaming/jupyter/runtime/nbserver-9060-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23
     or http://<IP_ADDRESS>:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23

[C 03:42:29.580 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///C:/Users/vyizh12/AppData/Roaming/jupyter/runtime/nbserver-9060-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23
     or http://<IP_ADDRESS>:8888/?token=2550dead9f7d2db3211c25e29130dd963548a23872ac0c23
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): Execute rpc method ping in DS Daemon
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): Execute rpc method ping from C:\ProgramData\Anaconda3\python.exe
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): pinged with hello
Info 2021-04-26 03:42:29: Python Daemon (pid: 10304): Execute rpc method ping in DS Daemon
Info 2021-04-26 03:42:29: Python Daemon (pid: 10304): Execute rpc method ping from C:\ProgramData\Anaconda3\python.exe
Info 2021-04-26 03:42:29: Python Daemon (pid: 10304): pinged with hello
Info 2021-04-26 03:42:29: Python Daemon (pid: 9060): write to stderr: [I 03:42:29.598 NotebookApp] Creating new notebook in /

[I 03:42:29.598 NotebookApp] Creating new notebook in /
Info 2021-04-26 03:42:29: Process Execution: > C:\ProgramData\Anaconda3\python.exe (daemon) c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py
> C:\ProgramData\Anaconda3\python.exe (daemon) c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): Execute rpc method exec_file in DS Daemon
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): Execute rpc method exec_file from C:\ProgramData\Anaconda3\python.exe
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): Exec file c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py with args []
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): execute file c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\vscode_datascience_helpers\getServerInfo.py
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): Execute rpc method ping in DS Daemon
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): Execute rpc method ping from C:\ProgramData\Anaconda3\python.exe
Info 2021-04-26 03:42:29: Python Daemon (pid: 3748): pinged with hello
Info 2021-04-26 03:42:29: installMissingDependencies C:\Python39-64\python.exe
Info 2021-04-26 03:42:29: Cached data exists getEnvironmentVariables, <No Resource>
Info 2021-04-26 03:42:29: Process Execution: > C:\Python39-64\python.exe c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> C:\Python39-64\python.exe c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-04-26 03:42:29: Process Execution: > C:\Python39-64\python.exe c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> C:\Python39-64\python.exe c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-04-26 03:42:29: Web view react rendered
Info 2021-04-26 03:42:29: Request for onigasm file at c:\Users\vyizh12\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.780948196\out\client\node_modules\onigasm\lib\onigasm.wasm
Info 2021-04-26 03:42:29: Request for tmlanguage file.
Info 2021-04-26 03:42:29: Searching for token colors ...
Info 2021-04-26 03:42:29: Attempting search for colors ...
Info 2021-04-26 03:42:29: Searching for token colors ...
Info 2021-04-26 03:42:29: Attempting search for colors ...
Info 2021-04-26 03:42:29: Loading colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:29: Loading colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Searching for token colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Searching for token colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Searching for token colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Searching for token colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Loading colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Searching for token colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Loading colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Searching for token colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Loading colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Loading colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Loading colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Loading colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Loading base colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Loading base colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Attempting search for colors ...
Info 2021-04-26 03:42:30: Loading base colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Loading base colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Loading base colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Loading base colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Loading base colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Loading base colors from c:\Users\vyizh12\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\theme-defaults\themes\dark_plus.json ...
Info 2021-04-26 03:42:30: Using colors to generate CSS ...
Info 2021-04-26 03:42:30: Using colors to generate CSS ...
Info 2021-04-26 03:42:30: Using colors to generate CSS ...
Info 2021-04-26 03:42:30: Using colors to generate CSS ...
Info 2021-04-26 03:42:30: Using colors to generate CSS ...
Info 2021-04-26 03:42:30: Using colors to generate CSS ...
Info 2021-04-26 03:42:30: Using colors to generate CSS ...
Info 2021-04-26 03:42:30: Using colors to generate CSS ...

Looks like we're starting the wrong kernel. The interactive window is being started with Python 3.9.2 even though the active interpreter is Python 3.8.5. The active Python interpreter caching problem has gone out in a point fix so that shouldn't be happening anymore.

@rchiodo do we know this is a regression? I dn'o think we do, its possible this is an existing issue where we never use the right environment or didn't activate conda when using it (hence ipykernel isn't detected) or we weren't using the right environment to detect if ipykernel is installed.
I.e. i don't see any evidence here that indicates this is a regression vs yet another scenario that we may have missed (or yet another new bug)

FYI, I cannot repro this in latest Jupyter in Insiders. Interactive window always picks the active interpreter for me.

The regression looks like this here:
Info 2021-04-26 03:42:28: findPreferredKernel score for Python 3.9.2 64-bit is 1
Info 2021-04-26 03:42:28: findPreferredKernel score for Python 3.8.5 64-bit ('base': conda) is 1

Those shouldn't have the same score for the interactive window.

Having this same problem for a couple of weeks. Temporarily fixing this by installing Jupyter version of 2021.3.xx.

I can replicate

Issue fixed. Thank you, contributors!


Creates a new id if it doesn't exist.

In retrospect, I should have just done this from my branch instead of the gauntlt mainline...

Fixes #108


Add compile-time option for properties debugging

This allows for debugging which properties a client program requests.
It would be nice to have "release" and "debug" builds from the CI server, with things like this enabled for "debug" builds.

Do you know how we can read configuration information from, say, the drivers.cfg file (where we had to add the [OSVR] heading)?  If so, we could add a flag there to enable/disable the debug logging without having to recompile.  (I'm assuming SteamVR doesn't request property values as such a rate to case too much lag if we were to branch at runtime.)

Yes, we can read stuff from there. We're not guaranteed to get a non-nullptr (though I think in reality you probably always do unless you're running under the OSVR-Vive plugin :-P - the drivers just handle it fine), but both IClientDriverHost and IServerDriverHost have a GetSettings method that takes the IVRSettings_Version constant and returns an IVRSettings pointer.
I don't know if that handles the drivers.cfg file, or the steamvr.vrsettings file, or the steamvr.cfg file, but it's a settings interface of some sort - presumably you could test it out and see what the stock implementation provides access to these days.
I think this would be the preferable way to do it, vs. a compile time definition. If we do need compile time switches, it would be preferred to "namespace" the macros with at least OSVR_ to avoid colliding.

I merged in a variant of this. Also, in the config branch, there's a version that reads a verbose setting and uses that for logging. (It's currently untested, however.)


Fix BitcoinTx vsize calculation

This PR changes BitcoinTx vsize estimates to include size for worst-case witness signatures. This fixes the fee calculation for recovery transactions to ensure they properly pay a large enough fee.
"Worst-case" is based on including 100% of possible signatures, since it is possible for griefers to relay transactions with this many signatures regardless of how many are necessary to satisfy the threshold. If we can ensure it doesn't cause fee-rate-based Bitcoin confirmation DoS or delays, we can adjust this to a less conservative worst-case which is the maximum number of signatures to satisfy the threshold.

Codecov Report
Attention: Patch coverage is 91.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 36.88%. Comparing base (2d44997) to head (ce214ee).

Files
Patch %
Lines

src/bitcoin/recovery.rs
0.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #289      +/-   ##
===========================================
+ Coverage    36.84%   36.88%   +0.04%
===========================================
  Files           25       25
  Lines         9459     9465       +6
===========================================
+ Hits          3485     3491       +6
  Misses        5974     5974

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Argument of type "Literal[0]" cannot be assigned to parameter

Environment data

Language Server version: v2023.11.11
OS and version: Windows 11 22H2, (OS Build 22621)
Python version (& distribution if applicable, e.g. Anaconda): 3.11.6
VSCode version: 1.84.0

Code Snippet

from keras.models import Sequential
from keras.layers import Input, Dense

m = Sequential()
m.add(Input(1))
m.add(Dense(1))
m.compile(loss="mse")
m.fit([1,2,3], [4,5,6], verbose=0)

Repro Steps

Enter code snippet into empty file, open in VSCode.
Change keyword argument to verbose to desired int/bool.

Expected behavior
Keyword arguments of verbose are not underlined in red squigglies, since there are no type annotations in the method called.
Actual behavior
Unless argument is a string like the default, they are underlined with red squigglies.
Logs

[{
	"resource": "/blah/blah.py",
	"owner": "_generated_diagnostic_collection_name_#3",
	"code": {
		"value": "reportGeneralTypeIssues",
		"target": {
			"$mid": 1,
			"path": "/microsoft/pyright/blob/main/docs/configuration.md",
			"scheme": "https",
			"authority": "github.com",
			"fragment": "reportGeneralTypeIssues"
		}
	},
	"severity": 8,
	"message": "Argument of type \"Literal[0]\" cannot be assigned to parameter \"verbose\" of type \"str\" in function \"fit\"\n  \"Literal[0]\" is incompatible with \"str\"",
	"source": "Pylance",
	"startLineNumber": 119,
	"startColumn": 69,
	"endLineNumber": 119,
	"endColumn": 70
}]

This is working as designed, so I don't consider it a bug.
Keras is an untyped library. Without type information, pyright (the type checker upon which pylance is built) needs to infer type information. When a function's parameter has a default argument, pyright uses the type of that parameter for type inference. Most of this time, this is beneficial. In rare cases like this one, it can lead to an incorrect assumption. For details, refer to this documentation.
Type inference can lead to false positives, and no approach will be correct all of the time. If you want to benefit from type checking within your code, it's best to use libraries with inlined type information or type stubs.
As a workaround, you can add a # type: ignore or # pyright: ignore comment to the end of the line. Or if you're seeing many type checking errors with keras, you can disable type checking in your project by setting python.analysis.typeCheckingMode to "off".


Footer Section

problem :-  Footer section needs to improve. As it is not looking like footer section.

Footer section: we should design proper footer and footer text should increase for better readabiltiy.

I would like to contribute by working on the issue related to the footer section needing improvement. Currently, it does not have the appearance of a traditional footer, which can affect the overall design and user experience.
Please kindly assign this issue to me, and I’ll ensure it looks more cohesive with the rest of the site.
Thank you!

I want to redesign and add more features to footer section:
Objective:

Redesign the footer layout with an updated color palette.
Add a "back to top" button for easy navigation.
Ensure the footer is fully responsive across all devices.
Incorporate social media icons and links.

I am eager to take on this issue, as I am a contributor in GGSOCExt 2024. I kindly request that you assign this issue to me.

this issue has been solved, so we are closing this issue.


[CI] use Apache's archives to download Cassadra

Our current CI platforms use mirrors that only maintain the latest Cassandra release. As soon as a new version is released, CI tests will fail because they cannot download Cassandra (the link changes).
CI platforms should use Apache's archives like other projects (like ccm) do to retrieve the Cassandra version we want to run our tests against.

fixed by #798


Clear-text and progress report not getting generated

Question
I have run mutation test on a JavaScript repository having around 47000 mutants. The clear-text report is not getting shown in the terminal.
Only if I reduce the mutants and run test on specific file with same config, I am able to get the clear-text report in the terminal.
Stryker environment
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>
When I use<EMAIL_ADDRESS>mutation scan was getting failed so we were using core.

+--<EMAIL_ADDRESS>
Stryker environment
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>
When I use<EMAIL_ADDRESS>mutation scan was getting failed so we were using core.

+--<EMAIL_ADDRESS>
Additional context
Stryker config used for file level scan:

File level test:

Project level test:

I can see the issue. All mutants result in a timeout, meaning that it took too long for them to resolve, so StrykerJS assumes they resulted in an infinite loop somewhere.
Timeout mutants are logged at debug level, not logged in the clear-text report. See the source code here:
https://github.com/stryker-mutator/stryker-js/blob/master/packages/core/src/reporters/clear-text-reporter.ts#L102-L114
The reason for the timeout mutants is that you are running with 191 (!!) concurrent test runner processes. This is probably much higher than your available cores, resulting in process starvation and the mutants timing out.
As you didn't specify a concurrency in your Stryker config, I assume StrykerJS detects more virtual cores than physically available. You can verify this yourself using node -p 'require("os").cpus().length'. Running Stryker inside your CI with --concurrency 2 or something would solve this.


jsdoc comments part 5

meter, offscreen, status-indicator, tabs, tooltip, primary secondary page template
I cleaned up some properties from meter that were also included in the mixin

:tada: This PR is included in version 1.55.1 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Remove some missed --x-versions and move deploy to existing util function

What this PR solves / how to test
Missed a few --x-versions and also moved the deployment creation in wrangler deploy over to the existing util function
Author has addressed the following

Tests

[ ] TODO (before merge)
[x] Included
[ ] Not necessary because:

E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)

[ ] I don't know
[x] Required / Maybe required
[ ] Not required because:

Changeset (Changeset guidelines)

[ ] TODO (before merge)
[ ] Included
[x] Not necessary because: only small changes in copy removing a flag which was previously mentioned in release notes

Public documentation

[ ] TODO (before merge)
[ ] Cloudflare docs PR(s):
[x] Not necessary because: nothing new here, existing doc updates stand

Oops! Needs some formatting.

One day I'll remember to pnpm fix 😅


Random button

Feature request*: add a randomizer button to the UI, either on the bottom, or besides the textbox, that randomly chooses one map out of the many.
*if no one has the desire to make it, I'll do it ASAP, can't be hard.

Yeah you can make it. :)

I like the idea too.
I think a cool way would be when one presses enter on the empty searchbar, the random suggestion that is currently displayed as a placeholder is loaded.
What do you guys think?

Oh, that's really neat. I 💙 it.

@nglgzz I actually expected that to happen, so it might even be a slightly important task to do - this way it's a little bit confusing.

Yeah that's what I thought. We often get empty queries so it might be that. Sure you can try and do that, it shouldn't be too hard.
You may want to look at the client/containers/Searchbar.jsk file, on the onSubmit function.

Now, reacting (no pun intended) to Enter is quite sensitive, somehow that should be resolved.
Is that relevant to this issue? If now, feel free to close this one.

What do you mean quite sensitive?

Try it ;) jokes aside, I can't describe any better, it has a very small "waiting time", so you can easily skip results.


⚠ Jenkins Plugins Artifactory has degraded performance

In 5dd69a8, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1311 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 9834874 after 13 minutes.


Add tests for size argument with no input

Add tests for https://github.com/cupy/cupy/issues/2908#issuecomment-571973282

Jenkins, test this please

Jenkins CI test (for commit 7ed5dad18f30ee5029b54db7df0f753af8d3cd23, target branch master) succeeded!


Mask is only visible on Z slicing direction

When the mask is present it is only visible on Z slicing direction.

Depends on https://github.com/vais-ral/CILViewer/issues/176 https://github.com/vais-ral/CILViewer/issues/177

closed by https://github.com/vais-ral/CILViewer/issues/177


No support for listing keys [JIRA: CLIENTS-921]

I need to be able to list the keys in a bucket similar to the HTTP API examples:
GET /buckets/bucket/keys?keys=true    # List all keys
But have not found any support.  The closest I have found is this reference:
\Basho\Riak\Api\Http::buildPath(): line 204:
case 'Basho\Riak\Command\Bucket\Keys':
However, it doesn't appear that this class was actually implemented.

Hi @heylarson, at the time of initial redevelopment of the PHP client we decided that since the list keys operation is a very expensive operation for Riak and can be challenging to consume over HTTP (lack of pagination), that we did not implement it. Also, we have recently been focusing on addressing technical debt and improving Riak performance across the board which might lead to better list keys performance.
In the mean time, can I ask what your use case is? Maybe I can offer an alternate solution that will meet your needs without requiring additional changes to the client.

Hey Chris,
Great to hear all the progress you're making on the library! The necessity for this functionality stems from a unit testing perspective. In between my integration unit tests, I like to clear any data from the previous test, which is where I found this function to be helpful. I agree with you in that this function could be expensive when used with larger data sets.  For my workaround, I have used the guzzle library to interact with the http api to remove buckets and keys between unit  tests, and works fine.  Thank you for getting back to me.  I'm open for other solutions of course.

@heylarson sorry for the delay. So, for this client, I handle cleanup of test data a few different ways.

Use the default bucket type as it does not allow siblings, which only works if the functionality you are testing doesn't require siblings and conflict resolution
Use PHPUnits setUpBeforeClass() and tearDownAfterClass() functions to setup / cleanup the values you need to stay consistent between tests within a TestCase:

choose bucket / key names to use for testing based on a unique value (timestamps are useful)
check for the existence of data you want to use and delete it if found
fill a bucket / key with initial data that you expect within the tests

You can wipe the Riak ring data directory (i can provide info on how to do that)
Run everything within a VM that you can trash and rebuild
Use delete_immediate = true within advanced.config to avoid having Tombstones cause anomalies in tests

I am going to close this issue for now, if you need more help feel free to reopen this issue.


Status during upload

Hello,
Is there a way to print the current state in % during the upload of file ? Usecase upload of a large video or image file.

Not currently, but this could be a nice addition if someone wants to take it on. It would involve updating this method: https://github.com/jamalex/notion-py/blob/master/notion/block.py#L607
A potential approach is listed here:
https://stackoverflow.com/a/28674530


PEM specs

We should discuss where we want to support PEM. Candidates:
ASN1.decode
ASN1Data#to_der
Template.decode
Template#to_der
Do we need an extra PEM.decode + PEM.encode for easy conversion?

Also: Need a reliable heuristic to determine via look-ahead whether an encoding is DER or PEM. Or should we still apply try DER first, then PEM? Might become a problem when an IO cannot be "reset", e.g. a socket connection. That's why I would prefer the look-ahead version.

Lookahead done in https://github.com/emboss/krypt-core/commit/685443010fdc31cf2b21ff62bebcc559ce2a97c9. Should also serve as the basis for specs.

Next up would be PEM encoding.


Data set annotation

Congratulations on your achievement. I would like to ask about the production of data sets, how to mark poses and boxes

The authors mentioned in the paper that open-source AR tools like ARKit or ARCore can be used to annotate the images.

The authors mentioned in the paper that open-source AR tools like ARKit or ARCore can be used to annotate the images.
How to get accurate pose labeling

Congratulations on your achievement. I would like to ask about the production of data sets, how to mark poses and boxes

Hi, thanks for your interest in our work. This is indeed an interesting and non-trivial question. As discussed in the paper and supp material, we obtained object pose in the following way:

The camera poses for each frame can be obtained from AR tools.
We manually annotate the bounding box for each sequence in the world frame as the AR anchor whose pose is fixed with respect to the world frame. Then the object poses for each frame can be computed with camera poses and the pose of the annotated box.

The tricky part lies here: the 'absolutely correct' object pose annotation does not exist anyway as the object pose is defined with respect to the object coordinate frame.
Thus the only important thing is to guarantee that the definition of the object coordinate frame is consistent through different sequences for each same object. This can be achieved by joint bundle adjustment and can be evaluated visually by projecting reconstructed keypoints from on sequence to another as described in the supplementary material.
Feel free to re-open the issue if you have any further questions.


Uncaught RequestException, invalid JSON or XML returned.

Hi, after launching my script to add contacts to Active Campaign through contact_sync this error occurres.
Fatal error: Uncaught RequestException: An unexpected problem occurred with the API request. Some causes include: invalid JSON or XML returned. Here is the actual response from the server: ---- in C:\Users\uzivatel\Desktop\folder\name\includes\Connector.class.php:209 Stack trace: #0 C:\Users\uzivatel\Desktop\folder\name\includes\Contact.class.php(87): AC_Connector->curl('https://directa...', Array) #1 C:\Users\uzivatel\Desktop\folder\name\includes\ActiveCampaign.class.php(109): AC_Contact->sync('', Array) #2 C:\Users\uzivatel\Desktop\folder\name\functions.php(82): ActiveCampaign->api('contact/sync', Array) #3 C:\Users\uzivatel\Desktop\folder\name\AC-DB-NEW.php(10): contacts(Object(mysqli_result), Object(ActiveCampaign)) #4 {main} thrown in C:\Users\uzivatel\Desktop\folder\name\includes\Connector.class.php on line 209
Any idea on how to fix that?

Hi, danielrahman
what code is you did?

@danielrahman sorry for the delay in responding to this! You should submit a support ticket for any further help, as we would need details about what the message was that you got back.


is there ayway to export whole book and import from another site ?

For Feature Requests
Desired Feature: system integrated backup/Restore
I write some books using BookStackApp , but the host machine have no internet access. so I build a VPS in vultr.com and I want to export all books to  bookstackapp in the VPS . I search the issues and find out theres a "backup and restore" using mysqldump and tar. But I cant run the mysqldump because I cant login to the old host machine( for security they said). so , Im wondering is there anyway to backup and restore from the BookStackApp admin console or what ? that will be more convenience.

@changchichung If you're unable to complete the documentation provided then you might be out of luck.
Would you have the option of exporting each book via the UI? This was added in a recent release. It's not pretty but you'd at least have the content. When you're on the page for a given book, there's an export option (so long as you're on a recent release of Bookstack, I can't find which version you actually need):

Looking around, they're looking at adding the functionality to backup from the UI (which would then allow you to import on another machine. See #723 for more information.

Do you have any other access to the old host? FTP or anything? You could use phpmyadmin or adminer to backup the whole database (files/uploads not included).
Depending on the provider they will create a dump for you if they disallow you the login to do it yourself.

Ooh good points @lommes I didn't think about that.
I'll keep my fingers crossed for you @changchichung !

Since the last comment on this issue is relatively old I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.


feat(module:input-number): support input-number-group and new apis

close #7228
PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?
Introduce <nz-input-number-group></nz-input-number-group> and the following APIs:

[nzAddonBefore]
[nzAddonAfter]
[nzPrefix]
[nzControls]
[nzBorderless]

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #7228
What is the new behavior?
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information
Reference PRs from Ant Design:
https://github.com/ant-design/ant-design/pull/31432
https://github.com/ant-design/ant-design/pull/31548

outdated


LF-22035: Fixing more attachment resize issues

https://livefyre.atlassian.net/browse/LF-22035

speaking of unit tests for content transformations..


platform-airmcu

platform-airmcu 啥时候才有啊？打开是空的

https://github.com/Air-duino/Arduino-AirMCU/issues/4#issuecomment-1800927490


DateRangePicker show current date

Feature request type
Enhance component
Component name
MudDateRangePicker
Is your feature request related to a problem?
Right now it's a bit difficult to figure out the current date without looking at the date on your OS
One could bypass it by setting the default range to the current day but thats hacky and not flexible
Describe the solution you'd like
An option to pass a parameter to the component to set a specific date (maybe default to DateTime.Now?).
Have you seen this feature anywhere else?

track.toggl. has this feature for their rapport summaries
Describe alternatives you've considered
No response
Pull Request

[X] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I agree.

An option to pass a parameter to the component to set a specific date (maybe default to DateTime.Now?).

I would just style the current date. Normal date pickers do the same:

Yeah thats probably more consistent then. Maybe an option to disable it but should be on by default.

I agree.

An option to pass a parameter to the component to set a specific date (maybe default to DateTime.Now?).

I would just style the current date. Normal date pickers do the same:

Yeah thats probably more consistent then. Maybe an option to disable it but should be on by default.

I don't think that's necessary. We also don't have this option for normal pickers


[Orbit] Cannot nest Orbit in an Accordion.

Please note that this may be an Accordion bug.
How to reproduce this bug:

Build out an accordion with a panel that has an orbit control on it.
Attempt to activate the accordion tab containing the orbit control.

What should happen:
The orbit control should appear at an appropriate height.
What happened instead:
The panel does not expand to full height of the orbit container.
Test case:
https://codepen.io/jellisii/pen/bgpPmw

Destroying and reinit-ing Orbit seems to sidestep the problem.  I'm unclear as to why orbit's _reset method does not seem to work.
$('.orbit-accordion').on('down.zf.accordion', function() {
        var orbit = $(this).find('.accordion-item.is-active .orbit');
        $(orbit).foundation('destroy');
        // need to unhide the element
        $(orbit).show();
        $(orbit).foundation();
    });

If there's an easy way to reflow the accordion panel after the orbit slide change, or if the accordion can pay attention to its content and reflow automagically on a change, this would work as I envision.

Need some Js pro here :)
@zurbchris Would you have some time to take a look at it ?

automagically

Love that word !

@coreysyms is this a good usecase for [data-mutate]?

I don't have a clean fix for this, but I did come up with a workaround that will at least get the spirit of what I'm trying to do done.  https://codepen.io/jellisii/pen/pRbVWV
From where I sit, it looks like Orbit doesn't like to behave when it's hidden, and doesn't reflow properly when it's shown after being hidden?  Maybe a foundation reInit() would be in order?  I haven't tested that yet.

Yes. I fire a  mutate event in tabs. I assume it would be similar for accordion.
So I would need to set it up in both accordion and then a event listener for orbit I'll set it up  and see what happens locally

As a note. Orbit does not initialize in any div that is display none so targeting any method of that orbit instance does not work because it was never instantiated.

I have a working implementation of orbit in accordion.  It's clunky, but I'm unsure how to use the mutation observer properly as of yet.
On initial page render, set all accordion items with .is-active.  Have a method of flagging which items you want to stay open.  I'm using .default-expanded.  This will render the tab open and allow orbit to init properly when you fire $(document).foundation().
The following listens for down events on a specified container, and sets fires up on the items not having .default-expanded after all the intial down events have fired.
var timeoutContainer;
$('#accordion_with_orbit_elements').on('down.zf.accordion', function() {
    if (timeoutContainer !== undefined) {
        clearTimeout(timeoutContainer);
    }
    var this_accordion = this;
    timeoutContainer = setTimeout(function() {
        $(this_accordion).find('.accordion-item.is-active').each(function() {
            if (!$(this).hasClass('default-expanded')) {
                $(this_accordion).foundation('up', $(this).find('.accordion-content'));
            }
        });
        $(this_accordion).off('down.zf.accordion');
    }, 250);
});

I'm completely confident that @coreysyms probably has a much better solution though. :)

As a note. Orbit does not initialize in any div that is display none so targeting any method of that orbit instance does not work because it was never instantiated.

Right. How should we handle it then? I guess this is still unsolved. So far we initialize uninitialized components when the parent is opened (reveal, accordion, tabs) or use Swiper with its observer settings.

So I ran into a similar issue when placing an orbit into a tab that was not visible. When you clicked to the tab the orbit-container would have a "height=0" in its inline style. The fix I used and could be easily applied to Accordions is triggering a window resize on tab change. This forced a resize to the orbit container. I am sure there is a better way to handle this but this works.
`$( document ).ready(function() {
console.log( "tabs slider ready!" );
   	$('[data-tabs]').on('change.zf.tabs', function() {
   	  console.log('Those tabs sure did change!');
   	  $(window).trigger('resize');
   	});
});`

Could you let me know why this issue is closed according to joeworkman? This flat-out does not work. I have no problems using a carousel inside an accordion with Bootstrap 5.


[Fuel backend] Delete temp_fuel_client.cc and remove from CMakeLists.txt

Original report (archived issue) by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).

This file was a temporary one for testing the client before unit tests were written. It should be removed.

I don't see it anymore


No object named 'SOLOv2' found in 'META_ARCH' registry!

Hey, I'm kinda new to ai. I'm trying to use YAAS in my personal project and I'm stuck on this error. Do you have any idea what am I doing wrong?
class AnimeSegmentator:
    def __init__(self):
        config_path = "./YAAS/SOLOv2.yaml"
        model_path = "./YAAS/SOLOv2.pth"
        cfg = get_cfg()
        cfg.merge_from_file(config_path)
        cfg.MODEL.WEIGHTS = model_path
        cfg.MODEL.DEVICE = "cpu" #torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
        cfg.freeze()
        self.model = DefaultPredictor(cfg)
        self.model.score_threshold = 0.1
        self.model.mask_threshold = 0.5

    def run(self, image):
        preds = self.model(image)
        print(preds)
        return image

For anybody who encounters this error, for me, it was because of not properly installed adelai. Uninstalled and reinstalled adelai and it works now.


Improved error messages in Registry

Inside a large application with many moving parts, the message "Not registered" is a bit confusing.
Including the extra "factory" in there is just enough context to understand that the developer
has borked something in FactoryGirl and not elsewhere
Also, the error in add_as was using different nomenclature; changed that to be consistent and also use "factory" in the message
I don't normally test for exact error messages, but since you had one such in the acceptance
specs, I added two tests to the factory_girl/registry spec that look for this exact error message.

I looked at this a lot more closely and realized that all that was needed was a name on Registry; with a name, we'll be able to print out a much nicer exception. This is in https://github.com/thoughtbot/factory_girl/commit/7fdf1a8858c5185e9a38d21348c8ec0fba404f22.


Version string from multidict replaces aiohttp version.

It looks like the version string from multidict is being imported over the aiohttp.__version__, causing the wrong version to be shown in responses.
python -c 'import aiohttp; print(aiohttp.__version__)'
1.2.0

SERVER: Python/3.5 aiohttp/1.2.0

This is with 0.22.0 or newer

Wow!!!
Funny bug, thank you.
Fixed by multidict==1.2.1 release.
aiohttp itself has the same issue, fixed by e2c2e71


Add package.json file to make it installable via npm.

It would be useful to be able to install this as an npm package. All that's required is to have a package.json at the root of the project.

I will look into setting up npm and bower packages for this template, thanks.

@davidtmiller I'm working on another project django-sb-admin that used a copy of this as its base and am working on using npm/bower/grunt to get it installing the various parts instead of the
$ extremely-tedious-manual-maintenance
model used originally.
Please ping me if you'd like to collaborate as I've been deep into this stuff for the last few days and while it's not hard, it can be kind of annoying and time-consuming if you've not done it before...or not done it in the last week, since there's so much stuff to remember every time.

package.json and NPM package now exists and will update automatically as new releases are published.


⚠ Samsung has degraded performance

In 626745d, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2551 ms

Resolved: Samsung performance has improved in a172d4c.


Conditional uniqueness constraints; Partial/Filtered (Unique) Indexes

Problem
I would like to be able to define a uniqueness constraint that has conditional elements to it so that it can map to and align with a conditional unique index/constraint within the database.
Suggested solution
Modify the @@unique modifier to include a where: { } argument that could define the condition that allows this to be unique.

How would this be modelled on a database level?

One example of how this might be used would be a model of phone numbers for a user, where we have a field to determine which one is the primary number:
model PhoneNumber {
  (standard id/created/updated fields)

  userId    String  @map("user_id")
  user      User    @relation(fields: [userId], references: [id])
  number    String
  isPrimary Boolean @map("is_primary")

  @@unique([userId, isPrimary], name: "uniquePrimaryForUser", where: { isPrimary: true })
  @@unique([userId, number], name: "uniqueNumberForUser")
}

In postgres, they support unique indexes with conditions. For this example, you'd create the index with:
CREATE UNIQUE INDEX phone_number_unique_primary_for_user ON "PhoneNumber"(user_id, is_primary) WHERE (is_primary = true);

This is possible within Rails' ActiveRecord validations, which I've used in the past, and something I would derive great value from also getting within Prisma.

Hey guys,
I faced the same problem yesterday. i needed create two indexes like below:
create unique index sessions_name_product_id on sessions (name, (parent_id is null), product_id) where parent_id is null;
create unique index sessions_name_parent_id_product_id on sessions (name, parent_id, product_id);

Pretty much this is common.
Propose:
  @@unique([fieldA, fieldB, fieldC], name: "uniquePrimaryForUser", where: { fieldB: null})
  @@unique([fieldA, fieldB, fieldC], name: "uniqueNumberForUser")

What do u think guys?

Any update on this issue?

Is there a way to upvote this feature? is it currently on any roadmap?

I am trying to implement soft delete feature. I am facing the similar issue?
Add unique key only if deletedAt column is null
create unique index parent_id_student_id on parent_student (parent_id, student_id) where deletedAt is null;

Any update on this issue? Very surprised that this is common but is not implemented yet.
This propose is okay:
@@unique([slug, isPublished], name: "uniquePublishedPostSlug", where: { isPublished: true })

or
@@unique([slug, isPublished], name: "uniquePublishedPostSlug", where: "isPublished = true")

Please add the support for this feature!!

Any update on this? This feature is really necessary to implement soft delete.

+1 to the updoot button on this. It's another interesting case where you can create this via raw DDL changes and get what you need thru introspection, but not vice versa... 🤷

+1 I had the same problem and can't create a compound conditional index for non-deleted projects.
Currently, such a feature isn't supported by Prisma and could lead to the continuous creation of new migrations.
model Project {
  name                  String              @db.VarChar(255)
  branchId            String?             @map("branch_id") @db.Uuid

  @@unique(fields: [name, branchId], name: "unique_project_name_per_branch", where: { deleted_at: null })
}

I am having the same issue when using soft-delete.
I need to be able to identify uniquenes for non-deleted data like this.
@@unique(["fieldA", "fieldB"], where: { isDeleted: false } )

@moschiel
I solved this problem by using deletedAt instead of isDeleted field. This field is null by default and stores delete datetime when deleted. Then you can use this index:
@@unique(["fieldA", "fieldB", "deletedAt"])

Really need this!

+1

Very common use case for this!

+1 for this feature, would be a great addition :)

My solution was to manually create the conditional index on DB level using a migration script, and remove the @@unique declaration from the Prisma schema. As a conditional index is ignored by Prisma introspection, there is no conflict with the standard migration behavior.
I added a comment to the schema file to notify developers on what is going on here.
Migration script:
CREATE UNIQUE INDEX "ProjectMember_projectId_userId_key" ON public."ProjectMember" USING btree ("projectId", "userId") WHERE status != 'DELETED';

Still would love to see this implemented properly.

Thanks for your comments advocating for this feature. Could you please share as many examples of partial / filtered / conditional uniqueness constraints or indexes here as possible?
The difficult part for this feature will definitely be to figure out if we can represent all the "checks" in a structured way in Prisma Schema Language (and hence potentially even execute them in Prisma Client, skipping the database roundtrip - but also properly maintain and migrate them) or if we "just" present them as magic SQL strings without understanding what they do, and "only" take care of migrating and introspecting them.
(Hopefully, the syntax and examples will have a lot of overlap with https://github.com/prisma/prisma/issues/3388, where I just asked a similar question)

Hey! my use case is this one:
status text NOT NULL CHECK (status IN ('open', 'idle', 'close')),

And I need to do more similar columns like this one. Just want to check if a column has a text equal to one of the words passed in the IN tuple

Also depending on this feature for soft delete, currently working around using manually created migrations which aren't supported by current orm yet, really looking forward for official supports

I would also like this feature

One example of how this might be used would be a model of phone numbers for a user, where we have a field to determine which one is the primary number:
model PhoneNumber {
  (standard id/created/updated fields)

  userId    String  @map("user_id")
  user      User    @relation(fields: [userId], references: [id])
  number    String
  isPrimary Boolean @map("is_primary")

  @@unique([userId, isPrimary], name: "uniquePrimaryForUser", where: { isPrimary: true })
  @@unique([userId, number], name: "uniqueNumberForUser")
}

In postgres, they support unique indexes with conditions. For this example, you'd create the index with:
CREATE UNIQUE INDEX phone_number_unique_primary_for_user ON "PhoneNumber"(user_id, is_primary) WHERE (is_primary = true);

This is possible within Rails' ActiveRecord validations, which I've used in the past, and something I would derive great value from also getting within Prisma.

Hello, is there a way to achieve this currently?

+1 for this

+1

Hi, I would also like this feature for unique constraints on soft delete. Thanks!

It would be great if this can be modeled in prisma!

Looking forward to see this feature in near future !

My use case is, I have a table users can submit entries into for approval (adding a label to an account). Multiple users can submit the same account_id, but only one can ever be approved at one time. So I'd like my prisma schema to look something like:
model GlobalLabelAccount {
  account_id String @db.Uuid
  account Account @relation(fields: [account_id], references: [id])
  label String
  is_approved Boolean
  @@unique([account_id, is_approved], where: { is_approved: true })
}

I'm just manually creating the migration file for now.

Use case : Check for unicity only when column value is not null
Table:
CREATE TABLE example (
    id SERIAL PRIMARY KEY,
    provider_id INTEGER
);

Postgresql version 14:
CREATE UNIQUE INDEX IF NOT EXISTS index_name ON example (provider_id)
    WHERE provider_id IS NOT NULL;

Postgresql version 15:
CREATE UNIQUE INDEX index_name
ON example (provider_id) NULLS NOT DISTINCT;

Check for unicity only when column value is not null with postgresql

@seb-mynotary From what I know PostgreSQL ignores null values on unique indexes:
https://www.postgresql.org/docs/current/indexes-unique.html
By default, null values in a unique column are not considered equal, allowing multiple nulls in the column. The NULLS NOT DISTINCT option modifies this and causes the index to treat nulls as equal. A multicolumn unique index will only reject cases where all indexed columns are equal in multiple rows

So either I misunderstand your example here, but what you seemingly want to achieve is already possible.

I can hide it and just did so.

Can't wait to see this feature soon!

Hi prisma team, I'm also have a use case for this feature, similar to comments above:
model Account {
  id @db.Uuid
  active Boolean @default(true)
  user User @relation(fields: [user_id], references: [id])
  @@unique([userId, active], where: { active: true })
  ...

}

It seems like there is a lot of demand for conditional uniqueness to be supported -- any updates on if this is on your roadmap?

Hey Prisma Legends, I would love to have a conditional uniqueness. I understand that the value needs to be unique when filled, but would love to have it optional.
A work around am using right now is, am pushing a random generated string in. When user needs that specific info to be updated with the real value they can.

@dutchsociety if you add a UNIQUE constraint on either MySQL or Postgres, they'll allow for multiple null values.
So you can simply use null rather than a random generated string.
(worth noting: since PG15 you can consider null to not be distinct for unique constraints if you need uniqueness to also respect null values, but it's not the default)
(and there is no need for conditional uniqueness here)

@Neamar thank you for your reply, the only issue is that am a Mongo user, as far as am aware, this doesn't work?

You're sadly correct.

You're sadly correct.

Should we probably change Prisma so, that it defaults to the partial filter expressions mentioned in that thread? My assumption would be, that Prisma users would expect Prisma to behave the same when @unique is added, no matter the underlying database semantics.

@boredland it depends... We can also choose to stop using @unique and do extra checks in the back-end before querying.

@boredland it depends... We can also choose to stop using @unique and do extra checks in the back-end before querying.

Sounds slower and harder to get right, compared to a index...

I'd really like this feature too - my use case is a subscription model, wherein the type ID and user ID combined should be unique only if the active field is true.
@Neamar is this is possible right now?

You can create a migration manually and write the SQL directly, without changing the Prisma schema, for instance using --create-only and
CREATE UNIQUE INDEX offer_single_one_active ON offers (offer_container_id) WHERE (ended_at is null);

Prisma won't "know" about this constraint, but the DB will still enforce it.
The only drawback is you can't use for instance findOne and need findFirst, since Prisma doesn't know about unicity.

Ah, I see. Thanks!

Edit the schema by adding the where clause and commenting out the index:

-  @@index([pageId], map: "kmLQh1v87l")
+  // FIXME: https://github.com/prisma/prisma/issues/6974
+  // @@index([pageId], map: "kmLQh1v87l", where: { deletedAt: null })

The problem with this approach is, Prisma no longer recognizes the unique index, so you lose the functionality that makes unique indexes helpful - no upserting, no connectOrCreate.  Ultimately you fix the migration issue but lose the functionality.

+1 I need this function.

+1

+1

+1

Are there any plans for this?

Yes, we are very interested in adding this, otherwise we would have closed the issue. We do not have a concrete timeline for it though right now, so unfortunately it might still take a while. I'll post an update when that changes.

+11111111111111111111111111111111111111111111

So this is def not ideal, but a workaround I've found is manually adding the unique index to the schema without the where predicate. Then anytime an upsert is needed, you have to include the where predicate as part of the upsert. Using the original example:
model PhoneNumber {
  (standard id/created/updated fields)

  userId    String  @map("user_id")
  user      User    @relation(fields: [userId], references: [id])
  number    String
  isPrimary Boolean @map("is_primary")

  @@unique([userId, isPrimary], name: "uniquePrimaryForUser")
  @@unique([userId, number], name: "uniqueNumberForUser")
}

const updatedPhone = await prisma.PhoneNumber.upsert({
   where: {
      userId: 123,
      isPrimary: true
   },
   create: {
      userId: 123,
      isPrimary: true,
      number:<PHONE_NUMBER>
   },
   update: {
      number:<PHONE_NUMBER>
   }
})

@jo-warren: I'm not sure that'll work / is equivalent. With a non-partial unique index on (userId, isPrimary), you'll only allow users to have one non-primary number.

@jo-warren: I'm not sure that'll work / is equivalent. With a non-partial unique index on (userId, isPrimary), you'll only allow users to have one non-primary number.
I'm really missing this feature in Prisma too. Thanks for your consideration @janpio & team.

I tested it, and it works to upsert multiple non primary numbers like this. It's not really clear what to do on the create/update in this case though since you won't know if the conflict is coming from a duplicate number or isPrimary field.
await prisma.phoneNumber.upsert({         where: {             userId_isPrimary: { userId, isPrimary: true },             userId_number: { userId, number: phone },         },         create: {             userId,             number: phone,             isPrimary: false,         },         update: {             isPrimary: false,         }     })

+100 for this feature, would be a great addition , there is a need for it

Any updates?

We're using mongodb and it doesnot support migrations

Any workaround?

For MongoDB you can probably just modify the underlying collection defintion manually, either after pushing a normal unique index or without. Note that future usage of db push might potentially try to recreate that unique index. (It should not mess with the manually created sparse index definition, but that is not a guarantee as long as the feature here is not fully supported by Prisma).

Do we have any update on this?

this workaround works for me:
model Document {
  id String @id @default(cuid())
  deletedAt DateTime?
  documentNumber String

  @@unique([documentNumber, deletedAt])
}

+1. Would love to be able to do this:
    ...
    id            String       @id() @default(uuid()) @db.VarChar(36)
    locationId String       @db.VarChar(36)
    isPrimary       Boolean      @default(false)

    @@unique([locationId, isPrimary], where: { isPrimary: true })
}

Allow multiple false isPrimary, but only one true isPrimary. Might be a good feature in ZenStack @ymc9

Any update on this one?
We are currently using soft delete and find the lack of support quite limiting.
It would be great if we could have something like the following:
model Record {
    ...
    id                 String       @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
    slug             String
    deletedAt  DateTime? @db.Timestamptz()

    @@unique([slug], where: { deletedAt: null })
}

Thanks 🙏

Can't believe people recommend Prisma for production applications when basic features like this aren't supported.

I am thinking going back to TypeOrm just for the partial index feature

any news, prisma x mongoDB partial index feature t.t

Hi guys, whats the current status. The feature is kind of a must. We currently have to model one-to-one as one-to-many if the relation is optional. This really messes up our data modeling.

it's only been 4 years lol -- there is a way of bypassing it by just creating the index on the db like we currently do with TTL indexes.
You have to also create an equivalent index in prisma first.
Example:
 @@index([canBeDeletedAfter])
Programatically creating the index at startup:
    await this.$runCommandRaw({
      createIndexes: "AccessBlacklist",
      indexes: [
        {
          key: {
            canBeDeletedAfter: 1,
          },
          name: "AccessBlacklist_canBeDeletedAfter_idx",
          expireAfterSeconds: 10,
        },
      ],
    });
    ```

    Once it's created and the names match, `npx prisma db push` won't overwrite it.

This is very much lacking, there is a conflict of one-to-one relations and logical deletion

+1

For now you need to create an empty migration and use raw SQL. It works, just really ugly. I would expect a little more from Prisma but it's not painful enough to warrant a migration.
Here is an example
-- Prevent dupe reviews. prisma doesnt support partial indexing
-- Using the 'deleted' boolean column
CREATE UNIQUE INDEX idx_unique_active_review
    ON "reviews" ("booking_uuid", "created_by")
    WHERE deleted = false;

I would recommend including a comment on your model for the table in your prisma file so you are aware it's not the total representation of the model now...

^ The problem with defining a partial unique index manually like this is that Prisma's JS API doesn't know about it, and thus methods like findUnique and upsert won't allow taking advantage of that index.
You can work around lack of findUnique support by calling findFirst, but I'm not aware of any good upsert alternative (aside from writing a raw $query or $execute which sucks).

+1


Performance degradation between 0.2.2, 0.3.0, and 0.4.0

I've been using Mike Marino's ISWT routine with PyWavelets 0.2.2 for quite a while now. The function made it to PyWavelets 0.4.0, but its performance is significantly slower than with 0.2.2.
I extracted the iswt function from 0.4.0 and ran a test (performance.py) with 0.2.2 (7 s), 0.3.0 (16 s), and 0.4.0 (22 s). I was able to profile 0.4.0, and the problem seems to be np.iscomplexobj() call in idwt routine. Profiling 0.3.0 failed for me, for some reason the numbers get close to 0.2.2 under profiler.
Test config: VirtualBox running Ubuntu 14.04; Python 2.7.11 and Numpy 1.10.4 running in an Anaconda 3.19.1 environment.

Can confirm, 4.3s, 11s and 16s with 0.2.2, 0.3.0 and 0.4.0 respectively on my laptop (i5-4210U), numpy-1.10.4, python-2.7.11. python 3.4.3 has times of 14s, and 19s, for 0.3.0 and 0.4.0, doesn't work with 0.2.2.
FWIW I'm working on #136 so this should be rarer in future, but I'll see if I can figure this one out too.

FYI 0.5.1 has performance of 0.3.0, i. e. 2.5 times worse than 0.2.2

I can confirm that 0.5.1 is the same as 0.3.0 in performance (both are better than 0.4.0).  I think that is what we expect from #162, but still does not match 0.2.2 which is why the issue here hasn't been closed.
Python  3.5:
    release 0.3.0:  11.5 s
    release 0.4.0:  14.6 s
    release 0.5.1:  11.5 s
    my C99 complex branch: 9.8 s

Python 2.7:
    release 0.2.2:  5.2 s
    release 0.5.1:  11.7 s

I have a branch at https://github.com/grlee77/pywt/tree/cplx_cwarn_fixed that handles complex dtypes by using C99 complex on the C-side, so that the np.iscomplexobj checks are removed entirely.  I haven't made a PR for that here because I don't think it can be compiled with MSVC (no C99 complex support).
I did test on that branch and performance on my laptop (Python 3.5 on OS X) improved about 20% from 11.5 s for release 0.5.1 to 9.8 s.  Better, but still a ways from the Python 2 / v0.2.2 case, so complex support cannot be the primary culprit.

I should also note that for a larger problem size:  i.e. changing size from 256 to 65536 and reducing repetitions from 1000 to 10 in the performance.py above I get the same relative performance difference for ISWT (although the forward SWT is 7-8 times faster in 0.5.1 at this size due to a more efficient implementation)

Okay, I have found a simple solution that restores very close to the 0.2.2 performance for ISWT.  This involves calling the idwt_axis Cython routine instead of the idwt python routine from within iswt.  That gets the time down to 6 s for me.  I will make a PR for that.
Also, if you can process in a batch mode  (i.e. stack multiple 1D transforms into a 2D array and then call swt with the axis argument that will be MUCH faster than running each 1D transform individually.  Unfortunately, iswt doesn't have axis support at the moment, but that would be pretty simple to add.

@zstomp
please try out PR #255 and see if that fixes things for you

@grlee77
I noticed that iswt in my original performance.py used 'per' extension mode, and changing it to 'periodization' speeded up 0.5.1 by almost 40% (who would have thought?). Another, minor, improvement is if not isinstance(wavelet, Wavelet): wavelet = Wavelet(wavelet), although it doesn't address the original issue. idwt_axis didn't help at all.
To summarize, 0.5.1 with correct iswt is 10 s which is better than 0.3.0 (16 s), but still worse than 0.2.2 (7 s).

@grlee77 idwt_single instead of idwt_axis makes it even faster than 0.2.2

switching to idwt_single was faster for me too  (4.45 s for me).  In that case, you need to make a copy of the coefficient arrays after the odd/even indexing so that they are contiguous when input to idwt_single as that routine cannot work for non-contiguous inputs.  idwt_axis handles that copying internally whenever the input isn't contiguous, but apparently not quite as efficiently.
I will update the PR and credit you in the commit message
I will update the PR accordingly

@grlee77 I didn't realize there was a catch, since my higher order test passed. Now I've made a test comparing raw outputs of iswt with idwt and idwt_single without any copying, and they are equal. Am I creating more confusion than help?

hmmm... it looks like the input to idwt_single is specified as a contiguous memoryview.  Maybe Cython automatically converts a non-contiguous input to contiguous for you.  I will check up on that when I get a chance
dwt_single(data_t[::1] data, Wavelet wavelet, MODE mode)

nevermind the previous comment.  was looking at dwt_single instead of idwt_single.  for idwt_single it is:
cpdef idwt_single(np.ndarray cA, np.ndarray cD, Wavelet wavelet, MODE mode):

but then the C routines are passed  e.g. <double *>cA.data without any strides info which would seem to imply the coefficients must be contiguous.

all tests do pass for me without the copies and as expected it is even faster in that case.  still need to take another look later on why omitting the copy seems to be okay.

Okay.  I understand why the copy is not needed now.  This relies on the way numpy indexing via arrays is done.  I was thinking of the scenario as b1 in the example below which is not contiguous, but the code indexing with a numpy array of ints, not a slice, so this already creates a contiguous copy.
e.g.
a = np.arange(16)
b1 = a[::2]   # non-contiguous
b2 = a[np.arange(0, 16, 2)]  # contiguous

so as long as nobody unwitting changes the way the indexing is done it is safe to not make a redundant copy.  For safety & clarity, I think I will call np.ascontiguousarray() to make it clear that contiguous input is expected in idwt_single.  This will not create a copy in the case where the array is already contiguous and seems to still give the performance boost.

I went ahead and just put a comment noting that the indexed array will be a contiguous copy to avoid any overhead from calls to np.ascontiguousarray().  Performance is now at 4 s on my system which is better than the 0.2.2 case.

Am I creating more confusion than help?

no.  constructive feedback is greatly appreciated!

It all makes sense now, thanks a lot!

Can this be closed now, or is there anything left to do?

closed by #255.  thanks for reviewing it, @rgommers


Description Chapter of the Get-SPSite help the Property SecondaryOwner should be SecondaryContact

In the Description Chapter of the Get-SPSite help the Property SecondaryOwner should be SecondaryContact
Get-SPSite throws an error when using SecondaryOwner

Get-SPSite : A filter matching SecondaryOwner could not be found. This command accepts the following filters: “Owner”, “SecondaryContact”, or “LockState”.

Current Text

These site collection properties are Owner, SecondaryOwner, and LockState. The Filter parameter is a script block that uses the same syntax as a Where-Object statement, but is run on the server for faster results.

Proposal:
These site collection properties are Owner, SecondaryContact, and LockState. The Filter parameter is a script block that uses the same syntax as a Where-Object statement, but is run on the server for faster results.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d980e9de-c97b-834f-7b1e-1ffb61b8cde2
Version Independent ID: 88924077-cc80-a620-7a42-5c011974bff1
Content: Get-SPSite (sharepoint-server)
Content Source: sharepoint/sharepoint-server-ps/sharepoint-server/Get-SPSite.md
Product: sharepoint-server-itpro
GitHub Login: @Techwriter40
Microsoft Alias: pamgreen

@get-itips


Try to build debian packages using vendored LLVM

@winksaville did we merge a PR of yours that supersedes this one? I can't find it.

@winksaville nevermind. i found, was related to a discussion in zulip. I'm closing this as Wink figured out remaining issues and we've learned what we can from this.


How to deploy wordpress with now-php ?

Hello , How to deploy wordpress with now-php ?

Resolved。https://github.com/fydy/now-wordpress


[LiveComponent] Use display:revert for data-loading style

Q
A

Bug fix?
yes

New feature?
no

Tickets
N/A

License
MIT

Using display:inline-block breaks the inner workings if for example data-loading was used on <tr> element, so the table row contents are incorrectly displayed.

I was waiting for this problem to come up. But woh! revert? I had no idea that existed - but it looks perfect!

Thank you Tomas!


Cow: Watch assignmentwritingservices.com.au

Cow requests the watch of the watch_keyword assignmentwritingservices\.com\.au. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by tripleee in Charcoal HQ


Add conformance test for an ambiguous header match case

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Adds a conformance test for a currently ambiguous header matching case.
The request with headers version: two and color: blue matches both
  # Matches "version: two"
  - matches:
    - headers:
      - name: version
        value: two
    backendRefs:
    - name: infra-backend-v2
      port: 8080

and
  # Matches "color: blue" OR "color: green"
  - matches:
    - headers:
      - name: color
        value: blue
    - headers:
      - name: color
        value: green
    backendRefs:
    - name: infra-backend-v1
      port: 8080

with Contour, since we generate matches for OR matches as separate routes which are then sorted (by number of header matches and then alphanumerically on header), the second route rule above would have precedence
As far as I can tell there isn't anything in the HTTPRouteMatch documentation that covers this.
From https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1beta1.HTTPRouteRule: https://github.com/kubernetes-sigs/gateway-api/blob/a7a465ababc8b7c2cd9eaa1ab769496704fee92a/apis/v1beta1/httproute_types.go#L143-L163
There is a note about preference going to the route match with the largest number of ... Header matches, however does that does not seem to apply in the OR case here and maybe needs to be clarified. If instead of including the header color in our request/match we used something that sorted alphanumerically after version, Contour at least would route to infra-backend-v2 (the first match listed above)
Seems like we could add to the documentation for route match conflict resolution section something about what to do in this case?
Which issue(s) this PR fixes:
Updates: #1102
Does this PR introduce a user-facing change?:
NONE

When looking just at the diff, it's not clear how this differentiates from the test case right above it. Am I missing something?

the previous case is distinct as it should exactly match this rule:
  # Matches "version: two" AND "color: orange"
  - matches:
    - headers:
      - name: version
        value: two
      - name: color
        value: orange
    backendRefs:
    - name: infra-backend-v1
      port: 8080

Ah! It was too early in the morning ☕++
I was looking at the wrong thing and was getting confused. Looks good.
/lgtm

Also generally have a question that goes with this test
There is a note about preference going to the route match with the largest number of ... Header matches, however does that does not seem to apply in the OR case here and maybe needs to be clarified. If instead of including the header color in our request/match we used something that sorted alphanumerically after version, Contour at least would route to infra-backend-v2 (the first match listed above)

Seems like we could add to the documentation for route match conflict resolution section something about what to do in this case?

The test case here isn't explicitly covered by any of the documentation in the spec as far as I can tell

There are a few ambiguities like this that conformance tests can show easily but may be missed in the godoc/field descriptions in the API. In this case I think the test change should be accompanied by an addition to the language in the route matching API description. Is this the right process to do so in the same change?

There are a few ambiguities like this that conformance tests can show easily but may be missed in the godoc/field descriptions in the API. In this case I think the test change should be accompanied by an addition to the language in the route matching API description. Is this the right process to do so in the same change?

For that we would probably want a couple of reviewers whereas for this it's just adding a functional test case, so I feel it's reasonable to merge this and then add the language change as a separate PR. It's your choice however.

Actually re-reading the spec
	// If ties still exist within the Route that has been given precedence,
	// matching precedence MUST be granted to the first matching rule meeting
	// the above criteria.

so actually, this test should route to the v1 backend since the match for version: two comes before the other possible match in the list of routes

hm, didnt mean to remove reviewers, but re-requesting a review did so

/ok-to-test

@sunjayBhatia reading the current spec literally, I would think this request should go to infra-backend-v1. Per https://github.com/kubernetes-sigs/gateway-api/blob/a3f769e5c690546140b6b9f0db5aea4d766b8f68/apis/v1beta1/httproute_types.go#L143-L152, we should prioritize the Rule with the greatest number of header matches, which in this case is:
 # Matches "color: blue" OR "color: green"
  - matches:
    - headers:
      - name: color
        value: blue
    - headers:
      - name: color
        value: green
    backendRefs:
    - name: infra-backend-v1
      port: 8080

Since this is a single Rule that has 2 header matches (even though each individual Match within the role only has one each).

@shaneutt re: https://github.com/kubernetes-sigs/gateway-api/pull/1370#issuecomment-1238472815
looks like we may not have agreement on how this should work and the exact language involved

See https://github.com/kubernetes-sigs/gateway-api/issues/1381

looks like we may not have agreement on how this should work and the exact language involved

Yep my apologies. Let's follow up in #1381 as you've proposed.


Move global script class cache to separate file

This PR removes _global_script_classes and _global_script_class_icons from project.godot and moves them to a separate file .godot/global_script_class_cache.cfg. The file is also included in the exported project.
Closes https://github.com/godotengine/godot-proposals/issues/5631
Also fixes #62889

The file is also included in the exported project.

If it's not difficult, could you check if class icons are preserved after export? Perhaps it is worth splitting the cache into two files, since icons are not needed after export?

Icon path is just a single string, so it's not worth stripping it. Previously icons were also included, because they were in project.godot.

This also closes godotengine/godot-proposals#5631.

Good work, however moving global-class cache to .godot means it loses global-class data when projects need re-generating .godot(like cloning from git).
This will cause some issues. For example: I enable a plugin with global class in my project. If I drop .godot and send the project to others, it will throw error when initializing the project and the plugin won't be enabled (because the editor can't find global class at present).
This is the reproduction for the example: global_class_issue.zip. It will cause error using this branch.

For example: I enable a plugin with global class in my project. If I drop .godot and send the project to others, it will throw error when initializing the project and the plugin won't be enabled (because the editor can't find global class at present).

If now you try to remove these keys from project.godot and open the project again, will this error occur when the project is initialized or not? A possible solution is to run plugins after the GDScript class cache is initialized?

If your plugin preloads a resource (texture, audio) it will have the same problem if the resources are not imported yet.

I opened a new PR that should fix this issue #70668

Weird, because it does create the .godot folder with script cache. It's as if export happens too early.

Yeah this might be related to https://github.com/godotengine/godot/issues/69511. I think it was working in 3.x so it seems to be a regression.

So assuming it's the same issue as #69511, it's not a problem with this PR and requires the same fix as #69511.

This has also broken the only way (that I know of, at least) of getting a list of all custom classes in at runtime by using ProjectSettings.get_setting("_global_script_classes").

The new way of getting classes is documented.

had to delete the .godot folder for the global_script_class_cache.cfg to be generated.
before that, no custom classes would be registered (class_name ignored).


Getting this error on using Auth Facade in Laravel.

Larastan Version: 0.3.4
--level used: 1

Description:
Internal error: Argument 1 passed to PHPStan\Type\ObjectType::__construct() must be of the type string, null given, called in
         /var/www/html/jss-placements/server/vendor/nunomaduro/larastan/src/ReturnTypes/AuthExtension.php on line 65
         Run PHPStan with --debug option and post the stack trace to:
         https://github.com/phpstan/phpstan/issues/new

Getting this error on using Auth Facade in Laravel.

Problem found.
Under NunoMaduro\Larastan\ReturnTypes\AuthExtension::class, the method getTypeFromStaticMethodCall should return the NullType when there is no auth provider.

Great.. let me know if I can fix this one... I would love to contribute to this module.


False "Undefined field" with @class annotation

Describe the bug
Accessing any field result in false "undefined field" even they're declared.
To Reproduce
This snippet explains everything.
---@class TestClass
local TestClass = {}
TestClass.__index = TestClass

function TestClass:__call()
	local t = setmetatable({}, TestClass)
	t:new()
	return t
end

function TestClass:new()
	self.test1 = "Hello" -- `test1` defined here. Notice the type is "string" here.
end

function TestClass:get()
	return self.test1 -- Undefined field `test1`. Then why the type is "any" here?
end

return TestClass

Expected behavior
There shouldn't be any "Undefined field" warning. Also test1 type should be "string" instead of "any" in TestClass:get().
Screenshots

Environment (please complete the following information):

OS: Windows
Is WSL remote? No
Client: VSCode

Additional context
This works fine before v2 update. Removing the @class annotation removes the undefined field warning, but the test1 variable type still wrong however.
Provide logs
file_d%3A_Data_Development_love-11.3-win64_nlay.log

Forgot to save the file, so wrong log is sent. Resaved the file, problem still persist, so here's the correct log file.
file_d%3A_Data_Development_love-11.3-win64_nlay.log

https://github.com/sumneko/lua-language-server/issues/573


Design time problem with subclasses of CustomDialog

Hi,
I am trying to design a custom metro dialog in XAML, as in:
<mad:CustomDialog
    x:Class="MNetMobile.MDTClient.Views.NewIncidentDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mad="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
    >
</mad:CustomDialog>

Unfortunately the design area is broken with the GetBaseException() being: NullReferenceException
   at MahApps.Metro.Controls.Dialogs.BaseMetroDialog.HandleTheme()
   at MahApps.Metro.Controls.Dialogs.BaseMetroDialog.Initialize()
   at MahApps.Metro.Controls.Dialogs.BaseMetroDialog..ctor()
   at MahApps.Metro.Controls.Dialogs.CustomDialog..ctor()

@superlloyd this is fixed in the latest alpha version

Cool, thanks! :)


Update User Guide

Updated User Guide with features for v1.2 and relevant mock UIs. Edited
project description to increase its clarity, as reflected in README,
index and User Guide.

Codecov Report

Merging #40 (e17307c) into master (26d92bf) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #40   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26d92bf...e17307c. Read the comment docs.


Is there any way to listen to preference changes?

Hi,
first of all thanks for such a great library, i have been using it to populate preferences dynamically but in my case i have to read the preference value as well. Could you please specify how can i do that?

Hi,
first of all I want to say that this library is only responsible for arranging and displaying preferences. It does not affect the way preferences work in general. Because of this, obtaining the values of preferences is always the same, regardless of whether you are using this library or not.
You should look into the following things:

By registering an OnPreferenceChangeListener, you can observe when the value of a preference has changed.
Most preferences provide a getValue-method or similar to retrieve the current value.
By default, the value of a preference is stored automatically. Make sure that the preference has a key assigned to it, otherwise automatically storing its value will not work.

it worked, thanks :)

Glad to hear that!


Comprehensive walkthrough guide

I'm trying to do a walkthrough of the system. While the README.md has a lot of good information, I am finding a few things:

I have to piece together all the right steps from error messages and different sections
I don't really get the what and why of what's going on
I don't know what to do after sc install and sc add-gcp-broker

Do we have plans to open source the pubsub demo app and perhaps include it as part of a comprehensive walkthrough?

I don't know what to do after sc install and sc add-gcp-broker

I wrote a basic tutorial which demonstrates using GCP PubSub service from a sample app. Also, updated the main README with a link to that tutorial, so this should address (3) point.

I don't really get the what and why of what's going on

Yes, we need a write up explaining whats going on under the hood and why's as well.

I have to piece together all the right steps from error messages and different sections

Any ideas, how we can address  this ?


Relax nokogiri requirement

Currently it's locked to <IP_ADDRESS> which is over a year old. Not sure why? Be great if this could get relaxed so we can use a newer nokogiri.

I used succesful nokogiri version <IP_ADDRESS> .
I would recommend to use an optimistic version constraint like
s.add_dependency 'nokogiri', '~> 1.6'

+1

+1

+1 - had to downgrade imdb gem to use newer version of nokogiri, because <IP_ADDRESS> didn't work on 64bit Windows.