get-credentials fails due to openssh issue

Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build)
pip install azure-cli==2.0.16

CLI version (az --version)
(venv2) ~ az --version
azure-cli (2.0.16)

acr (2.0.13)
acs (2.0.16)
appservice (0.1.18)
batch (3.1.5)
billing (0.1.5)
cdn (0.0.9)
cloud (2.0.8)
cognitiveservices (0.1.8)
command-modules-nspkg (2.0.1)
component (2.0.7)
configure (2.0.11)
consumption (0.1.5)
container (0.1.11)
core (2.0.18)
cosmosdb (0.1.13)
dla (0.0.12)
dls (0.0.15)
eventgrid (0.1.4)
feedback (2.0.6)
find (0.2.7)
interactive (0.3.10)
iot (0.1.12)
keyvault (2.0.12)
lab (0.0.11)
monitor (0.0.10)
network (2.0.16)
nspkg (3.0.1)
profile (2.0.14)
rdbms (0.0.7)
redis (0.2.9)
resource (2.0.16)
role (2.0.13)
servicefabric (0.0.4)
sf (1.0.8)
sql (2.0.13)
storage (2.0.17)
vm (2.0.16)

Python location '/home/rhim/venv2/bin/python'
Extensions directory '/home/rhim/.azure/cliextensions'

Python (Linux) 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]

OS version
Windows 10

Shell Type (e.g. bash, cmd.exe, Bash on Windows)
Bash on Windows

I am trying to set az tools inside a python virtual environment. Here are the steps I took:
~ virtualenv venv2
~ source venv2/bin/activate
(venv2) ~ pip install azure-cli==2.0.16

The installation seems to succeed (I had to install build-essentials and python-dev packages in order for some utils to be compiled).
I can see the clusters.
(venv2) ~ az acs list
[
  {
    "agentPoolProfiles": [
      {
        "count": 3,
        "dnsPrefix": "test-k8sagent",
        "fqdn": "",
        "name": "agentpool0",
        "vmSize": "Standard_D2_v2"
      }
    ],
    "customProfile": null,
    "diagnosticsProfile": {
      "vmDiagnostics": {
        "enabled": false,
        "storageUri": null
      }
    },
    "id": "/subscriptions/418f9673-5bfb-4756-8f0a-6b85756e8d3e/resourceGroups/K8S/providers/Microsoft.ContainerService/containerServices/test-k8s",
    "linuxProfile": {
      "adminUsername": "azureuser",
      "ssh": {
        "publicKeys": [
          {
            "keyData": "ssh-rsa ... rhim@RHIM1\n"
          }
        ]
      }
    },
    "location": "southcentralus",
    "masterProfile": {
      "count": 1,
      "dnsPrefix": "test-k8smgmt",
      "fqdn": "test-k8smgmt.southcentralus.cloudapp.azure.com"
    },
    "name": "test-k8s",
    "orchestratorProfile": {
      "orchestratorType": "Kubernetes"
    },
    "provisioningState": "Succeeded",
    "resourceGroup": "K8S",
    "servicePrincipalProfile": {
      "clientId": "d9f0e833-b27f-454f-ad38-f4843f9b8969",
      "secret": null
    },
    "tags": null,
    "type": "Microsoft.ContainerService/ContainerServices",
    "windowsProfile": null
  }
]

However, when I try to run get-credentials in order to use kubectl, it fails as follows:
(venv2) ~ az acs kubernetes get-credentials -n "test-k8s" -g "k8s"

/home/rhim/venv2/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so: cannot enable executable stack as shared object requires: Invalid argument
Traceback (most recent call last):
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/azure/cli/main.py", line 36, in main
    cmd_result = APPLICATION.execute(args)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/azure/cli/core/application.py", line 212, in execute
    result = expanded_arg.func(params)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 377, in __call__
    return self.handler(*args, **kwargs)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 620, in _execute_command
    reraise(*sys.exc_info())
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 602, in _execute_command
    result = op(client, **kwargs) if client else op(**kwargs)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 814, in k8s_get_credentials
    _k8s_get_credentials_internal(name, acs_info, path, ssh_key_file)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 835, in _k8s_get_credentials_internal
    '.kube/config', path_candidate, key_filename=ssh_key_file)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/azure/cli/command_modules/acs/acs_client.py", line 57, in secure_copy
    keys = _load_keys(key_filename, allow_agent)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/azure/cli/command_modules/acs/acs_client.py", line 36, in _load_keys
    key = _load_key(key_filename)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/azure/cli/command_modules/acs/acs_client.py", line 23, in _load_key
    pkey = paramiko.RSAKey.from_private_key_file(key_filename, None)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/paramiko/pkey.py", line 206, in from_private_key_file
    key = cls(filename=filename, password=password)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/paramiko/rsakey.py", line 48, in __init__
    self._from_private_key_file(filename, password)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/paramiko/rsakey.py", line 170, in _from_private_key_file
    self._decode_key(data)
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/paramiko/rsakey.py", line 179, in _decode_key
    data, password=None, backend=default_backend()
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/cryptography/hazmat/backends/__init__.py", line 15, in default_backend
    from cryptography.hazmat.backends.openssl.backend import backend
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/__init__.py", line 7, in <module>
    from cryptography.hazmat.backends.openssl.backend import backend
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 54, in <module>
    from cryptography.hazmat.bindings.openssl import binding
  File "/home/rhim/venv2/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 13, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: /home/rhim/venv2/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so: cannot enable executable stack as shared object requires: Invalid argument

I was running into a different kind issue (https://github.com/Azure/azure-cli/issues/4679) when I was trying to install directly using apt-get.

Looks like this is a BashOnWindows issue, and nothing to do with azure cli. For more see here:
https://github.com/Microsoft/BashOnWindows/issues/286
So for now, I will just close this issue and try moving to python 3 to see if that fixes the problem.

@rajhimanshu See my related issue here. https://github.com/Microsoft/BashOnWindows/issues/2431
Your issue may be resolved by installing pip install cryptography==2.0

W00t! That did it. Thanks @derekbekoe .

pip install cryptography==2.0
Collecting cryptography==2.0
  Using cached cryptography-2.0-cp27-cp27m-macosx_10_6_intel.whl
Collecting idna>=2.1 (from cryptography==2.0)
  Using cached idna-2.6-py2.py3-none-any.whl
Collecting enum34 (from cryptography==2.0)
  Using cached enum34-1.1.6-py2-none-any.whl
Collecting cffi>=1.7 (from cryptography==2.0)
  Downloading cffi-1.11.2-cp27-cp27m-macosx_10_6_intel.whl (238kB)
    100% |████████████████████████████████| 245kB 4.5MB/s
Collecting asn1crypto>=0.21.0 (from cryptography==2.0)
  Using cached asn1crypto-0.23.0-py2.py3-none-any.whl
Collecting ipaddress (from cryptography==2.0)
  Using cached ipaddress-1.0.18-py2-none-any.whl
Collecting six>=1.4.1 (from cryptography==2.0)
  Using cached six-1.11.0-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.7->cryptography==2.0)
Installing collected packages: idna, enum34, pycparser, cffi, asn1crypto, ipaddress, six, cryptography
Successfully installed asn1crypto-0.23.0 cffi-1.11.2 cryptography-2.0 enum34-1.1.6 idna-2.6 ipaddress-1.0.18 pycparser-2.18 six-1.11.0

(az) ~/.kube ❯❯❯ az acs kubernetes get-credentials --resource-group=k8s --name=cluster
'proxycommand'
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.0.19/libexec/lib/python3.6/site-packages/azure/cli/main.py", line 36, in main
    cmd_result = APPLICATION.execute(args)
  File "/usr/local/Cellar/azure-cli/2.0.19/libexec/lib/python3.6/site-packages/azure/cli/core/application.py", line 212, in execute
    result = expanded_arg.func(params)
  File "/usr/local/Cellar/azure-cli/2.0.19/libexec/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 377, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.0.19/libexec/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 620, in _execute_command
    reraise(*sys.exc_info())
  File "/usr/local/Cellar/azure-cli/2.0.19/libexec/lib/python3.6/site-packages/six.py", line 693, in reraise
    raise value
  File "/usr/local/Cellar/azure-cli/2.0.19/libexec/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 602, in _execute_command
    result = op(client, **kwargs) if client else op(**kwargs)
  File "/usr/local/Cellar/azure-cli/2.0.19/libexec/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 814, in k8s_get_credentials
    _k8s_get_credentials_internal(name, acs_info, path, ssh_key_file)
  File "/usr/local/Cellar/azure-cli/2.0.19/libexec/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 835, in _k8s_get_credentials_internal
    '.kube/config', path_candidate, key_filename=ssh_key_file)
  File "/usr/local/Cellar/azure-cli/2.0.19/libexec/lib/python3.6/site-packages/azure/cli/command_modules/acs/acs_client.py", line 65, in secure_copy
    proxy = paramiko.ProxyCommand(host_config['proxycommand'])
