Pinning but snapped to left/middle/right attachment points?

I have a popover widget which uses attachment: 'top center' by default, but I would like to essentially switch to attachment: 'top left' or attachment: 'top right' if the popover content would go off-screen.
e.x.
|        BUTTON      |
|     +----^----+    |
|     |         |    |
|     +---------+    |

| BUTTON             |
|  +^--------+       |
|  |         |       |
|  +---------+       |

|             BUTTON |
|       +--------^+  |
|       |         |  |
|       +---------+  |

constraints and pin seem like possibly the correct way to do this, but with pin the element become "detached" and just sticks to the side of the window, like so:

|             BUTTON |
|         +----^----+|
|         |         ||
|         +---------+|

If what I want to do is possible I haven't figured out the right combination of options. Here's a jsfiddle demonstrating the problem: https://jsfiddle.net/fwv4afkc/2/

Thanks @tlrobinson. This is certainly a common use-case and something we would like to have better support for.
Assuming you do want the window pinning constraint, I think the difficulty is that to make this work out-of-the-box, we have to be able to essentially tether two things, the element, and its arrow. In your jsFiddle, as you drag “drag me” target off the window’s side, the arrow would have to move to stay attached to the center of the target while the element itself would be pinned to the side. Here’s an example implementation on jsFiddle.
There might be another way to accomplish what you after without the window constraint, but then as you drag the target off of the page, you’d also end up dragging the element and its arrow off the page, although the repositioning of the arrow with respect to the element could be handled as you describe.

Thanks. Rather than have the arrow move continuously it could just have three positions: centered, and (almost) all the way to the right or left. It would be ok if the arrows and popover positioning snapped into place (possibly could be animated with CSS transitions) rather than smoothly moved, so the edge of the popover would not actually be "pinned" to the container edge (so perhaps "pin" is the wrong word for the behavior I'm looking for.

I just noticed https://github.com/HubSpot/tether/pull/81 as well. May be of interest to you.

so what is the right combination of options to achieve this?
@geekjuice -
Can this issue be closed btw?

If you trace the conversation back to the original here, the options to make this possible are:
tetherOptions: {
  attachment: 'top center',
  targetAttachment: 'middle center',
  constraints: [{
    to: 'window',
    attachment: 'together element'
  }]
}

Thank you very much, I did trace it, I thought it's better to be documented here where it's more related to the subject so people will easily see code example for this extremely important fix. :+1:

Makes sense. Thanks for the bump to add that here :beers:

i know this is an older ticket but is it possible to do what he's requesting above but on a right/left basis? i have mine defaulted to right but if i cant fit i'd like to to swap if possible?


[improve] Avoid each time no change submit will create a new version

Currently, each time submit code from python api to dolphinscheduler, a new version will be add even though do not change any task,  workflow, and relation. It is better to find a way check whether there are any models change to judge add version or not

I also noticed this issue, it would be great if you could specify the version when submitting it

I also noticed this issue, it would be great if you could specify the version when submitting it

it is an improvement, we may spend more time on bugs and features. If you interested with this issue I can assign to you


OCR no text bypass

Is it possible to remove error no text to translate in image when mass translating multiple images ?

Goto line 330 in pipeline.py and edit the code to this:
try:
entire_raw_text = get_raw_text(blk_list)
translator = Translator(translator_client, api_key)
translator.translate(blk_list, en_translator, en_source_lang, en_target_lang, img, inpaint_input_img, extra_context)
entire_translated_text = get_raw_translation(blk_list)
except Exception as e:
print("Encountered error during Translation:",e,image_path)

You seemed to have not indented the code properly try indenting the lines below the "try:" and above "except" and press Tab such that each line is spaced equally.Similarly select the part of  the text below "except" (Only the part I have given ) and do the same.
@NekoManga

If that doesn't help paste a screenshot of how u pasted the code.


high response time when using go-dnsmasq

Hi,
I'm using go-dnsmasq as a sidecar for nginx,
when using go-dnsmasq to query a k8s service the response time about 0.5 sec
Server:		localhost
Address:	<IP_ADDRESS>#53

Name:	vault.default.svc.cluster.local
Address: <IP_ADDRESS>

real	0m1.010s
user	0m0.004s
sys	0m0.004s

verbose logs
time="2017-12-10T16:30:32Z" level=debug msg="[63317] Doing absolute lookup"
time="2017-12-10T16:30:32Z" level=debug msg="[63317] Querying upstream <IP_ADDRESS>:53 for qname 'vault.default.svc.cluster.local.'"
time="2017-12-10T16:30:32Z" level=debug msg="[63317] Response code from upstream: NOERROR"
time="2017-12-10T16:30:32Z" level=debug msg="[63317] Absolute lookup yielded result. Response to client: NOERROR"
time="2017-12-10T16:30:32Z" level=debug msg="[63317] Response time: **767.279**µs"

when querying k8s directly :
root@management-proxy:/# time nslookup vault <IP_ADDRESS>
Server:		<IP_ADDRESS>
Address:	<IP_ADDRESS>#53

Name:	vault.default.svc.cluster.local
Address: <IP_ADDRESS>

real	0m0.008s
user	0m0.004s
sys	0m0.000s

container configuration:
  - name: dnsmasq
    image: janeczku/go-dnsmasq:release-1.0.7
    args:
      - --listen
      - "<IP_ADDRESS>:53"
      - --hostsfile=/etc/hosts
      - --verbose

any suggestion ?

same result when querying google.com
root@management-proxy:/# time nslookup google.com <IP_ADDRESS>
Server:		<IP_ADDRESS>
Address:	<IP_ADDRESS>#53

Non-authoritative answer:
Name:	google.com
Address: <IP_ADDRESS>
Name:	google.com
Address: <IP_ADDRESS>
Name:	google.com
Address: <IP_ADDRESS>
Name:	google.com
Address: <IP_ADDRESS>
Name:	google.com
Address: <IP_ADDRESS>
Name:	google.com
Address: <IP_ADDRESS>

real	0m0.011s
user	0m0.000s
sys	0m0.008s
root@management-proxy:/# time nslookup google.com localhost
Server:		localhost
Address:	<IP_ADDRESS>#53

Non-authoritative answer:
Name:	google.com
Address: <IP_ADDRESS>
Name:	google.com
Address: <IP_ADDRESS>
Name:	google.com
Address: <IP_ADDRESS>
Name:	google.com
Address: <IP_ADDRESS>
Name:	google.com
Address: <IP_ADDRESS>
Name:	google.com
Address: <IP_ADDRESS>

real	0m5.016s
user	0m0.004s
sys	0m0.004s

Can confirm this issue.

This is not an issue with go-dnsmasq. This is an issue with nslookup.
Try:
time nslookup google.com <IP_ADDRESS>


README: fix code snippet for map function.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
103

Relevant Lines:
103

💛  - Coveralls

Thank you for the PR. I've merged it.

@Stats-M :)


PlatformIO

In your project you mention issues with PlatformIO, what were those problems? I'm planning to use PlatformIO but if it's not feasible to use I would hope that you could tell me!
Thanks in advance!

It's been a while so I might be wrong, the ESP8266_RTOS_SDK used in PlatformIO was a little outdated so some of the features in the latest SDK were missing. However, I think they have updated since then because I see ESP8266 OTA in the docs now.

One last question about the BSdiff, I see on your project website that you were using BSdiff but decided not to and switching to Detools. But Detools also uses BSdiff as algorithm right?

But Detools also uses BSdiff as algorithm right?

Yes, but iirc, it's a modified version of bsdiff since the original bsdiff  uses dynamic memory allocation. Using detools with heatshrink for compression allowed achieving the same result with static memory allocation.

Okay very clear, thank you for the answer! I appreciate you taking the time to reply. I will now close this issue, have a good day!

I have one more question, I'm currently working on the implementation using the Arduino framework. Since it's built on the Espressif-IDF I thought it could be worth to try. I am able to successfully apply the patch file using the same detools function you're using. However during the esp_ota_end() and esp_set_boot_partition() functions the checksum of the new partition fails, did you also encounter this issue? If so, how did you resolve it?

However during the esp_ota_end() and esp_set_boot_partition() functions the checksum of the new partition fails

Based on what I'm seeing from the ESP8266_RTOS_SDK source code, is esp_ota_end() returning with ESP_ERR_OTA_VALIDATE_FAILED? If so, is the error coming from esp_image_load() or esp_ota_verify_binary()?
If it's coming from esp_image_load(), you might want to look into that function and compare your logs since there seems to be a lot of ways for things to go bad.
If it's coming from esp_ota_verify_binary(), it might be a problem with the partitions (try increasing the size to fit the new image?) assuming that the new image was received and decompressed without any errors.

did you also encounter this issue?

I do not recall encountering this issue. In fact, I do not recall much from this project but pain...

How can you tell if the error is coming from esp_image_load() or esp_ota_verify_binary()? Did you achieve this with actual debugging or enabling some verbose outputs?

