Autocomplete not working properly in tasks file within role

Autocomplete is not working properly when I'm editing a tasks file within a role, I only get suggestions for generic task parameters:

It does work in a top-level playbook however:

To Reproduce
Create a new role and start editing a tasks file.
Expected behavior
I expect to get full autocomplete suggestions when editing the tasks file.
Platform:

OS: macOS 11.4
VSCode: Version: 1.58.1 Commit: 2aeda6b18e13c4f4f9edf6667158a6b8d408874
Ansible Language Extension 0.4.5

Ok, I did some more digging: Turns out VS Code is using a completely different schema for the playbook (not from the https://github.com/ansible-community/schemas repository), no idea why.
But the problem remains: I can't get any suggestions for modules in the tasks file, even though they are in the schema that's being used (https://github.com/ansible-community/schemas/blob/main/f/ansible-tasks.json).

This is kinda expected/known and it will take some time to be fixed. We discovered that JSON schema does not scale to the size of the data model we have on Ansible, especially when Ansible has all community modules. The plan is to replace current use of YAML extension with a custom language server for Ansible, which would not have such limitations.
Still, that is a major piece of work and I do suspect it will take a couple of months to complete.

Thanks for the heads up! I can see that developing a new language server for Ansible is no small feat.

I'm closing this issue since I can see the language server is already on the horizon. Thanks for the great work!

Probably we will close most existing bugs when we make the first release with the language server as they will no longer apply.

I'm experiencing the same problem. Has the language server been released yet? If not, is there a relevant issue I can follow?


when i make apps on mac book(m1-12.5,python3.8.10)(hue-4.11.0),it shows ModuleNotFoundError: No module named 'future'

when i make apps on mac book(m1-12.5,python3.8.10)(hue-4.11.0),it shows ModuleNotFoundError: No module named 'future'

I use Python to create three files in the following image：

I tried installing desktop and future, but it didn't work.

when i get docker in (mac m1 ) centos-9 (CentOS-Stream-9-latest-aarch64-dvd1),it shows

Can you give me a helping hand?
thank you！

=== zookeeper v.4.11.0 is already installed
=== Saved registry at /Users/ningjianwen/docker-contain/hue/app.reg
=== Saved /Users/ningjianwen/docker-contain/hue/build/env/lib/python3.8/site-packages/hue.pth
Running '/Users/ningjianwen/docker-contain/hue/build/env/bin/python /Users/ningjianwen/docker-contain/hue/build/env/bin/hue makemigrations --noinput' with None
Traceback (most recent call last):
File "/Users/ningjianwen/docker-contain/hue/build/env/bin/hue", line 33, in
sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
File "/Users/ningjianwen/docker-contain/hue/build/env/bin/hue", line 25, in importlib_load_entry_point
return next(matches).load()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/init.py", line 19, in
import desktop.signal_handlers
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/signal_handlers.py", line 20, in
from desktop.lib.thread_util import dump_traceback
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/lib/thread_util.py", line 19, in
from future import standard_library
ModuleNotFoundError: No module named 'future'
Running '/Users/ningjianwen/docker-contain/hue/build/env/bin/python /Users/ningjianwen/docker-contain/hue/build/env/bin/hue migrate --fake-initial' with None
Traceback (most recent call last):
File "/Users/ningjianwen/docker-contain/hue/build/env/bin/hue", line 33, in
sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
File "/Users/ningjianwen/docker-contain/hue/build/env/bin/hue", line 25, in importlib_load_entry_point
return next(matches).load()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/init.py", line 19, in
import desktop.signal_handlers
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/signal_handlers.py", line 20, in
from desktop.lib.thread_util import dump_traceback
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/lib/thread_util.py", line 19, in
from future import standard_library
ModuleNotFoundError: No module named 'future'
Running '/Users/ningjianwen/docker-contain/hue/build/env/bin/python /Users/ningjianwen/docker-contain/hue/build/env/bin/hue collectstatic --noinput' with None
Traceback (most recent call last):
File "/Users/ningjianwen/docker-contain/hue/build/env/bin/hue", line 33, in
sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
File "/Users/ningjianwen/docker-contain/hue/build/env/bin/hue", line 25, in importlib_load_entry_point
return next(matches).load()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/init.py", line 19, in
import desktop.signal_handlers
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/signal_handlers.py", line 20, in
from desktop.lib.thread_util import dump_traceback
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/lib/thread_util.py", line 19, in
from future import standard_library
ModuleNotFoundError: No module named 'future'
"PYTHON_VER is python3.8."
"SYS_PYTHON is /usr/local/bin/python3.8."
"ENV_PYTHON is /Users/ningjianwen/docker-contain/hue/build/env/bin/python3.8."
"SYS_PIP is /usr/local/bin/pip3.8."
"ENV_PIP is /Users/ningjianwen/docker-contain/hue/build/env/bin/python3.8 /Users/ningjianwen/docker-contain/hue/build/env/bin/pip."
./build/env/bin/python ./build/env/bin/hue collectstatic --noinput
Traceback (most recent call last):
File "./build/env/bin/hue", line 33, in
sys.exit(load_entry_point('desktop', 'console_scripts', 'hue')())
File "./build/env/bin/hue", line 25, in importlib_load_entry_point
return next(matches).load()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/init.py", line 19, in
import desktop.signal_handlers
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/signal_handlers.py", line 20, in
from desktop.lib.thread_util import dump_traceback
File "/Users/ningjianwen/docker-contain/hue/desktop/core/src/desktop/lib/thread_util.py", line 19, in
from future import standard_library
ModuleNotFoundError: No module named 'future'
make[1]: *** [create-static] Error 1
make: *** [apps] Error 2

Hi @baiying319 and thanks for reporting. We have seen the same build issue in some of our own build systems as well. We are working to have this fixed.

@baiying319 can you please try the following steps and see if you are still facing the issue?
make clean
rm -rf build
export ROOT="path/to/hue/directory"
export PYTHON_VER=python3.8
make apps

I've encountered the same bug installing on a VM.  After lots of digging, I found an error early in the make apps process that pointed to a file ${ROOT}/desktop/core/requirements.txt.  After a short list of pip packages, the requirements file points to base_requirements.txt, which includes the future package among many others.  The error is requirements.txt somehow giving a double path.  My ${ROOT} is /opt/hue.  The error points to /opt/hue/desktop/core/${ROOT}/desktop/core/base_requirements.txt.  None of the packages in requirements or base requirements are present in the working virtual environment.
I also edited requirements.txt to point to the absolute path of base_requirements.txt, but this resulted in no errors, as well as none of the listed python packages being installed in the virtual environment.
Here's the snippet with the actual error.  My guess is that since the path to base_requirements.txt fails, no python packages get installed.  I'm not experienced enough with makefiles to assist in further troubleshooting.
--- Installing /opt/hue/desktop/core/requirements.txt into virtual-env via /opt/hue/build/env/bin/python3.9 /opt/hue/build/env/bin/pip
ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/opt/hue/desktop/core/${ROOT}/desktop/core/base_requirements.txt'
--- Finished /opt/hue/desktop/core/requirements.txt into virtual-env

Any suggestions would be greatly apricated.

Same here ericbrow with the added fun of Python3.9 not being referenced in the MakeFile. I couldn't work out why the literal wasn't still there, so hard coded it and onto the next issue.

@ranade1 @wing2fly @athithyaaselvam - Can someone take a look?

Hi @ericbrow
Looks like you have not defined the value of ROOT.
export ROOT = <path_to_hue_directory>
in your case it is /opt/hue
Please see the point 9 in this doc.

Thanks @agl29 .  That was the fix.
Since step 9 was under the section for installing on a Mac, and I'm not installing on a Mac, I hope it stands to reason that we would skip that section.
Maybe setting the ROOT environment variable should be at the top of the document.

also see https://github.com/cloudera/hue/pull/3311


Add Lodash chunk and flatten to collection utils

We have found a use for the Lodash flatten and  chunk methods in a client project.  Add them as methods in src/utilities/collection-utils.ts.
An alternative would be to make all Lodash methods available from AndcultureCode.JavaScript.Core.
The implementation in the client project has been tagged with this issue for reference.

For reference, the approach to forwarding all of the lodash functions would be similar to the proposed issue on the testing repo: AndcultureCode/AndcultureCode.JavaScript.Testing#21, which would tack _ onto CoreUtils, CollectionUtils, or both


fix: Return cache on api error

Cached data was not being returned when cacheFlags was enabled and API calls failed.
Solved by getting the event subscription on useFlags out of the useEffect.
Also, creating a default onError function to set the loadingState value to the apporpiate values in case of error.

@kyle-ssg I have seen that in our vanilla JS, React, and NextJS examples the cache behaves slightly differently when the access to the API URL is blocked and cacheFlags is enabled, and I would like to know what should be the expected behavior in this particular scenario: In our React, example, the cached value is always returned by useFlags even if the new request includes an identity and the cached data doesn't correspond to that identity o doesn't have an identity at all, and vice versa, is that the expected behavior?


Test errors

Hi,
I started to contribute with this project and I followed the steps of CONTRIBUTING.rst but I can't pass flake8 and integration tests.
Specifically when try to pass test_custom_selected_tags and acces to self.post.tags.all(), raise next error:

E                   django.core.exceptions.FieldError: Cannot resolve keyword 'None' into field. Choices are: description, id, mycontent, name, slug, taggedwhatever
.tox/py34-django19/lib/python3.4/site-packages/django/db/models/sql/query.py:1330: FieldError

On the other hand I would like to contribute reformatting the widget class to allow more flexibility to extends and overwrite some methods of it. However I don't know if I should continue without passing tests.

Howdy!
I am going to regret writing this publicly on the Internet, but go ahead and contribute despite that failing test.
As long as its just the test_custom_selected_tags test that's failing, go ahead. I might add a skip marker for that one as it's proven to be either poorly written or testing the wrong thing.


OrderBy doesn't work

Hi,
I tried to run the follwing code:
let t :any[] = [{name:'royi'}, {name:'david'}, {name:'barak'}, {name:'moshe'}];
 let o = asEnumerable(t).OrderBy(s=> s.name).ToArray();
console.log(o);

It print in the original order...
I also try to define name string propety in type script class and orderby this property also do nothing..
Thanks,
Royi

It looks like sorting is not a trivial matter if done properly. Article here skims over few issues.

Hi,
when there will be fix?
thanks,
royi

Family matters, will do as soon as possible

As a workaround, while I am fixing the issue, you may provide your own comparison function to fix the error in your code

Just experienced the same problem using OrderBy the first time for objects with string or date property.
I hope for a new year release until then we can use:
http://stackoverflow.com/questions/1129216/sort-array-of-objects-by-string-property-value-in-javascript
http://stackoverflow.com/questions/39348556/typescript-sort-object-by-object-in-array
I prefer the linq flavor ;-)

Hi,
It seems the default sort algorithm doesn't work with Javascript string
http://stackoverflow.com/questions/51165/how-do-you-do-string-comparison-in-javascript
This fixes the problems.
let t :any[] = [{name:'royi'}, {name:'david'}, {name:'barak'}, {name:'moshe'}];
let o = asEnumerable(t).OrderBy(s=> s.name, (a,b)=>(a.localeCompare(b)) ).ToArray();
console.log(o);
A generic  sort function that should work on numbers and strings
let sort = <T> (a: T,b: T) : number => {
    if (typeof(a) === 'string' && typeof(b) === 'string' ){
        return (<string>a).localeCompare(<string>b);
    } else {
        return ( <any>a - <any>b );
    }
}

But maybe this can be written better... it's my fourth week with Typescript.


wsgimultiprocessing.py: segfault after fork on Darwin

This example program fails in CI on Darwin:
+python wsgimultiprocessing.py
objc[14347]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.
objc[14347]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

This is the same problem as discussed in #52.

Fixed via #60.


Provide a way to use a Perspective when connecting to SSAS

I have two perspectives in my SSAS database.  When I try to connect, I get errors.  I was able to modify the connection string to include the name of my perspective but it wasn't intuitive.  The connection property is "Cube=perspectivename".  If there's an easy way to add it, that would be great.
https://docs.microsoft.com/en-us/analysis-services/instances/connection-string-properties-analysis-services?view=asallproducts-allversions#cube

This relates to Analysis Services, which is not the focus of this External Tool. For now, I've listed it down as possible future enhancement.
If you feel like it, feel free to contribute to this repo.
Thanks,
Marc


Fix/Ignore Level 1 problems

Picks up on #2149 to fix the first level of PHPStan issues

Closed in favor of #2165


Can you wipe all bonding info?

I'm able to successfully pair devices using the SampleServer_authentication_passkey example. But I'd like to add a factory reset button to the device, which should clear all bonding info. I couldn't find any reference to this while looking over the header files. What's the easiest way to do this?

Currently there is no option to wipe bonding info with this library. You can search esp32.com forum and there is info how to do it with esp-idf. Its easiest option for now.

Try call remove_all_bonded_devices();

Try:
static void __attribute__((unused)) remove_all_bonded_devices(void)
{
    int dev_num = esp_ble_get_bond_device_num();

    esp_ble_bond_dev_t *dev_list = (esp_ble_bond_dev_t *)malloc(sizeof(esp_ble_bond_dev_t) * dev_num);
    esp_ble_get_bond_device_list(&dev_num, dev_list);
    for (int i = 0; i < dev_num; i++) {
        esp_ble_remove_bond_device(dev_list[i].bd_addr);
    }

    free(dev_list);
}

Not sure why, but esp_ble_get_bond_device_num is returning -1. Do I need to do something before that?


Adding SUSE Linux Enterprise Server

As proposed here #294, this Pull Request is supposed to add SUSE Linux Enterprise Server to our list.
The dates are from https://www.suse.com/lifecycle and https://de.wikipedia.org/wiki/SUSE_Linux_Enterprise_Server
I accidentally created a new branch based on my forked master - therefore, the opensuse stuff is here again.

@Kazzarra I made some changes, please check once.
Looks good mostly, but I'm unsure about /sles as the URL. Is SLES a common enough phrasing? Or should we pick /suse instead? (it should definitely point to one of the two, not sure which one).
Thanks for the PR 🥇.

The problem with /suse is: There is a "SUSE Linux Enterprise Server" and a "SUSE Linux Enterprise Desktop". I see your point that /sles is not quite obvious.

Maybe we need disambiguation pages like Wikipedia 😄


Uncaught 105: Extension errorIsolate must be runnable before this request is made.

[Enter steps to reproduce below:]

Cmd-R to run a Flutter app. This is the second time I ran my app, after updating to the latest Flutter master branch.

Atom Version: 1.5.3
System: Mac OS X 10.11.3
Thrown From: dartlang package, v0.6.2
Stack Trace
Uncaught 105: Extension error
Isolate must be runnable before this request is made.
At /Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:23569

105: Extension error
Isolate must be runnable before this request is made.
    at [object Object].dart.wrapException (/Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:24633:17)
    at _rootHandleUncaughtError_closure.dart._rootHandleUncaughtError_closure.call$0 (/Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:46425:19)
    at [object Object].dart._microtaskLoop (/Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:43837:27)
    at [object Object].dart._startMicrotaskLoop (/Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:43843:11)
    at TimerImpl_internalCallback0.dart.TimerImpl_internalCallback0.call$0 (/Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:23948:23)
    at invokeClosure_closure.dart.invokeClosure_closure.call$0 (/Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:25836:29)
    at _IsolateContext.dart._IsolateContext.eval$1 (/Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:23560:25)
    at [object Object].dart._callInIsolate (/Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:23202:28)
    at dart.invokeClosure (/Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:24781:20)
    at /Users/sethladd/.atom/packages/dartlang/web/entry.dart.js:24802:18

Commands
  2x -1:04.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:03.6.0 core:save (atom-text-editor.editor.is-focused)
     -1:01.8.0 dartlang:run-application (atom-text-editor.editor.is-focused)
     -0:25.2.0 tree-view:copy (pre.console-line.tab-scrollable)
     -0:09.7.0 core:save (atom-text-editor.editor.is-focused)
     -0:08.6.0 dartlang:run-application (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "disabledPackages": [
      "dart-tools",
      "minimap"
    ]
  },
  "dartlang": {
    "formatOnSave": true,
    "sdkLocation": "/Users/sethladd/homebrew/opt/dart/libexec",
    "showOutlineView": false
  }
}