KeyError: 'proxycommand'

This looks like https://github.com/Azure/azure-cli/issues/4679


Move contributing setup content from readme

Currently the readme file has some contributing info at the bottom. it should all live in the CONTRIBUTING.rst file (i think it's there). let's remove that info from the readme

@nkorinek  this is a small easy task.

make sure the contributing info in the screenshot below is in the docs rather than the readme. i think that is how we did it in earthpy. can you

add your name as an active contributor!
can you change both your name and mine to github images like i have the other contributors in the readme please?
make sure your name is in the zenodo file

so you can get credit for your effort here!!

https://github.com/earthlab/matplotcheck/pull/213 fixed here, can be closed! @lwasser

wonderful!! closing


QAQC: 06-10

As of: https://github.com/NYCPlanning/db-factfinder/actions/runs/1060417639

[x] Tract mismatch

Metadata

[x] Check on metadata for popu18_2, popu18m, popu18f -- e, m, p, z discrepancies across tracts
[ ] Large m differences for fpop20t24 (example tracts:<PHONE_NUMBER>0,<PHONE_NUMBER>0,<PHONE_NUMBER>0,<PHONE_NUMBER>0)
[x] fam1 is missing from metadata, but is necessary for popinfms, fam3, avgfmsz at the CT20, CDTA, NTA level
[ ] Large discrepancies in oeeur for e, m, p, and z for 345 tracts (example tracts:<PHONE_NUMBER>0,<PHONE_NUMBER>0,<PHONE_NUMBER>0,<PHONE_NUMBER>0,<PHONE_NUMBER>3,<PHONE_NUMBER>4)

Estimate differences

[x] Large estimate discrepancies for percapinc, agttm, aghhinc, agip15pl, mnhhinc

MOE differences

[ ] Some large m differences for mdvl and mdgr (might be related to outstanding methodology issues, not specific to 2010 data). Example tracts:<PHONE_NUMBER>2,<PHONE_NUMBER>2,<PHONE_NUMBER>0,<PHONE_NUMBER>2,<PHONE_NUMBER>2,<PHONE_NUMBER>1,<PHONE_NUMBER>0
[x] For several tracts, non-zero vacrnt e matches but sample m is 0, while pff m non-zero. Tract<PHONE_NUMBER>0 is an example. Based on data in 2010 geographies, it looks like inputs do not match.
[x] For several tracts, e matches but sample m is smaller than pff m for: rntvacu, rshp_ssup
[ ] A few tracts have significantly smaller sample m than pff m: ea_lthsgr, ea_bchdh, rshp_ssup, mntrvtm

-- Check on metadata for popu18_2, popu18m, popu18f -- e, m, p, z discrepancies across tracts... fixed in metadata
-- Large m differences for fpop20t24 -- check metadata... not sure what the issue is. looks ok in metadata
-- Large discrepancies in oeeur for e, m, p, and z -- check on metadata... not sure what the issue is. looks ok in metadata
--  Large estimate discrepancies for percapinc, agttm, aghhinc, agip15pl, mnhhinc... fixed agttm, agip15pl, and aghhinc. this should hopefully fix percapinc and mnhhinc.
-- Some large m differences for mdvl and mdgr (might be related to outstanding methodology issues, not specific to 2010 data)... will look into this
-- For several tracts, non-zero vacrnt e matches but sample m is 0, while pff m non-zero. Tract<PHONE_NUMBER>0 is an example_... fixed._
--  For several tracts, e matches but sample m is smaller than pff m for: rntvacu, rshp_ssup_... fixed rshp_ssup. not seeing anything off the bat for rntvacu, will look into this more_
--  A few tracts have significantly smaller sample m than pff m: ea_lthsgr, ea_bchdh, rshp_ssup, mntrvtm_... fixed rshp_ssup. mntrvtm should hopefully be fixed with the agttm fix above. not seeing anything for ea_lthsgr or ea_bchdh off the bat, will look into this more_

fpop20t24 -- fixed
oeeur -- fixed metadata
mdvl and mdgr -- check that bins are updated.
-- mdvl ends with OV1milpl. Ov1t149m, Ov150t199m, and Ov2milpl are not used
-- mdgr ends with r2000pl. r2kt2499, r2p5t2999, r3kt3499, and r3500pl are not used
ea_lthsgr, ea_bchdh -- fixed

@EricaMaurer what are the bounds for the missing median inputs? Wouldn't Ov1t149m and Ov150t199m overlap if they mean 1 thousand to 149 million, and 150 thousand to 199 million?

Estimate:
-mdvl<PHONE_NUMBER>0): median value is 48, falls in first bin (with 51 units). median = 9,313
-mdvl<PHONE_NUMBER>0): median value is 10, falls in first bin (with 11 units). median = 9,090
-mdhhinc<PHONE_NUMBER>1): calculator was bottom-coding the median. okay to calculate it. median would be 15,207 and MOE would be 17,962
MOE:

mdefftwrk<PHONE_NUMBER>1):
-- lower bound C1 = 0 (bin 12)
-- lower bound C2 = 100 (bin 13)
-- lower bound A1 = 0 (C1 = 0)
-- lower bound A2 = 2,499.9999 (C1 = 0, pull from first bin)
-- lower bound = 17.7795048403726
-- upper bound C1 = 0 (bin 12)
-- upper bound C2 = 100 (bin 13)
-- upper bound A1 = 35,000 (bin 12)
-- upper bound A2 = 39,999.999 (bin 13)
-- upper bound = 39964.4408896081
-- MOE = 32856.1289889714

mdfaminc<PHONE_NUMBER>0):
-- lower bound C1 = 0 (bin 5)
-- lower bound C2 = 100 (bin 6)
-- lower bound A1 = 0 (C1 = 0)
-- lower bound A2 = 9,999.9999 (C1 = 0, pull from first bin)
-- lower bound = 1054.21788338919
-- upper bound C1 = 0 (bin 5)
-- upper bound C2 = 100 (bin 6)
-- upper bound A1 = 30,000 (bin 5)
-- upper bound A2 = 34,999.9999 (bin 6)
-- upper bound = 34472.8909635765
-- MOE = 27486.8586084541

mdhhinc<PHONE_NUMBER>0): median is bottom-coded so MOE is blank

mdnfinc<PHONE_NUMBER>0):
-- lower bound C1 = 0 (bin 2)
-- lower bound C2 = 89.5 (bin 3)
-- lower bound A1 = 0 (C1 = 0)
-- lower bound A2 = 9,999.9999 (C1 = 0, pull from first bin)
-- lower bound = 2083.52920052093
-- upper bound C1 = 0 (bin 2)
-- upper bound C2 = 89.5 (bin 3)
-- upper bound A1 = 15,000 (bin 2)
-- upper bound A2 = 19,999.9999 (bin 3)
-- upper bound = 19546.4705925101
-- MOE = 14363.2692949111

popu18_2: fixed

mntrvtm: may have to dig into this more if it's a problem in both files

36047005302
-- agttmE:<PHONE_NUMBER>86441
-- agttmM:<PHONE_NUMBER>33512
-- wrkrnothmE: 11.8246822033898
-- wrkrnothmM: 22.3386143465341
-- MOE =<PHONE_NUMBER>95828

the only significant remaining issues
36047070202	mdrms	4.8	4.8	0	4.3	3.9	0.10256410256410255
36061011900	mdrms	1	1.2	0.16666666666666663	1.2	0.2	5
36081003700	mdrms	4	4	0	1.2	0.8	0.4999999999999999
36081038302	mdrms	5.5	9	0.3888888888888889
36085022801	mdrms	6.1	6.1	0	0.8	0.5	0.6000000000000001
BK56	mdrms	4.8	4.8	0	4.3	3.9	0.10256410256410255
BK5691	mdrms	4.8	4.8	0	4.3	3.9	0.10256410256410255
QN81	mdrms	5.5	9	0.3888888888888889
QN8191	mdrms	5.5	9	0.3888888888888889
QN84	mdrms	7.4	9	0.17777777777777773
SI0391	mdrms	6.1	6.1	0	0.8	0.5	0.6000000000000001
QN1001	mdage	35	35	0	0.8	0.9	0.11111111111111108

#201


GitHub project blurb doesn't mention Django 1.10

This GitHub project doesn't mention Django 1.10 in the blurb:

It needs to match the README file.
This also affects the blurb in https://djangopackages.org/packages/p/django-compat/

Thank you for pointing this out, @Flimm ! :)


Your mastodon instance is up and running doesn't disappear after you change the page