I don't have an ESP on my hand at the moment, so I just looked at the source code for ESP8266_RTOS_SDK. When working on this project, I mostly relied on the serial logs (ex.ESP_LOGI) coming from the ESP8266. Perhaps check the serial outputs?

Because I'm currently going through the process of attempting to enable debugging using PlatformIO but it's not looking pretty. Could also be because I'm using the ESP32-C3

I would first try to setup a proper debugger if possible. https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/jtag-debugging/using-debugger.html#jtag-debugging-using-debugger-command-line seems like a good place to start. I remember using GDB in more serious bugs to set breakpoints and executing step by step to see exactly what is going on.

I'm currently trying to just use your example to see if I can actually get it to work before saving endless amount of hours debugging. I'm using the ESP32-C3 to test your code, so far I've got everything to built. One question about the bridge project, I'm trying to use it in WSL since I'm using Windows. I can get it to run but how does one open a terminal with the "bridge-tester" to publish messages? I did manage to get the terminal running

how does one open a terminal with the "bridge-tester" to publish messages?

I'm not sure if I understood your question. If you're referring to the demo video, I used a terminal multiplexer called tmux to open several terminals in the same window. So, bridge and bridge-tester are actually two separate applications. I just wanted to show them in the same window.
I don't have much experience with WSL so I'm not sure if opening another WSL window will work.
To send using the bridge-tester, you need to download the source, build it, and run the following command :
./publisher <ip> <port> <topic> <file>

Publisher application requires the ip and port of the Bridge server and also the topic of interest to publish to. The last argument file is the name of the file that contains the message to publish to the Bridge server. On a successful operation, the program will output the total number of bytes sent.

I'm using the ESP32-C3 to test your code, so far I've got everything to built.

Hmm I'm not sure if the code based on ESP8266_RTOS_SDK (made for ESP8266) will also work on the ESP32 platform.
https://www.esp32.com/viewtopic.php?t=11315

At the moment, the ESP8266 RTOS SDK has been refactored to be similar to ESP-IDF (similar configuration and build system, some component APIs are the same, etc). However it's not the same as ESP-IDF.

Thank you very clear, I have setup bridge and tester both via Docker now, I am figuring out the port forwarding at the moment. However I have one last question, the firmware files for the ESP, do you extract them from the ESP using the esptool on the partitions to retrieve their data?
For my implementation I didn't include the ESP8266_RTOS_SDK, since well I have the C3. But your code still manages to built and run, right now I'm just trying to get that delta file over. If that works then I think your implementation also works on different ESP's.

Sorry for the late reply.

the firmware files for the ESP, do you extract them from the ESP using the esptool on the partitions to retrieve their data?

Nope. I just used the binary (= build output from the compiler) that's on my PC. Then, I used detools to create the delta file using the old image and the new one.
detools create_patch --compression heatshrink <old-image> <new-image> <patch-name>


[FluentCalendar] Use provided Culture for calendar operations

Pull Request
📖 Description
As reported in issue #1854, FluentCalendar (and FluentDatePicker) didn't use Culture for calendar operations and calculations.
It's now fixed, and the calendar now supports every culture correctly.
🎫 Issues
#1854
👩💻 Reviewer Notes
📑 Test Plan
✅ Checklist
General

[ ] I have added tests for my changes.
[x] I have tested my changes.
[ ] I have updated the project documentation to reflect my changes.
[x] I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

[ ] I have added a new component
[ ] I have added Unit Tests for my new compontent
[x] I have modified an existing component
[x] I have validate Unit Tests for an existing component

@vrassouli please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

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

Contributor License Agreement
Contribution License Agreement
This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your contributions to Microsoft open source projects. This Agreement is effective as of the latest signature date below.

Definitions.
“Code” means the computer software code, whether in human-readable or machine-executable form,
that is delivered by You to Microsoft under this Agreement.
“Project” means any of the projects owned or managed by Microsoft and offered under a license
approved by the Open Source Initiative (www.opensource.org).
“Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any
Project, including but not limited to communication on electronic mailing lists, source code control
systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of
discussing and improving that Project, but excluding communication that is conspicuously marked or
otherwise designated in writing by You as “Not a Submission.”
“Submission” means the Code and any other copyrightable material Submitted by You, including any
associated comments and documentation.
Your Submission. You must agree to the terms of this Agreement before making a Submission to any
Project. This Agreement covers any and all Submissions that You, now or in the future (except as
described in Section 4 below), Submit to any Project.
Originality of Work. You represent that each of Your Submissions is entirely Your original work.
Should You wish to Submit materials that are not Your original work, You may Submit them separately
to the Project if You (a) retain all copyright and license information that was in the materials as You
received them, (b) in the description accompanying Your Submission, include the phrase “Submission
containing materials of a third party:” followed by the names of the third party and any licenses or other
restrictions of which You are aware, and (c) follow any other instructions in the Project’s written
guidelines concerning Submissions.
Your Employer. References to “employer” in this Agreement include Your employer or anyone else
for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your
Submission is made in the course of Your work for an employer or Your employer has intellectual
property rights in Your Submission by contract or applicable law, You must secure permission from Your
employer to make the Submission before signing this Agreement. In that case, the term “You” in this
Agreement will refer to You and the employer collectively. If You change employers in the future and
desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement
and secure permission from the new employer before Submitting those Submissions.
Licenses.

Copyright License. You grant Microsoft, and those who receive the Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the
Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute
the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third
parties.
Patent License. You grant Microsoft, and those who receive the Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under
Your patent claims that are necessarily infringed by the Submission or the combination of the
Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and
import or otherwise dispose of the Submission alone or with the Project.
Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement.
No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are
granted by implication, exhaustion, estoppel or otherwise.

Representations and Warranties. You represent that You are legally entitled to grant the above
licenses. You represent that each of Your Submissions is entirely Your original work (except as You may
have disclosed under Section 3). You represent that You have secured permission from Your employer to
make the Submission in cases where Your Submission is made in the course of Your work for Your
employer or Your employer has intellectual property rights in Your Submission by contract or applicable
law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You
have the necessary authority to bind the listed employer to the obligations contained in this Agreement.
You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS
REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES
EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS
PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF
NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
Notice to Microsoft. You agree to notify Microsoft in writing of any facts or circumstances of which
You later become aware that would make Your representations in this Agreement inaccurate in any
respect.
Information about Submissions. You agree that contributions to Projects and information about
contributions may be maintained indefinitely and disclosed publicly, including Your name and other
information that You submit with Your Submission.
Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and
the parties consent to exclusive jurisdiction and venue in the federal courts sitting in King County,
Washington, unless no federal subject matter jurisdiction exists, in which case the parties consent to
exclusive jurisdiction and venue in the Superior Court of King County, Washington. The parties waive all
defenses of lack of personal jurisdiction and forum non-conveniens.
Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and
supersedes any and all prior agreements, understandings or communications, written or oral, between
the parties relating to the subject matter hereof. This Agreement may be assigned by Microsoft.

@microsoft-github-policy-service agree

I've already posted a few comments (first quick check).
I'm afraid of the number of "small" changes in the code base. E.g. Year = year.GetDay(_calendar.Culture) == 1 && year.GetMonth(_calendar.Culture) == 1 ? year : year.StartOfYear(_calendar.Culture);
Could you add unit tests to validate your changes and new features?

I've added some tests to ensure correct functionality by using Culture.
And one thing more, I noticed that FluentCalendar_DayValues of the FluentCalendarTests is wrong. Although it is passing, but it's not correct. It looks for calendar.FindAll(".date") and loops through the value to test the result. but the value contains nothing.


Login with password-manager

When using KeePassXC to login, the webpage doesn't give me the chance to fill out the password, the login-popup closes before the tool pasting the password.

Yes, still the same behavior as in the gif.

@ulibike - I've tested this with both LastPass and NordPass, in both Safari and Chrome and I don't see this behavior.  What browser are you using here

Yes, most likely it's a keepassXC (or the Firefox add-on) problem, then. It's fine for me. I can also log in manually.


Back fill all production messages to include userId.

BUG
Current Behavior

some messages do not contain the userId property when the conversation does.

Desired Behavior

if we are storing the userId in the message we should keep it consistent on all messages.

Steps to Replicate
These 2 messages for example:
/* 48 */
{
    "_id" : ObjectId("5b108c80c6fcef0004c14d4c"),
    "createdAt" : ISODate("2018-06-01T00:00:00.836Z"),
    "direction" : "outbound-api-send",
    "conversationId" : ObjectId("5a0601f4c68d250004f0c994")
}

/* 49 */
{
    "_id" : ObjectId("5b108c8011dd1a0004f4d4d0"),
    "createdAt" : ISODate("2018-06-01T00:00:00.858Z"),
    "direction" : "outbound-api-send",
    "conversationId" : ObjectId("5a0601f0ad7de60004f77599"),
    "userId" : "55a75707469c649d2b8cecf9"
}

