Blocking call to open inside the event loop

Version of the custom_component

2023.11.1
Configuration
Standard configuration via UI
Describe the bug
HA Logs show the above warning.
This is issued since 2024.6.0 and will most likely lead to an error in the future.
Full log entry below.
Error (Warning) log

2024-06-13 16:42:58.723 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'govee' at custom_components/govee/learning_storage.py, line 28: learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML) (offender: /usr/src/homeassistant/homeassistant/util/yaml/loader.py, line 226: with open(fname, encoding="utf-8") as conf_file:), please create a bug report at https://github.com/LaggAt/hacs-govee/issues
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 742, in async_setup_locked
await self.async_setup(hass, integration=integration)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/govee/__init__.py", line 64, in async_setup_entry
_, err = await hub.get_devices()
File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/govee_api_laggat.py", line 312, in get_devices
_, err_api = await self._api.get_devices()
File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/api.py", line 244, in get_devices
learning_infos = await self._govee._learning_storage._read_cached()
File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/learning_storage.py", line 30, in _read_cached
self._learned_info = await self.read()
File "/config/custom_components/govee/learning_storage.py", line 28, in read
learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML)

Nah. Issue is that you are calling load_yaml. You can't do that from event loop. Must be done in executor.

Hmm, I thought this could be a quick fix, but after doing
learned_dict = await self._hass.async_add_executor_job(load_yaml(self._config_dir + LEARNING_STORAGE_YAML))

I still get:
Detected blocking call to open inside the event loop by custom integration 'govee' at custom_components/govee/learning_storage.py, line 29:
learned_dict = await self._hass.async_add_executor_job(load_yaml(self._config_dir + LEARNING_STORAGE_YAML))

I'm confused...

Hi,
I have encountered the same issue with the govee custom integration on Home Assistant. Here are the details of my setup and the error logs:
Setup Information:

Home Assistant Core Version: 2024.6.4
Supervisor Version: 2024.06.2
Operating System Version: 12.4
Frontend Version: 20240610.1

Error Log:
2024-06-29 00:35:11.478 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'govee' at custom_components/govee/learning_storage.py, line 28: learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML) (offender: /usr/src/homeassistant/homeassistant/util/yaml/loader.py, line 226: with open(fname, encoding="utf-8") as conf_file:), please create a bug report at https://github.com/LaggAt/hacs-govee/issues
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 742, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/govee/__init__.py", line 64, in async_setup_entry
    _, err = await hub.get_devices()
  File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/govee_api_laggat.py", line 312, in get_devices
    _, err_api = await self._api.get_devices()
  File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/api.py", line 244, in get_devices
    learning_infos = await self._govee._learning_storage._read_cached()
  File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/learning_storage.py", line 30, in _read_cached
    self._learned_info = await self.read()
  File "/config/custom_components/govee/learning_storage.py", line 28, in read
    learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML)

the same here:
Rejestrator: homeassistant.util.loop
Źródło: util/loop.py:136
Pierwsze zdarzenie: 13:01:19 (1 zdarzenia)
Ostatnio zalogowany: 13:01:19

Detected blocking call to open with args ('/config/govee_learning.yaml',) inside the event loop by custom integration 'govee' at custom_components/govee/learning_storage.py, line 28: learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML) (offender: /usr/src/homeassistant/homeassistant/util/yaml/loader.py, line 226: with open(fname, encoding="utf-8") as conf_file:), please create a bug report at https://github.com/LaggAt/hacs-govee/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 734, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/govee/__init__.py", line 64, in async_setup_entry _, err = await hub.get_devices() File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/govee_api_laggat.py", line 312, in get_devices _, err_api = await self._api.get_devices() File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/api.py", line 244, in get_devices learning_infos = await self._govee._learning_storage._read_cached() File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/learning_storage.py", line 30, in _read_cached self._learned_info = await self.read() File "/config/custom_components/govee/learning_storage.py", line 28, in read learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML)

I'm also encountering this issue.
Core 2024.7.0
Supervisor 2024.06.2
Operating System 12.4
Frontend 20240703.0
HACS Govee integration 2023.11.1.
Logger: homeassistant.util.loop
Source: util/loop.py:136

Detected blocking call to open with args ('/config/govee_learning.yaml',) inside the event loop by custom integration 'govee' at custom_components/govee/learning_storage.py, line 28: learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML) (offender: /usr/src/homeassistant/homeassistant/util/yaml/loader.py, line 226: with open(fname, encoding="utf-8") as conf_file:), please create a bug report at https://github.com/LaggAt/hacs-govee/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 734, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/govee/__init__.py", line 64, in async_setup_entry _, err = await hub.get_devices() File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/govee_api_laggat.py", line 312, in get_devices _, err_api = await self._api.get_devices() File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/api.py", line 244, in get_devices learning_infos = await self._govee._learning_storage._read_cached() File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/learning_storage.py", line 30, in _read_cached self._learned_info = await self.read() File "/config/custom_components/govee/learning_storage.py", line 28, in read learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML)

Detected blocking call to open with args ('/config/.matrix.conf',) inside the event loop by integration 'matrix' at homeassistant/components/matrix/__init__.py, line 345: return load_json_object(self._session_filepath) (offender: /usr/src/homeassistant/homeassistant/util/json.py, line 78: with open(filename, mode="rb") as fdesc:), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+matrix%22 For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/runner.py", line 166, in setup_and_run_hass return await hass.async_run() File "/usr/src/homeassistant/homeassistant/core.py", line 523, in async_run await self.async_start() File "/usr/src/homeassistant/homeassistant/core.py", line 542, in async_start self.bus.async_fire_internal(EVENT_HOMEASSISTANT_START) File "/usr/src/homeassistant/homeassistant/core.py", line 1559, in async_fire_internal self._hass.async_run_hass_job(job, event) File "/usr/src/homeassistant/homeassistant/core.py", line 938, in async_run_hass_job hassjob.target(*args) File "/usr/src/homeassistant/homeassistant/core.py", line 1420, in __call__ self.hass.async_run_hass_job(self.listener_job, event) File "/usr/src/homeassistant/homeassistant/core.py", line 941, in async_run_hass_job return self._async_add_hass_job(hassjob, *args, background=background) File "/usr/src/homeassistant/homeassistant/core.py", line 756, in _async_add_hass_job task = create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async_.py", line 37, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/components/matrix/__init__.py", line 207, in handle_startup self._access_tokens = await self._get_auth_tokens() File "/usr/src/homeassistant/homeassistant/components/matrix/__init__.py", line 345, in _get_auth_tokens return load_json_object(self._session_filepath)


[FEATURE] Real-time validation in login and Register form

Description
Description
Currently, for the register and login form, there is no real-time validation where the user gets a validation message as the user enters the input value.
Solution
I want to implement the functionality to display the validation messages below respective fields as the user enters the value and the validation message will disappear as soon as the valid input is given.
This will implement from sending invalid data to the backend it also enhances processing speed in the backend.
I will write a reusable code so that it can be implemented in other forms as well like.
Screenshots
I want to implement functionality similar to below
Sample Video
https://github.com/agamjotsingh18/pollitup/assets/86224794/b3d8c27f-da3b-4b82-9ea2-e4db3c710923
Request
If you find this issue worth implementing please assign this issue to me under gssoc label as I am a gssoc contributor

Hello @Arnabdaz, please review this issue.

Hello @Arnabdaz, please review this issue.

actually another pr is ongoing for this page once that is merged you can work

Hello @Arnabdaz, please review this issue.

actually another pr is ongoing for this page once that is merged you can work

Okay sure, can you please tell me the PR no.?
so I can monitor it.  Once it is merged then I'll start working on this.

#226


refresh problem n the console