Description
The Your mastodon instance is up and running. message didn't disappear after i returned to the deployment config tab. and it's still there even after i deleted the instance.

should be fixed in https://github.com/threefoldtech/www-mastodon/pull/54

Verified on https://getmastodon.threefold.io/
The message now disappears after returning from the deployment.
Get Mastodon (17).webm


Most of VSCode hangs when a large sql file is open

Describe the bug
VSCode doesn't freeze technically but practically.
All actions like global searching, git features, etc. just don't finish. As if they are waiting for some action to be finished. Making it unusable till restart.
Same issue when I just open any large(25000+ lines) .sql file in VSCode editor.
renderer1.log has:
[2022-09-15 01:06:03.179] [renderer1] [info] UNRESPONSIVE extension host: starting to profile NOW
[2022-09-15 01:06:08.316] [renderer1] [warning] UNRESPONSIVE extension host: 'mtxr.sqltools' took 88% of 5087.599ms, saved PROFILE here: '' [{"id":"gc","total":592679,"percentage":12},{"id":"mtxr.sqltools","total":4494678,"percentage":88},{"id":"self","total":135,"percentage":0}]
Closing and opening the folder/vscode fixes it until I open the large file again.
Same error is seen in rendered1.log after each slow down.
Using SQLTools with MySQL driver on Intel Mac.

To Reproduce
Steps to reproduce the behavior:

Open any 25000+ line .sql file.

Expected behavior
No freeze.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

SQLTools Version: v0.25.1
VS Code Version: Latest version 1.71.x (same issue in older versions)
OS: Mac
Driver:

[ ] PostgreSQL/Redshift
[x] MySQL/MariaDB
[ ] MSSQL/Azure
[ ] SQLite
[ ] Other? Which...

Database version: MySQL 5.x

Same here. Entity Framework Core migrate.sql file. Mac OS. PostgreSQL. SQLTools v0.28.0.
Have to close the file, restart VSCode. Can't merge the file properly.


adding animated background, according to the color scheme using aceternity

Sub issue of #27 @anshulsoni4 please mention your suggestion in the same


Multi-tenant database?

How is Orchid in support multi-tenant databases? Say when using separate schema(db-level) / database for each user.
This seems to be lacking in most ORMs & I have a use case for it.
Thanks!

It's lacking here as well.
It's a ton of work to do to support multi-schema properly, so this won't be ready in a foreseeable future.

Oh damn!
If you dont mind what would are the challenges, other than the migration stuff? Or is that where all the challenge is?

Maybe not so much, depends on how you're going to do the multi-tenancy.
I had such project only once, and we were creating a separate db per tenant, and the app was opening a new connection for a request with connection url dependent on current tenant info. Currently, the ORM's db connection is configured once, and for multi-tenancy it would need some way to change connections on the fly.
The other multi-tenancy strategy is using different db schemas per tenant. From ORM's perspective, it could be handled in the same way as multiple dbs: to manage connections to the same db but with different schemas.
The thing that would indeed take much time to cover is using different db schemas in the same app, without multi-tenancy, I'm hoping to cover this some day, it's a lot because requires changes in a large amount of tests.


VS Code suddenly won't start on remote server, requires glibc and libstdc++, but server worked fine before hand

I am experiencing an issue with connecting to a remote server. Suddenly two days ago (feb 5th 2024) VS code was unable to connect to the remote server.  There were no coinciding extension updates nor was the remote server I was trying to connect to causing issues before hand.  I saw an issue that was similar issue reported before but mine is different enough to warrant a new issue report: https://github.com/microsoft/vscode/issues/203967  I already tried uninstalling VS code, this did not help though I did not fully uninstall all the extension files.  I also follwoed the steps here to debug the issue but there was nothing found my local end.  I have provided the error log from the remote server by attaching it to this error message.

I could not use the Report Issue to build a report log, but I did copy the error log from the remote server to this report.
.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.log

I can't do code --disable-extensions as the issue requires SSH Remote to be active.

Using the Extension bisect does not help to diagnose the issue either.  This is an issue with the SSH Remote extension, but nothing changed with the remote server.  There were no updates.  My extensions were up dated at most a few days ago but this issue suddenly cropped up two nights ago.  It does not coincide with an extension update.
  I cannot report the bug to Remote SSH using the `Help > Report Issue`, as Remote SSH does not appear as an option in the bug reporter.

VS Code Version:
Version: 1.86.0 (user setup)
Commit: 05047486b6df5eb8d44b2ecd70ea3bdf775fd937
Date: 2024-01-31T10:28:19.990Z
Electron: 27.2.3
ElectronBuildId: 26495564
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22621
OS Version:  Microsoft Windows 11 Home  Version 10.0.22621 OSArchitecture 64-bit    BuildNumber 22621
Remote Server OS version: Linux itchy.msl.ubc.ca 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Steps to Reproduce:

Try to log into a remote server using Remote SSH, you will not have permission to do it on mine but hopefully the error log I supplied can help.