Why This Matters
It makes it precarious for complex querying that some messages include it and others don't.

We have an existing Pivotal story for this issue: https://www.pivotaltracker.com/story/show/155527953

Technically could be a separate issue, but we should also backfill any conversation documents that don't contain a userId, as that property was added a few months after the first Conversations release.
Refs https://dosomething.slack.com/archives/C2C8NLNAY/p1529512662000400?thread_ts=1529506973.000763&cid=C2C8NLNAY

This elder 🐛 made an appearance while testing the member's deletion feature in Gambit. Conversation.
@ngjo Here's the issue for this 🐛. Here's the card I just created in the Platform's Pivotal board.


DB::Exception: Unknown table engine Kafka.

I have build ClickHouse from source with the latest github version. Both three types of creating Kafka table from Instruction encountered DB::Exception: Unknown table engine Kafka.
I have tried these three types of SQL
  CREATE TABLE queue (
    timestamp UInt64,
    level String,
    message String
  ) ENGINE = Kafka('localhost:9092', 'topic', 'group1', 'JSONEachRow');

  SELECT * FROM queue LIMIT 5;

  CREATE TABLE queue2 (
    timestamp UInt64,
    level String,
    message String
  ) ENGINE = Kafka SETTINGS kafka_broker_list = 'localhost:9092',
                            kafka_topic_list = 'topic',
                            kafka_group_name = 'group1',
                            kafka_format = 'JSONEachRow',
                            kafka_num_consumers = 4;

  CREATE TABLE queue2 (
    timestamp UInt64,
    level String,
    message String
  ) ENGINE = Kafka('localhost:9092', 'topic', 'group1')
              SETTINGS kafka_format = 'JSONEachRow',
                       kafka_num_consumers = 4;

You need to install librdkafka and clone this repo with submodules to build ClickHouse with Kafka engine.

I have build ClickHouse from source with the latest github version.

So you've compiled CH without Kafka. Why do you need to build CH by yourself?
You can download latest build https://github.com/yandex/ClickHouse press green check sign -> details on 'ClickHouse build check' and download  'bundled | unsplitted'
for example https://clickhouse-builds.s3.yandex.net/0/106a2d0c0f44d09ac50376304977e3909b989c1e/report.html

We also have nightly releases for .deb and .rpm in:
https://repo.yandex.ru/clickhouse/deb/testing/main/
https://repo.yandex.ru/clickhouse/rpm/testing/x86_64/

You need to install librdkafka

No, you don't have to install rdkafka, because we have this library in our submodules.

To figure out, why Kafka support is not enabled, you can check cmake out for kafka substring.

Most probably non linux platform (macos?), rdkafka build is not working properly on other platforms currently and is disabled in cmake.

Thanks for replying, I was build on macos with rdkafka installed by homebrew, the cmake can find rdkafka path correctly, but it seems that the contrib/CMakeLists.txt does not include rdkafka path when USE_INTERNAL_RDKAFKA_LIBRARY=OFF, cause undefined exception when compiling cppkafka. I switched to the Linux  and everything is working properly.


Fast ResNet-34 specifications

In the paper, you mention that "Due to space constraints, the exact specification [for Fast ResNet-34] can be found in the accompanying code." I can't find this specification in the repo. Can you point me to the right place?

The ResNetSE34L in the code refers to the Fast ResNet.

Thanks!


Progress bar display does not update

Description
I found with the latest version on PyPI, 3.35.0, that a progress bar's display does not get updated until the end when it is finished.  I tested with the 3.34.3 version from PyPI, and this version updates the progress bar's display as expected.
Code
#!/usr/bin/env python

import time
import progressbar

bar = progressbar.ProgressBar()
for i in bar(range(100)):
    time.sleep(0.02)

Versions

Python version:

3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 12:04:33)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]

Python distribution/environment: Anaconda
Operating System: macOS
Package version: 3.35.0

I have the same issue, simple example like
import time
import progressbar

bar = progressbar.ProgressBar()
for i in bar(range(100)):
    time.sleep(0.02)

does not update.  I bisected to 572854d7674c576bb744df586f842e563317bdb6
it appears the issue is with the update_delta near line 569 of bar.py

Thank you so much for tracking it down. I guess that change still has some
issues. I'll push out a new release tomorrow
On Feb 12, 2018 22:53, "JoeSc"<EMAIL_ADDRESS>wrote:

I have the same issue, simple example like
import time
import progressbar
bar = progressbar.ProgressBar()
for i in bar(range(100)):
time.sleep(0.02)
does not update. I bisected to 572854d
https://github.com/WoLpH/python-progressbar/commit/572854d7674c576bb744df586f842e563317bdb6
it appears the issue is with the update_delta near line 569 of bar.py
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/WoLpH/python-progressbar/issues/154#issuecomment-365075055,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQg62g1ejyn4r0Znsv7mM1FIUwUoS4fks5tULK8gaJpZM4SCpI4
.

Thanks for the help everyone, I've released a new version which fixes the issue

It seems there's still issues, Using this example code results in the progressbar from jumping from 20% to 100%.
import time
import progressbar

bar = progressbar.ProgressBar()
for i in bar(range(1000)):
    time.sleep(0.001)

See behavior here in this terminal recording
https://asciinema.org/a/qNiqvZyx85lwQUGAJ6titcLWk
The recording shows me running simple.py at the current HEAD and then reverting both e664f0481588cac7d2ee231a9aaba08110d21ec3 and 572854d7674c576bb744df586f842e563317bdb6.  After reverting it runs as expected with the progressbar progressing across the screen to 100%

I'm not quite sure how the underlying code works, but this change seems to fix the progressbar
https://gist.github.com/JoeSc/ef01c281318d99605ad4b49668f2b503

Thanks for the help guys, unfortunately this type of bug is hard to test for but I've put out a new release with the fixes similar to @JoeSc's changes :)


test: Adds tests to TableLoader component

SUMMARY

Adds tests to TableLoader component
Moves TableLoader component to its own folder
Fixes a bug in Profile where toasts weren't being rendered. Found by the news tests! 🙌🏼
Creates a new helper function to mock the store

@rusackas @junlincc
TEST PLAN
1 - Execute ButtonGroup tests
2 - All tests should pass
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

Codecov Report

Merging #13299 (4491981) into master (99a0c8a) will decrease coverage by 19.07%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master   #13299       +/-   ##
===========================================
- Coverage   77.15%   58.08%   -19.08%
===========================================
  Files         866      478      -388
  Lines       45005    16000    -29005
  Branches     5357     4129     -1228
===========================================
- Hits        34723     9293    -25430
+ Misses      10159     6707     -3452
+ Partials      123        0      -123

Flag
Coverage Δ

cypress
58.08% <ø> (-0.44%)
:arrow_down:

javascript
?

python
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...et-frontend/src/messageToasts/components/Toast.tsx
71.42% <ø> (-16.38%)
:arrow_down:

...uperset-frontend/src/dashboard/util/dnd-reorder.js
0.00% <0.00%> (-100.00%)
:arrow_down:

...rset-frontend/src/dashboard/util/getEmptyLayout.js
0.00% <0.00%> (-100.00%)
:arrow_down:

...dashboard/components/resizable/ResizableHandle.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

...tersConfigModal/Footer/CancelConfirmationAlert.tsx
0.00% <0.00%> (-100.00%)
:arrow_down:

...ConfigModal/FiltersConfigForm/FilterScope/state.ts
0.00% <0.00%> (-100.00%)
:arrow_down:

...odal/FiltersConfigForm/FilterScope/ScopingTree.tsx
6.25% <0.00%> (-93.75%)
:arrow_down:

.../src/dashboard/util/getFilterScopeFromNodesTree.js
0.00% <0.00%> (-93.48%)
:arrow_down:

...src/dashboard/components/gridComponents/Header.jsx
10.52% <0.00%> (-86.85%)
:arrow_down:

superset-frontend/src/components/IconTooltip.tsx
13.33% <0.00%> (-86.67%)
:arrow_down:

... and 728 more

Continue to review full report at Codecov.

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

All suggestions applied. Thanks @rusackas!


Fix finicky resize handle

The original pull request link address is https://github.com/ProseMirror/prosemirror-tables/pull/99

Didn't anyone handle it?

@ocavue Excuse me, do you have time?

@wang1xiang Thanks for your contribution!


reported reactiveUI not exist assembly only in linux

I'm creating an avalonia app for the first time, I created the app on linux with the following commands

I create the folder and open it with vscode
from launch terminal:
dotnet new avalonia.xplat
dotnetrestore