Installed Packages
# User
atom-toolbar, v0.1.5
dartlang, v0.6.2
flutter, v0.2.1
highlight-selected, v0.11.2
last-cursor-position, v0.9.0
linter, v1.11.3
synced-sidebar, v0.4.3

# Dev
No dev packages

Third time I ran via Cmd-R, I saw this error. So, reproducing on my app here.

Fixed w/ a PR into the flutter repo -


Add doct 1.0.2

I just tagged v1.0.2 of doct (with pickling support).

Not sure why this build failed. @ericdill this is what CircleCI says, if that helps:
Using Anaconda Cloud api site https://api.anaconda.org
INFO | 2016-05-02 17:09:44,736 | Starting new HTTPS connection (1): api.anaconda.org
DEBUG | 2016-05-02 17:09:44,773 | "GET /channels/lightsource2-testing/main HTTP/1.1" 401 51
Traceback (most recent call last):
  File "/opt/conda/bin/build_from_yaml", line 9, in <module>
    load_entry_point('conda-build-utils==0+unknown', 'console_scripts', 'build_from_yaml')()
  File "/opt/conda/lib/python3.5/site-packages/nsls2_build_tools/build.py", line 371, in build_from_yaml
    packages = get_file_names_on_anaconda_channel(username, anaconda_cli)
  File "/opt/conda/lib/python3.5/site-packages/nsls2_build_tools/build.py", line 70, in get_file_names_on_anaconda_channel
    for f in anaconda_cli.show_channel(channel, username)['files']])
  File "/opt/conda/lib/python3.5/site-packages/binstar_client/mixins/channels.py", line 29, in show_channel
    self._check_response(res, [200])
  File "/opt/conda/lib/python3.5/site-packages/binstar_client/__init__.py", line 196, in _check_response
    raise ErrCls(msg, res.status_code)
binstar_client.errors.Unauthorized: ('Authorization header was not given', 401)

Builds dont work on PRs. It's to protect any encrypted variables from being exposed.


Storage Space related issues

We should always first check the Storage layout before extending volumes. If the volume to be extended is from Storage Pool, then extending Azure Disk is a waste of money and cannot revert.
When the disks are a part of Storage Pool, we should NOT extend the disks directly, instead, we need to add a new disk to the Storage Pool to extend the space, and then extend the volume size.
Can you please add this part to this doc and high light it?
This issue happens frequently to the users who are not familiar with the Storage Space configuration, and this makes trouble.

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

ID: ccc58c74-7913-f1f6-8681-1823bbd8f050
Version Independent ID: c11bab28-a82a-29a1-84bf-fb3dfb9a5cb2
Content: Expand the OS drive of a Windows VM in an Azure - Azure Windows Virtual Machines
Content Source: articles/virtual-machines/windows/expand-os-disk.md
Service: virtual-machines-windows
Sub-service: disks
GitHub Login: @mimckitt
Microsoft Alias: mimckitt

@uonie
Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.

@mimckitt
Can you please check and add your comments on this doc update request as applicable.

@mimckitt any updates here, this might cause customer's confusion if their guestOS storage layout contains storage pool or LVM (Linux)
thanks in advance.

@LoganZhao if you happen to have some spare time and can submit a PR with the these changes I will be more than happy to sign off on it

#reassign: @roygara
@roygara reassigning this to you since you work on disks and likely would have better contacts around this to get it updated.

We are currently cleaning up old issues and closing out items that are greater than 90 days old. If an issue is still present, please open a new feedback item on the document so we can prioritize correctly.
#please-close


Edit New issue OpenCV crash with some PNG Files

