gtkhello sample does not work on macOS

Terminal output:
lua-5.3: /usr/local/share/lua/5.3/lgi/override/cairo.lua:31: attempt to index a nil value (field '_module')
stack traceback:
	/usr/local/share/lua/5.3/lgi/override/cairo.lua:31: in main chunk
	[C]: in function 'require'
	/usr/local/share/lua/5.3/lgi/namespace.lua:176: in function 'lgi.require'
	/usr/local/share/lua/5.3/lgi/namespace.lua:163: in function 'lgi.require'
	/usr/local/share/lua/5.3/lgi/namespace.lua:163: in function 'lgi.require'
	create-main-window.lua:4: in main chunk
	[C]: in ?

Don't ask me how to get it, but I think this means that you do not have the GObject introspection typelib for cairo.
Can you run lua -e 'print(require("lgi.core").module("cairo", 2))' ? It should output something like userdata: 0x5633a73ef358	libcairo.so.2. I guess in your case the first value will be nil.
@pavouk If the above is correct, I'll leave it to you to fix the code so that a better error message is generated when cairo is not available. Also, I don't know which other overrides might be affected.

Don't ask me how to get it, but I think this means that you do not have the GObject introspection typelib for cairo.

It is generated at build time of gobject-introspection if cairo and cairo-gobject libraries are found.

I am also having this problem, I tried copy-pasting that print line above, this is the result:
"nil	/usr/local/Cellar/gobject-introspection/1.50.0/lib/libcairo.2.dylib"
I have no idea what is wrong.

I obtain the same error on NetBSD:
Lua 5.3.4  Copyright (C) 1994-2017 Lua.org, PUC-Rio
> lgi = require("lgi")
> cairo = lgi.cairo
/usr/pkg/share/lua/5.3/lgi/override/cairo.lua:31: attempt to index a nil value (field '_module')
stack traceback:
        /usr/pkg/share/lua/5.3/lgi/override/cairo.lua:31: in main chunk
        [C]: in function 'require'
        /usr/pkg/share/lua/5.3/lgi/namespace.lua:176: in function 'lgi.namespace.require'
        (...tail calls...)
        stdin:1: in main chunk
        [C]: in ?
> print(require("lgi.core")).module("cairo",2)
table: 0x7f7ff7b12100
stdin:1: attempt to index a nil value
stack traceback:
        stdin:1: in main chunk
        [C]: in ?
However, typelib for cairo is provided by gobject-introspection:
pkg_info -L gobject-introspection|grep cairo
/usr/pkg/lib/girepository-1.0/cairo-1.0.typelib
I would be very happy to receive any advice to identify the problem.

@ffauberteau Can you try print(require("lgi.core").module("cairo",2)) instead of print(require("lgi.core")).module("cairo",2)? (print around everything, not just the require)

@psychon You're right, I write a typo. But my first error was correct.
The problem was a building dependency. Now it works.
Thanks

@ffauberteau Could you provide more information about that dependency problem? Could others have the same problem and your solution would work for them as well?

I'm having this same issue with lgi. Can @ffauberteau or anyone else shed a bit of light on what the fix was?

Same issue here. I'm trying to use this library with the nix package manager and I can't make it work. Help would be appreciated.

@jorge-jbs "Nix" sounds a bit like "Linux" to me, so what does lua -e 'print(require("lgi.core").module("cairo", 2))' say for you? Also, no idea about the correct path for it (debian uses /usr/lib/x86_64-linux-gnu/libcairo.so.2 here), but where is your cairo library & is it called libcairo.so.2?

@psychon It prints nil	libcairo.so.2. Nix is not an usual package manager, cairo is located in /nix/store/mwmwbrnj2qvfcwscqx1fxfzzlhqfp011-cairo-1.14.10/lib/libcairo.so.2. But I don't think Nix is the problem.

@jorge-jbs Hm, so it did not find libcairo.so.2. LGI just uses g_module_open("libcairo.so.2", 0). In this case, it looks to me like the code in there just does dlopen("libcairo.so.2", RTLD_NOW). So all that I can tell you is that the dynamic loader does not find libcairo on your system / that the file is not in its search path.
Code for g_module_open: https://sources.debian.net/src/glib2.0/2.53.4-3/gmodule/gmodule.c/#L595 https://sources.debian.net/src/glib2.0/2.53.4-3/gmodule/gmodule-dl.c/#L98

@jorge-jbs Google found the following and to me it sounds like dlopen doesn't have much of a search path on Nix. You could try running with LD_LIBRARY_PATH=/nix/store/mwmwbrnj2qvfcwscqx1fxfzzlhqfp011-cairo-1.14.10/lib/ I guess, but that's mostly a hack. I don't see why you think that

But I don't think Nix is the problem.

https://nixos.org/nix-dev/2011-December/007412.html
https://nixos.org/nix-dev/2014-August/013822.html

It seems to me that the change in https://github.com/pavouk/lgi/commit/dab172c9769e161037e59bc34f9a665d33b89736 prevents the library search path from being used: an absolute path is used unconditionally in macOS.  I think this commit should be reverted. Instead, users/system administrators should make sure the libraries are available in the library search path.  It would be helpful for the error message to include a comment about setting LD_LIBRARY_PATH, or using pkg-config to find out what the library search path is.

I thinks this issue can be closed now that #331 has been merged. There is no need to add any symlinks any more (with GLIB >= 2.76) on master.


Can't initialize tunnel

I setup SSH Tunnel for mysql connect with auth. method pass and when i press Test connection i get
DBCException: Can't initialize tunnel
  DBException: Cannot establish tunnel
    com.jcraft.jsch.JSchException: JSchException: Auth fail

in ssh log i see
Received disconnect from xxx: com.jcraft.jsch.JSchException: Auth fail [preauth]
Same problem i found in syncany git and it was fixed by this commit, maybe this help you.

Please check debug log ($HOME/.dbeaver/.metadata/dbeaver-debug.log)
It contains pretty much debug logs for SSH, lines with prefix "SSH INFO:".
Post them here if they contain anything interesting.