and delete the ios folder (from what I understand I can't use it if I use linux
I delete the
Project myapp.ios
EndProject
and launch dotnet restore
I build and debug for the desktop
and it gives me this error
"error CS0234: The type or namespace name 'ReactiveUI' does not exist in the namespace 'Avalonia'. A reference to the assembly is probably missing."
since I have a virtual machine with windws I tried to start it on visual studio 2022 and it doesn't cause me problems
ps: I tried to install the missing nuget package from vscode but it gives me another type of error
note: until now i always used windows with .NET Framework and the first app i create on linux
-OS:
manjaro linux and kde plasma
visual-studio-code-bin 1.79.0-1 (aur)

It seems you are using an old template version. Please update the templates package and double-check if the error is still there.
If error still persists, you can reopen this issue in https://github.com/AvaloniaUI/avalonia-dotnet-templates repository.

and delete the ios folder (from what I understand I can't use it if I use linux

Unrelated, but yes, you can't easily build iOS app on Linux.


word phrases typed by people might have extra whitespace, tolerate this

fixes #23

CC @maciejhirsz

@rob-solana this is tricky, because the phrase itself, not the entropy, is what is being hashed, so if you validate a phrase with extra spaces, you will produce an invalid seed phrase for that phrase, which is way worse than rejecting the phrase due to extra spaces. This could be doubly problematic if you handled other whitespace characters (tab, feed, or new line).
IMO a better way to handle this would be to return a specialized error if the phrase contains extra spaces. The Mnemonic::from_phrase method could then handle that error and try to sanitize the string before retrying.

@rob-solana this is tricky, because the phrase itself, not the entropy, is what is being hashed, so if you validate a phrase with extra spaces, you will produce an invalid seed for that phrase, which is way worse than rejecting the phrase due to extra spaces. This could be doubly problematic if you handled other whitespace characters (tab, feed, or new line).
IMO a better way to handle this would be to return a specialized error if the phrase contains extra spaces. The Mnemonic::from_phrase method could then handle that error and try to sanitize the string before retrying.

Thanks for taking time to review.  Can you help me understand this better?  I don't see hashing of the phrase itself, only the bits resulting from the individual words parsed from the phrase.

@rob-solana that's a bug that's been fixed long ago but hasn't been merged.

@maciejhirsz perhaps this PR should be against your fork?

@rob-solana Sure, if you want, I'm happy to include it as long as it doesn't break the seed generation :).


Preferred way to move the production database to an external service (such as AWS RDS)?

A short question: we've been using the fullstack template for a while now and getting the hang of it slowly. We want to host our database on AWS RDS rather than internally in a docker container. Is there an easy way to configure this so that only the production URL will point to RDS, while all others still use a local docker container for development, staging and testing?
Currently one of our devs created a second env file called env-postgres-prod.env and changed docker-compose.shared.env.yml to use this instead, but this also affects the tests scripts etc...

My approach is just to update the env-postgres.env file so it uses the config of your AWS:
POSTGRES_SERVER=my-db.rds.amazonaws.com
POSTGRES_USER=user
POSTGRES_PASSWORD=password
POSTGRES_DB=prod

I don't have a stag DB, and would love to see a better solution.

You can just move the Postgres specific stuff from docker-compose.shared.env.yml to docker-compose.dev.postgres.env.yml and docker-compose.deploy.postgres.env.yml (Or prod/staging/dev or similar) and update your scripts/.env files to reference the desired compose files.

Thanks for the help here everyone! :clap:
Yeah, I think the current Docker Compose files trying to eliminate any possible duplication end up separating things too granularly and making it all look more complex than it is.
You could define which set of Docker Compose files to use for each case, or even further, simplify each environment to have it's own single Docker Compose file. It would mean that some of them have some repetition of the same settings that you would have to make sure you keep in sync if you update them, but it would probably be simpler to handle...

Hello. I am starting to use this. I will need to use a separate databse too, in my case google cloud. Could you please tell me how you solved the problem? The steps and or example would be great. Thanks


Filter out meta dir in offline gc tool  [JIRA: RCS-238]

Offline GC script fails if bitcask data dir has manual_cleanup directory; so this change ignores meta directory like it.
This PR also includes the code which ensure the script run with Riak.

@borshop merge

No release note needed for this issue as this is a bug made during this development cycle ( RCS-188 )
[posted via JIRA by Kota Uenishi]


Error launching application on Windows, I try to change Windows 10 SDK version , but it didn't work

Steps to Reproduce

flutter run -d windows -v
Logs

Logs
[  +30 ms] Building Windows application... (completed in 14.5s)
[+3610 ms] Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
[   +3 ms] Error launching application on Windows.
[   +3 ms] "flutter run" took 18,845ms.
[   +5 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:674:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1140:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>

[ +257 ms] ensureAnalyticsSent: 253ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

flutter doctor -v
[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19044.1415], locale zh-CN)
    • Flutter version 2.8.1 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (2 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.8)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32002.261
    • Windows 10 SDK version 10.0.22000.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.63.2)
    • VS Code at C:\Users\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.29.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1415]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 90.0.4430.72
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 96.0.1054.62

! Doctor found issues in 2 categories.

@charlesmjohnson0
Do you get this error every time consistently while running the said command ?
Can you switch to latest master and see if you get same behavior or not ?
There's a similar issue open but for mac platform, but just try on master and confirm.

@darshankawar
Do you get this error every time consistently while running the said command ?
yes,every time
Can you switch to latest master and see if you get same behavior or not ?
After I switched the master, error occurred while compiling
Logs

Logs
flutter channel master
flutter upgrade
flutter run -d windows -v
[        ]   [+6759 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart(46,19): error G9EFD8EEC: Member not found: 'packageRoot'.
[D:\workspace\project\build\windows\flutter\flutter_assemble.vcxproj]
[        ]   C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066:
“D:\workspace\project\build\windows\CMakeFiles\dff807cde259a938714adfc119b26da2\flutter_windows.dll.rule;D:\workspace\project\build\windows\CMakeFiles\7ddc0b877fe6228c6740866c43e74e84\flutter_assemble.rule” exit，code 1。 [D:\workspace\project\build\windows\flutter\flutter_assemble.vcxproj]
[        ]     2 Errors
[        ] used time 00:00:49.73
[  +27 ms] Building Windows application... (completed in 67.9s)
[   +1 ms] Exception: Build process failed.
[   +1 ms] "flutter run" took 68,593ms.
[   +3 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:687:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>

flutter doctor -v
[√] Flutter (Channel master, 2.9.0-1.0.pre.244, on Microsoft Windows [Version 10.0.19044.1415], locale zh-CN)
    • Flutter version 2.9.0-1.0.pre.244 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7444ad8da4 (3 hours ago), 2022-01-04 22:00:40 -0800
    • Engine revision a6ce607b13
    • Dart version 2.16.0 (build 2.16.0-134.0.dev)
    • DevTools version 2.9.2

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.8)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32002.261
    • Windows 10 SDK version 10.0.22000.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.63.2)
    • VS Code at C:\Users\恒联科技\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.32.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1415]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 90.0.4430.72
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 96.0.1054.62

[√] HTTP Host Availability
    • All required HTTP hosts are available

Thanks for the logs. Can you please try running flutter run -v and see if it shows us more meaningful log ?

Of course, thanks for reply. After change to master channel , I created  new project using flutter create test , and running flutter run -v successfully ,everything works fine. But my project running flutter run -v , error occurred.
Logs

Logs
flutter run -v
.......