Hello,
We are using Thumbor for some resizing on Overblog (https://www.over-blog.com/) and it works very well, but we encounter problems with some PNG files.
We are using OpenCV engine because of its speed and smart detection, and we fallback on PIL when OpenCV crash.
Here is the version we use:
Pillow==2.3.2
opencv-engine==1.0.0
pgmagick==0.5.8
thumbor==4.8.2
thumbor-pexif==0.14.1
tornado==3.2.2
Works on Debian 7 with bundled OpenCV 2.4.10.
Here is an example of a PNG: http://img.over-blog-kiwi.com/0/88/72/24/20150107/ob_f75a17_jescharlie.png
We resize with this command:
/unsafe/568x568/http://img.over-blog-kiwi.com/0/88/72/24/20150107/ob_f75a17_jescharlie.png
(I know it's an upscale)
It's the same with downscale: /unsafe/100x50/http://img.over-blog-kiwi.com/0/88/72/24/20150107/ob_f75a17_jescharlie.png
thumbor_opencv OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /tmp/opencv-2.4.10/modules/core/src/copy.cpp, line 556
thumbor_opencv 2015-01-14 09:57:34 thumbor:ERROR ERROR: Traceback (most recent call last):
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1320, in _stack_context_handle_exception
thumbor_opencv     raise_exc_info((type, value, traceback))
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 302, in wrapped
thumbor_opencv     ret = fn(*args, **kwargs)
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/thumbor/loaders/http_loader.py", line 54, in return_contents
thumbor_opencv     callback(response.body)
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/thumbor/handlers/__init__.py", line 373, in handle_loader_loaded
thumbor_opencv     callback(normalized, engine=self.context.request.engine)
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/thumbor/handlers/__init__.py", line 110, in callback
thumbor_opencv     self.filters_runner.apply_filters(thumbor.filters.PHASE_AFTER_LOAD, transform)
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/thumbor/filters/__init__.py", line 81, in apply_filters
thumbor_opencv     callback()
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/thumbor/handlers/__init__.py", line 108, in transform
thumbor_opencv     Transformer(self.context).transform(after_transform_cb)
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/thumbor/transformer.py", line 88, in transform
thumbor_opencv     self.smart_detect()
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/thumbor/transformer.py", line 123, in smart_detect
thumbor_opencv     self.do_image_operations()
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/thumbor/transformer.py", line 195, in do_image_operations
thumbor_opencv     self.auto_crop()
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/thumbor/transformer.py", line 247, in auto_crop
thumbor_opencv     self.engine.crop(crop_left, crop_top, crop_right, crop_bottom)
thumbor_opencv   File "/usr/local/lib/python2.7/dist-packages/opencv_engine/engine.py", line 95, in crop
thumbor_opencv     cv.Copy(src_region, cropped)
thumbor_opencv error: src.depth() == dst.depth() && src.size == dst.size

Works very well with PIL.
Thanks for your work and your help.

Noticed this problem on a few PNGs:
OpenCV Error: Assertion failed (src.type() == dst.type()) in cvResize, file /tmp/opencv-pcqRHK/opencv-<IP_ADDRESS>/modules/imgproc/src/imgwarp.cpp, line 4074
2015-02-22 15:02:42 thumbor:ERROR ERROR: Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/tornado/web.py", line 1320, in _stack_context_handle_exception
    raise_exc_info((type, value, traceback))
  File "/Library/Python/2.7/site-packages/tornado/web.py", line 1503, in wrapper
    result = method(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/thumbor/handlers/imaging.py", line 100, in get
    self.check_image(kw)
  File "/usr/local/lib/python2.7/site-packages/thumbor/handlers/imaging.py", line 96, in check_image
    return self.execute_image_operations()
  File "/usr/local/lib/python2.7/site-packages/thumbor/handlers/__init__.py", line 89, in execute_image_operations
    self.filters_runner.apply_filters(thumbor.filters.PHASE_PRE_LOAD, self.get_image)
  File "/usr/local/lib/python2.7/site-packages/thumbor/filters/__init__.py", line 81, in apply_filters
    callback()
  File "/usr/local/lib/python2.7/site-packages/thumbor/handlers/__init__.py", line 114, in get_image
    self._fetch(self.context.request.image_url, self.context.request.extension, callback)
  File "/usr/local/lib/python2.7/site-packages/thumbor/handlers/__init__.py", line 347, in _fetch
    callback(False, buffer=buffer)
  File "/usr/local/lib/python2.7/site-packages/thumbor/handlers/__init__.py", line 112, in callback
    self.filters_runner.apply_filters(thumbor.filters.PHASE_AFTER_LOAD, transform)
  File "/usr/local/lib/python2.7/site-packages/thumbor/filters/__init__.py", line 81, in apply_filters
    callback()
  File "/usr/local/lib/python2.7/site-packages/thumbor/handlers/__init__.py", line 110, in transform
    Transformer(self.context).transform(after_transform_cb)
  File "/usr/local/lib/python2.7/site-packages/thumbor/transformer.py", line 88, in transform
    self.smart_detect()
  File "/usr/local/lib/python2.7/site-packages/thumbor/transformer.py", line 123, in smart_detect
    self.do_image_operations()
  File "/usr/local/lib/python2.7/site-packages/thumbor/transformer.py", line 196, in do_image_operations
    self.resize()
  File "/usr/local/lib/python2.7/site-packages/thumbor/transformer.py", line 275, in resize
    self.engine.resize(self.target_width or 1, self.target_height or 1)  # avoiding 0px images
  File "/usr/local/lib/python2.7/site-packages/opencv_engine/engine.py", line 74, in resize
    cv.Resize(self.image, thumbnail, cv.CV_INTER_AREA)
error: src.type() == dst.type()

After some digging, it appears to be isolated to PNGs with 16 bits/channel only. Opening xkobal's file in Photoshop reveals:

Tried saving the same image at 8 bits/channel before running it through Thumbor, error goes away.
Hope this helps narrow down the issue.

Hi, @sskylar! Yesterday I had time to tackle opencv-engine's issues and pull requests, but I worked until very late – as you can see from https://github.com/scorphus/opencv-engine/commit/83092d36bdb7cc3c29a4b30222877dd58e61344e – and only today I saw your commit. I'm adding some images to Thumbor's integration test which opencv-engine fails against, just like aforementioned fails. Glad you intend to contribute!

@scorphus Great! I like your solution, wasn't sure the easiest way to get the bit depth but that definitely looks better.
Just tested your fix out and there is (at least) one case where it still doesn't work (same with mine).
First, the good news. These all work great now:
:+1: resize
:+1: crop
:+1: rotate
:+1: grayscale
Where it still has problems is on filters like fill() which I believe makes use of gen_image or image_data_as_rgb (enable_alpha also possibly affected, but I haven't confirmed).
Here is a sample 16-bit png with alpha:

Download link in case GitHub messes with it: http://cdn2.dropmark.com/1/f5d0063c2484e5070f10feafbe55c6f6d26130dd/test.alpha.16bit.png
Using your fix, here's how 100x100/filters:grayscale():rotate(90) looks:

:+1: Perfect
With filters:fill(blue):

:-1: Hmm
For the record, I found I was able to solve by converting to 8bit in create_image. However, this was caused my image to lose alpha, so I'm not sure that's the best plan.

Hello, thanks for the work. Any update on that point ?
Best regards.
Xavier

Hello, @xkobal. We're still working on it. We've managed to make it stop crashing but some filters still can't deal too well with 16bit images, as of yet. We'll keep this issue updated.

:thumbsup:
Thank you very much !


adding captions for the images

This is a wrong commit https://github.com/mdsanima-lab/mdsanima-cli/commit/eb7b6387e6a0f3cbeada87eb07005935f915a2d5 message.


Fix small typo in ctest path

There is a small typo in the ctest path which causes copying and pasting the command from the README to break.

Checklist

Thanks @altheaden!


Not working at all on Firefox version 50 (Fedora 25)

I'm not sure when this issue arose as I haven't used the extension for a while. At present the extension doesn't work at all, and when opening a .md file, the download dialogue appears. With the Open in Browser extension I can try and force firefox to open it instead of downloading it, but this also doesn't work. I tried the workaround here but they didn't work at all for remote markdown files, and for local files just resulted in a blank page. I also tried renaming a file to .mdown, and this also resulted in a blank page without any mimeTypes.rdf changes.
P.S. I also tried reinstalling the extension completely.

Same problem

I'm experiencing the same problem with 51 beta 12 on Windows.
All I see is just a blank screen.

Same here Firefox 51b2/Gentoo, a workaround is to disable multi-porcess on Firefox (about:config -> browser.tabs.remote.autostart -> False) but that's obviously a workaround and a high price to pay.

Same here, Firefox 54a2 / Ubuntu 16.04.  Disabling multi-process didn't make a difference for me;  both remote & local .md files caused the download dialog box to appear instead of rendering as Markdown in the browser.


[#344] set proxy credentials on proxyAuthenticationRequired signal

seems like this signal is emitted the very first time user is trying to access proxy.
Subsequent request to same proxy dont need filling out credentials. Qt docs say that
credentials are cached. It seems like they are cached also between Splash restarts.

docs for this signal are here, http://doc.qt.io/qt-4.8/qnetworkaccessmanager.html#proxyAuthenticationRequired

This signal is emitted whenever a proxy requests authentication and QNetworkAccessManager cannot find a valid, cached credential. The slot connected to this signal should fill in the credentials for the proxy proxy in the authenticator object.

QNetworkAccessManager will cache the credentials internally. The next time the proxy requests authentication, QNetworkAccessManager will automatically send the same credential without emitting the proxyAuthenticationRequired signal again.

if we're ok with this change I'll add some unit tests for it


cygwin platform

Thanks for the great work. Can you support cygwin platform?

Hi! Sorry for the late response. Unfortunately I don't have a Windows machine, so I'm not really able to write code to target that platform. I am happy though to review any PRs that add support.


Target evenement 3.0 a long side 2.0 and 1.0

Événement 3.0 is nearly fully backwards compatible with 2.0 and 1.0 and react/datagram is fully compatible with all three so why not support it. It packs some neat performance upgrades without any code changes on react/datagram's side :shipit: .

Change LGTM, but IMO this should target the v1.2.0 release as it is actually a new feature, not a bug fix :+1:
For the reference: The failing unit tests are unrelated and being addressed in #17.

this should target the v1.2.0 release as it is actually a new feature

Don't entirely agree as this doesn't add new features from a users point, it just ensure forward support for a package used in this package. But :man_shrugging: , v1.2.0 works just as well as v1.1.2 :smile:


Updated Milestones section

Fixes Issue

Changes proposed

I updated my Milestones Section

Check List (Check all the applicable boxes)

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

Screenshots

Note to reviewers

Hi Eddie! I finally formatted my JSON file.

Please make data changes to the the main branch, otherwise, when we deploy today they will get lost


Weather needs verbose flag

The weather command gives too much information by default. On mobile, it scrolls me an entire screen. I suggest adding a flag to it to get all of that data, if desired, but defaulting to just the summary, temperature, and humidity. Preferably one line.
Remember, people use weather commands all the time.

Maybe we could use less fields, like merge both temp units together, the same for the address and timezone, etc

That's another solution, sure. I didn't want to demand less information, in case anyone was married to knowing the air pressure, timezone, and such,

What would be the command for verbosity, is !bot weather -v adress good enough?

Maybe try to bundle similar info into the same field first. I think all those fields are requiring too much space.
If it turns out too big still, I guess a simple -v should suffice to enable all the info.

we can merge celcius and fahrenheit degrees into one field, other suggestions?

OK, this is what we have today:
embed.setColor('#4286f4')
             .setFooter(`Local Time: ${dateString}`)
             .setTitle(`Weather in ${address}`)
             .addField('Summary', summary)
             .addField('Temperature °C', `${temperatureC} °C`, true)
             .addField('Temperature °F', `${temperatureF} °F`, true)
             .addField('Timezone', weatherData.timezone, true)
             .addField('Humidity', `${humidity}%`, true)
             .addField('Wind Speed', `${windSpeed} km/h`, true)
             .addField('Air Pressure', `${pressure} mbar`, true)
             .setDescription(weatherConfig.icons[weatherData.currently.icon]);

Here's my ideas:

(-1) don't slice the timezone from dateString so it'll appear in the footer, and remove field "Timezone"
(-1) put both temp units in the same field
(-1) remove air pressure (?)

Maybe even merge humidity and wind speed

+1 to all rg's ideas.

#49 fixed here


While call getCurrentPosition method trigger didChangeAppLifecycleState

Here is more details about issue : https://github.com/Baseflow/flutter-geolocator/issues/396

Hi @nirav4273 , opening an issue please try to provide
all or some of the information indicated in the template

Issue Template
If you are looking for support, please check out our documentation
or consider asking a question on Stack Overflow:
- https://flutter.dev/
- https://api.flutter.dev/
- https://stackoverflow.com/questions/tagged/flutter?sort=frequent
If you have found a bug or if our documentation doesn't have an answer
to what you're looking for, then fill our the template below. Please read
our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
Steps to Reproduce
Please tell us exactly how to reproduce the problem you are running into.
Please attach a small application (ideally just one main.dart file) that
reproduces the problem. You could use https://gist.github.com/ for this.
If the problem is with your application's rendering, then please attach
a screenshot and explain what the problem is.
1. ...
2. ...
3. ...
Please tell us which target platform(s) the problem occurs (Android / iOS / Web / macOS / Linux / Windows) Which target OS version, for Web, browser, is the test system running? Does the problem occur on emulator/simulator as well as on physical devices?
Target Platform: Target OS version/browser: Devices:
Run your application with `flutter run --verbose` and attach all the
log output below between the lines with the backticks. If there is an
exception, please see if the error message includes enough information
to explain how to solve the issue.
Run `flutter analyze` and attach any output of that command below.
If there are any analysis errors, try resolving them before filing this issue.
Finally, paste the output of running `flutter doctor -v` here.

Closing this issue, since no information has been provided.

I am using https://pub.dev/packages/geolocator package for get location details.
When getCurrentPosition() it's also trigger AppLifeCycleState.
Basically i am trying to get location when app resume so i used didChangeAppLifecycleState of flutter. In code it's trigger infinite when getCurrentPosition() called.
Sample Code
import 'package:flutter/material.dart';
import 'package:geolocator/geolocator.dart';

class CreateBug extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return CreateBugState();
  }
}

class CreateBugState extends State<CreateBug> with WidgetsBindingObserver{

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    WidgetsBinding.instance.addObserver(this);
    Geolocator().getCurrentPosition().then((res){
      print(res);
    });
    WidgetsBinding.instance.addPostFrameCallback((res){
      print(res);
    });
  }
  // This section call each time on  `getCurrentPosition()`
  @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    print(state);
    // Fetch location again on `resumed` state.
  }

  @override
  void dispose() {
    WidgetsBinding.instance.removeObserver(this);
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      key: _scaffoldKey,
      body: SafeArea(
        child: SingleChildScrollView(
          child: Container(
          ),
        ),
      ),
    );
  }
}