From<EMAIL_ADDRESS>on 2012-03-03T11:44:39Z
What steps will reproduce the problem?
Open spyder 2.1.8 (Debia unstable)
and switch from one virtual desktop to another one
and sometimes I got this error message
Please provide any additional information below
. Python 2.7.2+ (default, Jan 20 2012, 23:05:38)
[GCC 4.6.2] on linux2
Type "copyright", "credits" or "license" for more information.
>>> Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/init.py", line 201, in visibility_changed
self.refresh_plugin() #XXX Is it a good idea?
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 368, in refresh_plugin
self.set_object_text(None, force_refresh=False)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 531, in set_object_text
found = self.show_help(text, ignore_unknown=ignore_unknown)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 719, in show_help
self.set_sphinx_text(doc_text)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 683, in set_sphinx_text
) % (sphinx.version, str(error)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 43: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/init.py", line 201, in visibility_changed
self.refresh_plugin() #XXX Is it a good idea?
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 368, in refresh_plugin
self.set_object_text(None, force_refresh=False)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 531, in set_object_text
found = self.show_help(text, ignore_unknown=ignore_unknown)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 719, in show_help
self.set_sphinx_text(doc_text)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 683, in set_sphinx_text
) % (sphinx.version, str(error)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 43: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/init.py", line 201, in visibility_changed
self.refresh_plugin() #XXX Is it a good idea?
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 368, in refresh_plugin
self.set_object_text(None, force_refresh=False)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 531, in set_object_text
found = self.show_help(text, ignore_unknown=ignore_unknown)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 719, in show_help
self.set_sphinx_text(doc_text)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 683, in set_sphinx_text
) % (sphinx.version, str(error)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 43: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/init.py", line 201, in visibility_changed
self.refresh_plugin() #XXX Is it a good idea?
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 368, in refresh_plugin
self.set_object_text(None, force_refresh=False)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 531, in set_object_text
found = self.show_help(text, ignore_unknown=ignore_unknown)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 719, in show_help
self.set_sphinx_text(doc_text)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 683, in set_sphinx_text
) % (sphinx.version, str(error)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 43: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/init.py", line 201, in visibility_changed
self.refresh_plugin() #XXX Is it a good idea?
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 368, in refresh_plugin
self.set_object_text(None, force_refresh=False)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 531, in set_object_text
found = self.show_help(text, ignore_unknown=ignore_unknown)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 719, in show_help
self.set_sphinx_text(doc_text)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 683, in set_sphinx_text
) % (sphinx.version, str(error)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 43: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/init.py", line 201, in visibility_changed
self.refresh_plugin() #XXX Is it a good idea?
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 368, in refresh_plugin
self.set_object_text(None, force_refresh=False)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 531, in set_object_text
found = self.show_help(text, ignore_unknown=ignore_unknown)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 719, in show_help
self.set_sphinx_text(doc_text)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 683, in set_sphinx_text
) % (sphinx.version, str(error)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 43: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/init.py", line 201, in visibility_changed
self.refresh_plugin() #XXX Is it a good idea?
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 368, in refresh_plugin
self.set_object_text(None, force_refresh=False)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 531, in set_object_text
found = self.show_help(text, ignore_unknown=ignore_unknown)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 719, in show_help
self.set_sphinx_text(doc_text)
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 683, in set_sphinx_text
) % (sphinx.version, str(error)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 43: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/init.py", line 201, in visibility_changed
self.refresh_plugin() #XXX Is it a good idea?
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 368, in refresh_plugin
self.set_object_text(None, force_refresh=Fal...
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=961

From pierre.raybaut on 2012-03-18T08:31:19Z
This issue was closed by revision 1f190b5e05d7 .
Status: Fixed

From pierre.raybaut on 2012-03-18T08:31:20Z
This issue was closed by revision abf65b6de70c .


fix: Level.geq is missing a case

It's not a false alarm this time, this came up during testing of lean4lean. Currently Level.geq differs from level::is_geq in the case of max u v >= imax u v: the lean function is overly pessimistic and yields false on this while the C++ function says true, because the lean function does return (u >= imax u v) || (v >= imax u v) while the C++ function does if ((u >= imax u v) || (v >= imax u v)) return true and continues to the rest of the function otherwise. This comes up concretely in the Trans class:
class Trans (r : α → β → Sort u) (s : β → γ → Sort v) (t : outParam (α → γ → Sort w)) where
  trans : r a b → s b c → t a c

The type of this class is apparently Sort (max (max (max (max (max (max 1 u) u_1) u_2) u_3) v) w) (where u_1 u_2 u_3 are the levels of α β γ), but if you try writing that type explicitly then it fails, because if you leave the type off the elaborator takes the max of all the universe levels appearing and assumes it would succeed (and it does, in the kernel), while if you write the type then the elaborator checks the inequality (using the lean geq) and this fails.
PS: Level.normalize also differs from level::normalize: the lean function left associates max expressions and the C++ function right associates. I suspect this could also lead to different behaviors in edge cases, although I don't yet have an example. Is it worth making them agree here?

Just noting there's a conflict here now.
Would it be possible to include the Trans example as a test?

Ping @leodemoura on this since apparently #2750 was missed so probably this long standing bug was too.


[move-only] Treat mark_must_check assignable_but_not_consumable as ending initialized

I need to do another change to also handle globals.
rdar://106208343
rdar://105910066

@swift-ci smoke test


Exception too generic

Hello
Great code. However the InvalidJsonException seems too generic for usage. If we have some REST API, then a client sends us the JSON-Patch document and we take some data from database, apply a patch and save it.
If client's JSON-Patch is invalid we should return HTTP code, like 400 Bad Request. But if our own json resource taken from database is invalid, then we should return soemthing like 501 Internal server error.
So it would be good to have two separate exceptions for invalid JSON-patch and invalid json document.

I guess the keywords here are own json resource, IMO it's not the responsibility of this library to guarantee valid JSON documents.


Fix missing call to glInvalidateFramebuffer().

This removes an incorrect if conditional, given that bindFramebuffer can be called from other places.
Fixes #1914.

Unfortunately this change seems to trigger a problem on the Mali-T GPU similar to the previous glFlush issue. Using the same bug flag does fix the problem:
if (!gl.bugs.disable_invalidate_framebuffer && !gl.bugs.disable_glFlush) {

Happy to try other things on devices here if it helps.

@rawnsley There's no glFlush in this code path though. What problem do you see exactly?

It has the same pathology: we render two views per frame (left and right eyes), but the left eye view is blank. The problem goes away if I don't call glInvalidateFramebuffer. My guess is that it has the same pipeline-breaking effect that glFlush does in this case.
Related: this change also causes a problem on an Adreno device I have, but possibly not on other Adreno devices. I'll get back to you with some more useful data.

If you are doing two views per frame it might not be because of a bug in the driver but just because we invalidate the content of the tiles. @pixelflinger should look into this.

@romainguy I think you are right. I get the same problem on both Adreno devices I have tested: a Snapdragon XR1 and a Pocophone F1. The screen grabs below show the difference, although when it fails the actual display shows some digital noise that isn't captured by screencap.

remember you need to call  setRenderTarget(TargetBufferFlags::NONE); on the 2nd view.
can you confirm you are indeed doing that?

@pixelflinger Confirmed fixed by https://github.com/google/filament/pull/2368


Setup end-to-end tests for release automation

Describe the feature
N/A
Use Case
N/A
Proposed Solution
No response
Other Information
No response
Acknowledgements

[ ] I may be able to implement this feature request
[ ] This feature might incur a breaking change

Work for this is complete, closing ticket now.


Enable right click sidebar to map drive and disconnect drive

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
I think it will be really useful to have enable the option to right click on top of Drives in the sidebar to map additional drives instead of having to go to home to map the network drive. It will also useful to include, as in nautilus, an arrow by the side of mounted drives network or physical to unmount them.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here. Ex: What device type/UI layout and app version?

This has been added in <IP_ADDRESS>


*: allow automatic updates of installed components

This change extracts the $.values.versions map into a separate json file which can be automatically updated. Next, it adds a simple script to poll GitHub latest releases from various places (not from KSM due to https://github.com/kubernetes/kube-state-metrics/issues/1392) and create a json map out of those (this is based on https://github.com/cloudalchemy/auto-maintenance/blob/master/autocommiter.sh). On top of that I created a CI job that will run daily and create PR if anything changed.
Note: I didn't want to include my bash script from cloudalchemy/auto-maintenance since there is a new github action based on a similar script that does the same in a better way :)

I didn't update prometheus, node_exporter, and grafana versions on purpose. This would allow to test end-to-end if this workflow works 100%. I did some testing locally and it was working as expected.

Rebased to fix merge-conflict

sliiiick
lgtm :+1:


validation error is giving internal error instead

When having validation error, the middle ware is unable to catch it.
I figured out why
https://github.com/ardanlabs/service/blob/c2335ad03241a8fded921cfa5f0efbf5cc5eb224/business/web/v1/mid/errors.go#L31C26-L31C26
func IsError(err error) bool {
	var re *Error
	return errors.As(err, &re)
}

here it's doing an validation with Error which is of type
type Error struct {
	Err    error
	Status int
}

while the Field error is
// FieldError is used to indicate an error with a specific request field.
type FieldError struct {
	Field string `json:"field"`
	Err   string `json:"error"`
}

so it doesn't enter the case, I've fixed it in my code, but not sure how to implemented in such good reusable way.
I am reporting the error now, when I have time I will take a look more into it.

Thank you, now it's clear for me.


FormaPago and UsoCFDI mapping codes for MX

Adds mapping codes from GOBL's payment instructions keys (i.e. payment means) to the CFDI's FormaPago field
Adds mapping codes from GOBL's invoice tax tags (and scenarios) to the CFDI's UsoCFDI field
Extracts and makes public a TaxRegime method that will be used by the related changes in gobl.cfdi
Fixes a typo in PT's a README

@samlown thanks a lot for the thorough review! I'll respond to each comment


Fe: Improve screenshot angles and fidelity

Some angles don't look good for the screenshots the preview server generates, here's a couple examples:

https://webaverse.com/assets/104
https://webaverse.com/assets/340

These could use better angles and shader which often the creator has the best eye for.

During minting process, this avatar's preview appears to be different than the others on the site, which all have face-on headshots. Unsure why.

for VRMs, there is usually a similar shot taken during the export process. VRoid Studio does it automatically. Custom VRMs can be exported with a thumbnail of choice.
If the minting process can read the VRM meta, this is another way of generating a preview for a minted avatar in particular.

Suggestion to generate more than one preview at mint and allow user to pick the best one:
https://discord.com/channels/433492168825634816/696210985035235358/839931257361137684

Would it be possible during minting process for a 3d view of the item being minted to show up and allow the author to rotate around model origin , pick the angle they prefer and then take that as the preview shot?

Would it be possible during minting process for a 3d view of the item being minted to show up and allow the author to rotate around model origin , pick the angle they prefer and then take that as the preview shot?

Yes, that is a good idea. Angles could be recommended.


jQuery.fn.delegate() is deprecated

jquery migrate warning: jQuery.fn.delegate() is deprecated

suggest replacing with .on() method.


ng-drag-success / ng-drop-success callback not fired on touch/mobile device

Hi
When I test my code in device mode of chorme, onDragSuccess and onDropSuccess never get fired. Also, on "draggable:start" I get this as $event
   Object {
      data: Object
      element: m.fn.init[1]
      event: m.Event
      tx: NaN
      ty: NaN
      x: undefined
      y: undefined
  }

Any ideas what could be the reason? Is it anything related to order of jQuery and angular.js. I am using jQuery and do not want to use JQLite but full jQuery version

@fatlinesofcode Please reply on this asap!

I am failing this test
  var hitTest = function(x, y) {
                    var bounds = element[0].getBoundingClientRect();// ngDraggable.getPrivOffset(element);
                    x -= $document[0].body.scrollLeft + $document[0].documentElement.scrollLeft;
                    y -= $document[0].body.scrollTop + $document[0].documentElement.scrollTop;
                    return  x >= bounds.left
                            && x <= bounds.right
                            && y <= bounds.bottom
                            && y >= bounds.top;
                };

What is it about?

@fatlinesofcode

Having the issue, try replacing
$document.on(_moveEvents, onmove);
$document.on(_releaseEvents, onrelease);

in onlongpress function by
if(_hasTouch){
                      if (_dragHandle) {
                        _dragHandle.on(_moveEvents, onmove);
                        _dragHandle.on(_releaseEvents, onrelease);
                      }else{
                        element.on(_moveEvents, onmove);
                        element.on(_releaseEvents, onrelease);
                      }
                    }else{
                      $document.on(_moveEvents, onmove);
                      $document.on(_releaseEvents, onrelease);
                    }

I'm having the same issue with onDragSuccess and onDropSuccess never getting called. I'm developing for mobile using Ionic. I tried your solution @SandrineProusteau, but it didn't fix it for me.

@yashikagarg13  I am also failing same test. Can you help me out. And this is happening in only IE.


Address and additional indexes

Adds configuration options -addressindex. -timestampindex and -spentindex with associated RPC methods for retrieving txids, balances, and unspent outputs by address:

getaddresstxids - Returns transaction txid history for any address or addresses
getaddressbalance - Returns balance for any address or addresses
getaddressutxos - Returns unspent outputs for any address or addresses
getaddressmempool - Returns mempool transaction deltas for any address or addresses
getblockhashes - Returns an array of block hashes within a range of timestamps
getspentinfo - Returns txid and input index that spent an output

Latest build release: https://github.com/braydonf/bitcoin/releases/tag/v0.12.0-bitcore-beta6

looks great, no memory leaks, nothing glaring in the static analysis (with respect to the changes!), merging.


Stratify > Hierarchy

Just a comment here. Spent a long time today trying to make a layout from flat data by using d3.stratify but running into trouble when I then ran the output through d3.hierarchy. Its not clear in the docs that d3.stratify's output is a legit hierarchy object that you can run .count() and .sum() on. Since sum and  count were not listed under stratify, I assumed I had to go through hierarchy to get them. The result was double nested data objects.
It seem like in fact, stratify is the same as hierarchy,  with a preceeding d3.nest stage. Is that true?

d3.stratify and d3.hierarchy do the same thing: they return a root node. The difference is that d3.hierarchy constructs a hierarchy (a root node) from a hierarchical input data structure (typically derived from JSON), whereas d3.stratify constructs a hierarchy from a tabular input data structure (typically derived from CSV or TSV).
Both d3.stratify and d3.hierarchy are documented in the Hierarchy section of the README, which includes an example of converting a table to a hierarchy:
var root = d3.stratify()
    .id(function(d) { return d.name; })
    .parentId(function(d) { return d.parent; })
    (table);

And it explicitly says “This hierarchy can now be passed to a hierarchical layout, such as d3.tree, for visualization.” The constructor also says it “generates a new hierarchy.”
Apologies for the confusion, but I’m not sure how I can make it clearer…

Thanks for the feedback; related #61 on that node.id issue.

#62 Understanding this would also have helped.


Restore original outputs

I restored original outputs and added 2 new ones.

Closing in favor of starting over with a fresh PR.


Set code page to 65001 (UTF8)

As per offline conversations. A couple notes:

This shouldn't be merged until the feature flag has been added on the VSO side.
I tested this using the yml file here. Right now, everything works as expected except that the powershell task can't display this character: ç. Other tasks that I tested can, might be a powershell task thing. Also worth noting that this has yet to break any tasks which is a good sign.
I still need to try running this in a few more scenarios listed in TODO below. Add any that you think would be good, I'll check them off as I test them.

TODO

[x] Run tasks in a container
[x] Run some build tasks
[ ] Add feature flag to control this

One thing I just noticed though is that npm produces a lot of warnings when npm install is called as a script (though the npm installer itself seems to be unaffected). It only happens when the code page is changed:

Here are some additional screenshots:
Test output with no environment variables set (so affected by this change) and good checkmarks:

Test output with agent.retainDefaultEncoding=true (unaffected by this change) and bad checkmarks:

Currently all tasks succeed with no errors

Powershell still can't handle ç:

But batch and command line can:

I'll update screenshots/add more as appropriate as I continue to test more tasks. I think the biggest con so far is the npm install warnings

Just pushed some pretty significant changes in my last commit (Changed from chcp to outputEncoding). Basically as I was experimenting I learned a couple of things:
Learnings

Previously, the PowerShell task was failing because I was setting console.outputEncoding to UTF8. Other tasks started failing if I removed this though, so my solution here was to split this out into the handlers and return the outputEncoding to 437 in PowerShell tasks.
Changing the code page wasn't actually doing anything. All of the gains we'd been seeing remained if we remove that code and just change Console.outputEncoding. Further, if I remove Console.outputEncoding, all of those gains go away. Because of this, I just scrapped the chcp code. I think all of the issues we've been seeing may have been caused by the Node Handler expecting UTF8 input but the tools outputting using 437 encoding.

Results
With these changes, everything I'm testing works except for the batch script (which prints out junk when it should be printing ç). Still working on figuring out why this is the case, I think its a powershell task but I haven't actually been able to find the source code (its not here where I'd expect it).

base on corefx source code, Console.OutputEncoding = Encoding.UTF8 will do 2 things under the cover.

invoke the following PInvoke

[DllImport(Libraries.Kernel32, SetLastError = true)]
internal extern static bool SetConsoleOutputCP(int codePage);

set Console.OutputEncoing = Encoding.UTF8

@TingluoHuang yep, that makes sense based on what I'm seeing. I think the issue with just setting the code page is that it misses step 2, so the code page that it uses is changed, but what it outputs isn't and this causes issues as it meshes with Node which is expecting UTF8.

https://source.dot.net/

https://github.com/dotnet/corefx/blob/48935b3a4c1b5851c78cdeb368f5a9fa6a598106/src/System.Diagnostics.Process/src/System/Diagnostics/Process.Windows.cs

Did a little more digging on this - it looks like chcp does indeed natively call SetConsoleOutputCP in the kernel. That makes me think that we do indeed need to set Console.OutputEncoding=Encoding.UTF8 - I think that's probably what .NET looks at to determine the code page when it spawns new processes as @ericsciple suggested. I also can't really see any negative side effects that would exist in this case versus if we were somehow able to just change the code page and have that inherited.

Update: It turns out that chcp doesn't work if createNoWindow is set to false. To deal with this, I went ahead and set createNoWindow to true in the cases we are interested in. I don't think this will actually have any impact because we are setting useShellExecute=false. I think normally those 2 settings in conjunction would cause any output to be sent to the current console, but we are capturing all output so it shouldn't have an impact. I've confirmed that it doesn't have any impact locally.

I went ahead and confirmed that this runs correctly in containers (with all the same tasks), so I think that this should be pretty much good to go. I added an internal PR to set up the feature flag a little while back, once that's approved/backported I think we can probably merge this in here/release the new agent.

should we do this for all handlers? i noticed we only do for PowerShell* handler.

Went ahead and updated everything else in accordance with the feedback though

@damccorm @ericsciple
Base on the fact we understand why chcp result doesn't persist, should we just run chcp 65001 after job initialized and we don't even need to set it back?
Thoughts?

@TingluoHuang my concern there is that then any time a task calls chcp it will change the code page for all subsequent tasks since its attached to the same console.

Looks good. I will merge this PR after 2.144.0 agent release goes out.


How to set entity not to be picked up by mouse

:exclamation: Please use the forum for asking questions about how to use Cesium and best practices. The core Cesium team actively monitors the forum and we love seeing what people are working on! :exclamation:

Hello @githubhanjunjun, CesiumJS doesn't have this feature.  We have this issue open: #1592


Add API Tokens to API Request

Simply change how the API request is constructed if someone enters a token.

completed in v1.0.0


fix: Align module name in go.mod

Hmm, forgot to update this. Go modules 🤦

I am going off now, so in case you merge, don't forget to tag v2.0.1. Thank you for the fast response 😉 🙇

Re-tagged v2.0.0 to this PR: https://github.com/casbin/zap-logger/releases/tag/v2.0.0


Linking Newsletter heading to newsletter page

Previously there was no link to the newsletter page from "Newsletter Sign In". This fixes that.

👍


Revert pychromecast update

Description:
Revert the PyChromecast update that is breaking cast integration.
Fixes #10926 (well not really, but at least allows us to fix it without breaking it for users)

Thanks!


Netatmo wind sensor probably not parsed correctly

Checklist:

[x] I updated to the latest version available
[x] I cleared the cache of my browser

Release with the issue:
not relevant
Last working release (if known):
Browser and Operating System:
safari,chrome, homeassistant app, MacOs

Description of problem:

I have a Netatmo wind sensor, but the default HA integration provides the information with both text and degrees, for example like W (240°), as shown in picture.
I think that there's a problem for the compass-card to parse this kind of information as, I assume, it expects just one of the two information and not both.
As you can see, it does not crash or anything, but obviously the arrow does not point in the correct direction!

 For reference, this is the code that generates this card:
cards:
  - detail: 2
    entity: sensor.netatmo_jori_palace_anemogio_gust_strength
    graph: line
    name: Raffiche
    type: sensor
  - direction_offset: 0
    entity: sensor.netatmo_jori_palace_anemogio_angle
    name: Vento
    type: 'custom:compass-card'
    secondary_entity: sensor.netatmo_jori_palace_anemogio_wind_strength
type: horizontal-stack

I'm not fluent in javascript nor python, but i think that the problem could just be that the code just checks if the value given is NaN and does not search for a number in the string, to be parsed.
Javascript errors shown in the web inspector (if applicable):

Additional information:
If needed, I can do some testing.

You're correct, only degrees or abbreviation is possible at the moment (as stated in the README).
I can parse for the numbers and only use those, so I'll change this to an enhancement.

Thank you! As a C programmer that triple equal sign gave me a heart attack, but it seems I‘ve just discovered one of the wonders of javascript :)
I’ll test your edit on monday, when I have a little time !
Ps: I love the design of your compass card, it’s a strange thing that we don’t have it natively in Homeassistant. Thank you for this magnificent work!

I think I got it, a input_text entity helps a lot with testing this as you can set it to whatever you want.
One note though, currently all characters which are not numbersor dots are removed from the entity state. If the state is something like North 342 degrees @ 15kn it will be parsed to 342615 in which all multiples of 360 are removed so the resulting direction will become  255.
My RegEx-fu is not strong enough yet (or my google skills fail me) at only getting the first number sequence in the string and only use that.
Workaround in all not supported cases would be

create a template sensor
parse your entity in a correct way so you get 0-360 degrees into the value_template of said sensor
use the template sensor in the compass-card

If you can use a regex, you could try with something like this:
\b\d?\d?\d\b
This should get you just the first time you find at least 1 number, maximum 3, and no other number, if any, afterwards.
I'm not a regex expert, but I've tried it and it seems to get the result we want :)

I updated the regex a bit, your propsal inspired me to have a second look.
First I replace all the whitespaces now, so any negative sign in front of the number would have a space removed if it was in between.
Second I fixed the negative directions (was not working for the parsed string).
And third I search for all consecutive numbers + a dot and max 1 decimal (also consecutive). Should be good enough I think.
Note, I'll put this in the next version (0.2.1, or 0.3.0, depending on the other changes in the next version)


To Do

base URL (config file)
tech-table update
resource explanation
homepage text
people.md/ lab.md (after public)

tech-table subsection sorting

complete strain list

img for resource landing page

transcriptome database (blast)
genome database

table 1 single FISH add 1 reference


keep getting error when installing

When running the bundle install..I keep getting this error:
NoMethodError: undefined method 'spec' for nil:NilClass
An error occurred while installing datetimepicker-rails (4.7.16), and Bundler can't continue.
I have checked my Gem file..it has this
gem 'datetimepicker-rails', github: 'zpaulovics/datetimepicker-rails', branch: 'master', submodules: true
Any Ideas....thanks a ton.

Thanks for reporting this! Please follow ISSUES so we can try to figure out what's going on.

I looked at the info issues area.
here is my env information:
BundlerENV.pdf
I am just trying to install gem 'datetimepicker-rails', github: 'zpaulovics/datetimepicker-rails', branch: 'master', submodules: true
via the bundle install command....any help would be great...

Your Bundler version is over a year old. Please upgrade by running gem install bundler and then try again.

Thanks a ton...


Flow_js.Not_expect_bound("Did not expect BoundT") with %checks

Flow version: v0.102.0

The old reproduction case
// @flow

declare class Zero {}
declare class Succ<+N> {
  +prev: N;
}

declare function succ<N>(N): Succ<N>;

type N1 = Succ<Zero>;
type N2 = Succ<N1>;
type N3 = Succ<N2>;
type N4 = Succ<N3>;
type N5 = Succ<N4>;
type N6 = Succ<N5>;
type N7 = Succ<N6>;
type N8 = Succ<N7>;
type N9 = Succ<N8>;

declare function add<A>(Zero, A): A;
declare function add<A, B>(
  a: Succ<A>,
  b: B
): Succ<$Call<Add, A, B>> %checks(succ(add(a.prev, b)));
type Add = typeof add;

try flow (see the console)

// @flow
declare function f<A>(string, A): A
declare function f<A>(a: A): $Call<F, 'c', A> %checks(null)
type F = typeof f

The value inside %checks can be anything, not just null.
Expected behavior
No crashes.
Actual behavior
On the code above Flow displays the following error:
(8054) merge_strict_job THROWS: [1] /Users/user/index.js: Flow_js.Not_expect_bound("Did not expect BoundT")
Raised at file "map.ml", line 130, characters 10-25
Called from file "hack/utils/collections/myMap.ml", line 15, characters 13-23

Link to Try-Flow or Github repo: try flow (see the console)

Looks like an issue with %checks. Taking a look.

I updated the code in the first post to be much more minimal.

lol, is this really fix...


Use GNUInstallDirs instead of hard wiring install directories

On a multiarch setup cmake files should go into lib64.

Well, as this is intended to be a Boost library, it will use the conventions of the Boost project. Also note that this project is on pause for now while I work on my other libraries.

The CML should work now for all supported use-cases


Include Session Token information under Refresh and session token lif…

…etime policy properties
Include details related to max inactive time for session (web) tokens.

@custorod : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Hyperctl / Hyperd version

Hi, is there a command argument to check hyperd/hyperctl version?
not in the commands / arguments here https://docs.hypercontainer.io/reference/index.html (and not in hyperctl / hyperd --help)

Not delicate.. but
yum list installed | egrep "hyper-|hyperstart"
hyper-container.x86_64               1.1.0-1.el7                       installed
hyperstart.x86_64                    1.1.0-1.el7                       installed

yeah know that. wandering about existing of any kind of --version flag in hyperctl/hyperd, since running yum list installed | egrep "hyper-|hyperstart" certainly must take more execution time. (in my use case it is relatively important)

you may find the version at the beginning of the logs (by default /var/log/hyper/hyperd.INFO):
I0924 10:30:44.809559   20376 hyperd.go:189] Hyper daemon: 1.1.0

And checked with the code
# hyperctl version
The hyperctl version is 1.1.0

It's supported

And checked with the code
# hyperctl version
The hyperctl version is 1.1.0

It's supported

haha thanks! tried different options but not without -. (since it's not in help / docs)

One more thing, you may query the server with API
# echo -e "GET /version HTTP/1.0\r\n" | nc -U /var/run/hyper.sock
HTTP/1.0 200 OK
Content-Type: application/json
Server: Docker/library-import (linux)
Date: Mon, 24 Sep 2018 14:40:27 GMT
Content-Length: 31

{"ID":20376,"Version":"1.1.0"}

Both the client side and server side. I think it should be documented


Change logging level of LS messages

Codecov Report

Merging #8364 (0762c59) into main (59c7231) will decrease coverage by 0%.
The diff coverage is 100%.

@@          Coverage Diff          @@
##            main   #8364   +/-   ##
=====================================
- Coverage     71%     71%   -1%
=====================================
  Files        375     375
  Lines      23746   23788   +42
  Branches    3653    3662    +9
=====================================
+ Hits       17080   17103   +23
- Misses      5186    5199   +13
- Partials    1480    1486    +6

Impacted Files
Coverage Δ

...ook/intellisense/pythonKernelCompletionProvider.ts
73% <100%> (ø)

src/client/common/process/interpreterActivation.ts
72% <0%> (-4%)
:arrow_down:

...ence/editor-integration/cellHashProviderFactory.ts
97% <0%> (-3%)
:arrow_down:

.../datascience/editor-integration/codeLensFactory.ts
87% <0%> (-2%)
:arrow_down:

src/client/datascience/jupyter/kernelVariables.ts
56% <0%> (-2%)
:arrow_down:

src/client/datascience/baseJupyterSession.ts
76% <0%> (+<1%)
:arrow_up:

src/client/common/process/currentProcess.ts
100% <0%> (+50%)
:arrow_up:


fix babel-plugin missing problem

fix a special case, npm install will store weex-loader dependence to uplevel/root package node_module

#43


Add Caution Note re Experimental SemConvs

Following up on Slack Chat:
https://cloud-native.slack.com/archives/C041APFBYQP/p1707760677044609

Preview: https://deploy-preview-3995--opentelemetry.netlify.app/docs/languages/

thanks @mattmccleary, this is an important call out. I think we will need to have it at a few other places as well for people to see and recognize it. But we can fix this as a follow up (we can turn your segment into a shortcode and put it at places where we think it is required)

/fix:format

Wrapping something up, will get back to this PR soon -- I have some extra comments beyond the markdown link reference issue.

Wrapping something up, will get back to this PR soon -- I have some extra comments beyond the markdown link reference issue.

Sure, then let's not merge this before you follow up!

I've pushed a fix to the alert link-ref issue. The solution is to have the markdown link definition be placed inside the shortcode.
I've also moved the note to be before the table. It makes more sense to me that way.
All that being said, I'd like to suggest that we rework the note prose and/or the opening statement "The current status of the major functional components for OpenTelemetry is as follows", so that it is clear that we're talking about the same/related things.
That is, now I'm wondering what the status table is actually giving the status of. Can we make that clearer?

I agree the table isn't clear, though the title of the page is "Language APIs & SDKs" so I inferred it's a composite of API and SDK. In the future, the table could be reworked to include semantic conventions but that would require some thought because it could quickly blow up the size. Since it's not clear to me how to improve the situation, I'm wondering if this could be a non-blocking follow-on item. I'm happy to think on it some more.

I'd be generally in agreement with what you propose. I might want to tweak the text a bit though -- let me sleep on it :).

I agree that the table with the status per language needs to be improved, but this should not be a concern for this PR. I'll raise a follow up issue since I also have a few ideas here

Merging. I'll let @svrnm followup with the issue / proposed rework he mentioned.


How to make RADIS Optional

How to make Radis Optional?

no, u cant
redis is required on this project
its use for send a email and maintenance the session


un-break bash completion, oops

Going to get ahead of the game here, I broke bash support with my last change (testing this is hard!)

ship it :)


Typed list: Unable to add empty fortran array

The following snippet:

from numba.typed import List
import numpy as np

l = List()
l.append(np.array([[1,2,3], [4,5,6]], order="F"))
l.append(np.array([], dtype=int, order="F").reshape(2,0))

Results in:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function impl_append at 0x7fd5a5fd00d0>) found for signature:

 >>> impl_append(ListType[array(int64, 2d, F)], array(int64, 2d, C))

There are 2 candidate implementations:
  - Of which 2 did not match due to:
  Overload in function 'impl_append': File: numba/typed/listobject.py: Line 589.
    With argument(s): '(ListType[array(int64, 2d, F)], array(int64, 2d, C))':
   Rejected as the implementation raised a specific error:
     LoweringError: Failed in nopython mode pipeline (step: nopython mode backend)

   File "../../../venv/lib/python3.8/site-packages/numba/typed/listobject.py", line 597:
       def impl(l, item):
           casteditem = _cast(item, itemty)

It works fine with order="C". The issue seems to be that empty arrays are interpreted a C arrays no matter what.
Numba version: 0.50.1

@stuartarchibald At least in my opinion, this is not a feature request, but a bug (which does not say anything about the priority).

@joelrich for some reason my comment didn't make it on here, wonder if I closed the tab before pressing send, anyway the gist was:
Thanks for the report on this, what you describe is a known problem. The issue is that there's no way to tell if a NumPy array that is both C and F contiguous was requested as F ordered at construction time (with the C order being a side effect of e.g. shape/stride). I think the fix could involve having a 'CF' order type in Numba, but I think that this is a pretty involved feature to implement, not so much in encoding the type but the knock-on effect of the type existing. Another way might be to expose an array flag manipulation function into Numba's libraries to make it possible to mutate the flags for such cases.

@stuartarchibald I see, thank you for the comment. Apart from converting the array to C order, is there a hack/workaround to still be able to add an empty array to a list with fortran order arrays?

I can't think of one that doesn't involve just manipulating the flags. Perhaps @eric-wieser might know of a way from the NumPy side? @esc any ideas from the typed list side?

In numpy, empty arrays are considered as both C and F order.

I'm not at a python shell - what does np.array([], dtype=int, order="F").reshape(2,0).flags give?

In [1]: import numpy as np

In [2]: np.array([], dtype=int, order="F").reshape(2,0).flags
Out[2]:
  C_CONTIGUOUS : True
  F_CONTIGUOUS : True
  OWNDATA : False
  WRITEABLE : True
  ALIGNED : True
  WRITEBACKIFCOPY : False
  UPDATEIFCOPY : False

Yeah, so this looks like an oversight in the numba array typing in that it assumes C and F are mutually exclusive.

Perhaps a better approach would be for the type store a per-axis Boolean mask of which axes are contiguous?

I tried:
In [7]: r = np.array([], dtype=int, order="F").reshape(2,0)

In [8]: np.isfortran(r)
Out[8]: False

I don't think that typed-list can do anything, as long as C and F are mutually exclusive in the type system..

Although in this case, shouldn't the list just unify to A-order?

IIRC the way it works right now is that once a type for a list is fixed it can not be changed..

This should work, but de-optimises:
from numba.typed import List
from numba import types
import numpy as np

l = List.empty_list(types.Array(types.intp, 2, 'A'))
l.append(np.array([[1,2,3], [4,5,6]], order="F"))
l.append(np.array([], dtype=int, order="F").reshape(2,0))

@stuartarchibald if it de-optimizes, then the code is just compiled twice I assume?

It'll compile once for the 'A' ordered array type (and derivatives of, e.g. typed list of A ordered array) as it's a single type, but any optimisations that may be possible by knowing at compile time if something is C or F contiguous won't be possible.


Refactor jwt #144

Background
This is a part of a multi-PR (& multi-crate) initiative to complete #143 #144 & #150 without breaking anything, whereafter we'll come through and remove old code. This is the reasoning for v2 in the file name lib_v2.rs -- as to not break anything but to see through the initiative in reviewable PRs. This PR addresses #144.
Proposed changes
Notice the comment here -- after speaking w/ @decentralgabe it's clear we have a requirement to structure the code such that we can add support for JWE at a future date, ideally without inducing breaking changes. I've moved forward with option (3) from that comment, to add future extensibility via namespacing the JWT implementation for JWS's. This is why the Jwt implementation is inside of the jws.rs file, and why there is an empty jwe.rs file; at a future date we can add JWT's as JWE inside of the jwe.rs file.
The implementation of JWT's as JWS piggy backs off of the new feature set in the jws crate made available from #162.
Additional work items
Following the work here, we'll implement #150 and subsequently we'll go through and remove all of the old ("non-v2") code.
I've also opened a new ticket to discuss a design change around our rust crate approach #171

this is great, but if the complexity gets too high or there is too much duplicate code it may be better just to do this:
One struct with differently named functions Jwt::sign_jws()/Jwt::sign_jwe()/etc (better IMO)

In js can do something like this, I don't think rust can do this: Jwt::sign(jweClaim | jwsClaims)
Another approach is have Jwt::sign() which is default a jws (because like 90% of things will use this probabbly)
but have an optional flag or options object that can change it to jwe
Just some thoughts! But I'm fine with the current impl

honestly, I kinda like Jwt::sign_jws() and Jwt::sign_jwe() better than how it is now with the namespace jwt::jwe::Jwt
opened a ticket for it https://github.com/TBD54566975/web5-rs/issues/177


[Item/new mechanics] Eye of Seer / Staff of Visions / Peeking Crown

#Eye of Seer#
Stats:
+200 day/night vision.
Aura mana regen: 1.00
Aura bonus armor: 3
Aura bonus damage: 10
Active: Vision
Target: ground
Cast range: map
Grant's vision of selected area for your team.
Vision Range: 2000
Duration: 20s
Cooldown: 80s
Recipe: (925g)
Observer ward   (65g)
Ring of bassilus (500g)
Recipe                (360g)
#Staff of Visions#
Stats:
+320 day/night vision
+325 mana
+15 intelligence
+350 spell range
+3 armor
+4s to incantations
Aura bonus armor: 7
Aura mana regen: 85%
Aura hp regen: 12
Spell amp damage 18%
Passive: Vision of Death.
Reveals nerby low health enemy heroes below 30% hp.
Radius: 3500
Reveal below: 25% hp
Active: Greater vision
Grant's vision of selected area for your team.
Target: Ground
Cast range: map
Vision Range: 2500
Duration: 20s
Cooldown: 50s
Recipe: (4925g)
Eye of Seer (925g)
Aether Lance (2350g)
Oblivion Staff (1650g)
#Peeking Crown#
Stats:
+17 All Attributes
+20 attack speed
+12 armor
+15% evasion
+5s spell duration
Aura bonus attack speed: 25%
Aura health regen: 15
Aura mana regen: 80%
Aura bonus armor: 30%
Aura bonus damage: 25%
Aura evasion: 10%
Passive: Peeking
Changeing visions type from ground to fly.
Active: Staring
Sacrifice flying vision for full vision on one enemy unit and apply debuffs. Not dispelable, can see invisible units. Grants true strike while attacking target.
Target: Enemy.
Range: 1200
-100% evasion, on target (OT)
-20% armor, OT
-10% movement speed, OT
-20% attack speed, OT
Change vision type from Fly to Ground, on caster.

Additional informations:
General idea that took me to creating this items was that in every gamemod carry always get some fancy stuff but supports almost never get new items. So i created this items to help supports doing they role and also get help from heroes that are less value in late game, like Zeus for example. The "Eye of Seer" is mented to be early game item, like Bracers, but being more maded for getting support role more options, "Vision" ability gives opportunity to make more successful ganks or making safer aggressive warding. This is for obvious reasons more power to supports earlier parts of game. Staff of Visions is item specify to suports with main strength are spells, big benefit can be additional time and range for incantations like pugna's ultimate or shadow shaman shackles (from obvious reasons sand king should be excluded from gaining that additional seconds). This item is also good for nuker heroes what makes more opportunities to teams without pure support also have some sort of supporting item. Peeking crown is item for more tankiers supports like omniknight or undying, but also can be sometimes being build on others heroes like lycan or dragon knight with good benefits. Also i wanted to this two items to be different than just copy paste so i icluded different benefits from each other, but still keeping them connected to make recipes more believable so item that require an ward in recipe and other one also having ward in recipe to not being one that grant vision and other one summoning 7 hells to burn enemy. Abilities are maked way that both upgrades benefits different styles of supporting,  staff is for supports that like to be away from center of fight and don't like being first line(like shadow shaman or pugna), staff would be very bad for support that like to be in center and be front liner (omni or undying are best examples) who can lead to battle, and for them instead of item that grant vision on things that are further better option is to them have flying vision(to balance purposes on cost of increased vision, for those who don't know what is ground type vision and what is fly type vision best example is balanar with axhs, with it he gaint flying vision in night)
Be sure that that items will be need to be balanced through time, it is not possible to tell how strong they exactly would be in proper match. There is just no other items to compare with but i forced myself to narrow the op <-> too weak ratio.
Feel free to make changes that would make them closer to your vision if you don't like something in them and still want to have something like that in game.
Ps. I not bothered to make some sort of lore to items excluding names (to be proper for item mechanic). So you can do whatever you want with lore of them.

Pss. I forgot include recipe to Peeking crown so i writing it here.
#Peeking Crown#
Recipe: (5430g)
Helm of the Dominator (1800g)
Solar Crest (2625g)
Eye of Seer (925g)

Psss. If any of items in recipe will be made as an upgradeable like dagon it's also possible to implement that to these items.  So i don't think that would be a problem.

I think they have potential, i personally am not incredible at dota and dont know too much about what numbers would be fair and balanced vs broken, i will say that I made a similar item except its vision was based off of a hawk like BM's, and i was rold to make sure I differentiate my item from hero abilities in order to avoid devaluing a hero as well as other problems. I think your item could maybe be interpeted as interfereing with some hero spells (bloodseeker, bounty hunter, winter wyvern,)but idk it looks fine for the most part it juat comes down to what baumi and them want

It's hard to not make similarities to hero abilities in dota where you can easily say that 90% of items are like heroes abilities but worser or rebalanced, vanguard - craken shell, Orchid - sky's silence, basher-lot of heroes with bash, blink dagger -any hero with blink ;)

Yeah certainly just saying that its worth keeping in mind
On Feb 8, 2017 9:45 PM, "Wujekklawy"<EMAIL_ADDRESS>wrote:

It's hard to not make similarities to hero abilities in dota where you can
easily say that 90% of items are like heroes abilities but worser or
rebalanced, vanguard - craken shell, Orchid - sky's silence, basher-lot of
heroes with bash, blink dagger -any hero with blink ;)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/AngelArenaAllstars/suggestions/issues/143#issuecomment-278531167,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYcC-36FbzOXvlKgchKxATYRF1ugZKYJks5ran3GgaJpZM4L7gk3
.