[+2670 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
[        ]       io.Platform.packageRoot; // ignore: deprecated_member_use
[        ]                   ^^^^^^^^^^^
[ +306 ms]   [+2979 ms] Found plugin path_provider_linux at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.0\
[   +4 ms]   [   +4 ms] Found plugin path_provider_windows at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.3\
[   +6 ms]   [   +6 ms] Found plugin shared_preferences at C:\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-2.0.11\
[   +1 ms]   [   +1 ms] Found plugin shared_preferences_android at C:\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_android-2.0.9\
[   +2 ms]   [   +2 ms] Found plugin shared_preferences_ios at C:\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_ios-2.0.8\
[   +3 ms]   [   +2 ms] Found plugin shared_preferences_linux at C:\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_linux-2.0.2\
[   +2 ms]   [   +2 ms] Found plugin shared_preferences_macos at C:\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-2.0.2\
[   +4 ms]   [   +4 ms] Found plugin shared_preferences_web at C:\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_web-2.0.2\
[   +1 ms]   [   +1 ms] Found plugin shared_preferences_windows at C:\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_windows-2.0.2\
[   +5 ms]   [   +5 ms] Found plugin url_launcher at C:\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher-6.0.17\
[   +1 ms]   [   +1 ms] Found plugin url_launcher_android at C:\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher_android-6.0.13\
[   +2 ms]   [   +1 ms] Found plugin url_launcher_ios at C:\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher_ios-6.0.13\
[   +1 ms]   [   +2 ms] Found plugin url_launcher_linux at C:\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher_linux-2.0.2\
[   +1 ms]   [   +1 ms] Found plugin url_launcher_macos at C:\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher_macos-2.0.2\
[   +3 ms]   [   +3 ms] Found plugin url_launcher_web at C:\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher_web-2.0.4\
[   +1 ms]   [   +1 ms] Found plugin url_launcher_windows at C:\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher_windows-2.0.2\
[  +18 ms]   [  +18 ms] gen_dart_plugin_registrant: Complete
[   +1 ms]   [   +2 ms] kernel_snapshot: Starting due to {}
[   +9 ms]   [   +8 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false
--enable-asserts --track-widget-creation --packages D:\workspace\fastway_vpn\.dart_tool\package_config.json --output-dill
D:\workspace\fastway_vpn\.dart_tool\flutter_build\cf8f598f8e45898d6f273d3e1aee6d99\app.dill --depfile
D:\workspace\fastway_vpn\.dart_tool\flutter_build\cf8f598f8e45898d6f273d3e1aee6d99\kernel_snapshot.d D:\workspace\fastway_vpn\.dart_tool\flutter_build\generated_main.dart
[+6758 ms] [+6753 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart(46,19): error G9EFD8EEC: Member not found: 'packageRoot'.
[D:\workspace\fastway_vpn\build\windows\flutter\flutter_assemble.vcxproj]
[   +1 ms]   [   +1 ms]       io.Platform.packageRoot; // ignore: deprecated_member_use
[        ]   [        ]                   ^^^^^^^^^^^
[+3870 ms]   [+3876 ms] Persisting file store
[   +4 ms]   [   +4 ms] Done persisting file store
[  +23 ms]   [  +22 ms] Target kernel_snapshot failed: Exception
[        ]              #0      KernelSnapshot.build (package:flutter_tools/src/build_system/targets/common.dart:241:7)
[        ]              <asynchronous suspension>
[        ]              #1      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:839:9)
[        ]              <asynchronous suspension>
[        ]              #2      Future.wait.<anonymous closure> (dart:async/future.dart:473:21)
[        ]              <asynchronous suspension>
[        ]              #3      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:777:32)
[        ]              <asynchronous suspension>
[        ]              #4      FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:606:16)
[        ]              <asynchronous suspension>
[        ]              #5      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:317:32)
[        ]              <asynchronous suspension>
[        ]              #6      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
[        ]              <asynchronous suspension>
[        ]              #7      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #8      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
[        ]              <asynchronous suspension>
[        ]              #9      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
[        ]              <asynchronous suspension>
[        ]              #10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #11     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
[        ]              <asynchronous suspension>
[        ]              #12     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
[        ]              <asynchronous suspension>
[        ]              #13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #14     main (package:flutter_tools/executable.dart:94:3)
[        ]              <asynchronous suspension>
[        ]   [  +10 ms] "flutter assemble" took 14,258ms.
[   +4 ms]   [   +5 ms]
[        ]              #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
[        ]              #1      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:334:7)
[        ]              <asynchronous suspension>
[        ]              #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
[        ]              <asynchronous suspension>
[        ]              #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
[        ]              <asynchronous suspension>
[        ]              #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
[        ]              <asynchronous suspension>
[        ]              #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
[        ]              <asynchronous suspension>
[        ]              #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
[        ]              <asynchronous suspension>
[        ]              #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]              <asynchronous suspension>
[        ]              #10     main (package:flutter_tools/executable.dart:94:3)
[        ]              <asynchronous suspension>
[ +261 ms]   [ +265 ms] ensureAnalyticsSent: 264ms
[   +1 ms]   [   +3 ms] Running shutdown hooks
[        ]   [        ] Shutdown hooks complete
[        ]   [        ] exiting with code 1
[  +57 ms] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066:
“D:\workspace\fastway_vpn\build\windows\CMakeFiles\dff807cde259a938714adfc119b26da2\flutter_windows.dll.rule;D:\workspace\fastway_vpn\build\windows\CMakeFiles\7ddc0b877fe6228c6740866c43e74e84\flutter_assemble.rule” exit code 1。 [D:\workspace\fastway_vpn\build\windows\flutter\flutter_assemble.vcxproj]

......

[        ]   [+6753 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart(46,19): error G9EFD8EEC: Member not found: 'packageRoot'.
[D:\workspace\fastway_vpn\build\windows\flutter\flutter_assemble.vcxproj]
[        ]   C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066:
“D:\workspace\fastway_vpn\build\windows\CMakeFiles\dff807cde259a938714adfc119b26da2\flutter_windows.dll.rule;D:\workspace\fastway_vpn\build\windows\CMakeFiles\7ddc0b877fe6228c6740866c43e74e84\flutter_assemble.rule” exit code 1。 [D:\workspace\fastway_vpn\build\windows\flutter\flutter_assemble.vcxproj]
[   +1 ms]     5 warning
[        ]     2 errors
[        ] used times 00:00:26.97
[  +16 ms] Building Windows application... (completed in 29.1s)
[        ] Exception: Build process failed.
[   +1 ms] "flutter run" took 44,668ms.
[   +3 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:687:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>

[ +259 ms] ensureAnalyticsSent: 256ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

flutter doctor -v
[√] Flutter (Channel master, 2.9.0-1.0.pre.268, on Microsoft Windows [Version 10.0.19044.1415], locale zh-CN)
    • Flutter version 2.9.0-1.0.pre.268 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bc54c2fdfe (2 hours ago), 2022-01-07 01:55:11 -0800
    • Engine revision 594238c308
    • Dart version 2.16.0 (build 2.16.0-144.0.dev)
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.8)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32002.261
    • Windows 10 SDK version 10.0.22000.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.63.2)
    • VS Code at C:\Users\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.32.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1415]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 90.0.4430.72
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 96.0.1054.62

[√] HTTP Host Availability
    • All required HTTP hosts are available

Thanks for the logs. I tried running a sample windows app on Windows 10, but didn't get such exception.
From the log, it's failing with below 2 errors throwing Target kernel_snapshot failed: Exception eventually:
[+6753 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart(46,19): error G9EFD8EEC: Member not found: 'packageRoot'.
[D:\workspace\fastway_vpn\build\windows\flutter\flutter_assemble.vcxproj]
[        ]   C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066:
“D:\workspace\fastway_vpn\build\windows\CMakeFiles\dff807cde259a938714adfc119b26da2\flutter_windows.dll.rule;D:\workspace\fastway_vpn\build\windows\CMakeFiles\7ddc0b877fe6228c6740866c43e74e84\flutter_assemble.rule” exit code 1。 [D:\workspace\fastway_vpn\build\windows\flutter\flutter_assemble.vcxproj]
[   +1 ms]     5 warning
[        ]     2 errors
[        ] used times 00:00:26.97
[  +16 ms] Building Windows application... (completed in 29.1s)
[        ] Exception: Build process failed.

/cc @stuartmorgan

The kernel_snapshot failure is just the tool failure that results from the Dart compilation failures that are reported in the log you posted:

[+2670 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
[        ]       io.Platform.packageRoot; // ignore: deprecated_member_use

Your version of package is too old for the version of Flutter you are using; see https://pub.dev/packages/platform/changelog.

It's not clear to me whether this issue is currently intended to track the original crash on launch, or the build failure. If it's the latter, it should be closed as it's just the project not being updated correctly to run on master. If it's the former, it should be renamed.
(@darshankawar For future reference: "flutter run throws Target kernel_snapshot failed: Exception" isn't a good title for an issue, because it's equivalent to "Dart code doesn't compile", which could be anything.)

Your version of package is too old for the version of Flutter you are using; see https://pub.dev/packages/platform/changelog.

@charlesmjohnson0 Upgrade the package to latest and try again to check if you still get the error or not.

After updating the platform version, there is no packageRoot error, but still can't debug.
By the way, the project was created on macos .
Logs

Logs

[        ]     0 error
[   +1 ms] used time 00:00:46.87
[  +30 ms] Building Windows application... (completed in 48.3s)
[+7412 ms] Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
[   +1 ms] Error launching application on Windows.
[   +2 ms] "flutter run" took 56,428ms.
[   +5 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:687:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>

[ +267 ms] ensureAnalyticsSent: 263ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

flutter doctor -v
[√] Flutter (Channel master, 2.9.0-1.0.pre.268, on Microsoft Windows [Version 10.0.19044.1415], locale zh-CN)
    • Flutter version 2.9.0-1.0.pre.268 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bc54c2fdfe (11 days ago), 2022-01-07 01:55:11 -0800
    • Engine revision 594238c308
    • Dart version 2.16.0 (build 2.16.0-144.0.dev)
    • DevTools version 2.9.2
    • PATH = C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Program Files\CMake\bin;C:\Program
      Files\WireGuard\;C:\Program Files\Git\cmd;C:\Users\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2\bin;;C:\Users\AppData\Local\Programs\Microsoft VS
      Code\bin;C:\Users\AppData\Roaming\npm;C:\flutter\bin;;C:\flutter\bin\mingit\cmd

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.8)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32002.261
    • Windows 10 SDK version 10.0.22000.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.63.2)
    • VS Code at C:\Users\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.32.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1415]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 96.0.4664.110
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 97.0.1072.55

[√] HTTP Host Availability
    • All required HTTP hosts are available

@charlesmjohnson0
Per your above comment that the project was created on mac, I believe you are hitting https://github.com/flutter/flutter/issues/91830, so please follow-up in it for further updates.
Closing this as a duplicate.


add manual aperture selection

add manual aperture selection, user can click on which they want?

simple click interface? show the summed 1d version (easier, higher S/N)?

what if aperture moves slightly between exposures, drifts? should it recenter?

a trace_recenter keyword?

These functions have now been added as keywords to ap_trace (interac= and recenter=)


Can I match without replacement?

The matching process is done with replacement, so a single majority record can be matched to multiple minority records. Can I match without replacement? So  a single majority record can only be matched to one minority record.

I'm also interested in such an option.

update: I've implemented a matching with replacement option in the matching method on my local machine. If using this option, it also permutes the dataframe indices so you can check for order effects (which are necessarily imposed by matching without replacement). Happy to help if you still need that!

I am interested in this feature. Any prevision of when the pull request will be reviewed?

Yeah, I am also waiting desperately for this feature. It would be very nice if this would be implemented!

Yeah, I am also waiting desperately for this feature. It would be very nice if this would be implemented!

Very welcome to use the adapted version for now which has this feature implemented!
https://github.com/tlooden/pymatch

Yeah, I am also waiting desperately for this feature. It would be very nice if this would be implemented!

Very welcome to use the adapted version in the meanwhile which has this feature implemented!
https://github.com/tlooden/pymatch

Your version seems again throws the error "ValueError: Unable to coerce to Series, length must be 1: given 393". Seems to be related to issue #12

Thank you for the feedback, i will have a look at that!

Thank you for the feedback, i will have a look at that!
EDIT: yes i see what you mean. I had downgraded pandas to 0.23.4 in my pymatch environment, then it works. Hopefully both solutions will be merged.

Any idea how to resolve the error ""ValueError: Unable to coerce to Series, length must be 1: given 393" without downgraded Pandas? I am unable to install Pandas 0.23.4 on my system so I'm looking for a way to modify the code to be compatible with a newer Pandas version.

The same error here. Add this after you importing pymatch:
class MyMatcher(Matcher):
@staticmethod
def _scores_to_accuracy(m, X, y):
preds = [[1.0 if i >= .5 else 0.0 for i in m.predict(X)]]
return (y.to_numpy().T == preds).sum() * 1.0 / len(y)

I layered in the with_replacement flag in my fork and set the default value to False. It seems to work.
pip install git+https://github.com/chrico-bu-uab/pymatch.git#egg=pymatch


Can we find duplicate of any row in a dataframe? For eg of we have huge number of columns, manually passing list will be tedius

The enhancement is now in place


Remove 'autosave' value from 'removeProps'

I working on "universe-select" package and I need "autosave" value in contextAdjust in "addInputType".
Could You leave "autosave" value in context?

@MichalW, you can do AutoForm.getCurrentDataForForm() in the contextAdjust function to get the reactive autoForm attributes.


Renamed rangeToTEIRangeSelector -> selectorToTEIRangeSelector

When I was working on the plugin for my app - I faced a need to transform the TextSelector to some custom selector type.
I noticed that TEI plugin also does that. But the name for the function is a bit unintuitive 🤔
It's called rangeToTEIRangeSelector although it receives the selector and converts to a more specific selector. Shouldn't it be named selectorToTEIRangeSelector? 🤔

I agree the naming needs to be cleared up. But I think this one's not quite right either. The method converts a normal TextSelector to a TEI XPATH Range Selector. So I guess the proper name would be  textToTEIRangeSelector or perhaps even textToTEISelector, because the "Range" (which is a WebAnno selector range, rather than a DOM Range just adds confusion?)

textToTEISelector

I like this one 👍🏻
Also it matches the naming for the following textToTEITarget & textToTEIAnnotation


.map-challenge-title a /

Describe your problem and - if possible - how to reproduce it
I just came across this situation where the text on the website has switched from "#006400" to "#f8f8f8". I'm not sure exactly when this happened but defaults when loading the website. I'm not sure if other people have encountered the same thing. I was able to change it back by disabling (in the chrome dev console) the
... .map-challenge-title a{color: #f8f8f8}
I tested it out on different browsers on my laptop that I am using and the text color is "#f8f8f8".
I just tested it on another computer and the curriculum page is not loading. Maybe that has something to do with it.
Hope this helps!
Add a Link to the page with the problem
https://learn.freecodecamp.org/
Tell us about your browser and operating system

Browser Name: chrome
Browser Version: Version 68.0.3440.106 (Official Build) (64-bit)
Operating System: Windows 10
(same issue occurs on iphone safari, firefox on win10, edge)

If possible, add a screenshot here
this is running on edge:

below ".map-challenge-title a" is  disabled which is why you see the text on the left(chrome):

@chiliphrosting could you close the issue as it has been fixed.

Thanks @Nirajn2311


Log4j migration from log4j1 to log4j2

Description:
Issue: LMCROSSITXSADEPLOY-2071
This PR contains changes for migrating log4j version from log4j1 to log4j2.
The changes are made with intent not to change the logging logic but only to use the new version.
Apache Log4j2 official page was used as main source of information.

Did you consider this https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/ and https://stackoverflow.com/questions/41498021/is-it-worth-to-use-slf4j-with-log4j2 ?


print not working

https://cookcompany.zendesk.com/agent/tickets/367

https://mail.google.com/mail/u/0/#inbox/FMfcgxwDqThsLSwpCSQfxbMZLkJwsljt


MySQL connection

Download and import the dump db https://drive.google.com/open?id=0B1QVmOwKSG6GM3N0MDNQQkxjaTg
Edit .env based on the env.example.
To test it out, you can check /membership

Couldn't connect to the db. Unhandled rejection SequelizeConnectionRefusedError: connect ECONNREFUSED <IP_ADDRESS>:3306
at Utils.Promise.tap.then.catch.err (/Volumes/Extra/Developer/logbook/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:139:19)
...

I see. Please add a way to config PORT as well

Otherwise LGTM

I have merged this so we can work on other tasks. We still need the PORT config.


feat(entity): add support for multi attribute in append entity attributes

Ouch.
What about:
verify { neo4jRepository.createPropertyOfSubject(any(), any()) wasNot Called }

AssertionError
Calls to same mock:

Neo4jRepository(com.egm.stellio.entity.repository.Neo4jRepository#0 bean#2).hasPropertyInstance(com.egm.stellio.entity.repository.EntitySubjectNode@1363a65a, https://ontology.eglobalmark.com/aquac#fishNumber, null)
Neo4jRepository(com.egm.stellio.entity.repository.Neo4jRepository#0 bean#2).updateEntityModifiedDate(urn:ngsi-ld:Beehive:123456)

Is this checking that the method was not called ?
I suspect it's checking the Neo4jRepository wasNot called

Is this checking that the method was not called ?
I suspect it's checking the Neo4jRepository wasNot called

Indeed, just checked in the doc and it checks at the mock level (well, it makes sense).


add install shell script

fixes https://github.com/stefan-hoeck/idris2-pack/issues/48

Personally, I think python3 is a bit of a hefty dependency. We could small sed scripts to extract the desired hashes from the .toml files. Here's how to do this for the toml-idr hash: Put the following content in file toml-idr.sed:
/^\[db.toml\]/,/^commit/{
  /^commit/s/commit *= *"\([a-f0-9]*\)"/\1/p
}

and extract the commit hash from nightly-220519.toml with the following command:
sed -nf toml-idr.sed nightly220519.toml
```.

What do you think?

Also, please note that the scheme executable is not always called `chezscheme` on all systems. On my system, it's just `scheme`, so the name of this executable should somehow be asked from the user.

This can even be done without putting the sed commands in a script:
FOO=$(sed -ne '/^\[db.toml\]/,/^commit/{/^commit/s/commit *= *"\([a-f0-9]*\)"/\1/p}' nightly-220519.toml)

What do you think?

I don't like using regular expressions to substitute parsing formats, but let's go with it so that we don't rely on python3 being installed for now. There could be problems on macos and other platforms with sed due to it being from bsd instead of gnu but we'll get there once someone tests this on macos.

Also, please note that the scheme executable is not always called chezscheme on all systems. On my system, it's just scheme, so the name of this executable should somehow be asked from the user.

Added autodetection along with a prompt for the scheme binary.

This is looking great! I'll give it a go tonight an will report back here.

I just ran the script on my system. Two things I observed:

It wasn't possible to customize the installation directory for pack. If environment variable $PACK_DIR is set, pack should be installed there (this would also allow me to keep my existing pack installation).
The nightly it chose was nightly-220508. I would expect it to use the latest nightly.

Other than that, it worked like a charm!

It wasn't possible to customize the installation directory for pack. If environment variable $PACK_DIR is set, pack should be installed there (this would also allow me to keep my existing pack installation).

Added another prompt to ask the user for a pack directory, similar to what I did for scheme.

The nightly it chose was nightly-220508. I would expect it to use the latest nightly.

This was a regression due to me trying to make shellcheck happy. Added a change that should now select the latest db.

Great! Testing it now.

I thinks this almost ready for merging. I have only two remaining nitpicks:

Could we remove the clones directory after installation?
Instead of asking for the $PACK_DIR, the install script should check whether the corresponding variable is set. Users want to use a custom directory for pack will have to set this variable anyway.

Could we remove the clones directory after installation?

done

Instead of asking for the $PACK_DIR, the install script should check whether the corresponding variable is set. Users want to use a custom directory for pack will have to set this variable anyway.

done. users will have to set the variable before invoking the script due to how the shell works
$ ./install.bash
+ PACK_DIR=/home/tom/.pack
$ PACK_DIR=/home/tom/.pack2 ./install.bash
+ PACK_DIR=/home/tom/.pack2

Thanks a lot for your help with this. I'll merge this now, and I'll test it on a couple of people at work. If all goes we'll, we can added official documentation and drop micropack.

 It was great collaborating with you on this feature!


Where is the Vector Math interface?

Hi oneMKL team.
I was looking at the Vector Math interface in developer reference, which says the interfaces are given in
oneapi/mkl/vm.hpp

But I can't find it in the repo codebase. Am I missing something?
cc: @jacobkahn

Hi @StrongerXi, the documentation describes Intel(R) oneAPI Math Kernel Library (oneMKL) product. This opensource project provides interfaces for multiple third-party libraries, including NVIDIA cuBLAS, Intel oneMKL product, etc.
Vector Math is available as part of Intel oneMKL product but it's not yet implemented as part of this project.

Oh, could you please check the link? it points to oneDNN documentation for me

I believe this is the right link to oneMKL Interfaces opensource project documentation: https://oneapi-src.github.io/oneMKL/index.html

Makes sense. I think I found the interfaces I need now. Thank you for the clarification!

I will close this question, as it was resolved.


NPM tasks break with specified args

VS Code is entirely unable to run any of my NPM tasks where the script is defined by multiple words or arguments. I have a large number of tasks like this, and all of them have to be defined as shell tasks as a workaround because all of them are broken if I try to define them as NPM tasks. The obvious reason is because all of the args are wrapped in quotes. NPM and Yarn are incapable of reading tasks formatted like this.
I have seen #82626 which outlines a similar issue, but this issue persists and that conversation has been locked.

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.56.1
OS Version: MacOS Big Sur 11.4

Steps to Reproduce:

Add any NPM task to tasks.json where the script has multiple words in it. Example:

{
    "label": "add",
    "type": "npm",
    "script": "i18n add"
}

Attempt to run the task. Expected output:

> Executing task: yarn run i18n add <

yarn run v1.22.10
warning package.json: No license field
$ ts-node -r tsconfig-paths/register util/i18n/cli/index.ts add
Ctrl+C to stop adding translatable strings

Message:

Actual output:
> Executing task: yarn run 'i18n add' <

yarn run v1.22.10
warning package.json: No license field
error Command "i18n add" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The terminal process "/bin/bash '-c', 'yarn run 'i18n add''" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Before anyone asks, I also saw #115876 and it does nothing to address this either. In my testing I found that this issue persists regardless of any inclusion of --.

This actually works for me.  It looks like you're on an old version of VS Code (we're about to release 1.59). Can you try with the latest version?

I'm not sure if this is the same issue, but I'm also having trouble running any tasks with yarn. I get an error about yarn not being found, but this always used to work before. I am on 1.58.2/Mac.
I tried adding "npm.packageManager": "yarn" to settings.json but that didn't help.

I just tried with 1.58.2. The issue is still there.

@JordanLongstaff since I can't repro the issue, would you be able to make a sample repository that reproduces the issue?

@alexr00 I'm not sure what you mean. I don't know what aspect of my repository would cause this issue.
I can share the scripts section of my package.json file if it helps.
"scripts": {
  "test": "jest",
  "test:debug": "node --inspect --inspect-brk node_modules/.bin/jest --runInBand",
  "arc-test": "jest --config .arc-jest.json",
  "tsc": "node --max_old_space_size=4096 ./node_modules/.bin/tsc --project . --noErrorTruncation --incremental --outDir /tmp/npm-tsc-output",
  "tslint": "tslint --project .",
  "tslint:debug": "node --inspect --inspect-brk node_modules/.bin/tslint --project .",
  "tslint:arc": "tslint --project . --force --format json",
  "tslint:build": "tsc --project tslint_rules",
  "tslint:build:clean": "rm tslint_rules/*.js",
  "tslint:test": "tslint --rules-dir ./tslint_rules --test 'tslint_tests/*'",
  "tslint:test:debug": "node --inspect --inspect-brk node_modules/.bin/tslint --rules-dir ./tslint_rules --test 'tslint_tests/*'",
  "build": "cd $INIT_CWD && node --max_old_space_size=2048 ../node_modules/.bin/webpack",
  "watch": "cd $INIT_CWD && node --max_old_space_size=2048 ../node_modules/.bin/webpack --watch",
  "i18n": "ts-node -r tsconfig-paths/register util/i18n/cli/index.ts",
  "i18n:debug": "node --inspect --inspect-brk -r ts-node/register -r tsconfig-paths/register util/i18n/cli/index.ts"
}

@JordanLongstaff I tried running your i18n script with an add argument. Arguments must be specified with -- (scripts can have spaces in the name, and if you don't use -- then we must assume it is a script with a space in the name):
		{
			"type": "npm",
			"script": "i18n -- add",
			"problemMatcher": []
		}

This is what I see:
> Executing task: npm run "i18n -- add" <

><EMAIL_ADDRESS>i18n
> ts-node -r tsconfig-paths/register util/i18n/cli/index.ts "add"

This actually looks ok to me. Is it problematic for you that the add argument ends up in quotes?

As for me, everything is working since the last vscode update.

@alexr00 Your suggestion did jack squat for me.
> Executing task: yarn run "i18n -- add" <

yarn run v1.22.10
warning package.json: No license field
error Command "i18n -- add" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The terminal process "bash '-c', 'yarn run "i18n -- add"'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

I really do think it is the quotes that are the problem.

My case on Mac
MacOs version 11.5.2
NodeJs version 15.5.1
NPM version 7.21.1
VS Code version 1.60.1
(package.json)
"scripts": { "update": "node index.js" },

(tasks.json)
   "version": "2.0.0",
   "tasks": [
      {
         "type": "npm",
         "script": "update",
         "path": "tasks/sentrySDKUpdate/",
         "label": "Update the Sentry SDK",
      },

The result:

npm ERR! Missing script: "update -- -w"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

I've solved my issue by this
{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "shell",
      "command": "node",
      "label": "Tasks: update the Sentry SDK",
      "args": ["./tasks/sentrysdkupdate/index.js", "--write"]
    }
  ]
}

So I basically ran the command with node and not with npm.

I am still experiencing this problem in VS Code 1.62.1. It has not gone away.


fix: prevent cascading tests by having sinon reset all stubs

In order to not call external APIs during unit tests, we make use of Sinon stubs. Tests are designed such that each test a new stub is creating, returning specific values. However, when one unit test fails, proceeding tests fail because the previous stub was not restored, and a duplicate stub is being made on a function.
Solution: before each test run, reset the sinon environment which resets all stubs.
Also use globals for tests that stub the same method such that they can be called by a beforeEach outside of a test and restored.
 I removed it. The before each statement wasn't running at all. My theory is that it might have to do with the fact that I used arrow function callbacks and the this binding the before each vanished.

I tested my theory is that it might have to do with the fact that I used arrow function callbacks and the this binding the before each vanished. It came back positive.

Here is something I can reproduce repeatedly on my local machine.
describe('Outer test', async () => {
  beforeEach(() => {
    console.log('Outer describe');
  });
  await import('./fixtures/create-branch-response.json');
  describe('Inner test', () => {
    beforeEach(() => {
      console.log('Inner describe');
    });
    it('Should pass!', () => {
      expect(true).true
    })
  })
})

Will output:

  Inner test
Inner describe
    ✓ Should pass!


midi

can we register our own datatype, like triggers, a sparse array of midi packets?

suggested way to do this from Aaron is include a BlueprintFunctionLibrary function in the plugin


[CMSP-1140] Fix core resource URLs for non-main sites in subdirectory multisite network

This pull request fixes the issue with core resource URLs for non-main sites in a subdirectory multisite network. Previously, the URLs were not being correctly adjusted, causing broken links to core resources (like CSS or JavaScript files). This PR adds a filter function fix_core_resource_urls that corrects the URLs by replacing the current site path with the main site URL. The filter is only applied to non-main sites in a subdirectory multisite network.
This problem comes from the custom directory structure used by Roots Bedrock. All the filter hooks are set to priority 9 so they can be easily overridden downstream.

is this something that could/should be contributed upstream to Bedrock, or is it specific to our implementation?

I'm not convinced it's Bedrock but I'm also not sure how it's not. It's possible they changed things and we haven't pulled down their latest code because this wasn't an issue a year ago. At any rate, I'm pretty confident that we're isolating to only scenarios that would actually be affected but I agree about tests. Currently, we don't have any tests, but I believe we have a ticket to create some, so...


WIP: Diagnostics rework

The "Show diagnostics panel after saving" investigation (#748) showed the functionality could be "tacked" on, but would work better if components were set up in proper relations instead of querying global state.
In this PR, a DiagnosticsPresenter is introduced which gets access to DocumentHandler's events.
Clean ups:

[x] Deprecate the show_diagnostics_phantoms feature (as discussed in #722)

Desired fixes:

[x] Stop using global_events for pushing diagnostics updates to ui

[x] Remove duplication of looping logic over diagnostics after an update: update_diagnostics_in_status_bar , update_diagnostics_panel, window_has_relevant_diagnostics, update_view_diagnostics (trying a strategy to update many things in a single walk through)

[x] Remove duplication querying diagnostics at a point: point_diagnostics_by_config vs get_line_diagnostics (perhaps share a cache if cursor listener and bulb listener both want diagnostics?)

[x] Try to remove the need for get_window_diagnostics / get_view_diagnostics - it should be easy to access the DiagnosticsStorage, and it should expose useful functions for accessing/filtering data.

@AmjadHD  this PR is more about refactoring code instead of UI polish - if we can do something that looks good in all fonts then I'd like to see an example.

Coverage decreased (-0.3%) to 34.869% when pulling b10d05400dbea391c186cbde96e2d5532c85f784 on diagnostics-rework into 2f64a4475f6168d02c38536e422909e966d33171 on master.


Add etcher rpm-repo because the one provided by balena is down

Issue https://github.com/balena-io/etcher/issues/4059 describes why the main public etcher repo provided by Balena stopped working.

[x] Create rpm-repo on US repo (https://us.mirrors.headup.ws)
[x] Sign rpm package
[x] Add GPG key to gist.github.com
[x] Change to Cherokee Webserver
[ ] Share with the community
[x] Replicate repo for LATAM (https://cl.mirrors.headup.ws)

I've created the repo and tested it on lykan.headup.local no errors at this moment #https://github.com/alsotoes/headup-public-repos/commit/71d57e8e5da6596e58cfef87f4abff79d5b15bbe

[root@lykan ~]# dnf install balena-etcher.x86_64
Headup etcher repo                                                                                6.8 kB/s | 2.3 kB     00:00
Headup etcher repo                                                                                3.1 kB/s | 2.2 kB     00:00
Dependencies resolved.
==============================================================================================================================================================================================================================================
Package                                                     Architecture                                         Version                                                   Repository                                                   Size
==============================================================================================================================================================================================================================================
Installing:
balena-etcher                                               x86_64                                               1.18.8-1                                                  headup-etcher                                                67 M

Transaction Summary
==============================================================================================================================================================================================================================================
Install  1 Package

Total download size: 67 M
Installed size: 229 M
Is this ok [y/N]: y
Downloading Packages:
balena-etcher-1.18.8.x86_64.rpm                                                                                4.9 MB/s |  67 MB     00:13

Total                                                                                4.9 MB/s |  67 MB     00:13
Headup etcher repo                                                                                9.2 kB/s | 1.7 kB     00:00
Importing GPG key 0xC8890C98:
Userid     : "Alvaro Soto (To be used by public repos<EMAIL_ADDRESS>Fingerprint: 49FE 010D 52F8 6F22 E0EC 1A9C 1E50 AE97 C889 0C98
From       : https://gist.githubusercontent.com/alsotoes/d848a9b7fe7cc33958cf8f7c896f119b/raw/ccd7428dd1912e8bc94ddf89e608de6d44f5e08c/RPM-GPG-KEY-headup
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing        :                                                                                1/1
Installing       : balena-etcher-1.18.8-1.x86_64                                                                                1/1
Running scriptlet: balena-etcher-1.18.8-1.x86_64                                                                                1/1
Verifying        : balena-etcher-1.18.8-1.x86_64                                                                                1/1

Installed:
balena-etcher-1.18.8-1.x86_64

Complete!

Starting now,
cl.mirrors.headup.ws has a copy from the us.mirrors.headup.ws

[ ] Ubuntu repo


TextInput: Font family and size inconsistencies between single line and multiline text inputs

Type: minor
Describe the bug
Text size difference between single line and multi-line text inputs
To Reproduce

Go to https://stoic-hodgkin-c0179e.netlify.com/#!/TextInput
Input text into both single line and multi-line text inputs
Notice a visual difference. I used the Whatfont chrome plugin to get the exact details.

Expected behavior
Used font family, size, and weight should be the standard defaults across inputs and other components.
Screenshots

Desktop (please complete the following information):

OS: Mac OS 10.13.6
Browser Chrome
Version 67.0.3396.99

Both the label and text font size should be .875rem/14px
See here -
zpl://screen?sid=5a95a70a7553a3d94bbcc309&pid=59305ed4ac6e641b8ea32f76


PunktLanguageVars becomes immutable after methods are invoked

The instance variables of PunktLanguageVars are initialized with a faulty design pattern that leads to buggy behavior when using the sentence tokenizer. The two culprits are def word_tokenize(self, s): and def period_context_re(self): in PunktLanguageVars. Both of these methods have the following construction.
try:
    return self._some_instance_variable
except:
    <initialize self._some_instance_variable>
    return self._some_instance_variable

This is a faulty way of initializing an instance variable because it only allows you to modify the variable before the method is called. After the method is called, the variable cannot be modified, and it's not initially obvious why (modifying a variable is done through changing PunktLanguageVars.sent_end_chars via the documentation).
Observe the following usage of PunktSentenceTokenizer which uses an internal PunktLanguageVars instance (keep in mind that the initial default value for PunktLanguageVars.sent_end_chars is ('.', '?', '!')).
#1
>>> from nltk.tokenize.punkt import *; s = 'test test test test test. test test test; test test.'; p = PunktSentenceTokenizer()
>>> PunktLanguageVars.sent_end_chars = ('.', ';')
>>> p.tokenize(s)
['test test test test test.', 'test test test;', 'test test.']

#2
>>> from nltk.tokenize.punkt import *; s = 'test test test test test. test test test; test test.'; p = PunktSentenceTokenizer()
>>> p.tokenize(s)
['test test test test test.', 'test test test; test test.']
>>> PunktLanguageVars.sent_end_chars = ('.', ';')
>>> p.tokenize(s)
['test test test test test.', 'test test test; test test.']

Why in the second example does changing PunktLanguageVars.sent_end_chars have no effect on recognizing the semi colon as a sentence ending mark, but it does have an effect in the first? Because p.tokenize() is called beforehand in the second example. Somewhere in tokenize() one of the two culprit methods is called on the internal PunktLanguageVars instance, thereby making it immutable.
This could be remedied by making the instance variables of PunktLanguageVars public instead of private so that they didn't need to be affected obliquely through setting PunktLanguageVars.sent_end_chars. Public access should be necessary anyway to give the users ability to modify the regular expressions in PunktLanguageVars for parsing the plethora of languages they are dealing with.
Another remedy is just generating the variables each time one of the methods is called instead of recalling a cached version in the try block.

I haven't had time to read your comment thoroughly yet, but
PunktLanguageVars was intended to be modified/extended through
inheritance... Although it's not as if we put together something
instructive or really tried that... But setting attributes of a global
PunktLanguageVars is obviously a bad idea if you need to support multiple
languages.
Is there a way the documentation can be improved - perhaps with an
illustrative example - to avoid a redesign?


IsUnlisted does not work with V3 feeds

Type : Bug
NPE version: master
Installed from: compiled!

What is the current result?

IsUnlisted should work for v3 feeds (text should be cursive)

What is the expected result?

IsUnlisted does not work for v3 feeds (text is not cursive)

The problem is that publish dates of unlisted packages are different in V2 and V3 feeds.

V2
V3

01.01.1900 00:00:00 +02:00
01.01.1900 02:00:00 +02:00

The easiest way to fix it would be to just check if the Year is 1900.
There is also a IsListed property on IPackageSearchMetadata but it currently always returns true for V3 feeds. See https://github.com/NuGet/NuGet.Client/pull/2023

Note: the issue only exists for the publish date of unlisted packages. Not with publish dates in general.


Improve memory locality in mantel

There are many intermediate buffers created while computing skbio.stats.distance.mantel,
due too its reliance on permutations. Many of those buffers are reused immediately afterwards,
so it would make sense to fuse those operations to improve memory locality.

Implemented as part of #1756


Fix typo in example selector

This now matches the example given in https://github.com/mitranim/sublime-fmt/blob/master/messages/install.md

Thanks. I had this fixed locally but kept forgetting to push. 😅