Logs:
 AppLifecycleState.inactive
E/location_permissions(22373): Flutter result object is null.


How to pass dropdown data from form to custom editor

Hi, How to pass dropdown data from form to editor.
In dialog this dropdown can be accessed as this.form.dropdownName.value but in editor I cannot access this value. The Editor is called after the drop down is selected

you can pass values between controls in Dialog


Creating a new chat with another user who is not yet on NewDot shows wrong time

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

I used one of the new emails that are not yet on NewDot. And time was shown as PDT which is wrong.
Action Performed:

Open NewDot.
Use one of the emails that have not been on NewDot.
Check the time information before the composer.

Expected Result:
We should not show anytime if we don't know the correct time.
Actual Result:
This is misleading as it shows wrong information.
Workaround:
None.
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number: Latest
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
View all open jobs on GitHub

Triggered auto assignment to @laurenreidexpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

Triggered auto assignment to @MitchExpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

OOO

I am unable to reproduce this. I don't see any times showing when starting a conversation with accounts that have yet to sign up to Expensify:

May be try an email.

@MitchExpensify Eep! 4 days overdue now. Issues have feelings too...

Have you been able to replicate this @parasharrajat ?

I will retest this and let you know. Meanwhile, I think the best is to demote it to weekly.

I'll give this another week before closing if we don't replicate

Thanks, I will spare time for this.

@MitchExpensify Steps:

Open App on Web.
Click the new chat from Green :plus button. Enter an email id that does not exist in Expensify yet. For example, it could be any email<EMAIL_ADDRESS>Timezone is shown in PDT timezone which is incorrect. I tried a personal Gmail account as well and the time was shown in PDT. it gives me the wrong impression. So it's better if we don't show the time for that user.

Not overdue, on hold

On hold

On hold

Taking off hold and was unable to reproduce using these steps. Closing for now


Initial mojo version

@dorjeduck - I had to fix MOJO_PYTHON_LIBRARY - made a note in the Readme. I also changed the relative paths.  Anything else you want?

@dorjeduck - I had to fix MOJO_PYTHON_LIBRARY - made a note in the Readme. I also changed the relative paths. Anything else you want?

just dont open a pull request with my source code yet, its not ready. Let me improve on it and i will do when ready. Thx

I don't think I'll merge mojo code to this repo, I don't have the bandwidth to support it. I will be very happy to link to it, similar to how I linked to friend repos in llama2.c repo. Very eager to see the port though!

Hey Andrej, thanks for being aware of it. I don't see it in your repo either, and its just not ready anyway, its a Mojo beginner code. I am discussing within the Mojo Discord community how to move forward with it, there are surely people much more skilled in Mojo than me. At one point we hopefully have an elegant and performant Mojo port, coming along with proper benchmarking etc. No point looking to close right. Love all your work and wisdom sharing, thanks for all that.

Please use a Discussion instead of a PR/Issue.
Very eager to see Mojo port (and other languages!) of llm.c


URLs can't be open with the mouse if their line is wrapped

First of all: this project is AMAZING! Really! Congrats! :)
Links can be clicked with the mouse and they work nice unless the terminal window is not large enough to accommodate it in a single line.
Kind off-topic questions: is there a way to:
1- move the cursor in a message with Ctrl + arrow (to jump to empty spaces)? Same to Ctrl + End and Ctrl + Home.
2- set the send message shortcut to Ctrl + Enter? I tried many combinations, but nothing seems to work. Using nchat -k doesn't help because pressing Enter or Ctrl + Enter seems to trigger the same output.

Sorry to flood this, but I found two more issues:
1- there's no way to select a wrapped line message without also selecting the contacts at left (well, unless we hide the contact list)
2- if we paste a text like this in a given chat, different people will receive parts of the text (I have both Telegram/WhatsApp enabled):
CpxmcoLz dg yzcx:

- ya jlcyzg xjgaqxazx ez qídj yâydí tjamyzozdéz cxzcaqt tcegxztcz yaâydz lcjy azxgzayca yaâygzaeazl, q:
	1- sq xjgjrgx yaâydz ayâgz tcxaz xjgcaylzaz ez azxgzayca qyaydz tcqyaz yaâydí;
	2- sq vctczr azxq tcegq zctydzayy, yaâydz notificação sygjy, sq vctczr azxq yaâydz cyzgj lcjy tcyaz tcqyaz qyaydz, y yaâydz dqygx paqrz/qyaygj yaâydz tcqyaz;
	3- sq cyzgj cymz lcjy yaâydí tcyaz ez ayâygzaeazl/vctczr azxq ayâygz, sygjy yaâydz tcxaz yaâydí
	4- sq vctczr azxq tcegq yaâydz y yaâydz tcyaz cjz lzlcqgz ylzr, lcjy áudio yaâydz tcxaz jcyqjy;
- yaâydz ayâgz xjgjrgx azuis, lcjy tcxaz qcygjz lzlcqgz azxgzayca ayâgcjvzl yaâydz;
sq cyzgj tcegq yaâydz ayâgz gz lzlcqgzayy lcjy qcqgqz ylzrjy y âgz lcjy yaâydz azxgzayca jcyazcy yaâydí -- nzlzq lcjy tcxaz sq jyrcqgz azxq tcegq lzlcqgzayy yaâydz lzrcy gz ayâygzaeazlz;
- sq cyzgj yaâydz tqgqjzayy a gzgzr qcrvqgq azgcy azxgqgjaz gz qgzlcqgz ayâydz, yq lzgzq lzlcqgzayy lcjy lylcyz azxq lzgzgz gzqgzgz azxgzayca lzrcygz qgzgzqgz lzlcqgzayy, q gzgzqgz nlcyyazgz ylzrjy yaâydz lcjy tqgqjzayy gz qgzgzqgz lzgzgz gzqgzgz lzrcygz lzlcqgzayy;
- sq jlcyz azxgzayca gz lcjy lzqgzqgz ayâydz lzqgzgzayy lcjy lzrcygz lcjy lylcyz azxq lzgzgzayy lzlcqgzayy, lzqgzqgz nlcyyazgz lcjy lzrcygz yaâydz, yaâydz lzqgzgzayy lzgzqgz lzlcqgzayy lcjy lylcyz azxq lzgzgzayy lzlcqgzayy lzgzqgz lzgzgz lcjy lzgzgzayy;
- yaâydz sq lzqgzqgz azxgzayca azgcy lzrcygz yaâydz nlcyyazgz lzlcqgzayy;
- yaâydz lcjy lzqgzgzayy:
	1- lzgzqgz gzgzgzlzgz gzlzrcyya
	2- gzqgzgz ayâydz gzlzgz lzgzqgz lcjy lzgzgzayy
- gzlzqgzgz gzlzqgzqgz azgcy azxgzayca gz lzgzgzayy:
	1- tcxazgz lzgzgzlzgz gzlzrcyya
	2- yaâydz gzgzqgz gzlzgz lzgzqgz lcjy lzgzgzayy;