I think this information may be useful as well.  When connecting, after entering server password a warning from Remote SSH appears in the bottom right screen the box says...The remote host may not meet VS Code Server's prerequisites for glibc and libstdc++
Then in the output terminal there is an infinite loop of "Waiting for Server to start" until I get a message saying the server couldn't start.
[13:16:48.037] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 52291 "itchy.msl.ubc.ca" bash
[13:16:48.040] Terminal shell path: C:\Windows\System32\cmd.exe
[13:16:49.050] > ##########################################################################THIS IS A PRIVATE COMPUTER SYSTEM OF THE MICHAEL SMITH LABORATORIES, UBC.BY USING THIS SYSTEM YOU AGREE THAT YOU HAVE READ AND TAKE FULL PERSONAL
> RESPONSIBILITY FOR MEETING THE REQUIREMENTS IN THE FOLLOWING POLICY AND
> STANDARDS:UBC Policy SC14
> Acceptable Use and Security of UBC Electronic Information and Systems
> https://cio.ubc.ca/information-security/policy-standards-resourcesUBC Information Security Standard M8
> Loggin]0;C:\Windows\System32\cmd.exe
[13:16:49.051] Got some output, clearing connection timeout
[13:16:49.098] > g and Monitoring of UBC Systems
> https://cio.ubc.ca/information-security-standards/M8In addition, this computer system including all related equipment and
> network devices (specifically including Internet access) are provided only
> for authorized use. All computer systems may be monitored for all lawful
> purposes, including to ensure that their use is authorized, for management
> of the system, to facilitate protection against unauthorized access, and
> to verify security procedures, survivability and operational security.
> Monitoring includes active attacks by authorized personnel and their
> entities to test or verify the security of the system. During monitoring,
> information may be examined, recorded, copied and used for authorized
> purposes. All information including personal information, placed on or
> sent over this system may be monitored. Uses of this system, authorized or
> unauthorized, constitutes consent to monitoring of this system.
> Unauthorized use may subject you to criminal prosecution. Evidence of any
> such unauthorized use collected during monitoring may be used for
> administrative, criminal or other adverse action. Use of this system
> constitutes consent to monitoring for these purposes.
>
> Unauthorized access to this system is forbidden and will be prosecuted by
> law. By accessing this system, you agree that your actions may be
> monitored if unauthorized usage is suspected.
>
> ############################################################################
[13:16:49.114] >
><EMAIL_ADDRESS>password:
[13:16:49.114] Showing password prompt
[13:16:53.545] Got password response
[13:16:53.546] "install" wrote data to terminal: "*************"
[13:16:53.598] >
[13:16:55.777] > ab19d5cb8a56: running
[13:16:55.793] >
> Missing GLIBCXX >= 3.4.25!
> Found versions 3.4.1
> 3.4.2
> 3.4.3
> 3.4.4
> 3.4.5
> 3.4.6
> 3.4.7
> 3.4.8
> 3.4.9
> 3.4.10
> 3.4.11
> 3.4.12
> 3.4.13
> 3.4.14
> 3.4.15
> 3.4.16
> 3.4.17
> 3.4.18
> 3.4.19
> Missing GLIBC >= 2.28!
> Found version ldd (GNU libc) 2.17
> ab19d5cb8a56$$1$$
[13:16:55.835] >
> Acquiring lock on /home/acampbell/.vscode-server/bin/05047486b6df5eb8d44b2ecd70e
> ea3bdf775fd937/vscode-remote-lock.acampbell.05047486b6df5eb8d44b2ecd70ea3bdf775fd
> d937
> Found existing installation at /home/acampbell/.vscode-server/bin/05047486b6df5e
> eb8d44b2ecd70ea3bdf775fd937...
> Checking /home/acampbell/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf775fd93
> 37.log and /home/acampbell/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf775fd9
> 937.pid for a running server
> Looking for server with pid: 54708
[13:16:55.850] >
[13:16:55.892] > Starting VS Code Server... "/home/acampbell/.vscode-server/bin/05047486b6df5eb8d
> d44b2ecd70ea3bdf775fd937/bin/code-server" --start-server --host=<IP_ADDRESS> --accep
> pt-server-license-terms --enable-remote-auto-shutdown --port=0 --telemetry-level
>  all   &> "/home/acampbell/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf775fd9
> 937.log" < /dev/null
> The VS Code Server log file is /home/acampbell/.vscode-server/.05047486b6df5eb8d
> d44b2ecd70ea3bdf775fd937.log
> printenv:
>     AS=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-as
>     AR=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-ar
>     LDFLAGS=-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -W
> Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/home/acampbell/miniconda3/li
> ib -Wl,-rpath-link,/home/acampbell/miniconda3/lib -L/home/acampbell/miniconda3/li
> ib
>     RSTUDIO_WHICH_R=/home/acampbell/miniconda3/bin/R
>     XDG_SESSION_ID=45004
>     GCC_NM=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-gcc-nm
>     SELINUX_ROLE_REQUESTED=
>     SHELL=/bin/bash
>     HOST=x86_64-conda-linux-gnu
>     NM=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-nm
>     SSH_CLIENT=<IP_ADDRESS> 52292 22000
>     CPPFLAGS=-DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/acampbell/miniconda
> a3/include
>     CONDA_SHLVL=1
>     SELINUX_USE_CURRENT_RANGE=
>     CONDA_PROMPT_MODIFIER=(base)
>     SIZE=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-size
>     CXX_FOR_BUILD=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-c++
>     GFORTRAN=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-gfortran
>     USER=acampbell
>     CONDA_EXE=/home/acampbell/miniconda3/bin/conda
>     DEBUG_FORTRANFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -f
> fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /ho
> ome/acampbell/miniconda3/include -fopenmp -march=nocona -mtune=haswell -ftree-vec
> ctorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fcheck=all -fb
> backtrace -fimplicit-none -fvar-tracking-assignments -ffunction-sections -pipe
>     CXXFLAGS=-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=no
> ocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2
> 2 -ffunction-sections -pipe -isystem /home/acampbell/miniconda3/include
>     LD_GOLD=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-ld.gold
>     STRINGS=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-strings
>     CONDA_BUILD_SYSROOT=/home/acampbell/miniconda3/x86_64-conda-linux-gnu/sysroo
> ot
>     VSCODE_AGENT_FOLDER=/home/acampbell/.vscode-server
>     _CE_CONDA=
>     CPP=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-cpp
>     CXXFILT=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-c++filt
>     PATH=/home/acampbell/miniconda3/bin:/home/acampbell/miniconda3/condabin:/hom
> me/acampbell/apps/sratoolkit.3.0.0-ubuntu64/bin:/usr/local/bin:/usr/bin:/space/bi
> in:/space/opt/bin
>     MAIL=/var/mail/acampbell
>     CONDA_PREFIX=/home/acampbell/miniconda3
>     LD=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-ld
>     BUILD=x86_64-conda-linux-gnu
>     DEBUG_CXXFLAGS=-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ma
> arch=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt
[13:16:55.895] >
>  -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isyst
> tem /home/acampbell/miniconda3/include
>     PWD=/home/acampbell
>     F90=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-gfortran
>     STRIP=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-strip
>     ELFEDIT=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-elfedit
>     CMAKE_ARGS=-DCMAKE_AR=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-
> -ar -DCMAKE_CXX_COMPILER_AR=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu
> u-gcc-ar -DCMAKE_C_COMPILER_AR=/home/acampbell/miniconda3/bin/x86_64-conda-linux-
> -gnu-gcc-ar -DCMAKE_RANLIB=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-
> -ranlib -DCMAKE_CXX_COMPILER_RANLIB=/home/acampbell/miniconda3/bin/x86_64-conda-l
> linux-gnu-gcc-ranlib -DCMAKE_C_COMPILER_RANLIB=/home/acampbell/miniconda3/bin/x86
> 6_64-conda-linux-gnu-gcc-ranlib -DCMAKE_LINKER=/home/acampbell/miniconda3/bin/x86
> 6_64-conda-linux-gnu-ld -DCMAKE_STRIP=/home/acampbell/miniconda3/bin/x86_64-conda
> a-linux-gnu-strip
>     LANG=en_US.UTF-8
>     GCC_RANLIB=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-gcc-ranlib
>     F95=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-f95
>     DEBUG_FFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -f
> fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/aca
> ampbell/miniconda3/include -fopenmp -march=nocona -mtune=haswell -ftree-vectorize
> e -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fcheck=all -fbacktra
> ace -fimplicit-none -fvar-tracking-assignments -ffunction-sections -pipe
>     SELINUX_LEVEL_REQUESTED=
>     F77=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-gfortran
>     _CE_M=
>     CC_FOR_BUILD=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-cc
>     CXX=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-c++
>     OBJCOPY=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-objcopy
>     HOME=/home/acampbell
>     SHLVL=2
>     FORTRANFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -f
> fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/aca
> ampbell/miniconda3/include
>     CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector
> r-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/acampbell/minicond
> da3/include
>     DEBUG_CPPFLAGS=-D_DEBUG -D_FORTIFY_SOURCE=2 -Og -isystem /home/acampbell/min
> niconda3/include
>     GCC=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-gcc
>     _CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_conda_cos6_linux_gnu
>     FC=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-gfortran
>     LOGNAME=acampbell
>     CONDA_PYTHON_EXE=/home/acampbell/miniconda3/bin/python
>     ADDR2LINE=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-addr2line
>     SSH_CONNECTION=<IP_ADDRESS> 52292 <IP_ADDRESS> 22000
>     build_alias=x86_64-conda-linux-gnu
>     LESSOPEN=||/usr/bin/lesspipe.sh %s
>     CONDA_DEFAULT_ENV=base
>     RANLIB=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-ranlib
>     DEBUG_CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-pro
> otector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-s
> sections -pipe -isystem /home/acampbell/miniconda3/include
>     XDG_RUNTIME_DIR=/run/user/30112
>     CC=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-cc
>     CMAKE_PREFIX_PATH=/home/acampbell/miniconda3:/home/acampbell/miniconda3/x86_
> _64-conda-linux-gnu/sysroot/usr
>     READELF=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-readelf
>     host_alias=x86_64-conda-linux-gnu
>     OBJDUMP=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-objdump
>     GCC_AR=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-gcc-ar
>     GPROF=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-gprof
>     FFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-
> -protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/acampbell
> l/miniconda3/include
>     GXX=/home/acampbell/miniconda3/bin/x86_64-conda-linux-gnu-g++
>     _=/usr/bin/printenv
[13:16:55.925] >
[13:16:55.947] > Removing old logfile at /home/acampbell/.vscode-server/.05047486b6df5eb8d44b2ecd
> d70ea3bdf775fd937.log
> Spawned remote server: 58539
> Waiting for server log...
[13:16:55.963] >
> Waiting for server log...

Then an infinite loop of this until it crashes...
[13:16:55.979] >
[13:16:56.010] > Waiting for server log...
[13:16:56.023] >
[13:16:56.039] > Waiting for server log...
[13:16:56.057] >
[13:16:56.066] > Waiting for server log...
[13:16:56.097] >

Followed by...
[13:17:09.967] >
> *
> * Visual Studio Code Server
> *
> * By using the software, you agree to
> * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-lice
> ense) and
> * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacyst
> tatement).
> *
>
> Server did not start successfully. Full server log at /home/acampbell/.vscode-se
> erver/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.log >>>
> Warning: Missing GLIBCXX >= 3.4.25! from /usr/lib64/libstdc++.so.6.0.19
> Warning: Missing GLIBC >= 2.28! from /usr/lib64/libc-2.17.so
> Error: Missing required dependencies. Please refer to our FAQ https://aka.ms/vsc
> code-remote/faq/old-linux for additional information.
> <<< End of server log
> ab19d5cb8a56: start
> exitCode==32==
> listeningOn====
> osReleaseId==centos==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/30112==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime==14072==
> ab19d5cb8a56: end
[13:17:09.967] Received install output:
exitCode==32==
listeningOn====
osReleaseId==centos==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/30112==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime==14072==

[13:17:09.972] Resolver error: Error: The VS Code Server failed to start
	at g.ServerInstallError (c:\Users\angus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:460179)
	at d (c:\Users\angus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:453522)
	at t.handleInstallOutput (c:\Users\angus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:455792)
	at t.tryInstall (c:\Users\angus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:581100)
	at async c:\Users\angus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:540958
	at async t.withShowDetailsEvent (c:\Users\angus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:544264)
	at async k (c:\Users\angus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:537923)
	at async t.resolve (c:\Users\angus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:541635)
	at async c:\Users\angus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:807794