debug log
2016-03-21 18:37:08.931 - SSH INFO: Connecting to X.X.X.X port 22
2016-03-21 18:37:08.936 - SSH INFO: Connection established
2016-03-21 18:37:08.942 - SSH INFO: Remote version string: SSH-2.0-OpenSSH_7.2
2016-03-21 18:37:08.943 - SSH INFO: Local version string: SSH-2.0-JSCH-0.1.53
2016-03-21 18:37:08.943 - SSH INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
2016-03-21 18:37:08.944 - SSH INFO: aes256-ctr is not available.
2016-03-21 18:37:08.944 - SSH INFO: aes192-ctr is not available.
2016-03-21 18:37:08.944 - SSH INFO: aes256-cbc is not available.
2016-03-21 18:37:08.945 - SSH INFO: aes192-cbc is not available.
2016-03-21 18:37:08.945 - SSH INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
2016-03-21 18:37:08.966 - SSH INFO: diffie-hellman-group14-sha1 is not available.
2016-03-21 18:37:08.967 - SSH INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
2016-03-21 18:37:08.967 - SSH INFO: SSH_MSG_KEXINIT sent
2016-03-21 18:37:08.970 - SSH INFO: SSH_MSG_KEXINIT received
2016-03-21 18:37:08.970 - SSH INFO: kex: server: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
2016-03-21 18:37:08.971 - SSH INFO: kex: server: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
2016-03-21 18:37:08.971 - SSH INFO: kex: server: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>2016-03-21 18:37:08.971 - SSH INFO: kex: server: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>2016-03-21 18:37:08.971 - SSH INFO: kex: server: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
2016-03-21 18:37:08.971 - SSH INFO: kex: server: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
2016-03-21 18:37:08.972 - SSH INFO: kex: server<EMAIL_ADDRESS>2016-03-21 18:37:08.972 - SSH INFO: kex: server<EMAIL_ADDRESS>2016-03-21 18:37:08.972 - SSH INFO: kex: server:
2016-03-21 18:37:08.972 - SSH INFO: kex: server:
2016-03-21 18:37:08.973 - SSH INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
2016-03-21 18:37:08.973 - SSH INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
2016-03-21 18:37:08.973 - SSH INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
2016-03-21 18:37:08.973 - SSH INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
2016-03-21 18:37:08.973 - SSH INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2016-03-21 18:37:08.974 - SSH INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2016-03-21 18:37:08.974 - SSH INFO: kex: client: none
2016-03-21 18:37:08.974 - SSH INFO: kex: client: none
2016-03-21 18:37:08.974 - SSH INFO: kex: client:
2016-03-21 18:37:08.974 - SSH INFO: kex: client:
2016-03-21 18:37:08.975 - SSH INFO: kex: server->client aes128-ctr hmac-sha1 none
2016-03-21 18:37:08.975 - SSH INFO: kex: client->server aes128-ctr hmac-sha1 none
2016-03-21 18:37:08.977 - SSH INFO: SSH_MSG_KEX_ECDH_INIT sent
2016-03-21 18:37:08.977 - SSH INFO: expecting SSH_MSG_KEX_ECDH_REPLY
2016-03-21 18:37:08.984 - SSH INFO: ssh_rsa_verify: signature true
2016-03-21 18:37:08.984 - SSH INFO: Host 'X.X.X.X' is known and matches the RSA host key
2016-03-21 18:37:08.985 - SSH INFO: SSH_MSG_NEWKEYS sent
2016-03-21 18:37:08.985 - SSH INFO: SSH_MSG_NEWKEYS received
2016-03-21 18:37:08.985 - SSH INFO: SSH_MSG_SERVICE_REQUEST sent
2016-03-21 18:37:08.989 - SSH INFO: SSH_MSG_SERVICE_ACCEPT received
2016-03-21 18:37:08.993 - SSH INFO: Disconnecting from X.X.X.X port 22
2016-03-21 18:37:08.993 - Connection failed (mariaDB-153995345d1-62032429b63a55a0)
2016-03-21 18:37:08.996 - org.jkiss.dbeaver.model.exec.DBCException: Can't initialize tunnel
	at org.jkiss.dbeaver.registry.DataSourceDescriptor.connect(DataSourceDescriptor.java:588)
	at org.jkiss.dbeaver.runtime.jobs.ConnectJob.run(ConnectJob.java:71)
	at org.jkiss.dbeaver.ui.dialogs.connection.ConnectionWizard$ConnectionTester.run(ConnectionWizard.java:210)
	at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:99)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.jkiss.dbeaver.DBException: Cannot establish tunnel
	at org.jkiss.dbeaver.model.impl.net.SSHTunnelImpl.initializeTunnel(SSHTunnelImpl.java:144)
	at org.jkiss.dbeaver.registry.DataSourceDescriptor.connect(DataSourceDescriptor.java:586)
	... 4 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
	at com.jcraft.jsch.Session.connect(Session.java:512)
	at org.jkiss.dbeaver.model.impl.net.SSHTunnelImpl.initializeTunnel(SSHTunnelImpl.java:133)
	... 5 more

I don't see any error which points on some bug.
And it is definitely not a wrong password.
Log looks like your server doesn't accept password authentication (maybe it accepts only public key?). Can you verify that password auth works there?
Provide any additional details, is there anything specific about SSH server?
syncany commit doesn't explain anything. Looks like a bugfix of password authentication.
DBeaver works with both password/public key authentications (this is a very old feature successfully used by thousands of people over a years).

No, server accept password login by root (I try root in this connect). Password not wrong.

I'll try run sshd with debug

DEBUG from sshd
Connection from X.X.X.X port 50007 on X.X.X.X port 22
debug1: Client protocol version 2.0; client software version JSCH-0.1.53
debug1: no match: JSCH-0.1.53
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2
debug2: fd 3 setting O_NONBLOCK
debug3: ssh_sandbox_init: preparing seccomp filter sandbox
debug2: Network child is on pid 1976
debug3: preauth child monitor started
debug3: privsep user:group 22:22 [preauth]
debug1: permanently_set_uid: 22/22 [preauth]
debug3: ssh_sandbox_child: setting PR_SET_NO_NEW_PRIVS [preauth]
debug3: ssh_sandbox_child: attaching seccomp filter program [preauth]
debug3: list_hostkey_types: ssh-dss key not permitted by HostkeyAlgorithms [preauth]
debug1: list_hostkey_types: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug3: send packet: type 20 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
debug3: receive packet: type 20 [preauth]
debug1: SSH2_MSG_KEXINIT received [preauth]
debug2: local server KEXINIT proposal [preauth]
debug2: KEX algorithms: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 [preauth]
debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>[preauth]
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>[preauth]
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: compression ctos<EMAIL_ADDRESS>[preauth]
debug2: compression stoc<EMAIL_ADDRESS>[preauth]
debug2: languages ctos:  [preauth]
debug2: languages stoc:  [preauth]
debug2: first_kex_follows 0  [preauth]
debug2: reserved 0  [preauth]
debug2: peer client KEXINIT proposal [preauth]
debug2: KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]
debug2: host key algorithms: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 [preauth]
debug2: ciphers ctos: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc [preauth]
debug2: ciphers stoc: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc [preauth]
debug2: MACs ctos: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96 [preauth]
debug2: MACs stoc: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96 [preauth]
debug2: compression ctos: none [preauth]
debug2: compression stoc: none [preauth]
debug2: languages ctos:  [preauth]
debug2: languages stoc:  [preauth]
debug2: first_kex_follows 0  [preauth]
debug2: reserved 0  [preauth]
debug1: kex: algorithm: ecdh-sha2-nistp256 [preauth]
debug1: kex: host key algorithm: ssh-rsa [preauth]
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: none [preauth]
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: none [preauth]
debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
debug3: receive packet: type 30 [preauth]
debug3: mm_key_sign entering [preauth]
debug3: mm_request_send entering: type 6 [preauth]
debug3: mm_key_sign: waiting for MONITOR_ANS_SIGN [preauth]
debug3: mm_request_receive_expect entering: type 7 [preauth]
debug3: mm_request_receive entering [preauth]
debug3: mm_request_receive entering
debug3: monitor_read: checking request 6
debug3: mm_answer_sign
debug3: mm_answer_sign: hostkey proof signature 0x5585cae1c3f0(271)
debug3: mm_request_send entering: type 7
debug2: monitor_read: 6 used once, disabling now
debug3: send packet: type 31 [preauth]
debug3: send packet: type 21 [preauth]
debug2: set_newkeys: mode 1 [preauth]
debug1: rekey after<PHONE_NUMBER> blocks [preauth]
debug1: SSH2_MSG_NEWKEYS sent [preauth]
debug1: expecting SSH2_MSG_NEWKEYS [preauth]
debug3: receive packet: type 21 [preauth]
debug2: set_newkeys: mode 0 [preauth]
debug1: rekey after<PHONE_NUMBER> blocks [preauth]
debug1: SSH2_MSG_NEWKEYS received [preauth]
debug1: KEX done [preauth]
debug3: receive packet: type 5 [preauth]
debug3: send packet: type 6 [preauth]
debug3: receive packet: type 50 [preauth]
debug1: userauth-request for user root service ssh-connection method none [preauth]
debug1: attempt 0 failures 0 [preauth]
debug3: mm_getpwnamallow entering [preauth]
debug3: mm_request_send entering: type 8 [preauth]
debug3: mm_getpwnamallow: waiting for MONITOR_ANS_PWNAM [preauth]
debug3: mm_request_receive_expect entering: type 9 [preauth]
debug3: mm_request_receive entering [preauth]
debug3: mm_request_receive entering
debug3: monitor_read: checking request 8
debug3: mm_answer_pwnamallow
debug2: parse_server_config: config reprocess config len 294
debug3: mm_answer_pwnamallow: sending MONITOR_ANS_PWNAM: 1
debug3: mm_request_send entering: type 9
debug2: monitor_read: 8 used once, disabling now
debug2: input_userauth_request: setting up authctxt for root [preauth]
debug3: mm_start_pam entering [preauth]
debug3: mm_request_send entering: type 100 [preauth]
debug3: mm_inform_authserv entering [preauth]
debug3: mm_request_send entering: type 4 [preauth]
debug2: input_userauth_request: try method none [preauth]
debug3: userauth_finish: failure partial=0 next methods="publickey,keyboard-interactive" [preauth]
debug3: send packet: type 51 [preauth]
debug3: mm_request_receive entering
debug3: monitor_read: checking request 100
debug1: PAM: initializing for "root"
debug1: PAM: setting PAM_RHOST to "X.X.X.X"
debug1: PAM: setting PAM_TTY to "ssh"
debug2: monitor_read: 100 used once, disabling now
debug3: mm_request_receive entering
debug3: monitor_read: checking request 4
debug3: mm_answer_authserv: service=ssh-connection, style=
debug2: monitor_read: 4 used once, disabling now
debug3: receive packet: type 1 [preauth]
Received disconnect from X.X.X.X port 50007:3: com.jcraft.jsch.JSchException: Auth fail [preauth]
Disconnected from X.X.X.X port 50007 [preauth]