Please don't submit any numbers. I'll close this. Feel free to resubmit your ideas without numbers though.


st2 fails to store a Key-Value in the datastore if there is a "/" in the key name.

SUMMARY
st2 fails to store a Key-Value in the datastore if there is a "/" in the key name. I am sorry if I missed anything in the docs, which says that you cannot store a key with "/" in it and please feel free to close this issue if that is the case. Thank you.
STACKSTORM VERSION
st2 3.1.0, on Python 2.7.5
OS, environment, install method:
CentOS/Docker, custom install.
Steps to reproduce the problem
bash-4.2$ st2 key set "foo / bar" "foo_bar"
ERROR: 404 Client Error: Not Found
MESSAGE: The resource could not be found. for url: http://<IP_ADDRESS>:9101/v1/keys/foo%20/%20bar

Expected Results
st2 should have accepted the key-value pair and stored it.
Actual Results
st2 has failed to store the key-value pair.

Hi @armab I would like to take this up and send a fix.

I believe this issue probably lies in st2client / CLI and not the API itself (likely / character is not correctly URL encoded).
I believe we even have some st2api API level tests for keys with / in the name (and if we don't, we should add some).

Hi @Kami
I tried via the st2 command and also from the actions I have implemented, both self.action_service.set_value and self.action_service.get_value are failing with the same error. So I assume, it should be an API level issue.

It could be, although action service also utilizes st2client code which talks to the API :)
If there is not an existing test already, I would start with an API level test for that functionality.