- gzgzqgzgzqgz gzlzqgzqgzazgz gzlzqgz gzqgzgzgzlzgz gzqgzgzgzlzgz: gzlcjy gzgzgz lcjy lzgzgzayy gzgzqgzgzlzgz, yaâydzgz yaâydzqgzgz azxgzayca lzgzgz gzgzgzqgzgzgz gzqgzgz lcjy lzgzgzayy lzgzgzayy gz gzgzgzgz gzqgzgzgzlzgz;
- gzazgzlz lzgzgz lzgzgzgzqgz gzgzgzlzgzlzgz, gz yaâydzgzgzgz lzgzgzgz gzqgzgzgzlzgz, lcjy gzqgzgzgzgz gz gzgzgzgzgz gzqgzgzgzlzgz;
- yaâydz lzgzgz gzgzgz lzgzgzqgzgz gz lcjy qgzgzgzgzgzgz, gz yaâydzgzgzgz lzgzgz gzqgzgzgzlzgz, yaâydz gz gzgzgzgz gzqgzgzgzlzgz;
- gzazgzlz lzgzgz gzgzgzgzqgz gz gzgzgz gzgzgzgzgz lzgzgz lzgzgzayy;
- gzqgzgzgz gzlzqgz gzlcqgz gz gzgzgz gzqgzgzgzlzgz, gz gz yaâydzgz gzqgzgzgzlzgz, gz gz

Hi, thanks for the feedback!
For future issue reports, I'd like to suggest to report different issues separately.
Anyway, for mouse clicking links with line-breaks, I consider it out-of-scope for this project. It would be fairly complicated to implement, and likely only support when chat list is hidden (i.e. messages are full width), and thus only benefit a subset of users. You may however select a message (key up/down) and press Ctrl-W to open link(s) in the message.
For word/message navigation, please refer to the README. But essentially nchat supports equivalent to bash shell (Alt-Left, Alt-Right, Ctrl-A, Ctrl-E).
I believe Ctrl-Enter does not send a unique key code by default, so it cannot be differentiated by nchat. One can probably configure the terminal (for example xterm) to send a unique key code for Ctrl-Enter, but how to do that would be specific for each terminal.
For selecting a line-wrapped message, you can hide the contact list using Ctrl-L and then select message lines across the full terminal width. Or you can simply select the message and use Alt-C to copy its content.
For pasting text (assuming containing tab characters, which by default switches to next chat) please try using the internal paste command Alt-V, or alternatively reconfigure the keybinding next_chat=KEY_TAB in key.conf.
I'll proceed to close this issue for now, but feel free to re-open for any follow-up questions or issues.

Not only your project is amazing, but you're very kind. :)
I managed to set Home and End to begin_line and end_line, respectively. I wonder why this is not the default, as this seems more intuitive because it's the default in any editor and even most terminal -- you could change the history home / end to Ctrl-Home and Ctrl-End. Same for backward_word and forward_word using Ctrl-Left and Ctrl+Right.
Thanks a lot!

Thank you for the kind feedback!
The default key bindings for text input are generally based on default bash behavior. There are also some complexities with supporting ctrl + navigation keys portably across terminal emulators / operating systems, at least given that nchat is based on ncurses.


Add AI search with pgvector

Is your feature request related to a problem? Please describe.
Allows people to resurface notes that are similar & allow people to search notes with AI.
Describe the solution you'd like

Basically, on save (frontend), a hash will be created pushed into the note text hash table & an embedding will be created if the hash does not exist.
Embedding will be created probably with the open AI api
when searching an input will be text & the notes will be searched through the function.
When you enable the plugin, the plugin will backfill the hashes.
[ ] remove dio dependency

two tables:

embeddings table (hash (id) , embeddings), hash as key
note text hash table (auto updated, 3 columns: hash, note_column, note_id) - note_id / note_column as key

two funcitons:

one that takes a supabase_json object(s) & creates the embeddings / updates the hash table (uses AI)
one that takes a string as input (+ user credentials) & returns a list of all note ids with similarity scores.

Describe alternatives you've considered

use locally hosted text embedders on deno (this is a lot more work)
make sure to update the delete-user to also delete the note text hash table.

Additional context
text embedding comparison article

Use gte-small for text embeddings with deno functions. See: https://huggingface.co/Supabase/gte-small


stop vulcanizing if possible

IIUC based on what I've heard, it sounds like vulcanization was added to our build process a while ago, not for its intended purpose of speeding up the loading of web components for http 1.1 clients, but to circumvent CSP limitations for Chrome extensions. It sounds like those limitations may not even be in place anymore. Meanwhile, vulcanization does add time and complexity to the build process, and another level of indirection between the source and the built result even for our dev build. So it might be worth ditching vulcanization, and this may even be possible without any drawbacks.

We should at least see if whatever CSP restrictions vulcanization helped with applied for developer extensions loaded from source. If not, maybe we can at least ditch vulcanization for the dev build, if not the dist build too.

It also seems that vulcanize has recently been refactored, and the functionality we actually use may have been separated into a new tool called crisper.  I don't claim to understand the details, but it seems to me that using crisper might get us the minimal required transformation.

Also, it seems like there's an option to relax the policy in Chrome 46+ (h/t @lucyhe for the find):
https://developer.chrome.com/extensions/contentSecurityPolicy#relaxing-inline-script

Closing as this is not a priority right now.


feat(model): research output authors

For https://trello.com/c/dUrWu11Q/1230-show-authors-on-an-output-detail-page
No proper backend impl, just fixed type errors

@johnytiago @peterstarling can someone add the proper backend impl for the field? :sweat_smile:

sorry @johnytiago I was going to remove my comment and accidentally deleted yours but it was a valid comment and i followed it here: https://github.com/yldio/asap-hub/pull/857/commits/ce33c53f89db79cb56edc549690f22983682b2ee


fix(graphql-auth-transformer): add support for ownerfield

add support for ownerField in auth subscriptions
Issue #, if available:

re #2361

Description of changes:

If there are no static group rules and only owner rules then the owner rules are required int the subscription operation this also applies to owner rules with an ownerField.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Please add some tests:
* Transformation tests to see we're generating the expected schema output

* E2E tests to make sure we cover these grounds well

added unit tests to verify behavior
draft pr #2400 pending this pr has e2e tests based on this change


Implementation of Validation - Discussion

Hey, I am currently working on the implementation of the validation system.
On the one hand, I am starting with something simple as a proof of concept to make sure everything can work, on the other hand I write it so that it can be expanded as much as we want with addtional keys, functionalities etc.
So to give a chance to discuss the validation system how I currently implemented (or still implement) it before creating a PR, I want to show what I have and request comments, in case something is not as discussed earlier.
First, I have a file .onyo/validation/field_names.rules (I know the name is bad. I wish no critic about it, but better names are very welcome). I used RAM and Size as 2 different field names, just as examples to work with, but the key names can be choosen freely.
"shelf/*":
- RAM:
    - Type: int
"*/*":
- RAM:
    - Type: int
- Size:
    - Type: int

That file defines rules for all assets under "shelf" specifically, and for each location in general with "*/*". Currently, one can only specify the type of the variable of a field, and the currently supported options are int, str, float.
Now, I want to follow up with the behaviour of the validation, for different commands to give an idea, how the example above looks in reality.
When using onyo edit and giving a field (RAM in this case) a value which violates the rules of validation:
❱ onyo edit user/laptop_apple_macbookpro.4

Onyo Validation failed for:
	user/laptop_apple_macbookpro.4 (*/*): values for "RAM" must be int, but is "12GB"
Continue editing? (y/n)y

When using vim and messing up an asset manually, and afterwards using onyo fsck to verify the state of the repository:
❱ onyo fsck
ERROR:onyo:
Onyo expects a clean onyo working tree before running commands. Please commit or .gitignore all changes and check the syntax of asset files.

The Onyo working tree is not clean.
Changes not staged for commit:
	 user/laptop_apple_macbookpro.4
Please commit all changes or add new files to .gitignore
Some files have invalid contents:
	laptop_apple_macbookpro.4 (*/*): values for "RAM" must be int, but is "12w"

While creating a new asset with onyo new (similar with the --template flag):
❱ onyo new shelf/
<type>*:asset
<make>*:asset
<model>*:asset
<serial>*:4