Could you post sshd log for successful login? I wondering what authentication method/algorithm should be used.
Maybe there is some issue with key exchange algorithms.
Check this: http://stackoverflow.com/questions/26424621/algorithm-negotiation-fail-ssh-in-jenkins
I can't validate any of that ideas because I can't reproduce the problem and can't figure out what is the actual problem.

i cut log a bit for success login
Connection from X.X.X.X port 50672 on X.X.X.X port 22
debug1: Client protocol version 2.0; client software version PuTTY_Release_0.64
debug1: match: PuTTY_Release_0.64 pat PuTTY_Local:*,PuTTY-Release-0.5*,PuTTY_Release_0.5*,PuTTY_Release_0.60*,PuTTY_Release_0.61*,PuTTY_Release_0.62*,PuTTY_Release_0.63*,PuTTY_Release_0.64* compat 0x00004000
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2
debug2: fd 3 setting O_NONBLOCK
debug3: ssh_sandbox_init: preparing seccomp filter sandbox
debug2: Network child is on pid 2100
debug3: preauth child monitor started
debug3: privsep user:group 22:22 [preauth]
debug1: permanently_set_uid: 22/22 [preauth]
debug3: ssh_sandbox_child: setting PR_SET_NO_NEW_PRIVS [preauth]
debug3: ssh_sandbox_child: attaching seccomp filter program [preauth]
debug2: compat_kex_proposal: original KEX proposal: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 [preauth]
debug2: Compat: skipping algorithm "diffie-hellman-group-exchange-sha256" [preauth]
debug2: compat_kex_proposal: compat KEX proposal: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1 [preauth]
debug3: list_hostkey_types: ssh-dss key not permitted by HostkeyAlgorithms [preauth]
debug1: list_hostkey_types: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug3: send packet: type 20 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
debug3: receive packet: type 20 [preauth]
debug1: SSH2_MSG_KEXINIT received [preauth]
debug2: local server KEXINIT proposal [preauth]
debug2: KEX algorithms: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1 [preauth]
debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>[preauth]
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>[preauth]
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: compression ctos<EMAIL_ADDRESS>[preauth]
debug2: compression stoc<EMAIL_ADDRESS>[preauth]
debug2: languages ctos:  [preauth]
debug2: languages stoc:  [preauth]
debug2: first_kex_follows 0  [preauth]
debug2: reserved 0  [preauth]
debug2: peer client KEXINIT proposal [preauth]
debug2: KEX algorithms: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa2048-sha256,rsa1024-sha1 [preauth]
debug2: host key algorithms: ssh-rsa,ssh-dss [preauth]
debug2: ciphers ctos: aes256-ctr,aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-ctr,aes192-cbc,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,3des-ctr,3des-cbc,arcfour256,arcfour128 [preauth]
debug2: ciphers stoc: aes256-ctr,aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-ctr,aes192-cbc,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,3des-ctr,3des-cbc,arcfour256,arcfour128 [preauth]
debug2: MACs ctos: hmac-sha2-256,hmac-sha1,hmac-sha1-96,hmac-md5 [preauth]
debug2: MACs stoc: hmac-sha2-256,hmac-sha1,hmac-sha1-96,hmac-md5 [preauth]
debug2: compression ctos: none,zlib [preauth]
debug2: compression stoc: none,zlib [preauth]
debug2: languages ctos:  [preauth]
debug2: languages stoc:  [preauth]
debug2: first_kex_follows 0  [preauth]
debug2: reserved 0  [preauth]
debug1: kex: algorithm: diffie-hellman-group14-sha1 [preauth]
debug1: kex: host key algorithm: ssh-rsa [preauth]
debug1: kex: client->server cipher: aes256-ctr MAC: hmac-sha2-256 compression: none [preauth]
debug1: kex: server->client cipher: aes256-ctr MAC: hmac-sha2-256 compression: none [preauth]
debug2: bits set: 1049/2048 [preauth]
debug1: expecting SSH2_MSG_KEXDH_INIT [preauth]
debug3: receive packet: type 30 [preauth]
debug2: bits set: 1032/2048 [preauth]
debug3: mm_key_sign entering [preauth]
debug3: mm_request_send entering: type 6 [preauth]
debug3: mm_key_sign: waiting for MONITOR_ANS_SIGN [preauth]
debug3: mm_request_receive_expect entering: type 7 [preauth]
debug3: mm_request_receive entering [preauth]
debug3: mm_request_receive entering
debug3: monitor_read: checking request 6
debug3: mm_answer_sign
debug3: mm_answer_sign: hostkey proof signature 0x5555fb3e6450(271)
debug3: mm_request_send entering: type 7
debug2: monitor_read: 6 used once, disabling now
debug3: send packet: type 31 [preauth]
debug3: send packet: type 21 [preauth]
debug2: set_newkeys: mode 1 [preauth]
debug1: rekey after<PHONE_NUMBER> blocks [preauth]
debug1: SSH2_MSG_NEWKEYS sent [preauth]
debug1: expecting SSH2_MSG_NEWKEYS [preauth]
debug3: receive packet: type 21 [preauth]
debug2: set_newkeys: mode 0 [preauth]
debug1: rekey after<PHONE_NUMBER> blocks [preauth]
debug1: SSH2_MSG_NEWKEYS received [preauth]
debug1: KEX done [preauth]
debug3: receive packet: type 5 [preauth]
debug3: send packet: type 6 [preauth]
debug3: receive packet: type 50 [preauth]
debug1: userauth-request for user root service ssh-connection method none [preauth]
debug1: attempt 0 failures 0 [preauth]
debug3: mm_getpwnamallow entering [preauth]
debug3: mm_request_send entering: type 8 [preauth]
debug3: mm_getpwnamallow: waiting for MONITOR_ANS_PWNAM [preauth]
debug3: mm_request_receive_expect entering: type 9 [preauth]
debug3: mm_request_receive entering [preauth]
debug3: mm_request_receive entering
debug3: monitor_read: checking request 8
debug3: mm_answer_pwnamallow
debug2: parse_server_config: config reprocess config len 295
debug3: mm_answer_pwnamallow: sending MONITOR_ANS_PWNAM: 1
debug3: mm_request_send entering: type 9
debug2: monitor_read: 8 used once, disabling now
debug2: input_userauth_request: setting up authctxt for root [preauth]
debug3: mm_start_pam entering [preauth]
debug3: mm_request_send entering: type 100 [preauth]
debug3: mm_inform_authserv entering [preauth]
debug3: mm_request_send entering: type 4 [preauth]
debug2: input_userauth_request: try method none [preauth]
debug3: userauth_finish: failure partial=0 next methods="publickey,keyboard-interactive" [preauth]
debug3: send packet: type 51 [preauth]
debug3: mm_request_receive entering
debug3: monitor_read: checking request 100
debug1: PAM: initializing for "root"
debug1: PAM: setting PAM_RHOST to "X.X.X.X"
debug1: PAM: setting PAM_TTY to "ssh"
debug2: monitor_read: 100 used once, disabling now
debug3: mm_request_receive entering
debug3: monitor_read: checking request 4
debug3: mm_answer_authserv: service=ssh-connection, style=
debug2: monitor_read: 4 used once, disabling now
here difference with prevouse log>>debug3: receive packet: type 50 [preauth]
debug1: userauth-request for user root service ssh-connection method keyboard-interactive [preauth]
debug1: attempt 1 failures 0 [preauth]
debug2: input_userauth_request: try method keyboard-interactive [preauth]
debug1: keyboard-interactive devs  [preauth]
debug1: auth2_challenge: user=root devs= [preauth]