@Kami @armab I see no tests which stores a key-value pair with a "/" in the key name.
Also, I am not able to run the tests in test_kvps.py file using the following command from the root directory as mentioned in this doc on a Ubuntu machine:
nosetests --nocapture ./st2api/tests/unit/controllers/v1/test_kvps.py
It says ERROR: Failure: ImportError (No module named st2tests.api)
I tried exporting/setting PYTHONPATH to st2 directory but no luck. Could you please help me to get the tests running ? I tried with both Python2 and Python3.
Thanks.

For developing StackStorm platform itself, I would recommend you to use this Vagrant image - https://github.com/StackStorm/st2vagrantdev
In short, you need to run make requirements which will create virtualenv, install all the dependencies and set PYTHONPATH correctly.

@Kami Thanks. This is Great.
I am able to setup the vagrant environment and I can run the tests now. Also, I have added a test which stores a KV and there is a "/" in the key name and it fails. I will dig through the code and see, if we can encode "/" someway.
@armab

@Kami @armab
I modified the serialize method here to quote (from six.moves.urllib_parse import quote) so that the key for example a/b will be converted into a%2Fb. However, the st2 key set "a/b" "some value" is failing with resource could not be found error.
ERROR: 404 Client Error: Not Found
MESSAGE: The resource could not be found. for url: http://<IP_ADDRESS>:9101/v1/keys/a%2Fb