Onyo Validation failed for:
	/Users/tkadelka/new-onyo/second_tests/onyo_tests/test_1/shelf/asset_asset_asset.4 (shelf/*): values for "RAM" must be int, but is "12GB"
Continue editing? (y/n)

For this last example, I changed the rules file. Everywhere (including shelf) "RAM" in assets is allowed to be a string. The only exception is, that in the folder "user" RAM keys must be int, not str. This is the result when trying to onyo mv a file, which is valid in the folder shelf, but not valid in the folder user:
❱ onyo mv shelf/test_asset_file.1234 user
ERROR:onyo:
	user/test_asset_file.1234 (user/*): values for "RAM" must be int, but is "12GB"

No folders or assets moved.

In general, I plan to expand parts of the output, to give more precise information. So again, ideas about what information we want always to have in the output are welcome, but I do not need to be told, that it is currently not always optimal, since I am aware of this. :)
I would like to have feedback about the current functionality while updating the output, and writing the readme for the current version.

A few comments (because I cannot respond in-line).

That file defines rules for [...] each location in general with "/".

This confuses me. This syntax would imply (to me) that globs do not pass folder boundaries, and thus */* only matches assets at the 2nd level in the hierarchy.
Is there a way to specify a global glob?
Also, somewhat related, is there a way to chain multiple patterns together (for example, with a comma, ala CSS)? Such as:
"shelf/*", "basement/*":

When using onyo edit and giving a field (RAM in this case) a value which violates the rules of validation:

This example is unclear to me. Is onyo throwing the warning/error before it spawns vim, or after vim has been closed? The description leads me to believe that vim opened, the user messed up the value, and after vim close, onyo now warns. The error message "Continue editing? (y/n) y" is open ended. What happens if the user says "no"? Does it save the invalid value, or discard the edit (or all edits [even valid ones] if there are multiples?)

❱ onyo fsck

I think there's some ergonomic problems with the fsck output. But that can be addressed separately from the validation work.

❱ onyo new shelf/
<type>*:asset
<make>*:asset
<model>*:asset
<serial>*:4
Onyo Validation failed for:
	/Users/tkadelka/new-onyo/second_tests/onyo_tests/test_1/shelf/asset_asset_asset.4 (shelf/*): values for "RAM" must be int, but is "12GB"
Continue editing? (y/n)

This example confuses me. Where does RAM get involved? Is it a required field?

UX comments:
- I think this would be easier to read if the path was trimmed to be relative to the repository root.
- The "Continue editing" phrase is confusing when there's no editing here, it's asset creation.

> This is the result when trying to onyo mv a file, which is valid in the folder shelf, but not valid in the folder user:

This looks great. +1

Also, somewhat related, is there a way to chain multiple patterns together (for example, with a comma, ala CSS)? Such as:
"shelf/*", "basement/*":

Good point, I will check it out, thanks.

When using onyo edit and giving a field (RAM in this case) a value which violates the rules of validation:

This example is unclear to me. Is onyo throwing the warning/error before it spawns vim, or after vim has been closed? The description leads me to believe that vim opened, the user messed up the value, and after vim close, onyo now warns. The error message "Continue editing? (y/n) y" is open ended. What happens if the user says "no"? Does it save the invalid value, or discard the edit (or all edits [even valid ones] if there are multiples?)

It opens vim, the user edits, closes vim, then the error appeares. When the user says no, all changes will be discarded. Otherwise, the user might want to use onyo set in the future. But partial usage of changes introduced by hand, but then not corrected are not allowed.

❱ onyo new shelf/
<type>*:asset
<make>*:asset
<model>*:asset
<serial>*:4
Onyo Validation failed for:
  /Users/tkadelka/new-onyo/second_tests/onyo_tests/test_1/shelf/asset_asset_asset.4 (shelf/*): values for "RAM" must be int, but is "12GB"
Continue editing? (y/n)

This example confuses me. Where does RAM get involved? Is it a required field?

There are currently no "required fields". onyo new opens the editor by default (otherwise there is a flag). In the Example, I wrote the line RAM: 12GB by hand, closed the editor and got the warning, that the new file is not valid.

UX comments:
...

The "Continue editing" phrase is confusing when there's no editing here, it's asset creation.

onyo new opens the editor by default, so there has to happen editing first.
Thanks a lot for the feedback, I will give more information about the questions next meeting!

The thoughts of this issue are implemented or further discussed in #100, so I close this issue.


Test coverage issue in React Native

What happened?
I am using Detox with Cucumber for BDD test report. All test feature is working fine. Then I installed nyc (Istanbuljs) plugin for generating detailed test coverage report but that is not covering React components.
What was the expected behaviour?
No response
Was it tested on latest Detox?

[X] I have tested this issue on the latest Detox release and it still reproduces.

Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.11.4
React Native version: 0.72.6
Has Fabric (React Native's new rendering system) enabled: (yes/no) yes
Node version: 16.15.0
Test-runner (select one): other (cucumber)
Detox logs
Detox logs
paste logs here!

Device logs
Device logs
paste logs here!

More data, please!

This is one of unsolved feature requests. No one wrote up until now an adapter that would get coverage from an instrumented RN app code.
There's no clear ETA for this now.

how abt Jest coverage? would cover all src/ and ignore some of files you specified.


Implement direct communication between Android code and JS

Summary
Changes onMessage handling on Android from React Event Dispatcher to direct call over BatchedBridge, similar to how iOS is implemented.
Looking at RNCWebViewManager.java, it implements message passing from WebView contents to React Native code over React Event Queue, which for large messages can be noticeably slow.
Switching to direct calls over BatchedBridge (something similar to how iOS handles it) displays considerable improvement in speed.
For local tests of messages in ~6.5MB in size, I noticed improvements of ~65%, from 5200ms to 1800ms. This is more comparable to iOS implementation, which took ~1s.
Fixes #1120.
Any suggestions and questions welcome.
Test Plan
Testing done and before/after is detailed under #1120.
Compatibility

OS
Implemented

iOS
not applicable

Android
✅

Checklist

[X] I have tested this on a device and a simulator

Below are not applicable as the PR implements no feature changes, only internal behaviour.

[ ] I added the documentation in README.md
[ ] I mentioned this change in CHANGELOG.md
[ ] I updated the typed files (TS and Flow)
[ ] I added a sample use of the API in the example project (example/App.js)

cc @safaiyeh, could you take a look at this and provide us feedback where to proceed with this patch?
As mentioned in the PR description, this improves latency for large messages immensely on android, so we'd be super interested in rolling this out to users.

This is great! @ivari @macobo, what is the best way for me to test this? Is there a concern of this breaking current functionality?

Hey! Apologies for the slightly delayed response.
I assume you mean how to test the speed? I used something like this:
import React, { Component } from 'react'
import { View } from 'react-native'
import { WebView } from 'react-native-webview'

export default class App extends Component {
  render() {
    const html = 'dummy html'

    const run = () => "window.ReactNativeWebView.postMessage('${Date.now()}')"

    setTimeout(() => {
      this.webref.injectJavaScript(run);
    }, 3000)

    return (
      <View style={{ flex: 1 }}>
        <WebView
          ref={r => (this.webref = r)}
          source={{ html }}
          onMessage={event => {
            console.log({
              start: event.nativeEvent.data,
              end: Date.now(),
            })
          }}
        />
      </View>
    )
  }
}

injectJavaScript should for all intents and purposes be instant, so this should give you a way to get the time from calling ReactNativeWebView.postMessage to when it was handled with onMessage.
For larger payloads, simply adjust the code to include more data in the postMessage call.
As for breaking current functionality, I don't see any specific risks here, unless there's some inherent instability in using BatchedBridge of which I am not aware.

Hi there, I have a very naive question.
As injectJavascript takes a string, does it means it get eval() in the webview ?
If so, as eval is pretty slow, how could we improve performances ?

Hi there, I have a very naive question.
As injectJavascript takes a string, does it means it get eval() in the webview ?
If so, as eval is pretty slow, how could we improve performances ?

I would assume that it gets handled as any other


Contributing under GSSOC'24. Adding docx having implementation of basic commands in linux

Hey @rugved0102, thank you for creating the issue.
As it is not needed, it is already done by someone else. Please search for another issue and raise it, which I'm happy to assign to you.

I have a docx full of basic cmds for linux bash shell, I think it will be very helpful for a beginner who is interested in learning bash scripting.


Implement Manual Aiming

Presently, the player runner uses the same auto-aiming system that the AI use. The player has no control over which target to attack, other than the closest target. I plan to implement a more traditional system where the player can aim and shoot based on the position of the mouse, relative to the world. This will require redesigning the existing targeting-reticle widget, getting the current mouse position and converting it to worldspace relative to the player controller and blaster, and changing the game logic to take that new vector as the shot vector instead of the nearest available runner.

[ ] #275
[ ] #276
[ ] #277
[ ] #278

After finishing all the tasks, I worked on optimizing the code a bit by limiting the number of line traces performed each second, cleaned up the code, and added a variable that can allow autoTarget to be enabled or disabled from a single boolean. All in all, I probably spent around 8 to 10 hours on this story.


PID conflict with logging module

I've been working on a python daemon with pid, and after initial logs directly to console I wanted to switch to file logging, using python's logging module. This is when I run into the problem.
I have start/stop functions to manage the daemon:
import os
import sys
import time
import signal
import lockfile
import logging
import logging.config

import daemon
from pid import PidFile

from mpmonitor.monitor import MempoolMonitor

# logging.config.fileConfig(fname="logging.conf", disable_existing_loggers=False)
# log = logging.getLogger("mpmonitor")

def start():
    print("Starting Mempool Monitor")

    _pid_file = PidFile(pidname="mpmonitor.pid", piddir=curr_dir)

    with daemon.DaemonContext(stdout=sys.stdout,
                              stderr=sys.stderr,
                              stdin=sys.stdin,
                              pidfile=_pid_file):

        # Start the monitor:
        mpmonitor = MempoolMonitor()
        mpmonitor.run()

def stop():
    print("\n{}\n".format(pid_file))

    try:
        with open(pid_file, "r") as f:
            content = f.read()
        f.close()

    except FileNotFoundError as fnf_err:
        print("WARNING - PID file not found, cannot stop daemon.\n({})".format(pid_file))
        sys.exit()

    print("Stopping Mempool Monitor")
    # log.info("Stopping Mempool Monitor")
    pid = int(content)
    os.kill(pid, signal.SIGTERM)

    sys.exit()

which works as you would expect it to.

If I uncomment the logging code,
logging.config.fileConfig(fname="logging.conf", disable_existing_loggers=False)
log = logging.getLogger("mpmonitor")

the code breaks down, and some pretty random stuff happens. The error message:
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.6/logging/__init__.py", line 998, in emit
    self.flush()
  File "/usr/lib/python3.6/logging/__init__.py", line 978, in flush
    self.stream.flush()
OSError: [Errno 9] Bad file descriptor
Call stack:
  File "mpmonitor.py", line 111, in <module>
    start()
  File "mpmonitor.py", line 48, in start
    pidfile=_pid_file):
  File "/home/leilerg/.local/lib/python3.6/site-packages/daemon/daemon.py", line 389, in __enter__
    self.open()
  File "/home/leilerg/.local/lib/python3.6/site-packages/daemon/daemon.py", line 381, in open
    self.pidfile.__enter__()
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 216, in __enter__
    self.create()
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 168, in create
    self.setup()
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 77, in setup
    self.logger.debug("%r entering setup", self)
Message: '%r entering setup'
Arguments: (<pid.PidFile object at 0x7fc8faa479e8>,)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.6/logging/__init__.py", line 998, in emit
    self.flush()
  File "/usr/lib/python3.6/logging/__init__.py", line 978, in flush
    self.stream.flush()
OSError: [Errno 9] Bad file descriptor
Call stack:
  File "mpmonitor.py", line 111, in <module>
    start()
  File "mpmonitor.py", line 48, in start
    pidfile=_pid_file):
  File "/home/leilerg/.local/lib/python3.6/site-packages/daemon/daemon.py", line 389, in __enter__
    self.open()
  File "/home/leilerg/.local/lib/python3.6/site-packages/daemon/daemon.py", line 381, in open
    self.pidfile.__enter__()
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 216, in __enter__
    self.create()
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 170, in create
    self.logger.debug("%r create pidfile: %s", self, self.filename)
Message: '%r create pidfile: %s'
Arguments: (<pid.PidFile object at 0x7fc8faa479e8>, '/home/leilerg/python/mempoolmon/mpmonitor.pid')
Traceback (most recent call last):
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 136, in inner_check
    pid = int(pid_str)
ValueError: invalid literal for int() with base 10: 'DEBUG - 2020-04-'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "mpmonitor.py", line 111, in <module>
    start()
  File "mpmonitor.py", line 48, in start
    pidfile=_pid_file):
  File "/home/leilerg/.local/lib/python3.6/site-packages/daemon/daemon.py", line 389, in __enter__
    self.open()
  File "/home/leilerg/.local/lib/python3.6/site-packages/daemon/daemon.py", line 381, in open
    self.pidfile.__enter__()
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 216, in __enter__
    self.create()
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 180, in create
    check_result = self.check()
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 165, in check
    return inner_check(self.fh)
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 139, in inner_check
    raise PidFileUnreadableError(exc)
pid.PidFileUnreadableError: invalid literal for int() with base 10: 'DEBUG - 2020-04-'
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.6/logging/__init__.py", line 998, in emit
    self.flush()
  File "/usr/lib/python3.6/logging/__init__.py", line 978, in flush
    self.stream.flush()
OSError: [Errno 9] Bad file descriptor
Call stack:
  File "/home/leilerg/.local/lib/python3.6/site-packages/pid/__init__.py", line 197, in close
    self.logger.debug("%r closing pidfile: %s", self, self.filename)
Message: '%r closing pidfile: %s'
Arguments: (<pid.PidFile object at 0x7fc8faa479e8>, '/home/leilerg/python/mempoolmon/mpmonitor.pid')

The random stuff I was referring to is now the file mpmonitor.pid doesn't contain a PID anymore but some attempted logs/error messages
user@mylaptor:mempoolmon: cat mpmonitor.pid

DEBUG - 2020-04-05 10:52:55,676 - PidFile: <pid.PidFile object at 0x7fc8faa479e8> entering setup
DEBUG - 2020-04-05 10:52:55,678 - PidFile: <pid.PidFile object at 0x7fc8faa479e8> create pidfile: /home/leilerg/python/mempoolmon/mpmonitor.pid
DEBUG - 2020-04-05 10:52:55,678 - PidFile: <pid.PidFile object at 0x7fc8faa479e8> check pidfile: /home/leilerg/python/mempoolmon/mpmonitor.pid
DEBUG - 2020-04-05 10:52:55,678 - PidFile: <pid.PidFile object at 0x7fc8faa479e8> closing pidfile: /home/leilerg/python/mempoolmon/mpmonitor.pid

To me this looks like the pid logfile got confused with the PID file somehow. This is odd as I explicitly set disable_existing_loggers=False.
Any ideas? Am I doing something not-so-obviously wrong?

this is weird..
I tried to reproduce this but had no luck.
Here is my attempt.
test_issue_31.py
#!/usr/bin/env python3

import os
import sys
import time
import signal
import logging
import logging.config

import daemon
from pid import PidFile

logging.config.fileConfig(fname="logging.conf", disable_existing_loggers=False)
log = logging.getLogger("test_issue_31")

PIDNAME = "/tmp/test_issue_31.pid"

def start():
    print(f"Starting {PIDNAME}")

    _pid_file = PidFile(pidname=PIDNAME)

    with daemon.DaemonContext(stdout=sys.stdout,
                              stderr=sys.stderr,
                              stdin=sys.stdin,
                              pidfile=_pid_file):

        while 1:
            time.sleep(0.1)

def stop():
    print("\n{}\n".format(PIDNAME))

    try:
        with open(PIDNAME, "r") as f:
            content = f.read()
        f.close()
    except FileNotFoundError as fnf_err:
        print(fnf_err)
        print("WARNING - PID file not found, cannot stop daemon.\n({})".format(PIDNAME))
        sys.exit()

    print("Stopping")
    # log.info("Stopping Mempool Monitor")
    pid = int(content)
    os.kill(pid, signal.SIGTERM)

    sys.exit()

if __name__ == "__main__":
    if len(sys.argv) != 2:
        print("specify 'start' or 'stop'")
    elif sys.argv[1] == "start":
        start()
    else:
        stop()

logging.conf
[loggers]
keys=root

[handlers]
keys=stream_handler

[formatters]
keys=formatter

[logger_root]
level=DEBUG
handlers=stream_handler

[handler_stream_handler]
class=StreamHandler
level=DEBUG
formatter=formatter
args=(sys.stderr,)

[formatter_formatter]
format=%(asctime)s %(name)-12s %(levelname)-8s %(message)s

Execution:
$ PYTHONPATH=. ./test_issue_31.py start
Starting /tmp/test_issue_31.pid
2020-04-05 18:20:53,948 PidFile      DEBUG    <pid.posix.PidFile object at 0x10dd3cbb0> entering setup
2020-04-05 18:20:53,949 PidFile      DEBUG    <pid.posix.PidFile object at 0x10dd3cbb0> create pidfile: /tmp/test_issue_31.pid
2020-04-05 18:20:53,950 PidFile      DEBUG    <pid.posix.PidFile object at 0x10dd3cbb0> check pidfile: /tmp/test_issue_31.pid

$ cat /tmp/test_issue_31.pid
10204

$ PYTHONPATH=. ./test_issue_31.py stop
/tmp/test_issue_31.pid
Stopping
2020-04-05 18:21:11,749 PidFile      DEBUG    <pid.posix.PidFile object at 0x10dd3cbb0> closing pidfile: /tmp/test_issue_31.pid
Terminating on signal 15
2020-04-05 18:21:11,749 PidFile      DEBUG    <pid.posix.PidFile object at 0x10dd3cbb0> closing pidfile: /tmp/test_issue_31.pid

$ cat /tmp/test_issue_31.pid
cat: /tmp/test_issue_31.pid: No such file or directory

Running your code without problems, but this logs to console, not file. If I try to log to file, it fails as above.
###logging.conf###
[loggers]
keys=root

[handlers]
keys=fileHandler

[formatters]
keys=basicFormatter

[logger_root]
level=NOTSET
handlers=fileHandler

[handler_fileHandler]
level=DEBUG
class=FileHandler
formatter=basicFormatter
args=("mpmonitor.log", "a")

[formatter_basicFormatter]
format=%(levelname)s - %(asctime)s - %(name)s: %(message)s

Can you see any problems with my logging.conf?

This is very interesting...
I get the same issue when using class=FileHandler.
Don't see anything obviously wrong with either the config nor pidfile..
When removing with daemon.DaemonContext(...): it works as expected.
I think the reason for this is the following.
What's happening here is kinda interesting and I think it's not really a bug in pidfile itself but it's the first victim of it.
Pidfile when opening the pid file will open a file descriptor with number 3.

File descriptor 0 is stdin
File descriptor 1 is stdout
File descriptor 2 is stderr
File descriptor 3 is /tmp/test_issue_31.pid

This is inside of the process that DaemonContext forked.
However the main process already opened file descriptor 3 when logging creating the log file.
Thus unaware of each other they are writing to the same file.
A further explanation can be found here: https://stackoverflow.com/questions/13180720/maintaining-logging-and-or-stdout-stderr-in-python-daemon
Therefor the solution is probably something like this:
test_issue_31.py
#!/usr/bin/env python3

import os
import sys
import time
import signal
import logging
import logging.config

import daemon
from pid import PidFile

logging.config.fileConfig(fname="logging.conf", disable_existing_loggers=False)
log = logging.getLogger("test_issue_31")

PIDNAME = "/tmp/test_issue_31.pid"

def get_logging_handles(logger):
    handles = []
    for handler in logger.handlers:
        handles.append(handler.stream.fileno())
    if logger.parent:
        handles += get_logging_handles(logger.parent)
    return handles

def start():
    print(f"Starting {PIDNAME}")

    files_preserve = get_logging_handles(logging.root)
    _pid_file = PidFile(pidname=PIDNAME)

    with daemon.DaemonContext(stdout=sys.stdout,
                              stderr=sys.stderr,
                              stdin=sys.stdin,
                              pidfile=_pid_file,
                              files_preserve=files_preserve):
        while 1:
            time.sleep(0.1)
    print("DONE")

def stop():
    print("\n{}\n".format(PIDNAME))

    try:
        with open(PIDNAME, "r") as f:
            content = f.read()
        f.close()
    except FileNotFoundError as fnf_err:
        print(fnf_err)
        print("WARNING - PID file not found, cannot stop daemon.\n({})".format(PIDNAME))
        sys.exit()

    print("Stopping")
    # log.info("Stopping Mempool Monitor")
    pid = int(content)
    os.kill(pid, signal.SIGTERM)

    sys.exit()

if __name__ == "__main__":
    if len(sys.argv) != 2:
        print("specify 'start' or 'stop'")
    elif sys.argv[1] == "start":
        start()
    else:
        stop()

If so... please please write a PR with a little documentation for in the readme or alike that this might help other people in the future :-)

OK, this works with a caveat. I need to sudo the code as without it I'm getting
 File ".local/lib/python3.6/site-packages/pid/__init__.py", line 107, in _make_filename
    raise IOError("Pid file directory '%s' cannot be written to" % piddir)
OSError: Pid file directory '/var/run/' cannot be written to

Do you get the same? I can survive with it, but ideally I'd like to run this as any user.

I'm happy to write a documentation PR, but bear with me as I'm a total noob with FOSS projects, so will take some time to figure it out.

Could you show us the permissions on /var/run ?
Normally if the directory /var/run is not writable it should should fallback on the default temp dir location of the system. (normally /tmp)
But you could always explicitly set piddir on PidFile.
_pid_file = PidFile(pidname=PIDNAME, piddir="/tmp")

$ ls -la /var/run

lrwxrwxrwx 1 root root 4 Oct 27  2018 /var/run -> /run

$ ls -al /run

total 36
drwxr-xr-x 34 root  root  1040 Mar 17 14:40 .
drwxr-xr-x 25 root  root  4096 Mar  3 18:18 ..

Clearly only root has write access to /run, but I don't know if this should be any different. These are default settings for Linux Mint... don't think I've ever touched these.

_pid_file = PidFile(pidname=PIDNAME, piddir="/tmp")

Works!

Weird the check on write permissions should catch this... so I think we got ourselves a little bug here ;-)
Released 3.0.1 that should fix that...
For now I think I can close this ticket right ?
Seems you got everything working :-)


Border disappears if launch any fzf.vim command inside fzf

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[ ] Linux
[x] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[x] zsh
[ ] fish

Problem / Steps to reproduce

Start FzfCommands (my prefix is Fzf), then select a command of fzf.vim

Press C-x to launch this command. The window border disappeared.

My fzf config
" fzf {{{2
let $FZF_DEFAULT_OPTS="--layout=reverse --info=inline"
let g:fzf_layout = {
            \ 'window': {
            \ 'width': 0.64,
            \ 'height': 0.48,
            \ 'highlight': 'Identifier',
            \ 'border': 'rounded'
            \ }
            \ }
let g:fzf_history_dir = '~/.cache/fzf'
" }}}
" fzf.vim {{{2
let g:fzf_command_prefix = 'Fzf'
" }}}

Debug
I have found that This issue was produced by 0f5c6e8 for fixing #1916.

I can't reproduce. What's your Vim :version?

I can't reproduce. What's your Vim :version?

8.2.582

Fixed by #2000.


Add Typing Indicator

You can make it look like the bot is typing a response. This can be handled in a single place here:
https://github.com/jonah-dev/lfd2-bot/blob/6b91e0f88c22bf491e83bf1e6a0f4753d7b6f8ae/bot.py#L55
Make sure to end the typing indicator in all cases (including exceptions)

#68


How can I change the ruby method underline?

Hi, I'm trying to either remove or change (to a dark grey background color) the current block/method highlight in a ruby buffer and I've tried the following but I can't seem to get it to work.
local status, _ = pcall(vim.cmd, "colorscheme nightfly")

if not status then
  print("Colorscheme not found.")
  return
end

local custom_highlight = vim.api.nvim_create_augroup("CustomHighlight", {})
vim.api.nvim_create_autocmd("ColorScheme", {
  pattern = "nightfly",
  callback = function()
    -- Hide semantic highlights for methods
    vim.api.nvim_set_hl(0<EMAIL_ADDRESS>{})

    -- Hide all semantic highlights
    for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do
      vim.api.nvim_set_hl(0, group, {})
    end

    -- vim.api.nvim_set_hl(0, "Function", { fg = "#82aaff", bold = true })
  end,
  group = custom_highlight,
})

Hello @chalmagean,
I am not entirely sure what you are trying to achieve, but it sounds like you might be running Ruby LSP with Semantic Tokens enabled. That is a combination I am not familiar with.
Nonetheless if I wanted to change the color of a certain token this is what I would do:

Move cursor to token of interest
Run :lua vim.show_pos() to view the token highlighting name
Plug that name into the Overriding Highlights script

Also, if I were to disable LSP semantic tokens entirely I would do it via LSP attach as documented here or when attaching to a LSP client as documented here (see last answer).
Good luck, I don't think there is much I can do to assist, you will have to debug this at your end.
Best regards.


Oculus Touch Controller Mappings not working in Unreal 4.25

Please follow the general troubleshooting steps first:

[x] I ran "add_firewall_rules.bat" as administrator and checked that the ports are open in the firewall
[x] I read the ALVR Wikis here and here

Bug reports:
The Oculus Touch Controller Mappings are not working in Unreal 4.25. The Trigger is recognized, as well as the A, B, X, Y buttons, but the thumb sticks are not recognized at all. If needed, a sample Unreal application can be provided to test this.
Environment:
i7-7700, GTX1060, Generic Realtek Stuff
ALVR v12.0 beta 2 + SteamVR 1.13.10
The latest Windows 10 Updates are installed
Feature:
A tutorial on how the controller mappings work, would be appreciated! Are they hard-coded? Can they be remapped easily?

After short testing with Unreal 4.22, the MotionController (R) Thumbstick X worked. Since Unreal changed its input system, this is not working anymore.

ALVR input mappings are hardcoded, but you can change them within SteamVR.

Ok, this is definitely not a fault from this software. The SteamVR plugin inside Unreal is generating these bindings in a weird fashion.
For anyone else having this issue, look here or here.
In short:
The plugin maps the scalar axis that Unreal uses to the vector axis that SteamVR uses. But it does this only if you request both parts of the vector. You either call your Axis <something>_X and a second one <something>_Y or you include both axis in both mappings and scale one of them to 0.
Thank you @zarik5, you brought me to the solution!


Support http proxies for build/lib/fetch to allow vscode compilation when behind enterprise egress restrictions

Add support for http proxies to build/lib/fetch. This allows one to fully compile vscode when behind company proxies.
While a bunch of other code in the repository or in dependencies (like ripgrep) uses things like https-proxy-agent, the fetch utility in the build folder did not have that same support causing build failures (e.g. when doing yarn server:init).
Since this fetch utility actually started using the fetch method instead of the more classic Node HTTP stack, this PR adds support for http proxies in this case by using the recommended variant from the underlying library used by Node's fetch undici.
Note that unfortunately the bundled copy of undici Node uses to expose fetch as a global doesn't have the proper typing for RequestInit and specifically lacks the additional dispatcher property which lets us set the proxy dispatcher. As a result it seemed cleaner to clearly require undici directly and simply use its builtin types.

@microsoft-github-policy-service agree company="Stripe"


Add preferences-proto module

Fixes #362

Codecov Report

Merging #366 (79007cd) into main (b6f1cc6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #366   +/-   ##
=======================================
  Coverage   75.35%   75.35%
=======================================
  Files          79       79
  Lines        4050     4050
  Branches      691      691
=======================================
  Hits         3052     3052
  Misses        585      585
  Partials      413      413

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


The data division?

In paper, there are 3701, 200 and 200 identities are utilized for training, validation and testing.
Can you provide the data division file?
The IDs for training, validation and testing.
Thanks.

Same question。。。

Thanks for your interest in our work.
You can just simply divide the data as the training set, validation set and testing set by ID in order.


Comments that described registers in between stages seemed wrong, fix…

…ed them.

Thanks! Copypasta error...

PS: I've written down that you will get +5pts on Lab 3. Thanks for finding and fixing this!


Init call, project specific data

You should be able to set project specific data within the init call. Maybe create a data object in the init store.

Update README.md to include instructions about project specific init data!


Add humain readable values

Code to add human readable value for pivpn clients
The bytes value was a little bit useless in this form.
The code check if the function numfmt exist into the shell context to avoid error.
Az

This looks good, thanks! Have you tested this?

Yes, every day.
I just don't know if you want 1024bytes as 1kib or 1 kb


[WIP] Begin implementing samplers

Starting to implement the sampler objects that we've described in #61 and elsewhere.

The MCMCSampler probably needs some way to specify the thermodynamic state to be sampled (temperature, pressure, etc).
Also, it generally helps to monitor the reduced potential in kT, since it's easier than using unit-bearing potential energies (which also don't include pressure-volume stuff).

The MCMCSampler probably needs some way to specify the thermodynamic state to be sampled (temperature, pressure, etc).

Doesn't this get specified in a combination of inputs to the Integrator as well as MonteCarloBarostat or something like that (those objects are passed in instantiated already)? I agree that it still needs to be there though.

Also, it generally helps to monitor the reduced potential in kT, since it's easier than using unit-bearing potential energies (which also don't include pressure-volume stuff).

Ok.

I guess I could just accept a ThermodynamicState object for that...

@jchodera what is the easiest way to reliably retrieve the pressure?
it looks like the way to do this is
pressure_param_name = barostat.Pressure() #Anisotropic barostats have three obviously
pressure = context.getParameter(pressure_param_name)

Since different barostats have different ways of retrieving the pressure, I'm not sure what the most general solution is.
On the other hand, in the Yank code, it seems like you just use the set value for the pressure (which makes sense, since obviously an NPT ensemble should have a constant pressure...). Is that more correct? Or should I take the current calculated pressure as above?

It's tricky.
Are you retrieving it from a Context or a System?
Setting temperature and pressure is also hard.  See what MCMCSampler does here to set the pressure and temperature:
https://github.com/choderalab/openmmmcmc/blob/master/openmmmcmc/thermodynamics.py#L115-L145
More generally, are you sure you want to pass a Context in to MCMCSampler, rather than a System?

 I totally forgot the current MCMCSampler doesn't have
a way to update the System yet.
Perhaps the best way to proceed is to propose an API that will make things
simple for you and I can implement this into MCMCSampler for you? Or we
could decide that it is easier to implement a basic MCMCSampler in perses
that does what you need.
Whatever the case, what we need is a minimal working example for the whole
stack that does what you need (passes information in the order you want)
without the internals filled then. Only then can we make sure to implement
the minimal API bits.
Defining these classes one at a time and implementing them fully before
going to the next layer of the sampler stack is unlikely to get us there
quickly, as we have seen.

I can take a stab at this if you would prefer to just move on to geometry
engine tests.

I can take a stab at this if you would prefer to just move on to geometry
engine tests.

Ok, thanks. That would probably help things along a bit...

I'll close this PR then.


Change "video.tv_episode" to "video.other"

video.tv_episode is not a valid type according to The Open Graph protocol documentation. video.other is the only suitable video type as Specials and Music are not tv shows (video.tv_show) or episodes (video.episode).

video.other
A video that doesn't belong in any other category. The metadata is identical to video.movie

LGTM


[WIP] Updated schema

Memeolist schema is obsolete in iOS app, updated from Android app.

[x] fixed script for code-generation
[x] updated schema from Android memeolist app
[ ] make it working

@wojta Is schema commit from android server or it's from UI ?

@wojta From what I see there is no:

Change in actual graphql queries:
see server side example UI that has all of those
Change in schema (we added tons of fields)

@wojta Let me know when this will be finished.

@wojta let's remove outdated script to get recent version of the schema.

@wojta PR is missing files.
Please push remaining files as this is blocking other work on IOS SDK.

I have not added any new files, so if it's is missing something let me know.


The Train Model option in ML.Net is throwing an error

System Information (please complete the following information):
-- Model Builder Version: 16.0.1909.2101
--Visual Studio Version : 2019 16.3.2
Describe the bug
Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)
To Reproduce
Steps to reproduce the behavior:
Follow the steps mentioned in the below address.
https://dotnet.microsoft.com/learn/ml-dotnet/get-started-tutorial/install
When we click on train an error is thrown.
Expected behavior
After model training finishes, go to the Evaluate step.
Screenshots

Additional context
Add any other context about the problem here.

Thanks for reporting this issue! I'm unable to reproduce this but I'll try to track down the cause.
Were you using the dataset from the tutorial -  'wikipedia-detox-250-line-data.tsv'?
Is the machine 64bit or 32bit?
Do you have another machine to try it out on?
Can you look under %temp%\servicehub\logs and see if there are any logs with ModelBuilder in the file name?

@AArnott have you seen anything like this? It seems to be happening really early in our attempt to talk to our ServiceHub service.

Searching the web seems to come up with workarounds but they seem to be SharePoint or Web Related.
@Giri1982 This seems environmental. Can you try installing any pending Windows updates, VS updates, .NET Framework updates, and rebooting?
Is there anything else different about this machine? Multi-User/Remote Desktop?

No, I've never seen that error.

@Giri1982 closing this issue but please re-open if you hit it consistently.  This should be a very very rare bug to hit.

Hi,
I got the same problem.
Only error in log C:\Users\padrozdo\AppData\Local\Temp\servicehub\logs\0340F6B9\ServiceHub.Host.CLR.x86-17220\TestWindow Service Client-hubControllerLookup-17220-ngim0r30-1.log
is:
10/31/2019 09:23:52 Central European Standard Time : Warning : Controller terminated with exit code '21'. Signaling cancellation.

We are working on a fix(#834 ) for this issue
@Giri1982 @graposo1 Can you help us test that fix when it's ready? It's a rare bug from CLR, and is quite difficult to reproduce.
Please reply to #834 if you want to try that test fix!

Close due to no response, feel free to re-open it though