i try to play with KEX algorithms and MACs

@serge-rider what version of openssh are you use?

is this possible change for testing kex: algorithm for JSCH?

Look like problem in JSCH
work with OpenSSH_5.3p1, OpenSSL 1.0.1e
not work with OpenSSH_7.2p2, OpenSSL 1.0.2g

It definitely works with OpenSSH_6.6.1 and earlier. And at least with some 7.x versions too. JSch is the mainstream library in the Java world, I believe it is compatible with the most versions.
I can change most of JSch settings (including kex algorithms) but I need to know what to change.
I still have no clue what exactly causes this problem..

I've an issue with JSch whereby it kept trying public-key only and never even tried the password method but instead just gave up when the public key was rejected. It looks like the same thing is happening here (difference between success log and failure log is that "keyboard-interactive" is tried in the former).


DIsplay amount of GQ gained in ResetInfo text

Display the number of Golden Quarks gained on Singularity in the flavor text. It uses the same function that displays it in the Dialogs when confirming Singularity reset

Originally I wanted to create 2 separate Pull Requests, but it didn't work as I thought.
So this PR contains 2 features :

display GQ as explained above
add 3 new buttons in the Settings tab to have direct access to "daily", "add", and "time" codes. It looks like this


Rails 3.2 support

Whats about Rails 3.2 support? ActiveAdmin supports it.

Yep it pass on rails 3.2 now


Distance - Unable to use current location once the site location access is denied

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Issue found when executing PR https://github.com/Expensify/App/pull/25990
Action Performed:

Go to staging.new.expensify.com
Go to + > Request money > Distance
Go to Start > Use current location
Allow location permission
Turn off location permission
Refresh the page
Click Use current location
Reset site permission
Refresh the page
Click Use current location
Click Allow

Expected Result:
Every time location access on browser is allowed, the app is able to use current location feature
Actual Result:
Once the location access is denied on the mobile browser, the app is unable to use current location feature when the location access is re-enabled
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[x] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: v1.3.61-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/78819774/f0744e8c-9562-4766-b453-8c72639c1b17
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal team
Slack conversation:
View all open jobs on GitHub

I was looking into another deploy blocker linked to this, but I encountered this problem as well. The current location is super buggy lol It also does not work if you delete the current address and try to use the current location.

Since the original PR was reverted, I am removing the deploy blocker label!

thank you for the detailed explanations
If this is the browser behavior, then there is nothing we can do. Let's close this issue

That's a good idea
@huzaifa-99 this is a low priority task, so you can answer this when you have time. I just wanted to confirm the solution for this

After user denies the permission if then they want to grant location permission again, what should they do?

Memo video for myself
https://github.com/Expensify/App/assets/98560306/5b6852de-ee27-4bda-bd89-2c5c645ac6cb


[Feature]: Consider thrown thing should be Error

Package Scope
@suspensive/cache
Description
https://x.com/TkDodo/status/1819335882970718222?t=pnf_EMCov3H06BThGZg7BQ&s=19
I just want to share this to make you @SEOKKAMONI consider this idea
There is no todo to fix ours. But consider this idea to improve our library please if you agree
Possible Solution
No response
etc.
No response

I think it's a great idea. In React Query v4, the experience of errors being returned as unknown types was not favorable for TypeScript users, as it required additional type narrowing. With this idea, consistent type returns and explicit error returns through the Error type will provide a much better experience than before. Let's gradually improve together! For now, it seems that prioritizing the functionality of returning properties for errors is important.


No Cloud Accounts Prompt

Prompt users to create cloud accounts when:

viewing cloud accounts list

spinning up cluster

Coverage remained the same at 61.216% when pulling 1cb4ce7762423f32356a4302296aa2e51e99e677 on josephkane:no-cloud-accounts-fix into 128e836491262b2af66be057cee0954a3de4b10c on supergiant:master.

LGTM


[TypeChecker/SILGen] Dynamic enforcement of witness/objc isolation with @preconcurrency attribute

Initial implementation of @preconcurrency conformances and dynamic actor isolation enforcement that comes with them.
The PR:

Makes @preconcurrency attribute available in inheritance clauses of types and extensions
Suppresses witness actor isolation diagnostics when synchronous isolated member witnesses a synchronous requirement.
Emits intrinsic preconditions to witness thunks and @objc thunks to make sure that calls happens on expected executor.
Diagnoses @preconcurrency attributes on conformances as having no effect when no diagnostics were suppressed by them.

Resolves: rdar://102342433
Resolves: rdar://80972126