I think, I will have to make some modifications on the API as well to accept this kind of keys?
Thank you.

Hi @Kami @armab Do you think, we should be able to encode and store keys with /? or I will try to implement something which will thrown an error if the key has / in it. Thank you.

Yes, I think it's absolutely reasonable to be able to use the / in Key name.
Quick example: https://www.consul.io/docs/commands/kv/put.html#examples
If you could make it work and support your enhancement with tests as well, - that would be great addition :+1:

Thanks for the reply @armab
As I mention in the previous comment, I can encode the key on the st2client side and I can see the  PUT call is also on the encoded key like below:
(virtualenv) vagrant@ubuntu-xenial:~/local/st2$ st2 key set foo/bar foo
# -------- begin<PHONE_NUMBER>26128 request ----------
curl -X PUT -H  'Connection: keep-alive' -H  'Accept-Encoding: gzip, deflate' -H  'Accept: */*' -H  'User-Agent: python-requests/2.23.0' -H  'content-type: application/json' -H  'Content-Length: 70' --data-binary '{"scope": "system", "name": "foo%2Fbar", "value": "foo", "user": null}' http://<IP_ADDRESS>:9101/v1/keys/foo%2Fbar
# -------- begin<PHONE_NUMBER>26128 response ----------
{
    "faultstring": "The resource could not be found."
}
# -------- end<PHONE_NUMBER>26128 response ------------