[13:17:09.981] ------

[13:17:10.241] >
[13:17:11.272] "install" terminal command done
[13:17:11.273] Install terminal quit with output:

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.86.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

/duplicate and will be fixed in upcoming recovery release 1.86.1

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


Fix: returning clause

For #28

The pr is complete

Due to conflicting changes i have rebased #32 here.

Hope this get merged soon!

Wait it contains a lot of changes in 1 PR?

I think this MR is changing too many things, better to create more than 1 MR @bxcodec

I think this MR is changing too many things, better to create more than 1 MR @bxcodec

@bxcodec Kindly consider merging #32 1st


FileNotFoundError: No such file or directory: '' Error

Hi, I am trying to use on Kali Linux, when I ran the script, the following error message appears:
Creating the required directory
Traceback (most recent call last):
File "/home/kali/Tools/Email-Spider/index.py", line 3, in
from src.main import main
File "/home/kali/Tools/Email-Spider/src/main.py", line 30, in
EmailSpider(project_name, url, domain)
File "/home/kali/Tools/Email-Spider/src/email_spider.py", line 30, in init
EmailSpider.boot()
File "/home/kali/Tools/Email-Spider/src/email_spider.py", line 39, in boot
create_directory(EmailSpider.project_name)
File "/home/kali/Tools/Email-Spider/src/helper.py", line 34, in create_directory
os.makedirs(name)
File "/usr/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: ''
Regards

Hello @riramos am really sorry you encounter error, and sorry for delay response.
I have check this script run fine, in Ubuntu, and in Window
try to add following at top of src/main.py
import sys
sys.path.append(".")

If still not work, let me know, thanks.

Hello @lablnet, I made the suggested changes, but I received the following error. I used a Ubuntu 20:
Creating the required directory
Traceback (most recent call last):
File "index.py", line 3, in
from src.main import main
File "/home/administrator/Tools/Email-Spider/src/main.py", line 33, in
EmailSpider(project_name, url, domain)
File "/home/administrator/Tools/Email-Spider/src/email_spider.py", line 30, in init
EmailSpider.boot()
File "/home/administrator/Tools/Email-Spider/src/email_spider.py", line 39, in boot
create_directory(EmailSpider.project_name)
File "/home/administrator/Tools/Email-Spider/src/helper.py", line 34, in create_directory
os.makedirs(name)
File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: ''
Regards

@riramos
In ubuntu make sure the project directory have right permission and have write permission.
try to run following command in ubuntu
chmod 755 .

also add this to index.py too.
import sys
sys.path.append(".")

Thanks for update, if still let me know, I will try to find solution and re run it to virtual machines.

@lablnet the problem persist
Creating the required directory
Traceback (most recent call last):
File "index.py", line 5, in
from src.main import main
File "/home/administrator/Tools/Email-Spider/src/main.py", line 33, in
EmailSpider(project_name, url, domain)
File "/home/administrator/Tools/Email-Spider/src/email_spider.py", line 30, in init
EmailSpider.boot()
File "/home/administrator/Tools/Email-Spider/src/email_spider.py", line 39, in boot
create_directory(EmailSpider.project_name)
File "/home/administrator/Tools/Email-Spider/src/helper.py", line 34, in create_directory
os.makedirs(name)
File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: ''

Pls when i try to do a do a clone on kali linux it tells me no such file or directory how can i fix that pls

**masked-man307 ** commented 11 hours ago

Kindly explain in more detail what do you mean by this?

In order to make it more clear, tell the ways you try to clone and run the script.

Thanks.


Sort the on/off events better

With my config I have the situation that some of the events do not make sense, e.g. twice the on event after each other instead of on - off - on.
Please fix the ordering of the events.
Config:
[Occupancy Simulator]
module = occusim
class = OccuSim

log = 1
notify = 1
enable = input_boolean.vacation,on
# test = 0
dump_times = 1
reset_time = 02:00:00

step_morning_name = Morning
step_morning_days = mon,tue,wed,thu,fri,sat,sun
step_morning_start = sunrise - 01:00:00
step_morning_end = sunrise
step_morning_on_1 = event.MODE_CHANGE,mode

step_day_name = Day
step_day_start = sunrise + 00:45:00
step_day_on_1 = event.MODE_CHANGE,mode

step_evening_name = Evening
step_evening_start = sunset - 00:45:00
step_evening_on_1 = event.MODE_CHANGE,mode

step_night_name = Night
step_night_start = 21:30:00
step_night_end = 23:30:00
step_night_on_1 = event.MODE_CHANGE,mode

step_upstairs_name = Upstairs activity
step_upstairs_relative = Evening
step_upstairs_start_offset = 00:00:10
step_upstairs_on_1 = scene.upstairs_on
step_upstairs_off_1 = scene.upstairs_off

step_downstairs_name = Downstairs activity
step_downstairs_relative = Evening
step_downstairs_start_offset = 00:00:10
step_downstairs_on_1 = scene.downstairs_on
step_downstairs_off_1 = scene.downstairs_off

step_bedtime_name = Bedtime
step_bedtime_start = 21:30:00
step_bedtime_end = 22:30:00
step_bedtime_on_1 = scene.bedtime

random_office_name = Evening Office
random_office_start = Evening
random_office_end = Night
random_office_minduration = 00:03:00
random_office_maxduration = 00:30:00
random_office_number = 5
random_office_on_1 = scene.studio_on
random_office_off_1 = scene.studio_off

random_fitness_name = Evening Fitnessroom
random_fitness_start = Evening
random_fitness_end = Night
random_fitness_minduration = 00:03:00
random_fitness_maxduration = 00:30:00
random_fitness_number = 5
random_fitness_on_1 = scene.sport_on
random_fitness_off_1 = scene.sport_off

Result:
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.343649 INFO Occupancy Simulator: Evening Office_on_2: @ 2017-01-19 18:59:47
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.345273 INFO Occupancy Simulator: Evening Office_on_1: @ 2017-01-19 19:17:59
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.347008 INFO Occupancy Simulator: Evening Office_on_0: @ 2017-01-19 19:24:37
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.348618 INFO Occupancy Simulator: Evening Office_off_2: @ 2017-01-19 19:24:51
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.350203 INFO Occupancy Simulator: Evening Office_off_1: @ 2017-01-19 19:30:37
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.351785 INFO Occupancy Simulator: Evening Office_off_0: @ 2017-01-19 19:37:52
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.353472 INFO Occupancy Simulator: Evening Fitnessroom_on_0: @ 2017-01-19 19:49:48
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.355151 INFO Occupancy Simulator: Evening Fitnessroom_off_0: @ 2017-01-19 20:13:35
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.356803 INFO Occupancy Simulator: Evening Fitnessroom_on_4: @ 2017-01-19 20:26:19
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.358446 INFO Occupancy Simulator: Evening Fitnessroom_on_2: @ 2017-01-19 20:51:49
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.360100 INFO Occupancy Simulator: Evening Fitnessroom_off_4: @ 2017-01-19 20:51:53
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.361722 INFO Occupancy Simulator: Evening Fitnessroom_off_2: @ 2017-01-19 21:08:18
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.363429 INFO Occupancy Simulator: Evening Fitnessroom_on_1: @ 2017-01-19 22:07:04
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.365086 INFO Occupancy Simulator: Evening Office_on_4: @ 2017-01-19 22:15:27
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.366710 INFO Occupancy Simulator: Evening Fitnessroom_off_1: @ 2017-01-19 22:16:28
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18:50:24.368564 INFO Occupancy Simulator: Evening Office_off_4: @ 2017-01-19 22:17:09
Jan 19 17:50:24 homeassistant appdaemon[28688]: 2017-01-19 18

This is by design - the algorithm is fairly simple and overlapping ranges are expected, and this fact is documented. It actually adds some additional randomness as the exact number of on/off will vary each night depending on the number of overlapping ranges.


Application so slow

VSCode Version: Code 1.4.0 (6276dcb0ae497766056b4c09ea75be1d76a8b679, 2016-08-04T16:45:31.680Z)
OS Version: Windows_NT ia32 10.0.10586

Steps to Reproduce:

Application so slow and heavy on load, Specially when open an existing file using VS Code

Please provide more details.

Closing this issue since we did not get enough info. Please provide required info and reopen. Thanks.


no implicit conversion of nil into String in file_fetcher.rb

Is there an existing issue for this?

[X] I have searched the existing issues