@swift-ci please test

@swift-ci please test source compatibility

@swift-ci please test source compatibility

@swift-ci please test

@swift-ci please test source compatibility

@swift-ci please test

@swift-ci please test Linux platform


Properly use the status/info MS REST APIs

Fixes #9472
Status
not-tested
Description
Summary of changes as follows:

replaced the data REST API by two other APIs: status and info
GET status REST API returns mostly the same data. However, one can provide the microservice name ?service=transferor (or monitor) to fetch further information about the last cycle of the service.
GET info REST API returns mostly the same data as the status API. However, one can provide a request name?request=REQUEST_NAME to fetch the transfer document for that request.
fixed the POST calls. For now it has the same behaviour as the info API.
created another module ServicesSummary to keep some of the data structures used within the MicroServices. Keys not yet enforced though.

Is it backward compatible (if not, which system it affects?)
Likely yes
Related PRs
none
External dependencies / deployment changes
It requires these deployment changes: https://github.com/dmwm/deployment/pull/828

Alan, if you plan to make these changes may be you may consider to provide /metrics end-point. This is common convention for Prometheus exporters which I can set for MS service. Then all of the metrics will appear in Prometheus and we can build dashboard about MS status, set alerts, etc. This name is only a convention, it can be any other name too. I just want to mention this.

Valentin, given that that api is not essential and/or needed by the end user, I'll tackle it in a different pull request later in the next week. Thanks for the suggestion though.

@vkuznet I'm still running some final tests, but it would be great if you could have a look at this PR before we start the weekend. If everything goes well, I'm likely merging it still tonight. Thanks

Alan,
sorry for being late, I'm on a road and without internet. I did a brief review and everything looks good to me.

Thanks for the review, Valentin.
I was investigating the source of the duplicate records in the log, and it turns out that RestApiHub doesn't only create an instance of the REST API, but it also runs the whole application (MSManager).
In other words, for each each API defined here (using the same Data class):
https://github.com/dmwm/WMCore/blob/master/src/python/WMCore/MicroService/Service/RestApiHub.py#L35
a whole application gets executed in this line (MSManager):
https://github.com/dmwm/WMCore/blob/master/src/python/WMCore/MicroService/Service/Data.py#L52
Thus, the duplicate records is actually multiple instances of the same application!
I need to think what's the best way to solve it, which could be:

separating the application from the REST service/apis
using a different module for every REST api
something else...

Problem solved in the 3rd commit by defining Data as a singleton class. Tests look fine, but I'll x-check again tomorrow morning.
It also requires changes to the spec file, which needs to now Requires: py2-future

Tests look good and I'm merging it to move on.


[Snyk] Security upgrade subscriptions-transport-ws from 0.9.18 to 0.11.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

integration/package.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

586/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.3
Regular Expression Denial of Service (ReDoS) SNYK-JS-WS-1296835
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: subscriptions-transport-ws
    The new version differs by 61 commits.