ERROR: 404 Client Error: Not Found
MESSAGE: The resource could not be found. for url: http://<IP_ADDRESS>:9101/v1/keys/foo%2Fbar

I am trying to find the code which is accepting this request and make it work for encoded / or am I missing something?
Any help in making me understand the api side of things would be appreciated. Thank you.
@Kami

@Kami @armab Where can I find the API side related code? As you can see in my previous comment, API isn't consider a key with encoded / as a new key in the PUT call.
Could you please direct me to some documentation or any other reference/example? Thank you.

Start with the st2 api KeyValue controller in: https://github.com/StackStorm/st2/blob/master/st2api/st2api/controllers/v1/keyvalue.py
For development environment, standards and expectations, check the https://docs.stackstorm.com/development/index.html

@armab @Kami It looks like if I encode a key foo/bar to foo%2Fbar on the client side, the call which will be made will look like this:
curl -X PUT -H  'Connection: keep-alive' -H  'Accept-Encoding: gzip, deflate' -H  'Accept: */*' -H  'User-Agent: python-requests/2.23.0' -H  'content-type: application/json' -H  'Content-Length: 69' --data-binary '{"scope": "system", "name": "foo%2Fbar", "value": "f1", "user": null}' http://<IP_ADDRESS>:9101/v1/keys/foo%2Fbar

But on the api side, it is failing while trying to match the requests path to a controller here.
For some reason, the req.path is going back to foo/bar instead of being the encodedfoo%2Fbar. As you can see, this happening before entering the code in https://github.com/StackStorm/st2/blob/master/st2api/st2api/controllers/v1/keyvalue.py
So I am guessing somewhere else, we need to make change to persist the encoded key.

I did this little test based on the code in router.py:

import webob.compat
path="http://<IP_ADDRESS>:9101/v1/keys/foo%2Fbar"
webob.compat.url_unquote(path)
'http://<IP_ADDRESS>:9101/v1/keys/foo/bar'

So it looks like it gets altered to foo/bar by the url_unquote call.

Thank you for the input @amanda11.
I just tried with double encoding/quoting the key name if it contains a / while I set or get the KV pair and it is working as expected. If this OK, I will go ahead and submit a pull request.
@Kami @armab
git diff:
diff --git a/st2client/st2client/commands/keyvalue.py b/st2client/st2client/commands/keyvalue.py
index 8eed47364..d1a2305eb 100644
--- a/st2client/st2client/commands/keyvalue.py
+++ b/st2client/st2client/commands/keyvalue.py
@@ -21,6 +21,7 @@ import logging
 from os.path import join as pjoin

 import six
+from six.moves.urllib_parse import quote

 from st2client.commands import resource
 from st2client.commands.noop import NoopCommand
@@ -141,6 +142,8 @@ class KeyValuePairGetCommand(resource.ResourceGetCommand):
     @resource.add_auth_token_to_kwargs_from_cli
     def run(self, args, **kwargs):
         resource_name = getattr(args, self.pk_argument_name, None)
+        if '/' in resource_name:
+            resource_name = quote(quote(resource_name, safe=''))
         decrypt = getattr(args, 'decrypt', False)
         scope = getattr(args, 'scope', DEFAULT_GET_SCOPE)
         kwargs['params'] = {'decrypt': str(decrypt).lower()}
@@ -185,8 +188,14 @@ class KeyValuePairSetCommand(resource.ResourceCommand):
     @resource.add_auth_token_to_kwargs_from_cli
     def run(self, args, **kwargs):
         instance = KeyValuePair()
-        instance.id = args.name  # TODO: refactor and get rid of id
-        instance.name = args.name
+        key_name = args.name
+        # urllib_parse.quote the key name to support keys with '/' in them.
+        # We double quote it here, as it will unquoted once on the API side.
+        if '/' in key_name:
+            key_name = quote(quote(args.name, safe=''))
+
+        instance.id = key_name  # TODO: refactor and get rid of id
+        instance.name = key_name
         instance.value = args.value
         instance.scope = args.scope
         instance.user = args.user

A PR to fix this issue which is still around is very welcome, @RaviTezu :)


Consider inventory view with a custom background