Package ecosystem
nuget
Package manager version
No response
Language version
No response
Manifest location and content before the Dependabot update
No idea -- if the problem relates to a particular file in the repo, it isn't clear from the error message.
dependabot.yml content
https://github.com/danmoseley/eShop/blob/dependabot/.github/dependabot.yml
Updated dependency
No response
What you expected to see, versus what you actually saw
Dependabot to work or fail with a helpful error. I got the error message below and I've simplified the yml as far as possible without effect.
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
https://github.com/danmoseley/eShop -- branch "dependabot"
updater | time="2023-12-01T18:26:23Z" level=info msg="guest starting" commit=17df297b9449ef5936111b658329653bcfc0c9bc
updater | time="2023-12-01T18:26:23Z" level=info msg="starting job..." fetcher_timeout=10m0s job_id=757278263 updater_timeout=45m0s updater_version=e83cd566eb627cd83ed43645e38ef9caff47ed79-nuget
updater | 2023/12/01 18:26:26 INFO Raven 3.1.2 ready to catch errors
updater | 2023/12/01 18:26:28 INFO <job_757278263> Starting job processing
  proxy | 2023/12/01 18:26:29 [002] GET https://github.com:443/danmoseley/eShop/info/refs?service=git-upload-pack
  proxy | 2023/12/01 18:26:29 [002] * authenticating git server request (host: github.com)
  proxy | 2023/12/01 18:26:29 [002] 200 https://github.com:443/danmoseley/eShop/info/refs?service=git-upload-pack
  proxy | 2023/12/01 18:26:29 [003] POST https://github.com:443/danmoseley/eShop/git-upload-pack
  proxy | 2023/12/01 18:26:29 [003] * authenticating git server request (host: github.com)
  proxy | 2023/12/01 18:26:29 [003] 200 https://github.com:443/danmoseley/eShop/git-upload-pack
  proxy | 2023/12/01 18:26:29 [004] POST https://github.com:443/danmoseley/eShop/git-upload-pack
  proxy | 2023/12/01 18:26:29 [004] * authenticating git server request (host: github.com)
  proxy | 2023/12/01 18:26:29 [004] 200 https://github.com:443/danmoseley/eShop/git-upload-pack
updater | 2023/12/01 18:26:30 ERROR <job_757278263> Error during file fetching; aborting: no implicit conversion of nil into String
updater | 2023/12/01 18:26:30 ERROR <job_757278263> no implicit conversion of nil into String
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/nuget/lib/dependabot/nuget/file_fetcher.rb:48:in `join'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/nuget/lib/dependabot/nuget/file_fetcher.rb:48:in `block in fetch_files'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/nuget/lib/dependabot/nuget/file_fetcher.rb:47:in `uniq'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/nuget/lib/dependabot/nuget/file_fetcher.rb:47:in `fetch_files'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/call_validation.rb:256:in `bind_call'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/call_validation.rb:256:in `validate_call'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/_methods.rb:275:in `block in _on_method_added'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/common/lib/dependabot/file_fetchers/base.rb:108:in `files'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/call_validation.rb:256:in `bind_call'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/call_validation.rb:256:in `validate_call'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/_methods.rb:275:in `block in _on_method_added'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/lib/dependabot/file_fetcher_command.rb:107:in `block in dependency_files'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/lib/dependabot/file_fetcher_command.rb:125:in `with_retries'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/lib/dependabot/file_fetcher_command.rb:107:in `dependency_files'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/lib/dependabot/file_fetcher_command.rb:30:in `perform_job'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> /home/dependabot/dependabot-updater/lib/dependabot/base_command.rb:53:in `run'
updater | 2023/12/01 18:26:30 ERROR <job_757278263> bin/fetch_files.rb:24:in `<main>'

Smallest manifest that reproduces the issue
No response

@danmoseley I've been seeing the same errors you've been reporting for several days across a variety of projects all with varied packages, versioning schemes, MSBuild constructs, etc.
All of which to say that I don't think this is project specific, nor does it seem like something with a clear repo eng cause (i.e. even when there's no MSBuild evaluation required, it fails).
Since all of the projects where I'm seeing these errors are from a private org, I've put together a minimal repro showing this happen with even a very basic repo skeleton:

https://github.com/austindrenski/dependabot-nuget-failure

$ tree
.
├── Directory.Build.props
├── Directory.Packages.props
├── dependabot-nuget-failure.sln
├── global.json
└── src
    ├── Directory.Build.props
    └── SomeProject
        └── SomeProject.csproj

2 directories, 7 files

<!-- Directory.Build.props -->
<Project>

  <PropertyGroup>
    <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
  </PropertyGroup>

</Project>

<!-- Directory.Packages.props -->
<Project>

  <ItemGroup>
    <PackageVersion Include="System.Text.Json" Version="7.0.0" />
  </ItemGroup>

</Project>

<!-- src/Directory.Build.props -->
<Project>

  <Import Project="../Directory.Build.props" />

</Project>

<!-- src/SomeProject/SomeProject.csproj -->
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="System.Text.Json" />
  </ItemGroup>

</Project>

  proxy | 2023/12/02 00:17:24 proxy starting, commit: 6cffd6fae1b2f713f2d837bc45fe916f855c821d
  proxy | 2023/12/02 00:17:24 Listening (:1080)
updater | 2023-12-02T00:17:25.267021840 [757428563:main:WARN:src/devices/src/legacy/serial.rs:222] Detached the serial input due to peer close/error.
updater | time="2023-12-02T00:17:27Z" level=info msg="guest starting" commit=17df297b9449ef5936111b658329653bcfc0c9bc
updater | time="2023-12-02T00:17:27Z" level=info msg="starting job..." fetcher_timeout=10m0s job_id=757428563 updater_timeout=45m0s updater_version=ad73cc6aa16e85e1a2f46ede0b3cf7eb5dac4e3c-nuget
updater | 2023/12/02 00:17:29 INFO Raven 3.1.2 ready to catch errors
updater | 2023/12/02 00:17:32 INFO <job_757428563> Starting job processing
  proxy | 2023/12/02 00:17:32 [002] GET https://github.com:443/austindrenski/dependabot-nuget-failure/info/refs?service=git-upload-pack
  proxy | 2023/12/02 00:17:32 [002] * authenticating git server request (host: github.com)
  proxy | 2023/12/02 00:17:32 [002] 200 https://github.com:443/austindrenski/dependabot-nuget-failure/info/refs?service=git-upload-pack
  proxy | 2023/12/02 00:17:32 [003] POST https://github.com:443/austindrenski/dependabot-nuget-failure/git-upload-pack
  proxy | 2023/12/02 00:17:32 [003] * authenticating git server request (host: github.com)
  proxy | 2023/12/02 00:17:32 [003] 200 https://github.com:443/austindrenski/dependabot-nuget-failure/git-upload-pack
  proxy | 2023/12/02 00:17:32 [004] POST https://github.com:443/austindrenski/dependabot-nuget-failure/git-upload-pack
  proxy | 2023/12/02 00:17:32 [004] * authenticating git server request (host: github.com)
  proxy | 2023/12/02 00:17:32 [004] 200 https://github.com:443/austindrenski/dependabot-nuget-failure/git-upload-pack
updater | 2023/12/02 00:17:32 ERROR <job_757428563> Error during file fetching; aborting: no implicit conversion of nil into String
updater | 2023/12/02 00:17:32 ERROR <job_757428563> no implicit conversion of nil into String
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/nuget/lib/dependabot/nuget/file_fetcher.rb:48:in `join'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/nuget/lib/dependabot/nuget/file_fetcher.rb:48:in `block in fetch_files'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/nuget/lib/dependabot/nuget/file_fetcher.rb:47:in `uniq'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/nuget/lib/dependabot/nuget/file_fetcher.rb:47:in `fetch_files'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/call_validation.rb:256:in `bind_call'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/call_validation.rb:256:in `validate_call'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/_methods.rb:275:in `block in _on_method_added'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/common/lib/dependabot/file_fetchers/base.rb:108:in `files'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/call_validation.rb:256:in `bind_call'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/call_validation.rb:256:in `validate_call'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11142/lib/types/private/methods/_methods.rb:275:in `block in _on_method_added'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/lib/dependabot/file_fetcher_command.rb:107:in `block in dependency_files'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/lib/dependabot/file_fetcher_command.rb:125:in `with_retries'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/lib/dependabot/file_fetcher_command.rb:107:in `dependency_files'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/lib/dependabot/file_fetcher_command.rb:30:in `perform_job'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> /home/dependabot/dependabot-updater/lib/dependabot/base_command.rb:53:in `run'
updater | 2023/12/02 00:17:32 ERROR <job_757428563> bin/fetch_files.rb:24:in `<main>'
updater | 2023/12/02 00:17:32 INFO <job_757428563> Sending event 16e6ff5f1320461c8b451e099971695a to Sentry
  proxy | 2023/12/02 00:17:33 [006] POST https://sentry.io:443/api/1451818/store/
  proxy | 2023/12/02 00:17:33 [006] 200 https://sentry.io:443/api/1451818/store/
