Color value not properly visualized on slider

When passing a hex value through the color prop on the 'slider' ColorPicker, the color value is set properly (from what I can tell) on the hue slider, but the 5 swatches themselves are all different.
My expectation would be that the center swatch is auto-selected with the exact color value passed to it, as those are generally used as the visual cue for 'This is the color that is selected'.
Not a bug so much as just unexpected output? :)

Just to add a bit more info to this: It seems to be when I add onChangeComplete and color to control the hex state in my component.
<ColorPicker type="slider" onChangeComplete={this.handleBackground} color={this.state.background} />

with
getInitialState(){
    return {
      background: '1861A9'
   };
},
handleBackground(swatch){
    this.setState({
      background: swatch.hex
    });
  },

so none of the 5 swatches are selected (whereas, with no props used the last swatch is usually selected). Selecting any of the first 4 swatches works normally. Selecting the last swatch WILL change the background state, but it will not 'select' the last swatch (ie, it grows in size briefly, then shrinks again as if not selected)

@MFIMichael thanks for more details about this!
Per the swatches, it sounds like you would like to see the color is passed down in the center and the outside swatches + and - brightness of that color? Is that correct?
As for the last swatch not being selectable, that is current a known problem with the color conversion library I am using at the moment. I am going to be switching to a different one here within the next few days which should fix the issue!

Thanks! And yes, my expectations are as you have described. :)

I'm also running into the last swatch not being selectable issue.
For those looking for a workaround: pass the color prop as HSL values instead of HEX.
Thank you for all your hard work, @casesandberg!

Going to track this in the v3.0.0 milestone to make sure it gets in there!


⚠ Processors has degraded performance

In 0ce2e97, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 52 ms

Resolved: Processors performance has improved in 01e0875.


recognize_google's response is weird; unit tests failed

https://github.com/Uberi/speech_recognition/actions/runs/6996242087/job/19031904081
======================================================================
FAIL: test_google_chinese (tests.test_recognition.TestRecognition)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/speech_recognition/speech_recognition/tests/test_recognition.py", line 35, in test_google_chinese
    self.assertEqual(r.recognize_google(audio, language="zh-CN"), u"砸自己的脚")
AssertionError: '砸自己的' != '砸自己的脚'
- 砸自己的
+ 砸自己的脚
?     +

======================================================================
FAIL: test_google_english (tests.test_recognition.TestRecognition)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/speech_recognition/speech_recognition/tests/test_recognition.py", line 25, in test_google_english
    self.assertIn(r.recognize_google(audio), ["123", "1 2 3", "one two three"])
AssertionError: '1 2' not found in ['123', '1 2 3', 'one two three']

----------------------------------------------------------------------
Ran 31 tests in 25.823s

FAILED (failures=2, skipped=8)

API response changed.
See response_text in debugger
https://github.com/Uberi/speech_recognition/blob/3.10.0/speech_recognition/__init__.py#L713
test_google_chinese
(Pdb) response_text
'{"result":[]}\n{"result":[{"alternative":[{"transcript":"砸自己的","confidence":0.90974784}],"final":true}],"result_index":0}\n'