This could potentially speed up the game a bit (as the main camera won't have to use the blur effect). Also, this will most certainly fix any problems with the glow in the inventory.

Some ideas for a custom background:

take a screenshot of the 3D view, stretch/duplicate and set as "panorama sky" in inventory environment (not good if e.g. the surrounding is very dark)
use a blurred image, take a screenshot of the 3D view and calculate the dominant color, hue the blurred image with that color
use a non-blurred image

Another approach: create a semi-transparent image as the "background" of Inventory, without blurring the main camera. That way the original 3D view is still visible in the background, but the image blurs it a bit without using the expensive blur effect.

Another approach: create a semi-transparent image as the "background" of Inventory, without blurring the main camera. That way the original 3D view is still visible in the background, but the image blurs it a bit without using the expensive blur effect.

Another idea: the 3D view texture could be blurred using an algorithm in Godot (instead of camera blur) and used as a static background in the inventory (no longer calculated every frame, just once when we enter the inventory).

This is closely related to #308 .


updateNotes and add more details

@ruixinxu
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


28 input is not a csv file anymore

FIX #28

Improvements of code base

Codecov Report

Merging #31 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master      #31   +/-   ##
=======================================
  Coverage   88.88%   88.88%
=======================================
  Files           8        8
  Lines         189      189
=======================================
  Hits          168      168
  Misses         21       21

Impacted Files
Coverage Δ

test/test_scraper/test_stocknames_importer_csv.py
92.3% <100%> (ø)
:arrow_up:

src/scraper/importer.py
100% <100%> (ø)

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 04e7ff9...a9946d9. Read the comment docs.


Does not advise developer to add required NuGet package needed for code to compile

In the C# examples, code for the BotServices.cs file is shown. A developer new to using QnA Maker tries to follow these instructions is blocked because this article does not instruct them to add the Microsoft.Bot.Builder.AI.QnA NuGet package or the required 'using' statements needed to resolve references to objects in the code such as QnAMaker.

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

ID: 2963321c-6720-be8f-aba6-225960eba1b3
Version Independent ID: bff968a7-33a8-bc53-b08b-6c17d672c3cd
Content: Use QnA Maker to answer questions - Bot Service
Content Source: articles/v4sdk/bot-builder-howto-qna.md
Service: bot-service
Product: bot-framework
GitHub Login: @ivorb
Microsoft Alias: v-ivorb

I had to work around that by comparing the nuget packages in the examples with the ones in my bot downloaded from Azure Portal. It is definitely an oversight.

The samples are being rewritten for the 4.3 release. In the mean time, I'll call out the NuGet packages and namespaces needed if you are adding LUIS to a new bot.

Fix to the immediate issue is in PR and should go live next week.


Design: Ability to disconnect / sign out of wallet

Design for this in Figma: https://www.figma.com/file/Su61MwHLrQn3ld24q85pMx/Token-Dashboard-dApp?node-id=6474%3A33920


Make Webcam component dynamically resizeable

Currently, the width is hardcoded. Maybe take width of flex component offset by a margin>

Just centerd this shit, and gave it a relative width. Seems to work similar to desired functionality idk man, relax


Add yet another org-static-blog example

Just another org-static-blog example to show.
Many thanks for your great work! :)

Cool blog, and thank you for the link!
By the way, something about your SSL certificate seems to be wrong. Firefox does not want to open your blog.

Hi!
Oops... It seems that GitLab pages do not like usernames that include a dot... Sorry. I've changed the URL and created a new PR. Thanks for pointing that out :)


Get pile task sorta working

ppl on the pile test set is a popular eval metric, would like to try it out with rwkv5

i think im gonna revert the recent update, which seems to break lots of stuff - but add google gemma support


Incorrect error 2301 when using ES standard class properties

As explained in https://github.com/Microsoft/TypeScript/issues/2548, the following code is not correct when useDefineForClassFields: false, which is the default for targets before ES2021.
const x = 1
class C {
    p = x
    constructor(x: string) { }
}

However, when useDefineForClassFields: true, there shouldn't be an error here.
Expected: No error 2301 on private p = x, and p: number
Actual: Error on private p = x and p: any

This is broken because the outer x gets shadowed by the ctor parameter, right?  But that means it’s also broken for downleveled useDefineForClassFields too…


Double hand grab

Some objects should be grabbed with two hands. At the moment it just swaps from one to another

Supported in v1.2.4 for PhysicGrabbables


Funny behaviour: constantly adding new lines itself

Suddenly I see this very funny behaviour: prezto (in conjunction with zsh) it constantly adding new lines every 2 second or so. Itself, without my interference. See screenshot.

Why is this happening and what config could cause this? Or is this because of a recent version bump? I cannot say exactly and would be great if you can give me some clues where to start investigating this?

has this something to do with keepalive?

If the problem is in a recent version, there's an easy way to track it down. Find an earlier commit that doesn't exhibit the problem, then use git bisect to quickly pin down the offending commit.
Which prompt are you using? Does the problem persist if you use a different prompt?

If you can identify steps to reproduce or track down the commit, feel free to reopen at the original repo: https://github.com/sorin-ionescu/prezto/issues.


Android 12: Server connection failed | ART APEX data files are untrusted

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: Fedora 36
scrcpy version: 1.24
installation method: manual build from master with prebuilt server
device model: Motorola G6 (ali)
Android version: 12.1