updater | 2023/12/02 00:17:33 INFO <job_757428563> Finished job processing
updater | 2023/12/02 00:17:33 INFO Results:
updater | Dependabot encountered '1' error(s) during execution, please check the logs for more details.
updater | +--------------------+
updater | |       Errors       |
updater | +--------------------+
updater | | file_fetcher_error |
updater | +--------------------+
updater | time="2023-12-02T00:17:33Z" level=info msg="task complete" container_id=job-757428563-file-fetcher exit_code=0 job_id=757428563 step=fetcher
updater | time="2023-12-02T00:17:34Z" level=warning msg="failed during fetch, skipping updater" job_id=757428563

And also perhaps improve logging to include information like the file being processed and the version of dependabot being used.

@brettfo @deivid-rodriguez if this, https://github.com/dependabot/dependabot-core/issues/8490 and https://github.com/dependabot/dependabot-core/issues/8470 and maybe others were introduced by the changes to the Nuget code paths that were deployed a few days ago (https://github.com/dependabot/dependabot-core/commits/main/nuget/lib/dependabot/nuget) , would it make sense to revert that so it can be stabilized in isolation while our repos remain unblocked? Rather than fixing issues individually as they are reported, which may take some time.

@danmoseley Yeah, several regressions have been introduced by the updater changes that you point out. We apologize for that and will work on smoother rollout of non trivial changes like that in the future. Fixing regressions here is currently a priority and we have just shipped a few of them. We understand the current frustration, but we want to avoid a full revert because that PR also fixed several bugs and provided new features for other users, so reverting it would make those regress and cause similar frustration. If you notice problems that are not currently represented in issues, please submit and we will prioritize accordingly.

@deivid-rodriguez thanks for the reply, I understand difficult rollouts myself 🙂
I'll open any other issues I see, but right now it's broken for my repos so I expect any issues would be after that is working again.
BTW, if in future there is some means to "opt in" to a "pre-release" dependabot on Github, I expect many of us would be glad to occasionally help try out bits before they are widely deployed, if that would help.

Yeah, we have ways to introduce feature flags for complicated features and gradually roll them out, and also to temporarily enable particular repositories to run against certain branches, we just rushed a bit too much in this particular case. Noting you as future potential beta testers for features that need testing before being rolled out, thank so much for your kind feedback and patience by the way.

Fixed by https://github.com/dependabot/dependabot-core/pull/8511

That error looks like #8530.

That error looks like #8530.

ope, hadn't seen that one yet, thanks!


(probably) The ConnectOptions.protocolVersion should be set to the same value, regardless of whether we want to change any other parameter.

Describe the bug
I'm new to LiveKit and maybe I don't understand a bit.
If we connect to Room using the default ConnectOptions (we do not create this strictly), the default init(1) will be run and the protocolVersion will be set to .v9.
If we want to tune other parameters (e.g. only autoSubscribe) the protocolVersion will be set to .v8.
/// Options used when establishing a connection.
@objc
public class ConnectOptions: NSObject {

    …
    /// LiveKit server protocol version to use. Generally, it's not recommended to change this.
    @objc
    public let protocolVersion: ProtocolVersion
    …

    @objc
    public override init() {
        self.autoSubscribe = true
        self.rtcConfiguration = .liveKitDefault()
        self.publishOnlyMode = nil
        self.reconnectAttempts = 3
        self.reconnectAttemptDelay = .defaultReconnectAttemptDelay
        self.protocolVersion = .v9
    }

    @objc
    public init(autoSubscribe: Bool = true,
                rtcConfiguration: RTCConfiguration? = nil,
                publishOnlyMode: String? = nil,
                reconnectAttempts: Int = 3,
                reconnectAttemptDelay: TimeInterval = .defaultReconnectAttemptDelay,
                protocolVersion: ProtocolVersion = .v8) {

        self.autoSubscribe = autoSubscribe
        self.rtcConfiguration = rtcConfiguration ?? .liveKitDefault()
        self.publishOnlyMode = publishOnlyMode
        self.reconnectAttempts = reconnectAttempts
        self.reconnectAttemptDelay = reconnectAttemptDelay
        self.protocolVersion = protocolVersion
    }

    …

Additionally, this property is described as one that we should not change.
SDK Version
Latest version: 1.1.2.
iOS/macOS Version
iOS 17 (simulator)
Expected behavior
(probably) The ConnectOptions.protocolVersion should be set to the same value, regardless of whether we want to change any other parameter.

Thanks, this has been fixed : https://github.com/livekit/client-sdk-swift/commit/d221a2d73780ecbaf52170fe07006e47a9bb4b3b


dom-repeat Need an "on-binding" event (or does it exist?)

Is there any event fired when a dom-repeat template binds each item in the array?  I have a situation where I was trying to set the "checked" attribute value on a standard html checkbox as such:
checked$="{{_calculatedCheckedValue(item.id)}}"
The problem is that the checked attribute must be completely absent in order for the control not to show a check.  Thus, if there was an "on-bind" event, then I could reach back to e.target and set the checked property.  Any suggestions for a workaround for now? Maybe I'll just try a nested "dom-if" template for now.
Thanks,
Jeff

Answering my own question here. I had forgot that the "$" is for attributes and I can just use "checked" without the "$" to bind to the property.  I'm closing this out.


Remove the make instructions from INSTALL.md

There is no Makefile any longer, and it’s much nicer to have a single build system anyway.

Version has been released and fix this issue.


Support complex type in concat op

Modify concat op to support complex type. It is also necessary to support the arbitrary shape of the returned complex value in stft op.
See: https://github.com/tensorflow/tfjs-core/pull/1746

This change is

Let me know once this is ready to re-review!

@nsthorat I updated accordingly. Could you take a look again?


training_ops missing from tensorflow?

Hi,
thanks for making this package available.
It looks like training_ops (used by adahessian) is not available in tensorflow.python.training.
Do you know what might replace it?
Cheers
Gianni

Hi,
for future reference. It turned out that the problem was with graphviz. After downloding and installing the required version and commenting out its call in "environment.yml", I was able to create the virtual environment as per README.md file.


How do I find which create-react-app version depends on a specific React version?

I am trying to use react-art but it's latest release needs<EMAIL_ADDRESS>I can't seem to figure out where to locate the react dependency in create-react-app. I need to know the last version of create-react-app that use React 15.3.x

Looks to me like they require any 15 version, per https://github.com/reactjs/react-art/blob/master/package.json#L26.

Create React App doesn't currently depend on any specific React version.

I just found out that React now implements the full SVG including some SMIL and so I am much happier using that than react-art.


Work on chat ?

Hi,
Is it possible to make it work in the chats or in the global chat plugin?
Thank you for your answer

It should be possible using filter:messaging.save and Messaging.addSystemMessage instead of topic events, so if I have some spare time I might try adding this.

great very good news ;)
can't wait to see this

For Wieloświat (This plugin was created for use on https://wieloswiat.pl) - wś is just more problematic, and two letter specifier is more, well, specific than just a w (+there were some other plugins with similar convention).
As to why add that specifier at all - there already is (or at least was) a nodebb-plugin-dice package. I prefer this kind of namespacing than adding some -alt, -2 etc. to the end.

Ok good. Thanks for your responce :)
Can't wait to see it working in global chat/nodeBB chat. That would be really cool ;)
Do you plan to keep it at the same time as NodeBB if necessary or offer it to the NodeBB community?
bye

any news my friend ?

I was busy last weekend, and as I mentioned - this was mostly waiting for me having some free time :)
It will work on chat now, though without images (even system chat messages seem to be protected from XSS, which is a good thing but means I'd have to work around filtering to get them to work, and I can't be bothered tbh)

oh wow OMG !!!
It's already excellent!!! A big thank you to you and take your time to improve it if you wish ;)

@oplik0
It's possible to display the /roll command on the post topics like previous screenshot ?
It's odd to see a blank post ;)
Thanks

Hmm... Yes, as I said this plugin was made for use case on a specific forum and I think this issue didn't really occur often there (most posts with rolls had context for them, so I preferred hiding the commands).
I can add a setting to always show the command or perhaps just detect otherwise empty posts specifically - whichever you prefer.

@oplik0
yes.
Can be detect if the post only contains the command.
If yes, we display the command
If not, we do not display it.

Otherwise, i have seen this bug display:

And how to use /roll 4d6-L or /roll 4d6-H

Thnaks man for for your availability, you are awesome :)