05a828f 0.11.0
1e4a7a0 Upgrade graphql-subscriptions dev dep to support graphql@16
a8bbabf Support for `graphql@16` and bump minimal supported version (#902)
231c1b0 Update dependency gatsby-theme-apollo-docs to v4.7.18
11caacc Update dependency gatsby-theme-apollo-docs to v4.7.16
215d48b Update dependency gatsby-theme-apollo-docs to v4.7.15
5102622 Update dependency path-parse to 1.0.7 [SECURITY] (#890)
5247b04 Update dependency gatsby-theme-apollo-docs to v4.7.14
9019f95 Update dependency gatsby-theme-apollo-docs to v4.7.13
71aba2f Update dependency gatsby-theme-apollo-docs to v4.7.12
d0d0884 Update dependency gatsby-theme-apollo-docs to v4.7.11
8e042c9 Revert "0.9.19"
299fdb3 0.9.19
fcd41d2 CHANGELOG again
9883a8f 0.10.0
0c427c6 Bump `ws` dependency to allow v6 and v7. (#879)
ffc6b67 Update dependency gatsby-theme-apollo-docs to v4.7.9
c7d4bc7 Update dependency gatsby-theme-apollo-docs to v4.7.6
0cdf55b Update dependency gatsby-theme-apollo-docs to v4.7.4
ab678af Update dependency gatsby to v2.32.13
b5faffa Update dependency gatsby-theme-apollo-docs to v4.7.3
c6fb351 Update dependency gatsby to v2.32.12
93f51d9 Update dependency gatsby-theme-apollo-docs to v4.7.2
10323ff Update dependency gatsby-theme-apollo-docs to v4.7.1

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 75.398%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
6203

Relevant Lines:
8227

💛  - Coveralls


Typo in ns-windot11-_dot11_received_invitation_response_parameters.md

Remove duplicated 'the'.

Hi @agriffard , thanks again for the catch. We'll merge this PR along with your other one soon.


Get the current temperature from Tasmota Device

This is the PR for #5.

What is the status here @macjl?

Sorry. I was very busy last weeks because of a new job. This is still on my todo. I’ll try to have a look before next week-end.

Ah! Congratulations :)
Just wanted to be sure you didn’t wait for me 👍

I changed the logic as you said.
But I think there is something is still missing : when the temperature is retrieved from Tasmota, we have to call updateValue, to notify HomeKit of the new temperature. I will add that in next Commit.

I think all the issue I've found are now resolved. Do you think there are something else I have to do for this PR ?

I am using ESP8266 1.0 device flashed with Tasmota-ir.bin file. Everything is working fine, i control two acs with one device. I want to update the current temperature in Home app. Now i dont know what gpio pin to connect the DHT22 sensor to. And also i will have to map it on tasmota configration page. But there is no DHT22 sensor on the list.
How do i connect the dht22 sensor such that my device can fetch the temp and update on home app

.


exclude NY HER "coming soon" cards

Description
Describe the purpose and mechanics of this change. If applicable, include links/references to issues, docs, tickets, etc.
Test Plan
Describe what you did to test this PR. Reviewers can use this to identify additional cases that might have been missed. Be sure another developer could follow the same steps.
Changes should be tested at all three screen breakpoints (small, medium, large), and shouldn't interfere with accessibility (especially for screen reader and keyboard users).

trying to debug the color contrast issue, e.g.
    {
        "any": [
            {
                "id": "color-contrast",
                "data": {
                    "fgColor": "#adaa9d",
                    "bgColor": "#fffcef",
                    "contrastRatio": 2.26,
                    "fontSize": "12.0pt (16px)",
                    "fontWeight": "normal",
                    "messageKey": null,
                    "expectedContrastRatio": "4.5:1"
                },
                "relatedNodes": [
                    {
                        "html": "
",
                        "target": [
                            "#headlessui-listbox-options-\\:rg\\:"
                        ]
                    }
                ],
                "impact": "serious",
                "message": "Element has insufficient color contrast of 2.26 (foreground color: #adaa9d, background color: #fffcef, font size: 12.0pt (16px), font weight: normal). Expected contrast ratio of 4.5:1"
            }
        ],
        "all": [],
        "none": [],
        "impact": "serious",
        "html": "Battery storage",
        "target": [
            "#headlessui-listbox-option-\\:rh\\: > .grow"
        ],
        "failureSummary": "Fix any of the following:\n  Element has insufficient color contrast of 2.26 (foreground color: #adaa9d, background color: #fffcef, font size: 12.0pt (16px), font weight: normal). Expected contrast ratio of 4.5:1"
    }


python312Packages.meshtastic: 2.5.2 -> 2.5.3

Diff: https://github.com/meshtastic/Meshtastic-python/compare/refs/tags/2.5.2...2.5.3
Changelog: https://github.com/meshtastic/python/releases/tag/2.5.3

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 349786 run on x86_64-linux 1

4 packages built:

python311Packages.meshtastic
python311Packages.meshtastic.dist
python312Packages.meshtastic
python312Packages.meshtastic.dist


It must be possible to control serialization of fields or properties.

@manstis may i ask you to take a look, i hope, this it what you need

Works great, thank-you @treblereel.
You'll need to format your code though; building locally I received this:
[ERROR] Found 1 non-complying files, failing build
[ERROR] To fix formatting errors, run "mvn com.coveo:fmt-maven-plugin:format"
[ERROR] Non complying file: /home/manstis/workspaces/git/manstis/forks/mapper-xml/tests/jre/src/test/java/org/treblereel/gwt/xml/mapper/client/tests/pmml/model/PMMLTest.java

@manstis thanks!
ok, i am merging it and releasing 0.3 to sonatype with current set of features

Don't forget to close https://issues.redhat.com/browse/KOGITO-5499!


Remove redundant code in hmc.jl

The removed lines should be covered by the combination of
https://github.com/TuringLang/Turing.jl/blob/b3a13a158126ee88b8ad4f4b17e20263b33dd730/src/mcmc/abstractmcmc.jl#L38-L39 and https://github.com/TuringLang/Turing.jl/blob/b3a13a158126ee88b8ad4f4b17e20263b33dd730/src/mcmc/Inference.jl#L225-L230

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.03%) to 87.052%

Totals

Change from base Build<PHONE_NUMBER>5:
-0.03%

Covered Lines:
1385

Relevant Lines:
1591

💛  - Coveralls


formatting crashes on my Gruntfile.js

When formatting, following exception is being thrown. The file is not getting reformatted.
JSFMT
Error:
/Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/jsfmt.js:31
        throw err;
              ^
Error: Line 427: Unexpected string
    at throwError (/Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/node_modules/jsfmt/node_modules/rocambole/node_modules/esprima/esprima.js:1156:21)
    at throwUnexpected (/Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/node_modules/jsfmt/node_modules/rocambole/node_modules/esprima/esprima.js:1195:13)
    at expect (/Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/node_modules/jsfmt/node_modules/rocambole/node_modules/esprima/esprima.js:1222:13)
    at parseArrayInitialiser (/Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/node_modules/jsfmt/node_modules/rocambole/node_modules/esprima/esprima.js:1320:21)
    at parsePrimaryExpression (/Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/node_modules/jsfmt/node_modules/rocambole/node_modules/esprima/esprima.js:1552:20)
    at /Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/node_modules/jsfmt/node_modules/rocambole/node_modules/esprima/esprima.js:3609:38
    at trackLeftHandSideExpressionAllowCall (/Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/node_modules/jsfmt/node_modules/rocambole/node_modules/esprima/esprima.js:3504:61)
    at parsePostfixExpression (/Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/node_modules/jsfmt/node_modules/rocambole/node_modules/esprima/esprima.js:1703:20)
    at /Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/node_modules/jsfmt/node_modules/rocambole/node_modules/esprima/esprima.js:3609:38
    at parseUnaryExpression (/Users/amit/Library/Application Support/Sublime Text 3/Packages/jsfmt/node_modules/jsfmt/node_modules/rocambole/node_modules/esprima/esprima.js:1784:16)

If there are any more details I could provide please ask.
Thank you

I am having the same error The formatting failed please check the console for more details, Can you point me in the right direction please?

@rkhayat I'm not sure that jsfmt offers full support for ES6/7. You can check in their issues list for more info.

Hi @ionutvmi I have posted in their repo. https://github.com/rdio/jsfmt/issues/169

@rkhayat I took a closer look at the error message and it says
Cannot find plugin '[object Object]'. Make sure you used the correct name on the config file or run `npm install --save-dev [object Object]` to add it as a project dependency.

Can you check if you double check that you installed the plugin correctly ?
You should do an npm install in the folder where jsfmt is installed.

Aren't you able to install it globally instead of per project? @ionutvmi

no, the plugin should not be installed globally.
You only have to install it once in your jsfmt folder.
You can access that by going to Preferences -> Browser Packages -> jsfmt.
The follow the instructions from the esformatter-jsx wiki and it should work.

I believe it's working now, thank you. Is there a reason my Decorator was replaced with ____decorator__at_sign___Radium


Updating height of drawer

For redrawing at a different height (after going fullscreen for example) I came up with this
// destroy old drawing
this.surfer.drawer.destroy();

// set new height
this.surfer.params.height = 900;
this.surfer.createDrawer();

// redraw
this.surfer.drawBuffer();

// make sure playhead is restored at correct position
this.surfer.drawer.progress(this.surfer.backend.getPlayedPercents());

It would be nice if this code is maintained here. Can a setHeight or something be added?

I've added the setHeight method in https://github.com/katspaugh/wavesurfer.js/commit/1b9189e63963806bcad4a463a83e4fb6d8e3e99c#diff-0333441833ed71523c3686dac5804d80R149


Version 1.0.0 The example project crashes on RN 0.40.0

I cloned the code submitted by 2017-01-11, running inside the example project, it would crash

@LiuCao I had a couple of crashers as well.
In RCTVideo

Sometimes source[@"type"] would be nil and would crash in setSrc:.
Sometimes self.onPlaybackRateChange would be nil and crash in observeValueForKeyPath:ofObject:change:context:

I'm also experiencing this issue. Any recommended fixes?

How to download the version 1.0.0？   npm install， Can only be downloaded v0.9.0.

@yushan023
npm i -S git://github.com/react-native-community/react-native-video.git

react-native link react-native-video

@joekim @smkhalsa
Xcode shows the crash log is:
[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'
The error means  trying to put nil in the dictionary (which is not allowed).
My fix method is ：

@joekim @smkhalsa
Xcode shows the crash log is:
[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'
The error means  trying to put nil in the dictionary (which is not allowed).
My fix method is ：

@LiuCao Yep, that's one of the two issues I encountered. The 2nd one is in observeValueForKeyPath:ofObject:change:context. I can push my fork with work arounds if that'll help. I'm not sure why source[@"type"] but I just put some protections in case it was.
I have one other change and that's to expose all the ivars and methods in the RCTVideo.h. The reason why is because I implemented a "fast" scrubber and it's easier to swizzle methods if everything is exposed via the header.

@LiuCao, thanks for the suggestion. I put together your Objective C changes with an additional JS change from @smkhalsa above; see https://github.com/react-native-community/react-native-video/pull/455. What do you guys think of combining everything for this particular fix there in one place?

@abrahambotros How about the crasher where "self.onPlaybackRateChange" can be nil and crash in "observeValueForKeyPath:ofObject:change:context:"?

@joekim, good point, sorry for dismissing that. I haven't been able to replicate that error on my setup yet, but it looks like maybe people are discussing the same error here: https://github.com/react-native-community/react-native-video/pull/444. I'll edit my comment above to note that I was only addressing the source[@type] = nil NSDictionary error. Thanks for catching that!

I think #444 and #455 are both critical and will hopefully go in the next release.

I have the same problem.
Here's how I'm using the component:
<Video
        source={{ uri: 'https://someurl.com/files/file.mp3' }}
        rate={1.0}
        volume={1.0}
        paused={!playing}
        resizeMode="cover"
        progressUpdateInterval={1000}
        onLoadStart={onLoadStart}
        onLoad={this.setDuration}
        onProgress={this.setTime}
        onEnd={this.onEnd}
        playInBackground
        playWhenInactive
      />

The I got this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'

RN: 0.40
RBVideo: master

This issue should be fixed now in master and in the newly minted 1.0 release


Include tests in sdist tarball

Fixes: https://github.com/kennethreitz/requests/issues/4024

Codecov Report

Merging #4027 into master will decrease coverage by 0.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4027      +/-   ##
==========================================
- Coverage   89.74%   89.58%   -0.16%
==========================================
  Files          15       15
  Lines        1940     1940
==========================================
- Hits         1741     1738       -3
- Misses        199      202       +3

Impacted Files
Coverage Δ

...es/urllib3/packages/ssl_match_hostname/__init__.py
83.33% <0%> (-10%)
:arrow_down:

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 0280a18...f823125. Read the comment docs.


Update to socket2 v0.4.0

I've limited the changes as much as possible, e.g. I didn't add any use statements.
/cc @eliza some TODOs have your name on them, might want to look if there still valid.

@sfackler I've committed your changed via GitHub, so you might want to squash the two commits.

Anything else I need to do to get this merged?


Not understanding call to compareFn

//
// comaprator
//
// Return true when a < b
BiwaScheme.lt = function(a, b) {
  if(typeof a !== typeof b){
    return compareFn(typeof a, typeof b);
  }
  return a < b;
};

where is this compareFn coming from. I've searched the codebase and the only other place I see it is inside 'Sorting', inside and IIFE, so it shouldnt be available in this scope. Additionally, it's other appearance is in a call to BiwaScheme.lt so it would seem to cause a circular dependency?

Hmm, this looks strange... compareFn refers BiwaScheme.lt and BiwaScheme.lt referes compareFn (which should be the argument of lt). I think we need more test cases for list-sort.


Fix urls when filename contains multiple dots.

When a file contains multiple dots like foo.test.js we'd treat everything after the first dot as an extension as opposed to everything after the last dot.
This is a regression introduced in #49 which I missed during my review.

Going to go ahead and merge this myself since the fix is trivial.


You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file

Hi, when I generated webpack with npm start, added dependencies for ol-street-view and interact in my proyect, this error always is present :(
error  in ./node_modules/ol-street-view/lib/ol-street-view.js
Module parse failed: Unexpected token (60:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|  */
| class StreetView extends Control {
>     options;
|     _i18n;
|     // Ol

 @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/pro/MyComponent.vue?vue&type=script&lang=js& 182:0-108 632:29-39
 @ ./src/components/pro/MyComponent.vue?vue&type=script&lang=js&
 @ ./src/components/pro lazy ^\.\/.*$ namespace object
 @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/El.vue?vue&type=script&lang=js&
 @ ./src/views/El.vue?vue&type=script&lang=js&
 @ ./src/views/El.vue
 @ ./src/router/index.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://IP:PORT&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

 WAIT  Compiling...                                                                                17:25:10

98% after emitting CopyPlugin

 ERROR  Failed to compile with 1 error                                                                                17:25:14

 error  in ./node_modules/ol-street-view/lib/ol-street-view.js

Module parse failed: Unexpected token (60:15)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|  */
| class StreetView extends Control {
>     options;
|     _i18n;
|     // Ol

It's beacause the last version is compiled using "esnext" as target. You probably need to use some babel plugin compiler with webpack (or maybe a newer webpack?)... But, i'm gonna rebuild the lib in an older target so there is no need of that.
Today or tomorrow is gonna be updated.

@runando v2.1.2 is published, compiled from typescript using es2017 as target (a better option i assume). Let me know how it works.


Add context to metrics, fix single phase voltage

Should fix #169 but will need testing @eogmau, context also added to metrics to separate charging metrics from clock sampled ones

Thanks @drc38 is showing the voltage correctly now.


Create Moyo-Made.json

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[X ] My code follows the code style of this project.
[X] My change requires changes to the documentation.
[X ] I have updated the documentation accordingly.
[ X] All new and existing tests passed.
[X ] This PR does not contain plagiarized content.
[X ] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Looks good 👍
Welcome to Eddiehub community 🎉🎉

Thank you💪🏾


error LNK2001: unresolved external symbol

Hi. I'm getting a bunch of these errors when building on windows during the node-gyp rebuild step. Have not made any changes to project. Build for osx went through without any problems. Any help would be greatly appreciated.
example errors:
id.obj : error LNK2001: unresolved external symbol idevice_device_list_free
info.obj : error LNK2001: unresolved external symbol idevice_new
backup2.obj : error LNK2001: unresolved external symbol plist_array_get_item

If you have closed this issue I suppose your problem has been solved. Anyways, be sure that you fulfill all the requeriments described on the README


[FEATURE]: Contributor Page Design

Feature Summary
I'm thinking of some sort of card Component which display our Github profile, name, and optional link to maybe Github profile page or something
Contributor model:

name: string
img: string // maybe image url
commits: number // maybe we can sort contributor page base on their number of commits
githuburl: string // github profile page
...etc

What do you guy think?
Code of Conduct

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

I will try working on this. If you guy have any suggestion you can dm me discord @phoukiethseng

Now me and @trace2798 are working together on this

I have an idea on the design would love to work on it


Browser usage is not supported at this time

My current situation does need this functionality. The LESS files are compiled on the client, and we use modifyVars after a settings is changed by the user.
Do you hava an idea how this library could theortically be extended for this to work? I would be willing to contribute.
As less.modifyVars does not return the result, but adapts the DOM, it is not easy to chain an autoprefix after it. A solution could be to look at the latest introduced <style> tag and autoprefix it. Howver that feels really hacky.

plugins are supported browserside, all you'd need to do is package this
plugin and auto prefixer (say using browserify) into a file and set a
window.less.plugins before less.js is loaded.

Thanks for the input.
I bundled using:
browserify --standalone AutoprefixProcessor main.js -o bundle.js

And then registered as:
less.plugins = [
    new window.AutoprefixProcessor({
        browsers: ['> 0.5% in NL', 'last 3 versions', 'Firefox ESR']
    })
];

But gives no input.
Most likely related to version 1.7.2 of Less I am running. First need to upgrade that.

yes, it needs a v2..

Thanks for helping out. So we upgraded from the 1.7.2 release (which was long due ;))!
Using the dutch set does not work. It fails

Uncaught (in promise) Error: Cannot find module 'caniuse-db/region-usage-json/NL'

Even though I explicitly required it in my main.js file and the set seems to be present in the bundle:
use-db/region-usage-json/NLvar usage = require('caniuse-db/region-usage-json/NL');
module.exports = require('./lib/index.js');

The JS file that I build this way has a minimized file size of 1.2MB :fearful:

There is a clean solution for this now. That is using postcss using the less syntax. That we I can generate a autoprefixed LESS file that I serve to the front-end.
You +1 on closing this one @lukeapage?


Variables in for loops don't seem to be evaluated?

Trying to make this description short and to the point. Let me know if you need more info.
I have a custom filter:
static func keys(value: Any?) throws -> Any? {
        guard let dictionary = value as? [String: Any] else { throw FilterError.InvalidInputType }
        return Array(dictionary.keys)
    }

In my .stencil file:
{% for field in spec|keys %}

However, it seems like it assumes "spec|keys" is the name of my variable and doesn't try to evaluate it.
Is there something I'm missing here? Or is there a better way of doing this?

Got it working with something like:
public class ForNode : NodeType {
  let variable:ExpressionType
  let loopVariable:String
  let nodes:[NodeType]
  let emptyNodes: [NodeType]

  enum ExpressionType {
    case variable(Variable)
    case filterExpression(FilterExpression)
  }

if variable.containsString("|") {
      if let filter = try? FilterExpression(token: variable, parser: parser) {
        self.variable = .filterExpression(filter)
      } else {
        // Hack to get around the try? for now
        self.variable = .variable(Variable(variable))
      }
    } else {
      self.variable = .variable(Variable(variable))
    }

public func render(context: Context) throws -> String {
    let values: Any?
    switch variable {
    case .variable(let variable):
      values = try variable.resolve(context)
    case .filterExpression(let expression):
      values = try expression.resolve(context)
    }

Not sure if this is the right way of doing it. But can pull request if you think something along these lines is right (fixing the hack).

@plivesey Yes I'd love a pull request. This is something that isn't yet supported.
I think this can be implemented a little simpler than the changes you have made. You don't need to add the complexity of detecting if it is a filter expression. FilterExpression internally will already handle if there are no filters. You can remove the use of Variable and only deal with FilterExpression.
This is similar to how VariableNode's are always constructed from a FilterExpression.
VariableNode(variable: try compileFilter(token.contents))

Yeah, I was thinking of the same thing. I'll create a pull request at some point...probably not going to work on this for a while, but maybe I'll get the pull request done earlier.
Thanks.

Btw, I think it's unlikely I'll submit this pull request any time soon. Turns out I didn't need this for my project and the project is taking longer than expected. So not much extra time...but hopefully one day, I'll get round to it.


Restoring a deleted database that was in an elastic pool goes to standard.

Steps to reproduce.

Delete a DB that in an elastic pool.
Recover the DB from deleted DB and use the latest PITR backup available.
The restored DB doesnt go back to the original elastic pool but rather gets created as "Standard S0: 10 DTUs"

Is this the expected behaviour.

What is the status on this ? It's been more than 3 years and this is still not possible choosing to put the restored database back in its elastic pool

Hi @femsulu @Mike-Ubezzi-MSFT, It's been more than 3 years and this is still not possible choosing to put the restored database back in its elastic pool, and your uservoice entry is a dead link. What is the status on this ?

@adamency @g0pinath @Mike-Ubezzi-MSFT @femsulu I have created a new idea on the Azure SQL Database UserVoice . Whoever reads this, please upvote. Since this issue is still not fixed.


Typing error for custom repository when using EntitySchema

Describe the bug
When I set a custom repository via EntitySchema I get a typing error:

Type '() => typeof UserRepository' is not assignable to type '() => Constructor<EntityRepository>'.
Types of construct signatures are incompatible.
Type 'new (em: EntityManager<IDatabaseDriver>, entityName: EntityName) => UserRepository' is not assignable to type 'new (...args: any[]) => EntityRepository'.
Construct signature return types 'UserRepository' and 'EntityRepository' are incompatible.
The types returned by 'getReference(...)' are incompatible between these types.
Type '{ id: number; } & Reference' is not assignable to type 'ScalarReference | ({ _id: any; id: any; uuid: any; } & Reference)'.
Type '{ id: number; } & Reference' is not assignable to type '{ _id: any; id: any; uuid: any; } & Reference'.
Type '{ id: number; } & Reference' is missing the following properties from type '{ _id: any; id: any; uuid: any; }': _id, uuid

Please see the reproduction.
Reproduction
https://stackblitz.com/edit/mikro-orm-reproduction-kybqh5?file=src%2Fuser.entity.ts
What driver are you using?
@mikro-orm/mysql
MikroORM version
6.0-rc2
Node.js version
v18.16.1
Operating system
Ubuntu
Validations

[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Slack.
[X] The provided reproduction is a minimal reproducible example of the bug.

Wow, that was fast :)
Thanks and looking forward for the final 6.0 release.


Investigate Android actions and slices

https://developer.android.com/guide/slices/

https://android-developers.googleblog.com/2018/07/how-creating-action-can-complement-your.html?utm_source=dev_newsletter&utm_medium=email&utm_campaign=july_2018

NOt happening


SourceMap is broken

It appears that sourcemap support is broken. Both the file and sources properties are empty.
# out: test.js, sourcemap: true
i = 0

Sourcemap output:
{
  "version": 3,
  "file": "",
  "sourceRoot": "",
  "sources": [
    ""
  ],
  "names": [],
  "mappings": "AAEA;AAAA,MAAA;;EAAA,CAAA,GAAI;AAAJ"
}

Hello Jeroen, thank you for the report. I think I've fixed this issue on the main branch, could you please verify that?

Just tried your code and getting an error:
coffee-script:
Error: Cannot find module 'coffee-script' from 'C:\Users\jerone\Desktop\test'

It's been an while since I used coffeescript out of Atom

Thanks for letting me know. I added a feature that tries to load a local coffee-script installation from the path of the .coffee file, but it seems that it failed when no local copy was available. New version should fix that.

Thanks for fixing.
I can confirm that the sourcemap is created now.
It how however doesn't show relative paths with above code example:
{
  "version": 3,
  "file": "C:\\Users\\jerone\\Desktop\\test\\test.js",
  "sourceRoot": "",
  "sources": [
    "C:\\Users\\jerone\\Desktop\\test\\test.coffee"
  ],
  "names": [],
  "mappings": "AACA;AAAA,MAAA;;EAAA,CAAA,GAAI;AAAJ"
}

Ok, there was an issue where it used the full absolute path when a file didn't belong to any of the open project folders. I also forgot to take Windows path separators into account. That should be fixed on the master branch. Unfortunately I do not have a machine running Windows, so I can't really test if everything works over there.

Unfortunately I do not have a machine running Windows, so I can't really test if everything works over there.

Just tested the latest code and this is the output:
{
  "version": 3,
  "file": "C:\\Users\\jerone\\Desktop\\test\\test.coffee.js",
  "sourceRoot": "",
  "sources": [
    "test.coffee"
  ],
  "names": [],
  "mappings": "AACA;AAAA,MAAA;;EAAA,CAAA,GAAI;AAAJ"
}

Only thing left is the file changing to a relative path.

Ok, everything should work now. For some reason I was trying to set the "file" entry to a path relative to the current project. I've changed it so it will just take the filename.

Looks good :+1: :shipit:

Alright! v0.6.2 released :fireworks: Thanks for the help Jeroen!


import from hosts.db

how can i get a valid import-file(json?) from an hosts.db-file ?
can i get to it by sqlite3 / sed / awk ?

@trueshanti There is no functionality to import from a db file. I guess there is somehow a way to get from a db to json, in the end it is the same data. But nothing out of the box.
If you have a .db file you could copy it to the target phone. Or you do a json export on the source phone by the "export hostlist" and directly send it to the target phone where you could import it.