Bug description
Ever since my custom ROM got updated to Android 12.1 (LineageOS 19.1), scrcpy no longer works - at all. Using a manual build from master with prebuilt server, I receive the following console and adb output (I have redacted the device's serial number).
Console output:
$ scrcpy  -Vdebug
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
DEBUG: ADB device found:
DEBUG:     -->   (usb)  ZY32******                      device  moto_g_6_
DEBUG: Device serial: ZY32******
DEBUG: Using server: /usr/local/share/scrcpy/scrcpy-server
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 184.7 MB/s (41159 bytes in 0.000s)
DEBUG: Interrupting socket
DEBUG: Server disconnected
DEBUG: Server terminated
ERROR: Server connection failed

adb logcat  output:
08-24 15:13:43.962 16254 16254 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
08-24 15:13:43.990 16254 16254 I AndroidRuntime: Using default boot image
08-24 15:13:43.990 16254 16254 I AndroidRuntime: Leaving lock profiling enabled
08-24 15:13:44.006 16254 16254 W app_process: ART APEX data files are untrusted.
08-24 15:13:44.007 16254 16254 E app_process: Could not open boot oat file for extracting boot class path: File /apex/com.android.art/javalib/boot.art:/system/framework/boot-framework.art!/system/etc/arm64/boot-image.vdex does not exist.
08-24 15:13:44.007 16254 16254 E AndroidRuntime: JNI_CreateJavaVM failed

I build the custom ROM myself, so any simple change on that side should be possible.
How can I help fix this issue?
Thanks,
FWieP

Hi, I have the same problem as you, did you solve it?

Hi, I have the same problem as you, did you solve it?

Unfortunately, no.
There has been no progress in solving this specific issue.
I have no leads to investigate. Any help would be welcome.
Kind regards,
FWieP

Using the new scrcpy 2.0 from master and pre-built server under Fedora 37, the problem still exists. I cannot use my Android 12 device using scrcpy. ADB itself is working fine, but I still receive the same errors from both scrcpy:
scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
WARN: Could not disable minimize on focus loss
DEBUG: ADB device found:
DEBUG:     -->   (usb)  ZY32******                      device  moto_g_6_
DEBUG: Device serial: ZY32******
DEBUG: Using server: /usr/local/share/scrcpy/scrcpy-server
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 250.2 MB/s (52867 bytes in 0.000s)
DEBUG: Interrupting socket
DEBUG: Server disconnected
DEBUG: Server terminated
ERROR: Server connection failed

as in Android's logcat:
03-12 11:06:42.469 23204 23204 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
03-12 11:06:42.499 23204 23204 I AndroidRuntime: Using default boot image
03-12 11:06:42.499 23204 23204 I AndroidRuntime: Leaving lock profiling enabled
03-12 11:06:42.512 23204 23204 W app_process: ART APEX data files are untrusted.
03-12 11:06:42.513 23204 23204 E app_process: Could not open boot oat file for extracting boot class path: File /apex/com.android.art/javalib/boot.art:/system/framework/boot-framework.art!/system/etc/arm64/boot-image.vdex does not exist.
03-12 11:06:42.513 23204 23204 E AndroidRuntime: JNI_CreateJavaVM failed

Can someone shed some light on this issue?
@RDPCoder did you resolve your case, and if so, how?
Thanks,
FWieP

Using the new scrcpy 2.1 from master and pre-built server under Fedora 38, the problem still exists. I cannot use my Android 12 device using scrcpy. ADB itself is working fine, but I still receive the same errors.
scrcpy 2.1 <https://github.com/Genymobile/scrcpy>
WARN: Could not disable minimize on focus loss
DEBUG: ADB device found:
DEBUG:     -->   (usb)  ZY3xxxxxxx                      device  moto_g_6_
DEBUG: Device serial: ZY3xxxxxxx
DEBUG: Using server: /usr/local/share/scrcpy/scrcpy-server
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 272.7 MB/s (52867 bytes in 0.000s)
DEBUG: Interrupting socket
DEBUG: Server disconnected
DEBUG: Server terminated
ERROR: Server connection failed

06-22 11:05:01.584 17679 17679 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
06-22 11:05:01.596 17679 17679 I AndroidRuntime: Using default boot image
06-22 11:05:01.596 17679 17679 I AndroidRuntime: Leaving lock profiling enabled
06-22 11:05:01.604 17679 17679 W app_process: ART APEX data files are untrusted.
06-22 11:05:01.604 17679 17679 E app_process: Could not open boot oat file for extracting boot class path: File /apex/com.android.art/javalib/boot.art:/system/framework/boot-framework.art!/system/etc/arm64/boot-image.vdex does not exist.
06-22 11:05:01.604 17679 17679 E AndroidRuntime: JNI_CreateJavaVM failed

Is there something I can do to further debug or perhaps even solve this issue?
@RDPCoder, are you still having this same issue? If not how did you solve it?
Thanks,
FWieP

Could you try with a minimal sample (an hello world) to execute a .jar with app_process?
https://blog.rom1v.com/2018/03/introducing-scrcpy/#run-a-java-main-on-android

Using scrcpy 2.3.1 from master with self-built server under Fedora 39, the issue is still there.
This is the console output:
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: Could not disable minimize on focus loss
INFO: ADB device found:
INFO:     -->   (usb)  ZYxxxxxxxx                      device  moto_g_6_
DEBUG: Device serial: ZYxxxxxxxx
DEBUG: Using server: /usr/local/share/scrcpy/scrcpy-server
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 326.2 MB/s (64363 bytes in 0.000s)
DEBUG: Interrupting socket
DEBUG: Server disconnected
DEBUG: Server terminated
ERROR: Server connection failed

And Android 12's logcat:
01-05 15:47:10.341  9641  9641 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
01-05 15:47:10.352  9641  9641 I AndroidRuntime: Using default boot image
01-05 15:47:10.352  9641  9641 I AndroidRuntime: Leaving lock profiling enabled
01-05 15:47:10.359  9641  9641 W app_process: ART APEX data files are untrusted.
01-05 15:47:10.359  9641  9641 E app_process: Could not open boot oat file for extracting boot class path: File /apex/com.android.art/javalib/boot.art:/system/framework/boot-framework.art!/system/etc/arm64/boot-image.vdex does not exist.
01-05 15:47:10.360  9641  9641 E AndroidRuntime: JNI_CreateJavaVM failed

My attention was drawn back to this issue by a comment on fakemanoan/LineageOS-Releases, stating that the issue will be solved upon next LineageOS 20 build. But how does that affect my case with Android 12 (LineageOS 19)?
Can someone please shed some light on this?
Thanks,
FWieP

@fwiep I managed to get the standalone scrcpy-server (https://github.com/Genymobile/scrcpy/blob/master/doc/develop.md#standalone-server) to output something that looks useful by starting it with a custom BOOTCLASSPATH (https://github.com/waydroid/waydroid/issues/793 with :/apex/com.android.i18n/javalib/core-icu4j.jar appended). I unfortunately can't connect to the TCP stream on VLC, so something else may be broken.
My phone (Moto G6 ali) is running your LineageOS 19.1 build, freshly installed.
scrcpy-server output:
D:\_Data\Downloads\Executables\scrcpy-win64-v2.7>adb shell CLASSPATH=/data/local/tmp/scrcpy-server.jar BOOTCLASSPATH=/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.wifi/javalib/framework-wifi.jar:/apex/com.android.tethering/javalib/framework-tethering.jar:/apex/com.android.i18n/javalib/core-icu4j.jar app_process / com.genymobile.scrcpy.Server 2.7 tunnel_forward=true audio=false control=false cleanup=false raw_stream=true max_size=1920 log_level=verbose
[server] INFO: Device: [motorola] motorola moto g(6) (Android 12)
[server] DEBUG: Could not get system context: null

logcat:
--------- beginning of kernel
09-20 19:31:58.701     0     0 I [ 2782.760678,5] logd: logdr: UID=0 GID=0 PID=6042 b tail=0 logMask=99 pid=0 start=0ns deadline=0ns
--------- beginning of main
09-20 19:31:59.681  6047  6047 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
09-20 19:31:59.691  6047  6047 I AndroidRuntime: Using default boot image
09-20 19:31:59.691  6047  6047 I AndroidRuntime: Leaving lock profiling enabled
09-20 19:31:59.699  6047  6047 W app_process: ART APEX data files are untrusted.
09-20 19:31:59.699  6047  6047 I app_process: Core platform API reporting enabled, enforcing=false
09-20 19:31:59.709  6047  6047 E app_process: Could not create image space with image file '/apex/com.android.art/javalib/boot.art:/system/framework/boot-framework.art!/system/etc/boot-image.prof'. Attempting to fall back to imageless running. Error was: Failed to open '/apex/com.android.art/javalib/arm64/boot-core-icu4j.art'
09-20 19:31:59.815  6047  6047 W app_process: Skipping non-existent dex file '/apex/com.android.art/javalib/core-icu4j.jar'
09-20 19:32:00.518  6047  6047 W app_process: Skipping non-existent dex file '/system/framework/framework-atb-backward-compatibility.jar'
09-20 19:32:00.692  6047  6047 D app_process: Time zone APEX ICU file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat
09-20 19:32:00.693  6047  6047 D app_process: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt68l.dat
09-20 19:32:01.493  6047  6047 D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
09-20 19:32:01.494  6047  6047 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
09-20 19:32:01.495     0     0 I [ 2785.555206,4] binder: 6047:6047 ioctl 40046210 7fc7e45be4 returned -22
09-20 19:32:01.504  6047  6047 I scrcpy  : Device: [motorola] motorola moto g(6) (Android 12)
09-20 19:32:01.604  1275  1275 W Binder:1275_9: type=1400 audit(0.0:646): avc: denied { getattr } for uid=1000 scontext=u:r:system_server:s0 tcontext=u:r:su:s0 tclass=process permissive=0
09-20 19:32:01.604  1275  1275 W Binder:1275_9: type=1400 audit(0.0:647): avc: denied { getattr } for uid=1000 scontext=u:r:system_server:s0 tcontext=u:r:su:s0 tclass=process permissive=0
09-20 19:32:01.641  1275  1275 W Binder:1275_9: type=1400 audit(0.0:648): avc: denied { getattr } for uid=1000 scontext=u:r:system_server:s0 tcontext=u:r:su:s0 tclass=process permissive=0
09-20 19:32:01.644  1275  1275 W Binder:1275_9: type=1400 audit(0.0:649): avc: denied { getattr } for uid=1000 scontext=u:r:system_server:s0 tcontext=u:r:su:s0 tclass=process permissive=0
09-20 19:32:01.985  6047  6047 W app_process: Landroid/app/SystemServiceRegistry; failed initialization: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
09-20 19:32:01.985  6047  6047 W app_process: (Throwable with no stack trace)
09-20 19:32:01.986  6047  6047 D scrcpy  : Could not get system context: null
09-20 19:32:02.681  2275  2309 W rkstack.proces: Reducing the number of considered missed Gc histogram windows from 275 to 100

It seems it is fixed in LineageOS (IIUC): https://github.com/fakemanoan/LineageOS-Releases/issues/23


Implementation

What components are implemented and how.
Why choosing between a function and a service (functions for exchange and reaction to events + stateless)
Control is a service implemented as a function because extends the functionalities of the ready made IoTHub service from Azure.

Done, to review and complete with #10 and  #11


Migration error after install

After installing with pip on django-cms==3.11.1, Django==3.2.18, & python==3.8.10, and running:
python manage.py migrate
This error:
…
django.db.migrations.exceptions.NodeNotFoundError: Migration djangocms_ads.0001_initial dependencies reference nonexistent parent node ('cms', '0034_remove_pagecontent_placeholders')

was resolved by deleting the migrations in the migration folder:
virtualenv/lib/python3.8/site-packages/djangocms_ads/migrations
and running again:
python manage.py makemigrations && python manage.py migrate

@tehfink thanks for flagging. Looks like I generated the migration while using this with django-cms 4 which is why you're seeing that with v3.


Correcting docs around summary field relabelling

Although this is weird that it doesn't use the same logic and searchable fields.

Ping @pitchandtone - keen to get this merged?

https://github.com/silverstripe/silverstripe-framework/commit/1fb4c6f39f5252850267e91bacde0b43ca0b3125.


Issue on docs

Path: /documentation/features/interceptor
Hello, this is Ayushi
I started using hoppscotch from last few months. As I wanted to use it for localhost it needed browser extension and I download it as per docs.hoppscotch.io. But the issue is even after having browser extension it is not working for localhost requests. I had write the code correctly and had started the server in terminal.
I tried to look for the solution but I wasn't able to find anything that's why I am writing this issue here.

Hi @ayushipatel007, have you added the Base URL under origins in the browser extension?

Yes, I had
On Tue, 15 Oct 2024, 3:10 pm Sanskriti Harmukh, @.***>
wrote:

Hi @ayushipatel007 https://github.com/ayushipatel007, have you added
the Base URL under origins in the browser extension?
—
Reply to this email directly, view it on GitHub
https://github.com/hoppscotch/docs/issues/250#issuecomment-2413396918,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKSEFAHANOZ7IWBX2NK3YT3Z3TPIFAVCNFSM6AAAAABP6WFLU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJTGM4TMOJRHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Okay, could you please confirm if your server is set up to handle HTTPS requests, or should the URL be using HTTP instead? If the server isn't configured for HTTPS, try changing the URL to http://localhost:8080 and see if that resolves the issue.

I will try that.
On Tue, 15 Oct 2024, 10:14 pm Sanskriti Harmukh, @.***>
wrote:

Okay, could you please confirm if your server is set up to handle HTTPS
requests, or should the URL be using HTTP instead? If the server isn't
configured for HTTPS, try changing the URL to http://localhost:8080 and
see if that resolves the issue.
—
Reply to this email directly, view it on GitHub
https://github.com/hoppscotch/docs/issues/250#issuecomment-2414519052,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKSEFAGS4TP7Y6S44HXV643Z3VBATAVCNFSM6AAAAABP6WFLU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJUGUYTSMBVGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

I had changed my link, and it worked. Thank you!!


Pre-commit configuration

It seems that all repos in the organisation need a .pre-commit-config.yaml by default or commits will get an "x".

How this was setup? (good to know)

Should we drop the requirement for this repo or have a default configuration that can be used across all repos?

@zacharyburnett @pmav99

pre-commit is a framework that allows you install and run pre-configured git hooks (including your own). It is really useful for development since it ensures that all commits adhere to a minimum of code standards.
The creator of pre-commit, also created a CI service which is offered for free for open source projects. The services is offered under https://pre-commit.ci It is from this service that we get that red "x".
I don't have admin rights here, so I guess that it was @zacharyburnett that configured it. Or I asked you to do it for me at some point. I don't remember. Anyhow, you should be able to disable it. Visit this page and instead of configure pre-commit just for the repos that use it: https://github.com/apps/pre-commit-ci/

So @pmav99 you suggest we keep it only for some repos?

Done. Configured only for searvey.