test_google_english
in response_text
{"result":[{"alternative":[{"transcript":"1 2","confidence":0.49585345},{"transcript":"one two three","confidence":0.42899391}

"1 2" is max confidence, so recognize_google returns it

IMO: Currently, It is a test for Google's API.
I want to change it to a test of the parsing logic of the return value by mocking the communication with Google's API.


upload-stemcell is not respecting the prefixed stemcell files

om --env env/foundations/config/env.yml upload-stemcell --stemcell 'downloaded-stemcell/[stemcells-ubuntu-xenial,456.123]light-bosh-stemcell-456.123-google-kvm-ubuntu-xenial-go_agent.tgz' --floating=true
processing stemcell
2020/10/15 16:49:09 could not execute "upload-stemcell": failed to upload stemcell: open downloaded-stemcell/light-bosh-stemcell-456.123-google-kvm-ubuntu-xenial-go_agent.tgz: no such file or directory

It appears that the symlink being create in the upload-stemcell is not being honored (or created)!?
Possibly?

version of golang
ubuntu linux sys call

This is not a direct issue in om, but for platform automation. The task that ran this om command did not use the absolute path, which is known, and intentional functionality for upload-stemcell

closing this issue. Commenting on #498, as this expressed the root of the problem. We will be releasing a solution


Add a zipLatest Operator

zipLatest should combine an arriving value with the last value from the other side of the Stream (unlike zip which pushes through only when both sides of the Stream have provided their next values).

Superseded by https://github.com/aol/cyclops-react/issues/501


Inconsistent behaviour between StringUtils.isBlank and identical method in our own code

We're using v0.9.1.
As part of a greater effort to stomp out Commons Lang in our codebase, we had implemented a replacement for StringUtils.isBlank:
public class BadStringUtils {
    @Deprecated
    public static boolean isBlank(@Nullable CharSequence string) {
        if (string == null) {
            return true;
        }

        int length = string.length();
        if (length == 0) {
            return true;
        }

        for (int i = 0; i < length; i++) {
            if (!Character.isWhitespace(string.charAt(i))) {
                return false;
            }
        }

        return true;
    }

The next step was to go through the code and replace all usage of Commons Lang3's StringUtils.isBlank with ours.
So we had this one:
public class Guid {
    // ...

    @Nullable
    public static Guid parseOrNull(@Nullable String value) {
        if (!StringUtils.isBlank(value) && (value.length() == 36 || value.length() == 32)) {
            try {
                return fromString(value);
            } catch (IllegalArgumentException e) {
                // value wasn't a guid, fall through
            }
        }
        return null;
    }
}

And I just changed it to this:
public class Guid {
    // ...

    @Nullable
    public static Guid parseOrNull(@Nullable String value) {
        if (!BadStringUtils.isBlank(value) && (value.length() == 36 || value.length() == 32)) {
            try {
                return fromString(value);
            } catch (IllegalArgumentException e) {
                // value wasn't a guid, fall through
            }
        }
        return null;
    }
}

And suddenly the NullAway check fails, even though as far as I can tell, the semantics have not.
I looked at StringUtils.isBlank to see whether it had annotations or something documenting the behaviour if null was passed in but I didn't see anything, so I feel like I just stepped on a land-mine.
Whatever is going on with StringUtils.isBlank, is there perhaps a way to annotate our method to get the same treatment?

Thanks for the report!  I agree this is a bit confusing.  We wrote a built-in library model for StringUtils.isBlank indicating that when the argument is null the result will be true:
https://github.com/uber/NullAway/blob/bf11c2045b82bb96c4f8fe7cc7f007e1a2f95a64/nullaway/src/main/java/com/uber/nullaway/handlers/LibraryModelsHandler.java#L498-L502
You can write an annotation @Contract("null -> true") on BadStringUtils.isBlank to get the same effect.  Docs here:
https://github.com/uber/NullAway/wiki/Supported-Annotations#contracts
Does that solve the problem for you?

Looks like this will work for us.
I had hoped that NullAway was looking inside StringUtils.isEmpty to see the null return behaviour, so it was surprising when the same code didn't work when it was just living in a different package, but I guess that wasn't the case.

Yeah part of the reason NullAway is relatively fast is that it (mostly) doesn't do analysis across procedure boundaries.
Will close this out but please re-open if things don't work.


Floating point support for gauges?

I note that our Gauge() function takes an int64 value, and thus cannot represent floating-point values, and I have an application which uses floating point values to represent a fraction between 0 and 1. I also note that at least one other library takes a float64 for the gauges value (see: https://github.com/DataDog/datadog-go/blob/v5.0.2/statsd/statsd.go#L504). So, I'm curious if you would consider the addition of a new function with the following signature, or the like:
func (s *Client) FloatGauge(stat string, value float32, rate float32, tags ...Tag) error
If so, I might be able to PR it.

Oops, i just realized you have a closed issue for this already: https://github.com/cactus/go-statsd-client/issues/36
I will comment there instead.

@billygout
I added support for this to master:HEAD. Let me know if this is fit for your needs.
I'll likely tag a release in the new year if I don't hear of any breakages/issues.
Note: I added the new Floaty methods to a new interface, so as not to break existing usages... as well as to highlight that some servers may not support this extended feature-set.
Happy Holidays!


cloning fails due to invalid path

Hi, I tried to clone the repository with git clone --recursive https://github.com/dcaribou/transfermarkt-datasets.git, but I get the following message:
Cloning into 'transfermarkt-datasets'...
remote: Enumerating objects: 1467, done.
remote: Counting objects: 100% (605/605), done.
remote: Compressing objects: 100% (303/303), done.
remote: Total 1467 (delta 354), reused 461 (delta 288), pack-reused 862
Receiving objects: 100% (1467/1467), 2.94 MiB | 10.73 MiB/s, done.
Resolving deltas: 100% (697/697), done.
error: invalid path 'streamlit/pages/03_📈_analysis:_player_value.py'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Even though is says clone succeeded, the transfermarkt-datasets folder is actually empty apart from the .git folder.
Any idea what could be the issue here? Any help would be much appreciated!

Hi @lukas-j94. May I ask on which system are you? Mac, Windows, Linux...

I am on Windows

I think it has to do with the special character in the file name streamlit/pages/03_📈_analysis:_player_value.py. Can you try running
git config core.protectNTFS false

Source here

it worked now, thanks! I followed those steps which are mentioned in the source you provided:

Clone the Git repository locally;
'cd' into the local Git repository folder that has just been cloned;
Run git reset
Run git config core.protectNTFS false
Run git checkout (just git checkout, no * at the end of command).

I have set up the environment and tried to run python 1_acquire.py local --asset all --season 2022, but it gives this error log:
Unhandled error in Deferred:
2022-09-15 16:43:39 [twisted] CRITICAL: Unhandled error in Deferred:
Traceback (most recent call last):
File "C:\Users\lukas.jansen\PycharmProjects\transfermarkt-datasets\1_acquire.py", line 188, in
arguments.func(**vars(arguments))
File "C:\Users\lukas.jansen\PycharmProjects\transfermarkt-datasets\1_acquire.py", line 123, in acquire_on_local
crawl()
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\twisted\internet\defer.py", line 1905, in unwindGenerator
return _cancellableInlineCallbacks(gen)
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\twisted\internet\defer.py", line 1815, in _cancellableInlineCallbacks
_inlineCallbacks(None, gen, status)
---  ---
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\twisted\internet\defer.py", line 1660, in _inlineCallbacks
result = current_context.run(gen.send, result)
File "C:\Users\lukas.jansen\PycharmProjects\transfermarkt-datasets\1_acquire.py", line 120, in crawl
yield runner.crawl(asset_obj.name, parents=asset_obj.parent.file_full_path)
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\scrapy\crawler.py", line 204, in crawl
crawler = self.create_crawler(crawler_or_spidercls)
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\scrapy\crawler.py", line 237, in create_crawler
return self._create_crawler(crawler_or_spidercls)
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\scrapy\crawler.py", line 241, in _create_crawler
spidercls = self.spider_loader.load(spidercls)
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\scrapy\spiderloader.py", line 77, in load
raise KeyError(f"Spider not found: {spider_name}")
builtins.KeyError: 'Spider not found: games'
result = current_context.run(gen.send, result)
File "C:\Users\lukas.jansen\PycharmProjects\transfermarkt-datasets\1_acquire.py", line 120, in crawl
yield runner.crawl(asset_obj.name, parents=asset_obj.parent.file_full_path)
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\scrapy\crawler.py", line 204, in crawl
crawler = self.create_crawler(crawler_or_spidercls)
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\scrapy\crawler.py", line 237, in create_crawler
return self._create_crawler(crawler_or_spidercls)
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\scrapy\crawler.py", line 241, in _create_crawler
spidercls = self.spider_loader.load(spidercls)
File "C:\Users\lukas.jansen\Anaconda3\envs\transfermarkt-datasets\lib\site-packages\scrapy\spiderloader.py", line 77, in load
raise KeyError(f"Spider not found: {spider_name}")
KeyError: 'Spider not found: games'

Yes, I used the --recursive option, but for some reason it did not work so I cloned the transfermarkt-scraper manually inside the transfermarkt-scraper folder. Then I had another folder called transfermarkt-scraper inside the transfermarkt-scraper folder. It seems like that caused the issue, I now moved the files out of that lower-level folder and it all works.
Thanks a lot for your support, much appreciated!

No worries @lukas-j94, happy to help


Fixes in the timer initialization

This pull request fixes a couple of issues with the timer initialization which led to undesired behaviours. The addressed issues are described bellow.

Year and day counter were been initialized to 1.

This caused the countdown to take the wrong values, as for two dates with just an hour of difference the timer would show there was 1 day and 1 hour left.

The countdown wasn't initialized when the application started.

The componentDidMount handler of the Timer component didn't update the state with the actual countdown until setInterval triggered the function it received as parameter for the first time. This meant there was a delay of one second from the time the component was mounted to the time it updated its state with the countdown values.
When the application launched, the user could see all of the values in the counter set to zero and then suddenly increasing after a second.

The year data was calculated, but never displayed.

Although this was not really a bug, the component state was keeping a year property which was never been used. I modified the component view so the year count is also displayed when necessary.

This pull request fixes a couple of issues with the timer initialization which led to undesired behaviours. The addressed issues are described bellow.

Year and day counter were been initialized to 1.

This caused the countdown to take the wrong values, as for two dates with just an hour of difference the timer would show there was 1 day and 1 hour left.

The countdown wasn't initialized when the application started.

The componentDidMount handler of the Timer component didn't update the state with the actual countdown until setInterval triggered the function it received as parameter for the first time. This meant there was a delay of one second from the time the component was mounted to the time it updated its state with the countdown values.
When the application launched, the user could see all of the values in the counter set to zero and then suddenly increasing after a second.

The year data was calculated, but never displayed.

Although this was not really a bug, the component state was keeping a year property which was never been used. I modified the component view so the year count is also displayed when necessary.

Hi @LonelyPrincess, thank you for your effort.  can you also help to fix the conflict?


Close Button and Minimize Button and Maximize Button moved into left side

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

VS Code Version: 1.71.1 (user setup)

OS Version: Windows_NT x64 10.0.19044

The occurrence of this problem causes the file, Edit, and Selection options to be hidden.

/duplicate see https://github.com/microsoft/vscode/issues/159813#issuecomment-1234863008

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


Readme fix

We removed the depreciated actions in v0.3.0 but forgot to drop them from the README, apparently.
Also simplified pinning note at the top of the README

Not that it matters since the section has been deleted, but looks like the README said "depreciated" instead of "deprecated" :)

Not that it matters since the section has been deleted, but looks like the README said "depreciated" instead of "deprecated" :)

That's because my brain cannot keep those two separated! haha. I just can't with those words :man_facepalming:


Non-blocking client API

This PR implements a non-blocking client API.
As pointed out in #152, non-blocking calls increase the flexibility in some use cases. The PR simplifies the proposal in #152.
The new API query_async allows users to call MII service in an asynchronous manner.
The return value is a future-like object. The user can get the result by calling `result()'.
future = generator.query_async(
            {"query": query}, do_sample=False, max_new_tokens=30)
print(future.result())

This PR implements a non-blocking client API. As pointed out in #152, non-blocking calls increase the flexibility in some use cases. The PR simplifies the proposal in #152.
The new API query_async allows users to call MII service in an asynchronous manner. The return value is a future-like object. The user can get the result by calling `result()'.
future = generator.query_async(
            {"query": query}, do_sample=False, max_new_tokens=30)
print(future.result())

query_async works well, but if query_async is called again while the event loop is running(previous call is on progress), the following error occurs.
File "/home/chang/AI/llm/DeepSpeed-MII/mii/client.py", line 60, in result
return self.asyncio_loop.run_until_complete(self.coro)
File "uvloop/loop.pyx", line 1511, in uvloop.loop.Loop.run_until_complete
File "uvloop/loop.pyx", line 1504, in uvloop.loop.Loop.run_until_complete
File "uvloop/loop.pyx", line 1377, in uvloop.loop.Loop.run_forever
File "uvloop/loop.pyx", line 518, in uvloop.loop.Loop._run
RuntimeError: this event loop is already running.

@lcw99 Thank you for trying this PR!
Looks like you are using uvloop, but we may not be able to support custom event loops.
Can you try the built-in python event loop?
I tested the non-blocking calls with this code.
generator = mii.mii_query_handle("bloom560m_deployment")
future_list = [generator.query_async(
    {"query": query}, do_sample=False, max_new_tokens=30) for _ in range(5)]
for future in future_list:
    print(future.result())

@lcw99 Thank you for trying this PR!
Looks like you are using uvloop, but we may not be able to support custom event loops. Can you try the built-in python event loop? I tested the non-blocking calls with this code.
generator = mii.mii_query_handle("bloom560m_deployment")
future_list = [generator.query_async(
    {"query": query}, do_sample=False, max_new_tokens=30) for _ in range(5)]
for future in future_list:
    print(future.result())

My situation is to call a generator in a telegram bot, but the bot by its nature calls the generator in a different thread when a message comes in. To solve this problem, I think the generator should respond to the multi-threaded call situation.

@lcw99 I implemented a different approach using multithreads. Can you try this PR?
The following is an example of API calls from multiple threads. Note that a client must be created in the main thread because grpc uses the event loop in the current thread.
import threading
import mii

def _run_parallel(client, i):
    print(f"thread {i} started.")

    query = ["Seattle is", "Bellevue is"]
    for _ in range(5):
        result = client.query(
            {"query": query}, do_sample=False, max_new_tokens=30)
        print(result)
    print(f"thread {i} finished.")

def main():
    deployment_name = "bloom560m_deployment"
    client = mii.mii_query_handle(deployment_name)
    threads = [threading.Thread(target=_run_parallel, args=(client, i)) for i in range(3)]
    for t in threads:
        t.start()
    for t in threads:
        t.join()

if __name__ == "__main__":
    main()


CloudFormation : some unit tests are failing

moto version:
1.3.15 (spulec/moto: master)
module:
mock_cloudformation
action:
nosetests
expected behavior:
Unit tests are OK.
actual behavior:
Using nosetests:
Ran 161 tests in 10.656s

FAILED (errors=4)

Using pytest:
FAILED test_cloudformation_stack_crud_boto3.py::test_create_stack_set_from_s3_url - botocore.exceptions.ClientError: An error occurred (IllegalLocationConstraintException) when calling the CreateBucket operation: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
FAILED test_cloudformation_stack_crud_boto3.py::test_create_stack_from_s3_url - botocore.exceptions.ClientError: An error occurred (IllegalLocationConstraintException) when calling the CreateBucket operation: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
FAILED test_cloudformation_stack_crud_boto3.py::test_update_stack_from_s3_url - botocore.exceptions.ClientError: An error occurred (IllegalLocationConstraintException) when calling the CreateBucket operation: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
FAILED test_cloudformation_stack_crud_boto3.py::test_create_change_set_from_s3_url - botocore.exceptions.ClientError: An error occurred (IllegalLocationConstraintException) when calling the CreateBucket operation: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
FAILED test_validate.py::test_boto3_json_invalid_missing_resource - AttributeError: 'str' object has no attribute 'should'
FAILED test_validate.py::test_boto3_yaml_invalid_missing_resource - AttributeError: 'str' object has no attribute 'should'

Hi @jeremietharaud, the bottom 2 tests indicate that the 'sure'-package isn't installed.
What are the full messages for the top 4 tests?

Yep, I pasted the full error message and opened a PR to fix that.


Dapr TestContainer

What does this PR do?
Introduce a TestContainer for Dapr https://dapr.io/
Why is it important?
Dapr users can benefit from a Dapr-as-a-TestContainer for use in integration testing.
Related issues

Hey @HofmeisterAn  I've got a bit stuck, and I would appreciate a pointer.
So, my dapr container can't reach the port of another container, and I'm not sure why.
the dapr container depends on being able to reach the nginx container port (58768), but it is getting blocked somewhere. My guess is its a Docker network issue, but unsure how to verify this.

I can see dapr is connecting on the correct port, with this log :

2023-04-01 22:33:50 time="2023-04-01T21:33:50.252819841Z" level=info msg="application protocol: http. waiting on port 58768.  This will block until the app is listening on that port." app_id=testicorns instance=be392285d04b scope=dapr.runtime type=log ver=1.10.4

I can curl against the nginx port fine from my host machine, this is why i think its a networking issue between the dapr container and the nginx container.
Dapr will be calling the nginx host via <IP_ADDRESS>:58768 as this code implies
I've included both nginx container and dapr container on the same network, and used the GetMappedPublicPort which I assume is configured correctly https://github.com/olitomlinson/testcontainers-dotnet-dapr/blob/af41f6d7325638a603671bead36f6cff0eac16d1/tests/Testcontainers.Dapr.Tests/DaprContainerTest.cs#L50
Any pointers on how I can find out why the nginx port can't be reached would be much appreciated, as this is blocking my progress.
Many thanks!

Dapr will be calling the nginx container via <IP_ADDRESS>:58768 as this code implies

Is this really used by daprd? If daprd waits until an HTTP port opens on <IP_ADDRESS> it cannot work. Nginx is running in a different container. Usually, container-to-container communication relies on the network alias (or hostname of the container). Considering my changes:
https://github.com/testcontainers/testcontainers-dotnet/blob/bf4bcbb32758d90113ea76087c80088d0e8815f0/tests/Testcontainers.Dapr.Tests/DaprContainerTest.cs#L9-L30
_daprContainer can access nginxContainer via http://nginx:80.

Usually, container-to-container communication relies on the network alias (or hostname of the container)

Usually this is true, however dapr is largely used in kubernetes, the app & dapr sidecar both reside in the same pod, so communicating via localhost:<port> works fine.
But agree, this use-case is currently blocked because daprd will only ever call out to an App via <IP_ADDRESS>.
https://github.com/dapr/dapr/issues/6177

Your PR hasn't seen any recent activities, I will close it. Please, do not hesitate to reopen it again if you continue to work on it.


How do I edit the home template?

While using the default theme, I had a lot of text beneath the "Features" section. After activating this theme, none of that text is being rendered, even though it's in the file. Your template uses only the front-matter, which makes no provision for detailing what project does before pressing Get Started or whatever
In addition, for some reason, my logo is surrounded by a large amount of white space. Is there a way to control this such that logo, tagline, its button and features section fit at first glance of that landing page?

You can fully custom your home page by:
---
layout: YourLayout
---

Yea, doing that eventually worked. I don't recall what exactly I changed but it was throwing errors initially, about missing components. I think the layout pattern only worked after ejecting default theme and deleting that ejection
The only issue I'm currently facing is not knowing how the header components (search, nav, dark mode, logo, right buttons) are injected into the home component. So I manually pasted <Navbar/> and they appeared, but the left menu drawer doesn't work on mobile. The icon is just there. I compared it to the one on your site and that one clicks on mobile. Would you like to see my repository or can you guess what the problem is


The static file is not uploaded.

The static file is included in the git ignore, remove from there and upload the file.

Static Files added..


add mod file

go modules will be enabled in 1.13
after merge it would be nice if you would tag this repo: e.g. v1.0.0

this will allow consumers something more consistent and readable than v0.0.0-20150329023125-a5fe2436ffcb

Thanks, I pushed a v1.0.0 tag as well.

my pleasure


Alert notifications for update bot

Integrate alert notifications into update bot
Fixes #195
Goal

receive emails in case of failure during update routine
use SAP BTP alert notification for that

Overview of changes

add alert notification deployment file (already prepared for HELM values)
extend functionality of simple alert notification examples to change email header, alert severity and category
add async/await functionality to sendAlert and axios call to finish request before program is ended in catch blocks
call alert notification function from catch blocks inside update bot
update required packages for update bot
update authors of update bot
change restartPolicy of update-bot to never to avoid unnecessary restarts and emails

Possible extensions

Use slack messages instead of emails

The functionality was tested and works as desired. Please review the changes and approve or comment.

Thanks for the suggestion! It is not possible to move the variable to the alert-notif deployment file, as it is used in the update-bot container. But I change the variable to the environment there, so it should be possible to manipulate the value via Helm 😄


Support git format-patch "base tree information block"

I have just learned about this nice git format-patch feature:
https://git-scm.com/docs/git-format-patch#_base_tree_information
It would be very useful to support it on Patchew as an alternative to the "Based-on:" line.

Thanks for the idea.
It seems base-commit: lines can be generated with git-format-patch, but prerequisite-patch-id: lines must be written manually. For the latter, I assume using message-ids are easier: you don't need to feed the patch to git patch-id --stable command to get the hash.
Anyway we can enhance Patchew like you suggested. The most important improvement is support multiple pre-requisites.

For the latter, I assume using message-ids are easier: you don't need to feed the patch to git patch-id --stable command to get the hash.

I'm still confused by the documentation, but it looks like prerequisite-patch-id is generated if using --base=master -5 some-branch, but not if using --base=master another-branch..some-branch. This doesn't seem to match the documentation.
To me, the most interesting feature is the ability to specify a prerequisite patch without making a manual lookup for message-id on mailing list archives, as prerequisite-patch-id can be calculated automatically using only the git tree as input.

Yes you are right. That is handy!

I'm still confused by the documentation, but it looks like prerequisite-patch-id is generated if using --base=master -5 some-branch, but not if using --base=master another-branch..some-branch. This doesn't seem to match the documentation.

I've asked about this on the git mailing list<EMAIL_ADDRESS>

As a first step for this, we need to add patch ids to the database. Then the applier can look up the patches by id, and cherry-pick them before applying the series.
base-commit on the other hand is easy to implement.


MTC tutorial not working on main

Description
When I try to run the MTC demos it fails. Error seems to be related to an rclcpp bug :see_no_evil:
Your environment

ROS Distro: [Rolling]
OS Version: Ubuntu 22.04
Source or Binary build? Source
If source, which git commit or tag? main https://github.com/ros-planning/moveit2_tutorials/commit/71ee840a50794bbfd35e5b63e80fc633d89840ed

Steps to reproduce
Terminal 1
ros2 launch moveit_task_constructor_demo demo.launch.py

ros2 run moveit_task_constructor_demo cartesian

Expected behaviour
Demo starts
Backtrace or Console output
^^/ws_moveit_tutorials >>> ros2 run moveit_task_constructor_demo cartesian                                                                                (250) 12:04:36
^C[INFO] [1701342365.008491532] [rclcpp]: signal_handler(signum=2)
^C[INFO] [1701342365.848192500] [rclcpp]: signal_handler(signum=2)
^C[INFO] [1701342366.056476257] [rclcpp]: signal_handler(signum=2)
^C[INFO] [1701342366.665401331] [rclcpp]: signal_handler(signum=2)
[ERROR] [1701342374.386122241] [mtc_tutorial]: Could not find parameter robot_description and did not receive robot_description via std_msgs::msg::String subscription within 10.000000 seconds.
terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
  what():  failed to create guard condition: the given context is not valid, either rcl_init() was not called or rcl_shutdown() was called., at ./src/rcl/guard_condition.c:67
Stack trace (most recent call last):
#23   Object "", at 0xffffffffffffffff, in
#22   Object "/home/sebastian/ws_moveit_tutorials/install/moveit_task_constructor_demo/lib/moveit_task_constructor_demo/cartesian", at 0x564135063904, in _start
#21   Source "../csu/libc-start.c", line 392, in __libc_start_main_impl [0x7f273bc29e3f]
#20   Source "../sysdeps/nptl/libc_start_call_main.h", line 58, in __libc_start_call_main [0x7f273bc29d8f]
#19   Object "/home/sebastian/ws_moveit_tutorials/install/moveit_task_constructor_demo/lib/moveit_task_constructor_demo/cartesian", at 0x5641350635c4, in main
#18   Object "/home/sebastian/ws_moveit_tutorials/install/moveit_task_constructor_demo/lib/moveit_task_constructor_demo/cartesian", at 0x5641350641d3, in createTask(std::shared_ptr<rclcpp::Node> const&)
#17   Object "/home/sebastian/ws_moveit_tutorials/install/moveit_task_constructor_core/lib/libmoveit_task_constructor_core.so", at 0x7f273caa2fce, in moveit::task_constructor::Task::loadRobotModel(std::shared_ptr<rclcpp::Node> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
#16   Object "/home/sebastian/ws_moveit_tutorials/install/moveit_ros_planning/lib/libmoveit_robot_model_loader.so.2.8.0", at 0x7f273c695205, in robot_model_loader::RobotModelLoader::RobotModelLoader(std::shared_ptr<rclcpp::Node> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)
#15   Object "/home/sebastian/ws_moveit_tutorials/install/moveit_ros_planning/lib/libmoveit_robot_model_loader.so.2.8.0", at 0x7f273c69206b, in robot_model_loader::RobotModelLoader::configure(robot_model_loader::RobotModelLoader::Options const&)
#14   Object "/home/sebastian/ws_moveit_tutorials/install/moveit_ros_planning/lib/libmoveit_rdf_loader.so.2.8.0", at 0x7f273b6a51b3, in rdf_loader::RDFLoader::RDFLoader(std::shared_ptr<rclcpp::Node> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, double)
#13   Object "/home/sebastian/ws_moveit_tutorials/install/moveit_ros_planning/lib/libmoveit_rdf_loader.so.2.8.0", at 0x7f273b6adc3f, in rdf_loader::SynchronizedStringParameter::loadInitialValue(std::shared_ptr<rclcpp::Node> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)> const&, bool, double)
#12   Object "/home/sebastian/ws_moveit_tutorials/install/moveit_ros_planning/lib/libmoveit_rdf_loader.so.2.8.0", at 0x7f273b6ac4fc, in rdf_loader::SynchronizedStringParameter::waitForMessage(rclcpp::Duration const&)
#11   Object "/opt/ros/rolling/lib/librclcpp.so", at 0x7f273c532487, in rclcpp::Node::Node(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rclcpp::NodeOptions const&)
#10   Object "/opt/ros/rolling/lib/librclcpp.so", at 0x7f273c531017, in rclcpp::Node::Node(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rclcpp::NodeOptions const&)
#9    Object "/opt/ros/rolling/lib/librclcpp.so", at 0x7f273c530951, in rclcpp::node_interfaces::NodeBase::NodeBase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::shared_ptr<rclcpp::Context>, rcl_node_options_s const&, bool, bool, std::shared_ptr<rclcpp::CallbackGroup>)
#8    Object "/opt/ros/rolling/lib/librclcpp.so", at 0x7f273c527f6d, in rclcpp::GuardCondition::GuardCondition(std::shared_ptr<rclcpp::Context>, rcl_guard_condition_options_s)
#7    Object "/opt/ros/rolling/lib/librclcpp.so", at 0x7f273c4fe6d8, in rclcpp::exceptions::throw_from_rcl_error(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rcutils_error_state_s const*, void (*)())
#6    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7f273c0ae1fd, in std::rethrow_exception(std::__exception_ptr::exception_ptr)
#5    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7f273c0ae276, in std::terminate()
#4    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7f273c0ae20b, in
#3    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7f273c0a2b9d, in
#2    Source "./stdlib/abort.c", line 79, in abort [0x7f273bc287f2]
#1    Source "../sysdeps/posix/raise.c", line 26, in raise [0x7f273bc42475]
#0  | Source "./nptl/pthread_kill.c", line 89, in __pthread_kill_internal
    | Source "./nptl/pthread_kill.c", line 78, in __pthread_kill_implementation
      Source "./nptl/pthread_kill.c", line 44, in __pthread_kill [0x7f273bc969fc]
Aborted (Signal sent by tkill()<PHONE_NUMBER>)
[ros2run]: Aborted

I believe this is a duplicate of:
https://github.com/ros2/rclcpp/issues/2163
I will to reproduce and test with this open PR https://github.com/ros2/rclcpp/pull/2142 and see if that fixes it

I am seeing a different error when I run the same
abishalini@abishalini:~/ws_moveit2$ ros2 run moveit_task_constructor_demo cartesian
[ERROR] [1701724929.798188400] [mtc_tutorial]: Could not find parameter robot_description_semantic and did not receive robot_description_semantic via std_msgs::msg::String subscription within 10.000000 seconds.
Error:   Could not parse the SRDF XML File. Error=XML_ERROR_EMPTY_DOCUMENT ErrorID=13 (0xd) Line number=0
         at line 715 in ./src/model.cpp
[ERROR] [1701724929.801930529] [moveit_3110922876.rdf_loader]: Unable to parse SRDF
[ERROR] [1701724929.802134735] [moveit_task_constructor.task]: Cartesian Path: received invalid robot model
[ERROR] [1701724929.802148746] [moveit_exceptions.exceptions]: Task failed to construct RobotModel
Exception thrown.
terminate called after throwing an instance of 'moveit::Exception'
  what():  Task failed to construct RobotModel
Stack trace (most recent call last):
#13   Object "", at 0xffffffffffffffff, in
#12   Object "/home/abishalini/ws_moveit2/install/moveit_task_constructor_demo/lib/moveit_task_constructor_demo/cartesian", at 0x55791a5238f4, in _start
#11   Source "../csu/libc-start.c", line 392, in __libc_start_main_impl [0x7fe7d6e29e3f]
#10   Source "../sysdeps/nptl/libc_start_call_main.h", line 58, in __libc_start_call_main [0x7fe7d6e29d8f]
#9    Object "/home/abishalini/ws_moveit2/install/moveit_task_constructor_demo/lib/moveit_task_constructor_demo/cartesian", at 0x55791a5235b4, in main
#8    Object "/home/abishalini/ws_moveit2/install/moveit_task_constructor_demo/lib/moveit_task_constructor_demo/cartesian", at 0x55791a5241c3, in createTask(std::shared_ptr<rclcpp::Node> const&)
#7    Object "/home/abishalini/ws_moveit2/install/moveit_task_constructor_core/lib/libmoveit_task_constructor_core.so", at 0x7fe7d7a94e78, in moveit::task_constructor::Task::loadRobotModel(std::shared_ptr<rclcpp::Node> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) [clone .cold]
#6    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7fe7d72ae4d7, in __cxa_throw
#5    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7fe7d72ae276, in std::terminate()
#4    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7fe7d72ae20b, in
#3    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7fe7d72a2b9d, in
#2    Source "./stdlib/abort.c", line 79, in abort [0x7fe7d6e287f2]
#1    Source "../sysdeps/posix/raise.c", line 26, in raise [0x7fe7d6e42475]
#0  | Source "./nptl/pthread_kill.c", line 89, in __pthread_kill_internal
    | Source "./nptl/pthread_kill.c", line 78, in __pthread_kill_implementation
      Source "./nptl/pthread_kill.c", line 44, in __pthread_kill [0x7fe7d6e969fc]
Aborted (Signal sent by tkill() 3753511 1000)
[ros2run]: Aborted

yes not a duplicate the error @sjahr posted was after he pressed Ctrl+C I assume he copied the wrong log lines.
@Abishalini are you seein that same error every time?

That's a strange error, as the acceleration limits ARE in the config.
https://github.com/ros-planning/moveit_resources/blob/ros2/panda_moveit_config/config/joint_limits.yaml#L9
I think those launch files in the MTC repo need to also include
moveit_config.joint_limits

https://github.com/ros-planning/moveit_task_constructor/blob/ros2/demo/launch/cartesian.launch.py#L18-L20
... and likely same for other launch files

I made another mistake of running the cartesian executable instead of using the launch file. So the cartesian node was missing parameters causing the error [ERROR] [1701793271.897379243] [moveit_robot_state.robot_state]: No kinematics solver instantiated for group 'panda_arm'

@sjahr  and @moriarty
I got this working for me after https://github.com/ros-planning/moveit2_tutorials/pull/832.
Let me know if you are still able to reproduce the segfault.

The Pick and Place demo is broken. Running ros2 launch moveit2_tutorials mtc_demo.launch.py and ros2 launch moveit_task_constructor_demo pickplace.launch.py produces the following segfault
It looks like it's coming from child loggers?
abishalini@abishalini:~/ws_moveit2$ ros2 launch moveit_task_constructor_demo pickplace.launch.py
[INFO] [launch]: All log files can be found below /home/abishalini/.ros/log/2023-12-05-14-08-05-574440-abishalini-629405
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [pick_place_demo-1]: process started with pid [629408]
[pick_place_demo-1] [INFO] [1701810486.846157908] [moveit_task_constructor_demo]: Initializing task pipeline
[pick_place_demo-1] terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
[pick_place_demo-1]   what():  failed to call rcl_logging_rosout_add_sublogger: The entry of logger 'planning_scene_interface_94706073699856' not exist., at ./src/rcl/logging_rosout.c:450
[pick_place_demo-1] Stack trace (most recent call last):
[pick_place_demo-1] #17   Object "", at 0xffffffffffffffff, in
[pick_place_demo-1] #16   Object "/home/abishalini/ws_moveit2/install/moveit_task_constructor_demo/lib/moveit_task_constructor_demo/pick_place_demo", at 0x5622783ae9e4, in _start
[pick_place_demo-1] #15   Source "../csu/libc-start.c", line 392, in __libc_start_main_impl [0x7f5a2b429e3f]
[pick_place_demo-1] #14   Source "../sysdeps/nptl/libc_start_call_main.h", line 58, in __libc_start_call_main [0x7f5a2b429d8f]
[pick_place_demo-1] #13   Object "/home/abishalini/ws_moveit2/install/moveit_task_constructor_demo/lib/moveit_task_constructor_demo/pick_place_demo", at 0x5622783ae16b, in main
[pick_place_demo-1] #12   Object "/home/abishalini/ws_moveit2/install/moveit_task_constructor_demo/lib/libmoveit_task_constructor_demo_pick_place_task.so", at 0x7f5a2bebdd4d, in moveit_task_constructor_demo::PickPlaceTask::init(std::shared_ptr<rclcpp::Node> const&, pick_place_task_demo::Params const&)
[pick_place_demo-1] #11   Object "/home/abishalini/ws_moveit2/install/moveit_task_constructor_core/lib/libmoveit_task_constructor_core.so", at 0x7f5a2b7a40ce, in moveit::task_constructor::Task::loadRobotModel(std::shared_ptr<rclcpp::Node> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
[pick_place_demo-1] #10   Object "/home/abishalini/ws_moveit2/install/moveit_ros_planning/lib/libmoveit_robot_model_loader.so.2.8.0", at 0x7f5a2ad53169, in robot_model_loader::RobotModelLoader::RobotModelLoader(std::shared_ptr<rclcpp::Node> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)
[pick_place_demo-1] #9    Object "/home/abishalini/ws_moveit2/install/moveit_core/lib/libmoveit_utils.so.2.8.0", at 0x7f5a2b0a1974, in moveit::makeChildLogger(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
[pick_place_demo-1] #8    Object "/opt/ros/rolling/lib/librclcpp.so", at 0x7f5a2bd26afc, in rclcpp::Logger::get_child(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
[pick_place_demo-1] #7    Object "/opt/ros/rolling/lib/librclcpp.so", at 0x7f5a2bcfd7b8, in rclcpp::exceptions::throw_from_rcl_error(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rcutils_error_state_s const*, void (*)())
[pick_place_demo-1] #6    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7f5a2b8ae1fd, in std::rethrow_exception(std::__exception_ptr::exception_ptr)
[pick_place_demo-1] #5    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7f5a2b8ae276, in std::terminate()
[pick_place_demo-1] #4    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7f5a2b8ae20b, in
[pick_place_demo-1] #3    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7f5a2b8a2b9d, in
[pick_place_demo-1] #2    Source "./stdlib/abort.c", line 79, in abort [0x7f5a2b4287f2]
[pick_place_demo-1] #1    Source "../sysdeps/posix/raise.c", line 26, in raise [0x7f5a2b442475]
[pick_place_demo-1] #0  | Source "./nptl/pthread_kill.c", line 89, in __pthread_kill_internal
[pick_place_demo-1]     | Source "./nptl/pthread_kill.c", line 78, in __pthread_kill_implementation
[pick_place_demo-1]       Source "./nptl/pthread_kill.c", line 44, in __pthread_kill [0x7f5a2b4969fc]
[pick_place_demo-1] Aborted (Signal sent by tkill()<PHONE_NUMBER>)

Just set up a fresh build on a recently updated rolling -- both work for me with @Abishalini's #832 suggestions.


github-markup 1.3.3 has expired.

'github-markup' 1.3.3 has expired，because 1.3.3's dependency gem 'asciidoctor'  version is  0.1.4. It was more than two years past the expiration. please upgrade 'github-markup' to 1.4.0.
see this link:
https://github.com/github/markup/pull/427
Thanks, If need any help, I'll glad to help.

thanks.

No problem. :+1:


Update csse.py to have merged US-states in csse.csv

Since csse separated the US and global, we should merge the global and US_states into one table so that regions and the US are somewhat in sync.

The task is to complete https://github.com/epidemics/epimodel/blob/master/epimodel/imports/johns_hopkins.py to also include US per-state data from https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series
It already imports the global data.
US data:

Does not have Recovered (so naturally use NaNs for it and Active)
Has a much finer division - for now sum it up by states (they are already in our region DB and are searchable; see e.g. how the import handles other country provinces).

Fixed by Euan, thanks!


[Feature] Add Unit Calculator

Description
Aims to empower users with the ability to convert various units of measurement such as length, weight, volume, and more.
User Interface:

dropdown menus or input fields for selecting the input and output units.
autocomplete or predictive text features to assist users in selecting units efficiently.
Organize units into categories such as length, weight, volume, temperature, etc., to facilitate easy navigation and selection for users

Screenshots
No response
Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[x] I am a GSSOC'24 contributor.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

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

Description
the aim is to add a feature to help the user to convert the various units easily on this website .
Screenshots
No response
Checklist
I have checked the existing issues.
I follow Contributing Guidelines of this project.
I am a IWOC'24 contributor.
I am a JWOC'24 contributor.
I am a SWOC'24 contributor.
Code of Conduct
I agree to follow this project's "Code of Conduct".

Go ahead @m3kvt


Appliance 9.1.0

go live after I tested at least one appliance download

tested ova. looks good, except it picked an old APCu 4.0.2 :-(

Please, could you fix an issue with links on download page?
Every time I was trying to download OVA or any other appliance files I got:
Not Found
The requested URL /community/production/vm/Ubuntu_14.04-owncloud-9.1.0-1.1-201607211103.ova.zip was not found on this server.
Thank you.

The correct version string is Ubuntu_14.04-owncloud-9.1.0-1.1-201608261246.ova.zip
... fixed the download page.
Thanks!


Wrong signature for folder_moved signal of FileSystemDock

Godot version
v4.0.beta2.official [f8745f2f7]
System information
Windows
Issue description
The signal folder_moved has the following signature:
folder_moved(String old_folder, String new_file)

when it should be
folder_moved(String old_folder, String new_folder)

(In addition #62354 points out, that the signal files_moved should in fact be named file_moved. Can be fixed together.)
Steps to reproduce
--
Minimal reproduction project
No response

(In addition https://github.com/godotengine/godot/issues/62354 points out, that the signal files_moved should in fact be named file_moved. Can be fixed together.)

Note that this would break compatibility (although it's minor breakage, so probably still ok)

Can you assign this issue to me and tell me more about it? Thanks :)

We don't assign issues outside of project maintainers, but you're very welcome to make a PR for this.
You'd have to rename the parameter of the folder_moved signal in editor/filesystem_dock.cpp as suggested, and possibly also rename files_moved (and its uses, search in all files) a suggested.

I'll work on it ASAP and open my PR! Thank you for the guidance


Class 'jamesiarmes\PhpEws\Client' not found

Version (e.g. 1.0.0 dev-master): installed with composer
Microsoft Exchange version: 2010 SP3 RU12
Description of problem: I'm trying to use an example PHP file but I get "Class 'jamesiarmes\PhpEws\Client' not found" error
Example request:
I'm using the find.php example.
I put the file in the home directory of the LAMP server (the same with the "vendor" directory)
Example response:
Nothing happens, in the Apache log file I see the "Class 'jamesiarmes\PhpEws\Client' not found" error
Additional details:

Did you adjust the require_once at the top of the example to point to your autoload file? The examples assume the vendor director is two parent folders up (i.e. the same directory as the the src directory).

Yes, I would have a file not found otherwise

Do I need to put my php file in a specific directory?

If useful I can add that the apache log says that the error is related to the "$version = Client::VERSION_2016;" command, no error is provided for the "use \jamesiarmes\PhpEws\Client;" command

use statements don't generate an error if the namespace can't be found. It sounds like composer isn't finding the library to include it. Can you include a copy of your composer.json?

Here it is:
{
  "name": "php-ews/php-ews",
  "description": "Library for communicating with Exchange Web Services.",
  "homepage": "http://jamesarmes.com/php-ews/",
  "license": "MIT",
  "authors": [
    {
      "name": "James Armes",
      "email"<EMAIL_ADDRESS>    }
  ],
  "minimum-stability": "dev",
  "prefer-stable": true,
  "require": {
    "php": ">=5.3.9",
    "ext-soap": "*",
    "jamesiarmes/php-ntlm": "~1.0.0"
  },
  "require-dev": {
    "mustache/mustache": "~2.0"
  },
  "config": {
    "bin-dir": "bin"
  },
  "autoload": {
    "psr-4": {
      "jamesiarmes\\PhpEws\\": "src/"
    }
  },
  "extra": {
    "branch-alias": {
      "dev-master": "1.0.x-dev"
    }
  }
}

I had the same issue.
Did you run the example from the command line, as mentioned in the README.md?
php find.php
If yes did you noticed a message:
PHP Fatal error:  Uncaught SoapFault exception: [Client] Call to undefined function jamesiarmes\PhpNtlm\curl_init() in /home/....
If yes then maybe you do not have the php-curl package installed?

In your issue summary, you said you had installed this library via composer, but your composer.json seems to indicate you're running the example directly from a checkout of php-ews. If this is the case, the examples should work as long the composer autoloader is being required properly. Have you tried running the example directly from it's home within the examples directory?

I have changed the Version of Outlook and I get another error:
[:error] [pid 18767] [client <IP_ADDRESS>:54851] PHP Fatal error:  Uncaught SoapFault exception: [a:ErrorSchemaValidation] The request failed schema validation: The required attribute 'Traversal' is missing. in /home/web/php-ews-master/src/Client.php:1631\nStack trace:\n#0 /home/web/php-ews-master/src/Client.php(1631): SoapClient->__call('FindItem', Array)\n#1 /home/web/php-ews-master/src/Client.php(1631): jamesiarmes\PhpNtlm\SoapClient->FindItem(Object(jamesiarmes\PhpEws\Request\FindItemType))\n#2 /home/web/php-ews-master/src/Client.php(670): jamesiarmes\PhpEws\Client->makeRequest('FindItem', Object(jamesiarmes\PhpEws\Request\FindItemType))\n#3 /home/web/connect_to_exchange.php(78): jamesiarmes\PhpEws\Client->FindItem(Object(jamesiarmes\PhpEws\Request\FindItemType))\n#4 {main}\n  thrown in /home/web/php-ews-master/src/Client.php on line 1631

composer will install all of the dependencies for your project, so you need to add php-ews to your composer.json like so: https://github.com/jamesiarmes/php-ews#installation. This is the preferred way of managing dependencies and installing this library as it allows you to keep them up to date and avoids the necessity of adding those dependencies to your project's source control. See https://getcomposer.org/ for more informaiton on using composer.
Have you altered the example you are trying to use? You said that you're using one of the find examples, but you didn't specify which one. You may want to have a look at #385, as it may be similar to the issue you are now having.

I've been reading over many this issue along with #385 because I've had almost the same exact problem.

I've installed php-ews using compser, and all necessary files seem to be in place.
I've had success using the /examples/user/category-list.php script.

Now when attempting to use the example script here found in /examples/event/find.php and after adding the traversal type I'm still getting:

Fatal error: Class 'ItemQueryTraversalType' not found in C:\xampp\htdocs\sdf\dev\vendor\php-ews\php-ews\examples\event\find.php on line 47

Is there something else that I'm missing here? I've followed everything I've found in these closed issues, and I'm not seeing anything I've missed.

I generate the "vendor" folder from composer, but the folder "PhpEws" in folder "jamesiarmes" does not generate, so I don't have any Client Object.
I used the same composer.json file which is in your files.
Would you mind helping me with this case?
Thanks


Get rid of unneeded static properties

In 200.0.0-beta, because we used the StateObject-for-map pattern, many view properties are created as type property, or gets their default value from a static method. This is not a memory efficient approach as many static properties will stay in the memory longer than desired.
Instead, we can move the static methods into the traditional initialization process, and make the properties instance properties instead of type properties. Most often seen with graphics and graphics overlays.
See "Using Computed Variable" in the contribution guideline for more details.

https://github.com/Esri/arcgis-maps-sdk-swift-samples/pull/182#discussion_r1205881553

https://github.com/Esri/arcgis-maps-sdk-swift-samples/pull/436#discussion_r1664876029


YETUS-858. Add support for Golang

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://builds.apache.org/job/yetus-github-multibranch/job/PR-57/1/console in case of problems.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
391
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-0
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ master Compile Tests _

0
mvndep
13
Maven dependency ordering for branch

+1
mvninstall
87
master passed

+1
javadoc
20
master passed

_ Patch Compile Tests _

0
mvndep
5
Maven dependency ordering for patch

+1
mvninstall
17
the patch passed

+1
hadolint
4
There were no new hadolint issues.

+1
markdownlint
1
There were no new markdownlint issues.

+1
shellcheck
7
There were no new shellcheck issues.

+1
shelldocs
3
There were no new shelldocs issues.

+1
whitespace
0
The patch has no whitespace issues.

+1
javadoc
15
the patch passed

_ Other Tests _

+1
unit
8
precommit in the patch passed.

+1
unit
5
asf-site-src in the patch passed.

+1
asflicense
14
The patch does not generate ASF License warnings.

620

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/yetus-github-multibranch/job/PR-57/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/yetus/pull/57

Optional Tests
dupname asflicense markdownlint shellcheck shelldocs javac javadoc unit hadolint

uname
Linux bdb353951315 4.4.0-143-generic #169~14.04.2-Ubuntu SMP Wed Feb 13 15:00:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
precommit/src/main/shell/personality/yetus.sh

git revision
master / a3800fb

Default Java
1.8.0_212

Test Results
https://builds.apache.org/job/yetus-github-multibranch/job/PR-57/1/testReport/

Max. process+thread count
89 (vs. ulimit of 2000)

modules
C: precommit asf-site-src U: .

Console output
https://builds.apache.org/job/yetus-github-multibranch/job/PR-57/1/console

versions
git=2.7.4 maven=3.3.9 shellcheck=0.6.0 hadolint=1.16.2-0-g3b6f5a6 markdownlint=0.15.0

Powered by
Apache Yetus 0.11.0-SNAPSHOT http://yetus.apache.org

This message was automatically generated.

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://builds.apache.org/job/yetus-github-multibranch/job/PR-57/2/console in case of problems.

Redid the Dockerfile a bit to hardset golangci-lint and to make it a bit more cache-able.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
544
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-0
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ master Compile Tests _

0
mvndep
11
Maven dependency ordering for branch

+1
mvninstall
83
master passed

+1
javadoc
18
master passed

_ Patch Compile Tests _

0
mvndep
3
Maven dependency ordering for patch

+1
mvninstall
15
the patch passed

+1
hadolint
3
There were no new hadolint issues.

+1
markdownlint
1
There were no new markdownlint issues.

+1
shellcheck
8
There were no new shellcheck issues.

+1
shelldocs
2
There were no new shelldocs issues.

+1
whitespace
0
The patch has no whitespace issues.

+1
javadoc
13
the patch passed

_ Other Tests _

+1
unit
7
precommit in the patch passed.

+1
unit
6
asf-site-src in the patch passed.

+1
asflicense
12
The patch does not generate ASF License warnings.

756

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/yetus-github-multibranch/job/PR-57/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/yetus/pull/57

Optional Tests
dupname asflicense markdownlint shellcheck shelldocs javac javadoc unit hadolint

uname
Linux 0058c2c1d7e5 4.4.0-143-generic #169~14.04.2-Ubuntu SMP Wed Feb 13 15:00:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
precommit/src/main/shell/personality/yetus.sh

git revision
master / a3800fb

Default Java
1.8.0_212

Test Results
https://builds.apache.org/job/yetus-github-multibranch/job/PR-57/2/testReport/

Max. process+thread count
90 (vs. ulimit of 2000)

modules
C: precommit asf-site-src U: .

Console output
https://builds.apache.org/job/yetus-github-multibranch/job/PR-57/2/console

versions
git=2.7.4 maven=3.3.9 shellcheck=0.6.0 hadolint=1.16.2-0-g3b6f5a6 markdownlint=0.15.0

Powered by
Apache Yetus 0.11.0-SNAPSHOT http://yetus.apache.org

This message was automatically generated.

LGTM (in all the places where I can actually provide meaningful feedback ;-))

Thanks!


feat(text-field): add scale attribute with condensed (VIV-1813)

32px the border-radius is 4 px  - Correct


Ninja/cmake/clang does not track dependencies correctly.

Okay, brace yourself. This cost me 5h to track down.
I have a repro case in https://github.com/SirVer/cmake_dependency_bug. If I clone this and run:
> mkdir build
> cd build
> cmake -G Ninja ..
-- The C compiler identification is AppleClang <IP_ADDRESS>00279
-- The CXX compiler identification is AppleClang <IP_ADDRESS>00279
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/sirver/Desktop/cmake_deps_problems/build

> ninja blub
[2/2] Linking CXX static library src/library/libblub.a

> mvim ../src/library/a.h
# do modifications.
> ninja blub
ninja: no work to do.

Since a.cc includes a.h this is obviously wrong. It should be rebuild.
Following observations:

gcc 4.9 with ninja tracks the dependency correctly
clang/gcc4.9 with makefile generation tracks the dependency correctly
Cmakelists.txt uses a wrappermacro for setting the include file path for a target. If you do not use the macro, but use target_include_directories directly, it tracks the dependency correctly too.

I am at a loss and need help.

Hi,
We are also using CMake+Clang+Ninja on linux and it seems we have related issue.
It seems one of our system header has been updated but not detected and it makes the build fail:
fatal error: file '/usr/include/asm-generic/errno-base.h' has been modified since the precompiled header '.../Imagery.dir/cmake_pch.hxx.pch' was built: mtime changed (was<PHONE_NUMBER>, now<PHONE_NUMBER>)
note: please rebuild precompiled header '.../Imagery.dir/cmake_pch.hxx.pch'

Do you know a workaround for that ?


merge build changes from master to liberty

Refer to this link for build results (access rights to CI server needed):
https://jenkins.bigswitch.com/job/openstack_horizon_bsn_pull_req/88/


Consider using Asciidoc Java parser

After discussing with @Mogztter:

parsing multi-line document attributes does not seem to work super well (we tried different things: sometimes lost the newlines, sometimes got unwanted XML entity escaping)
attributes may not be a good fit for what we're trying to do

The suggestion is to use to source listing with a specific role, and it indeed works like a charm.
In short, going from:
:param-name: category
:param-value: Dairy Products
:result-column: product
:expected-result: Geitost
:query: MATCH (p:Product)-[:PART_OF]->(:Category)-[:PARENT*0..]-> +
 (:Category {categoryName:$category}) +
 RETURN p.productName as product +

to:
[source,cypher,role=query-example,param-name=category,param-value=Dairy Products,result-column=product,expected-result=Geitost]
----
MATCH (p:Product)-[:PART_OF]->(:Category)-[:PARENT*0..]->
 (:Category {categoryName:$category})
 RETURN p.productName as product
----

Not only is it easier to parse with AsciidoctorJ, it is also less error-prone to write (e.g.: no more + for newline).

If we go down that route, we'll have to update the instructions here.


Slice Plane or 2D slices in 3D plot

First of all thanks for the amazing tool! I am trying to create a slice plane view similar to

Is this possible in ipyvolume?

should be possible, I think you can create a class to plot 3 planes, and then update the plotted data through a function by masking the data array. you can use a jupoyter slider widget to move the planes.

OK, I will give it a try

Kind of like this, let me know if you have more questions
class Viewer:
    def __init__(self)"
        self.scatter = ipv.scatter(x, y, z)
        ipv.show()
        self.slider = widgets.interact(self.updater,update_variable=(min,max,steps))
    def updater(update_variable):
        self.scatter.x = updated_x_array
        self.scatter.y = updated_y_array
        self.scatter.z = updated_z_array

Hi, it's definitely possible, but I am having some issues with performance. I opened an issue on the ipywidgets project as I believe the solution could come from their end, but feel free to chip in if you have any ideas: https://github.com/jupyter-widgets/ipywidgets/issues/2632
I also included my code example, in case you find it useful.


use same ipv6 detection logic every where

Currently there is inconsistency in how proxy ipv6 detection works. This PR unifies it and uses the same logic every where.

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
2077a1e17d88d1e8c05267a2012a55dde09f1968
link
true
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hzxuzhonghu @howardjohn can you PTAL?

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
a5f72884cab3f7e04d6809bdb0a33d5bce1aeb1c
link
true
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

There should not be user facing changes. But take a close look once.

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security-multicluster_istio
b135ac8b343e86f955545919e46e54a32c361fce
link
unknown
/test integ-security-multicluster_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-security-multicluster_istio


BUSI dataset is much worse than the indicators reported in the original paper

Thanks for this repo and paper.
I'm attempting to reproduce the results of your paper on the BUSI dataset.
I used your code without making any changes
Ryan
Result

withoud seed (5 times)
F1 : 0.796034+-0.00266
IOU: 0.673886+-0.00235
seed 42
F1: 0.797733
IOU: 0.671944
seed 123
F1: 0.786534
IOU: 0.661375
seed 3042
F1: 0.788083
IOU: 0.664477

Config and Command
Train and Valid Command
python main.py --dataset BUSI --name CMUnet --img_ext .png --mask_ext .png --lr 0.0001 --epochs 300 --input_w 256 --input_h 256 --b 8

config setting
--------------------
name: CMUnet
epochs: 300
batch_size: 8
deep_supervision: False
input_channels: 3
num_classes: 1
input_w: 256
input_h: 256
loss: BCEDiceLoss
dataset: BUSI
img_ext: .png
mask_ext: .png
optimizer: Adam
lr: 0.0001
momentum: 0.9
weight_decay: 0.0
nesterov: False
scheduler: CosineAnnealingLR
min_lr: 1e-05
factor: 0.1
patience: 2
milestones: 1,2
gamma: 0.6666666666666666
early_stopping: -1
num_workers: 4
--------------------

Environment
os: Ubuntu 20
GPU: V100 32G
pytorch 1.11.0
cudatoolkit: 11.3.1

It seems like it's a seed issue in sklearn
train_img_ids, val_img_ids = train_test_split(img_ids, test_size=0.2, random_state=41)
I will try other seeds and observe the validation results.
Another question is that I see that the benchmark of the BUSI dataset in the UNeXt paper didn't have the same results in other models, e.g. TransUNet, U-Net, U-Net++.
These three models have achieved better results in your paper.
Is there any differences in hyper parameters?


Blank page - Not found: /

I get a blank page with Not found:/ after i upload the AP sketch and connect to it.
if i navigate to /myurl i do get the plain text hello world
from what i get from the library it should get the library idex.html by default but it is not
Any idea why?

add handler for root (/) webserver directory:
server.on("/", HTTP_GET,  {
server.sendHeader("Connection", "close");
server.send(200, "text/plain", "Hello there!");
});

Hi,
I have the same problem.  I added the handler SlothDpal suggested and got the "Hello there!" message when connecting to AP ESP2SOTA and pointing a browser to <IP_ADDRESS>.
There seems to be a missing step(s) in the implementation of this library.  After doing a USB download of the APMode.ino to the ESP32, what does one then do to perform an OTA download?  There are no ports or IP addresses available as with regular Arduino OTA.  I tried connecting to the ESP2SOTA access point and pointing a browser to <IP_ADDRESS> prior to attempting download, but, unsurprisingly, there is no destination to download to.
I am using Arduino ver. 2.2.1.

http://<IP_ADDRESS> it's a root page of your esp HTTP-server and his handling by this code https://github.com/pangodream/ESP2SOTA/issues/3#issuecomment-1644483740
If you want to update page, you must enter url: http://<IP_ADDRESS>/update
If you want automating redirect to http://<IP_ADDRESS>/update u can add meta tag "redirect" to your root www page i.e:
//add handler for root (/) webserver directory:
server.on("/", HTTP_GET, {
server.sendHeader("Connection", "close");
    request->send(200, "text/html", "<meta http-equiv=\"refresh\" content=\"1;URL=/update\" />");
});

or
//add handler for root (/) webserver directory:
server.on("/", HTTP_GET, {
server.sendHeader("Connection", "close");
    request->send(200, "text/html", "<meta http-equiv=\"refresh\" content=\"1;URL=/update\" />");
});

Thank you for your response.  It provided a key step in solving my problem.  I was able to research some more on this and will try to provide for others a summary of what worked for me.
Here is how I got AP OTA to work using Arduino 2.x and ESP2SOTA library:

I used the example AP_Mode from the ESP2SOTA library I installed (assuming you installed the library), and chose the board and port (USB COM port for first download).  Note the default SSID and password for the access point created in the code.

Download the sketch via USB to the ESP32 board.  Upon completion, check serial monitor (115.2K) for access point IP address <IP_ADDRESS>

I used a different computer (my desktop did not have Wi-Fi) and connected Wi-Fi to the ESP2SOTA access point.

On that different computer I opened the same example from the ESP2SOTA AP_MODE Arduino library, selecting the same board.

I added in some code to blink an LED (set a pin as an output in setup, and made it blink, along with a serial print message)

Now for the tricky parts- secret knowledge reserved for the elite:***

In the Arduino IDE, instead of compiling/downloading the code (nowhere to send it to, right?), select "Sketch" from the top menu items, then "Export Compiled Binary".  I just went with the default prompts.  This action created a "build" subdirectory (folder) in the Arduino sketch directory.  There was a subdirectory for the board (containing necessary board definitions, I believe), containing several files ending in .bin, .elf, and .map.  Two of the .bin files had the words "bootloader" and "partitions" in them, so I ignored them.

Then, open a web browser on that computer and enter <IP_ADDRESS>/update in the address bar.  That is where the illustration from the top of the github is stored.  If you get this far, click "Choose File", and navigate to the subdirectory covered in step 7.  Select the .bin file that does not contain the words "bootloader" or "partitions", then select "Update".  My green progress bar almost instantaneously went from 0 to 100%, and shortly thereafter, my LED started blinking and my local serial console started printing my custom message.
In summary, the sketch can be downloaded OTA with the ESP32 in AP mode.  As the Arduino software does not know where or how to send the data, you must compile and save the file as a .bin file.  This .bin file is then accessed by a web page stored on the ESP, which calls for the download from the Wi-Fi connected computer.
Please feel free to correct any syntax or conceptual errors herein.  I only wanted to give a summary of how I was able to make this work by filling in the critical steps left out by those to whom this is second nature.
This is a super useful tool for updating ESP based projects OTA when no Wi-Fi networks are practical.  I am hoping it will get easier for me as I work more with it.
Thank you again for your help.


Addon's popup window is not being resized when it's contents change

[Firefox] Addon's popup window is not being resized when it's contents change

This issue is being discussed at stakoverflow topic: Firefox extension popup won't resize
This problems seems to be caused by Firefox bug #1215025
, not fixed as of today.

There are still some issues with the resize, but the main problem is fixed under Firefox bug #1215025 .
Available in Firefox 50.01


fix: clear anonymous user records after login

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/47806
PROPOSAL: https://github.com/Expensify/App/issues/47806#issuecomment-2302972273
Tests

Go to this link as signed out user https://dev.new.expensify.com:8082/r/7075912447943023
Tap sign in
Enter credentials and log in
Navigate to LHN
Tap fab -- start chat

Verify that there's no guest user in the contact section

[x] Verify that no errors appear in the JS console

Offline tests

QA Steps

Go to this link as signed out user https://staging.new.expensify.com/r/7075912447943023
Tap sign in
Enter credentials and log in
Navigate to LHN
Tap fab -- start chat

Verify that there's no guest user in the contact section

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

https://github.com/user-attachments/assets/f89462dd-7e4c-4549-a8c1-9ce57f1ed880

Android: mWeb Chrome

https://github.com/user-attachments/assets/48b9359f-c27e-4174-9014-fcac964dcc0b

iOS: Native

https://github.com/user-attachments/assets/4b4912db-350b-4aa9-ae3c-c4834f4dd4c1

iOS: mWeb Safari

https://github.com/user-attachments/assets/a8dfdcae-4031-434a-834d-1ce3838c5ac3

MacOS: Chrome / Safari

https://github.com/user-attachments/assets/f77c6fe7-8ccb-4d50-b81f-dbb1988a8fe1

MacOS: Desktop

https://github.com/user-attachments/assets/f77c6fe7-8ccb-4d50-b81f-dbb1988a8fe1

Reviewer Checklist

[ ] I have verified the author checklist is complete (all boxes are checked off).
[ ] I verified the correct issue is linked in the ### Fixed Issues section above
[ ] I verified testing steps are clear and they cover the changes made in this PR

[ ] I verified the steps for local testing are in the Tests section
[ ] I verified the steps for Staging and/or Production testing are in the QA steps section
[ ] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[ ] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[ ] I checked that screenshots or videos are included for tests on all platforms
[ ] I included screenshots or videos for tests on all platforms
[ ] I verified tests pass on all platforms & I tested again on:

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

[ ] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[ ] I verified proper code patterns were followed (see Reviewing the code)

[ ] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[ ] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[ ] I verified that comments were added to code that is not self explanatory
[ ] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[ ] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[ ] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[ ] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[ ] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[ ] I verified the JSDocs style guidelines (in STYLE.md) were followed

[ ] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[ ] I verified that this PR follows the guidelines as stated in the Review Guidelines
[ ] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[ ] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[ ] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[ ] If a new component is created I verified that:

[ ] A similar component doesn't exist in the codebase
[ ] All props are defined accurately and each prop has a /** comment above it */
[ ] The file is named correctly
[ ] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[ ] The only data being stored in the state is data necessary for rendering and nothing else
[ ] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[ ] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[ ] All JSX used for rendering exists in the render method
[ ] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[ ] If any new file was added I verified that:

[ ] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[ ] If a new CSS style is added I verified that:

[ ] A similar style doesn't already exist
[ ] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)

[ ] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[ ] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[ ] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[ ] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[ ] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[ ] I verified that all the inputs inside a form are aligned with each other.
[ ] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[ ] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[ ] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[ ] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

MacOS: Desktop

NAB, just to make it clearer the first test step would be better as "Open any public room, e.g. ..."

Hmm on main I get two guest accounts every time I open a public room:

Potentially caused by two OpenReport calls, one of which adds the extra guest user.

@dominictb Any thoughts on this?

@dominictb Huh that's strange that it's not happening for you too! Is there any reason we can't just empty the whole personalDetails key? When we're signing in I don't think there's any expectation that the personal details should be persisted from the public room (these would be reloaded with OpenReport anyway. Maybe that's the way to go.

@dominictb My only concern is that it could be a bit wasteful to loop through all of personalDetailsList (it could be fairly large if you visited several big public rooms, for example), if we can just empty it all at once instead.
Asking on Slack to see if anyone knows if there's a reason we don't do this :smile:

Okay so after a bit more testing, it looks like the duplicate OpenReport calls (and the two guest accounts appearing) only happens with strict mode enabled so we actually don't need to worry about that here. (That also explains why it doesn't happen on staging.)
I think the reason you weren't seeing the behaviour with strict mode enabled is that you have to completely clear the Onyx store before refreshing in order to get this behaviour.
I'll complete the review today, sorry for delaying it!

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/dangrous in version: 9.0.30-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Fractions with chars don't print correctly

example: https://godbolt.org/z/Msr39b

There are other problems using fmt but this one is fixed. After and before.


Cherry-pick Sunrex HP USB Business Slim Smartcard CCID Keyboard suppo…

…rt into CCID
Apply a patch from the upstream Free CCID library that enables the
support of the Identiv SCR3500 C smart card reader:
LudovicRousseau/CCID@48680b3
This local patch can be removed in the future once the upstream CCID
library releases a new version which includes this change.

The support of this reader was requested by one of our customers.

Thanks for the review.


Expected lua string

HI! At first, thanks a lot for the nice plugin.
When I used this plugin just now, I got an error:
E5108: Error executing lua ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:89: Expected lua string
stack traceback:
        [C]: in function 'cmd'
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:89: in function 'run_filetype'
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:138: in function 'run_code'
        [string ":lua"]:1: in main chunk

here is my minimal init.lua about code_runner:
use { 'CRAG666/code_runner.nvim', requires = 'nvim-lua/plenary.nvim' }   in packer

require('code_runner').setup {
  term = {
    position = "belowright",
    size = 8
  },
  filetype_path = "$HOME/.config/nvim/code_runner.json",
  project_path = "$HOME/.config/nvim/projects.json"
}

and here is my coder_runner.json:
{
      "python": "python -u"
}

It seems also like this for other languages.

pleace check if error exist

I'm getting the same issue and still happens after the latest fix. The only way to fix the issue is to add vim.g.fileCommands = {python = 'python3'} to my init.lua.

pleace check if error exist

Now I get this error:
E5108: Error executing lua ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:43: attempt to index field 'fileC
ommands' (a nil value)
stack traceback:
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:43: in function 'get_command'
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:76: in function 'get_filetype_command'
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:81: in function 'run_filetype'
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:138: in function 'run_code'
        [string ":lua"]:1: in main chunk

I also try to addvim.g.fileCommands = {python = 'python3'}(as @KarimLeVallois said) to my init.lua, but there is nothing different on my laptop.

I find this issue is same as #14. I try to configure in pure lua as you recommended, and it works fine for a single file. So I think  this plugin maybe can not correctly recognize my json flie? What should I do if i want to configure with json? Thank you so much for your effort!!

This is my personal configuration, yes use json file
require('code_runner').setup({
  term = {
    size = 15,
  },
  filetype_path = vim.fn.expand('~/.config/nvim/code_runner.json'),
  project_path = vim.fn.expand('~/.config/nvim/project_manager.json'),
}
``
```json
{
    "javascript": "node",
    "java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
    "kotlin": "cd $dir && kotlinc-native $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt.kexe",
    "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir/$fileNameWithoutExt",
    "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir/$fileNameWithoutExt",
    "python": "python -u",
    "shellscript": "bash",
    "csharp": "cd $dir && mcs $fileName && mono $fileNameWithoutExt.exe",
    "typescript": "deno run",
    "rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
    "dart": "dart"
}

This is a setup using pure lua:
require('code_runner').setup {
  term = {
    size = 15,
  },
  filetype = {
    java = "cd $dir && javac $fileName && java $fileNameWithoutExt",
    python = "python -u",
    typescript = "deno run",
    rust = "cd $dir && rustc $fileName && $dir/$fileNameWithoutExt"
  },
}

The error existed before the last commit, try to update the plugin and check if the problem persists, because of all the tests that I have done, the plugin works without any problem. Remember that if it is json, you should not include trailing commas, that is, a comma after the last element. In case you use lua also try to write a correct table format because all these things the plugin cannot or should not handle. Finally, if this is resolved, I would appreciate closing the issue or, if applicable, doing a pr.

HI! At first, thanks a lot for the nice plugin.
When I used this plugin just now, I got an error:
E5108: Error executing lua ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:89: Expected lua string
stack traceback:
        [C]: in function 'cmd'
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:89: in function 'run_filetype'
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:138: in function 'run_code'
        [string ":lua"]:1: in main chunk

here is my minimal init.lua about code_runner:
use { 'CRAG666/code_runner.nvim', requires = 'nvim-lua/plenary.nvim' }   in packer

require('code_runner').setup {
  term = {
    position = "belowright",
    size = 8
  },
  filetype_path = "$HOME/.config/nvim/code_runner.json",
  project_path = "$HOME/.config/nvim/projects.json"
}

and here is my coder_runner.json:
{
      "python": "python -u"
}

It seems also like this for other languages.

try to expand the url, above leave how you do it in vim, remember that code runner works with absolute not relative paths, in fact I will be more clear, I will add more explanation of this in the README

Thank you for letting me know that the projects weren't working, data that failed because I called them projects and not project. It was so simple to correct but here I leave the complete example configuration:
require('code_runner').setup {
  term = {
    size = 15,
  },
  filetype = {
    java = "cd $dir && javac $fileName && java $fileNameWithoutExt",
    python = "python -u",
    typescript = "deno run",
    rust = "cd $dir && rustc $fileName && $dir/$fileNameWithoutExt"
  },
  project = {
    ["~/prueba"] = {
      name = "App1",
      description = "Tmx frontend api",
      file_name = "prueba.py"
    },
  }
}

Sorry for being late in replying. Now it works totally fine. I think my issue comes from here:
At first I just copy the config example to my init.lua, but it can't work so good.

Just now I change
filetype_path = "$HOME/.config/nvim/code_runner.json",
project_path = "$HOME/.config/nvim/projects.json"

to
filetype_path = vim.fn.expand('~/.config/nvim/code_runner.json'),
project_path = vim.fn.expand('~/.config/nvim/project_manager.json'),

Then it can works fine. Whatever, thank you so much again for your explanation.


cargo-apk: Work around missing libgcc on NDK r23 with linker script

Fixes #149
Rust still searches for libgcc even though 85806 replaces internal use with libunwind, especially now that the Android NDK (since r23-beta3) doesn't ship with any of gcc anymore.  The apparent solution is to build your application with nightly and compile std locally (-Zbuild-std), but that is not desired for the majority of users.  7339 suggests to provide a local libgcc.a as linker script, which simply redirects linking to libunwind instead - and that has proven to work fine so far.
Intead of shipping this file with the crate or writing it to an existing link-search directory on the system, we write it to a new directory that can be easily passed or removed to rustc, say in the event that a user switches to an older NDK and builds without cleaning.  For this we need to switch from cargo build to cargo rustc, but the existing arguments and desired workflow remain identical.

@MarijnS95 Hi, many peoples on the Rust issue tracker are still hitting this issue and may not want to do a custom build of std. Would you be open to try to integrate this workaround directly in the official rust android target ?


Opening an F# project containing two items that refer to the same file deadlocks VS

This bug is filed to increase visibility should folks who encounter it look for an issue.
The project system issue and workaround are here: https://github.com/dotnet/project-system/issues/3218

Closing in favor of #4300