Ehh... > is the result of sanitization again, replaced them with actual characters :)
As for the -L - it appears I forgot to update README to fit notation changes in the rpg-dice-roller package I'm using for parsing dice notation, since they changed the drop notation some time ago. See here for the current one: https://dice-roller.github.io/documentation/guide/notation/modifiers.html#drop-d-n-dh-n-dl-n
But TL;DR: append dl1 to drop one lowest, dh1 to drop one highest.
I also added a link to this documentation to README, since it had just a few examples and this provides a full explanation of what's supported

-- I have test the last release and I have this again:

-- For the command /rool display ont topics it's Ok, I have seen her but not the result. Example:

For have the result displayed, I'm obliged to reload the page

Are you sure you have v2.1.3? NodeBB can sometimes be slow to update dependency versions, my instance still shows v2.1.1 as the latest.
If you don't want to wait until it finally updates, you may need to install it manually (npm install<EMAIL_ADDRESS>in NodeBB folder).
As for the refresh being required, I forgot my kind of janky code to force an update depended on what I was doing to hide the roll XD I think I'll try just doing it properly now though.

yes I was on 2.1.1
Now i'm on 2.1.3 :)
The bug of > is now fixed. Very good Job !! Thanks
The problem of refresh for result display on topics is still here.
Thanks man

v2.2.0 should properly add the events without a reload now. And now it's implemented by actually calling posts.addTopicEvents after a post is loaded instead of refreshing part of the page :V

youhooo just testting 2.2.0 and it's very good ^^
I have just seen this, the time-badge is not center like other version of the plugins. maybe this is intended?
2.2.0

Before 2.2.0

Sorry to be so picky, if this bothers you let me know

Not sure how v2.2.0 could've affected this. Nevertheless, I tried a hopefully decent fix by using flex.
The issue is making this work across themes, so I hope this will work more universally.
The issue is that it required changes to event text, so it'll only work with new rolls - at least until :has is enabled by default in Chrome/Firefox (it's behind a flag currently). It should work with earlier rolls in Safari though (CSS is somehow the one thing Safari is ahead in).

LOL @oplik0  :)
I have add CSS on NodeBB ACP for Waiting Fix ;)

now on 2.2.3
I don't know if it's better !

Hmm... Not sure who it'd happen for you in the flexbox, are you sure it's a new roll? In Persona it works fine:

(d4 seems to be a bit higher than others because the icons are aligned by the numbers IIRC, not necessarily visually)
Anyway, I published v2.3.0 before reading this, with an automatically ran migration that will correct previous rolls on first run (it's overcomplicated since I wanted to create an easy to reuse module for migrations for my other plugins while I was at it :V), so if there is an issue with the new display on another theme it'd be a good idea to try to fix it here. Could you give me a link to your forum so I can see what's up with that? (here or via email, I think I left it public :V)

Sorry for my late answer, I'm on holiday :)
I tell you this on Saturday !!!

Hello
I have test today your last version. I see this when the result is on 2 lines (Example: lot of dice roll)

How can we improve this?
Thanks

Due to the way topic events are shown (at least in Persona and probably most themes) I can't really move the username part anywhere. So thinking about this now probably the best solution would be to simply remove "for" from the text.

yes it's a good idea @oplik0

Released v2.3.2 with that change in english and polish, but I see that you are using a custom french translation, so that's on you to fix (though if you wish to contribute it I'll gladly add it to the plugin :)

No problem @oplik0
I can contribute to your project ;)
So, I provide you my traduction in french for the dice.json file here 👍
{
    "roll-one-die-0": "A obtenu un",
    "roll-one-die-1": "sur un lancé de",
    "roll-one-die-2": "par",
    "roll-many-dice-0": "A obtenu",
    "roll-many-dice-1": "(Lancé individuel:",
    "roll-many-dice-2": ") sur un lancé de",
    "roll-many-dice-3": "par",
    "too-many-nested-groups": "Trop de groupes de dés imbriqués, veuillez vous limiter à 10"
}

However, I still have the same problem with 2.3.2 ;)

Again, the format is actually coming from the theme rather than this plugin.
Basically, outside of switching to topic events, I'm largely powerless to change that. A theme could theoretically inline the topic events, but other things are using them (pins for example).
One could try to override the style for just the topic event containing dice rolls, but the issue here is that it's not simple to change style based on child elements (without :has at least).
Ultimately, I'm mostly fine with how it currently looks. It's not perfect for long rolls, but at least from my experience these aren't that common, so I'm okay with them looking slightly janky tbh. At least I don't feel it's worth the effort fixing it would require from me.

Ok.
I'm on persona theme.
I'm trying to fix the problem with CSS but it's difficult

EDIT: I see the fix: don't include the for in text is just on PL language. I'm wrong ?

RE @oplik0
I see this bug on chat on v2.3.4 :

EDIT: I see for : the fix: don't include the for in text is just on PL language. I'm wrong ?

No, English (look under en-GB) was also changed.
However, as I noted, since you are using your own translation I can't change it.
Also, again, the username and timestamp are actually part of the topic event and the plugin doesn't control them. I probably could build some over-engineered CSS solution or, alternatively, stop using topic events and make a replacement myself, but frankly, both are too much work for me for such a minor issue.
That is: I'd accept a PR with some fix, but won't spend more of my time working on it.

Ok I understand @oplik0

Btw. would you be fine with me adding your French translation to the repository? Maybe it'll help someone else (and if I make some slight change to formatting again I'll try to modify that translation too)

@oplik0
no problem to be a contributor on your project. I would be honored :)

hello @oplik0
I asked to the NodeBB dev why and here is his answer.
https://community.nodebb.org/post/88888

Hello @oplik0
Wouhhooooooo NodeBB V 2.5.0 is here :clap:
Can not wait to see the result !!!

Hello @oplik0
I installed the plugin in production but it looks like there are still a few issues :(
Examples:

the /roll command is incorrectly transcribed in the result in certain cases apparently.
Possible to fix that ?
Thanks ;)

The first case is just scientific notation - that's what you get of you roll too much.
That's actually quite a bit beyond a safe integer in JS, so the result can't even be accurate (this is around 2^136. Maximum safe integer is 2^53-1).
I'd say it's the correct way to show it instead of a 42-digit number of which most would be zeroes due to lost precision.
As for the second, I'll fix it and look into what other useful characters might be escaped when they shouldn't.

Hello @oplik0
Thanks four your answer :)
I noticed for the first case and wait for the second,
Keep the good work.
Thank you

Done, there should be no more escaping problems now :) (in 2.4.1)
And to expand on the first case: it might just be slightly unituitive that that notation means 9 to the power of the sum of 10 d7 rolls - which in this case is 9^43, which is a lot :)

Hello @oplik0
I'm on V.2.4.2 and for me the problem is stille herev with FR language (not test with english)
A screen :

Ah, I forgot to test it on chat... The issue again is that the message on chat is being escaped beyond my control. My solution for 2.4.3 is to turn the escaped characters into their fullwidth versions - it doesn't look ideal (weird spacing) but at least you can see what the roll was:

yes it's better

hello @oplik0
It seems that 2.4.3 version  have a big problem.
When she's is activate we have not the possibilities to edit post on the forum. We can choose edit button, change the text in WYSIWYG but not work after...
We downgrade in 2.4.2...

Hello @oplik0
just for my information, have you seen the message above ?
cya

Yes, just had other things to do today, I'll look into this tomorrow.

@DroidBV8 v2.5.0 should resolve this, and while I was at it, I improved the way rolls are hidden (now it will still show rolls if you have multiple of them in a post but no other text and hide them all if there is any other text)

Thanks @oplik0
I will tets this versions as soon as possible ;)

Hi @oplik0
Great, 2.5.0 works now without the bug mentioned earlier. (editing posts and in the Chat)
I share with you this seen in 2.50:
--> I note that now the dice are no longer displayed much (very very little) in the rolls in the topics in favor of the simple display of the results in figures:

Is this normal or it's a bug?
If so, it's a shame (dommage) because I thought it was super nice to see the dice ;)
It's also a shame that they don't appear in the Chat results, but maybe it wouldn't be super readable.
What do you think ?
Looking forward to read your reply

The dice icons actually only show for the dice types that the font supports, which should cover most RPG systems: d4, d6, d8, d10, d12 and d20 (+fudge dice - they're not common but are just variations of d6 so easy enough to add)
For other ranges numbers are used to avoid suggesting they were different than in reality (seeing a roll with d20 icons I'd assume the person was rolling d20s and miss the test saying it was actually d22 roll).
This isn't a new behaviour and was in this plugin for quite some time (not sure if first release, but at least close to it), as it was one of the reasons I wanted to make a new plugins in the first place :)

hello @oplik0
Thanks for your answer and your availability, appreciate it :)
For my first comment, I hadn't noticed that, so I apologize.
For the second, I understand the technical constraint better.
Anyway, thank you again for your much appreciated work.
Your plugin is really appreciated and used on our forum ;)