Paralell jobs, race in workspace clean causing failure

Note
Required Information
Question, Bug, or Feature?
Type: Bug
Enter Task Name: job
Environment
Self hosted agent pool. Cannot share details on azure devops org.
Issue Description
We have a self-hosted agent pool (6 agents) and use multi-stage yaml pipelines.
The first step in our pipeline is a build stage, which used to run 6 jobs, but now runs 7, these jobs have no dependencies so are are assumed to run in paralell.
Each job is responsible for cleaning its workspace to avoid running out of storage on the agent... which triggers a delete call to the to the _work\{n}\s folder.
The problem is that since we have 7 jobs, at least two jobs will always run (in paralell) on the same agent on the same {n} folder, but since each job has a workspace cleanup both jobs fail as they try to delete a folder that is in use by the other...
Exception:
##[error]The process cannot access the file 'D:\agent1\_work\19\s' because it is being used by another process.
##[debug]System.IO.IOException: The process cannot access the file 'D:\agent1\_work\19\s' because it is being used by another process.
   at System.IO.FileSystem.RemoveDirectoryInternal(String fullPath, Boolean topLevel, Boolean allowDirectoryNotEmpty)
   at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
   at System.IO.DirectoryInfo.Delete()
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.DeleteDirectory(String path, Boolean contentsOnly, Boolean continueOnContentDeleteError, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.DeleteDirectory(String path, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.DeleteDirectory(IExecutionContext executionContext, String description, String path)
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.CreateDirectory(IExecutionContext executionContext, String description, String path, Boolean deleteExisting)
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.PrepareDirectory(IExecutionContext executionContext, IList`1 repositories, WorkspaceOptions workspace)
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildJobExtension.InitializeJobExtension(IExecutionContext executionContext, IList`1 steps, WorkspaceOptions workspace)
   at Microsoft.VisualStudio.Services.Agent.Worker.JobExtension.InitializeJob(IExecutionContext jobContext, AgentJobRequestMessage message)

Task logs
Cannot share.
Troubleshooting
Error logs
Job One
##[debug]System.IO.IOException: The process cannot access the file 'D:\agent1\_work\19\s' because it is being used by another process.

Job Two
##[debug]System.IO.IOException: The process cannot access the file 'D:\agent1\_work\19\s' because it is being used by another process.

Actually, this happens regardless. It seems we have no gurantee that the jobs will be distributed evenly to each agent, so with M<=N for M jobs and N agents this still happens as I just confirmed by adding an explicit dependsOn to get a workaround.
Was there a release that broke this?

Hi, this looks like a general service issue, not an issue with a specific task. Please file service issues here - https://developercommunity.visualstudio.com/spaces/21/index.html - this will also allow you to share info directly with Microsoft employees


Generate GitHub workflows on Ubuntu and macOS.

@siraben Here is a quick and dirty alternative to #53 (to close #48). The relevant changes are those in .nix/shellHook.sh.
I say quick and dirty because we may want to make the list of platforms to run CI on configurable in .nix/config.nix and we may want to use something else than sed to set the platform to run on (like that, it would break as soon as someone introduces a Coq package with ubuntu in the name).

we may want to make the list of platforms to run CI on configurable

This is all the more important given that for private repositories macOS runners cost 10 times more than Ubuntu runners and on public repositories, they are free but are capped to 5 concurrent runners while Ubuntu runners are capped to 20 concurrent runners. (This also means that enabling this in this repo will significantly slow down getting CI results.)

Oops, I have wasted a lot of build power by accidentally opening this PR from my fork and therefore not having Cachix enabled. Therefore, some packages have been built over and over.


Error on file net.cpp

g++ -c -O2  -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -DUSE_SECP256K1 -I/root/ION/ion/src -I/root/ION/ion/src/obj -DUSE_UPNP=0 -DENABLE_WALLET -I/root/ION/ion/src/leveldb/include -I/root/ION/ion/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/net.d -o obj/net.o net.cpp
net.cpp: In function 'void ThreadMapPort()':
net.cpp:1153:74: error: invalid conversion from 'int*' to 'unsigned char' [-fpermissive]
     devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
                                                                          ^
net.cpp:1153:74: error: too few arguments to function 'UPNPDev* upnpDiscover(int, const char*, const char*, int, int, unsigned char, int*)'
In file included from net.cpp:26:0:
/usr/include/miniupnpc/miniupnpc.h:62:1: note: declared here
 upnpDiscover(int delay, const char * multicastif,
 ^
make: *** [obj/net.o] Error 1

OS : Ubuntu 14.10 updated

I'm trying to patch it.

Patched, going to create a pull request

Pull request created

@IonomyGuy here is the issue fixed by my PR :smiley:

EDIT : Here is the new PR who solve this error : https://github.com/ionomy/ion/pull/16

@IonomyGuy can you close this patched issue please ? :smile:


Idiomatic error handling

Since we don't use fmt for parsing anymore, we can return errors explicitly 👀

Can you sign the commit? if no, I will change repo settings for a moment.

Can you sign the commit?

Not right now, sorry. But you can force merge as the owner.


Xoutput crashes running force feedback test

XOutput.log
ViGEmClient.dmp.zip
client log and zipped dump file from ViGEm attached
OS: Windows 10 Pro 64 bit
Controller type: USB Saitek P2500 Rumble Force.
Tested with both Saitek drivers and MS Generic drivers
Result is same.
Controller functions otherwise in all aspects, with or without Xoutput
And with both MS and Saitek drivers

I fixed this in the registry
Appears to be an issue of the drivers for this specific controller
HKEY_CURRENT_USER > System > CurrentControlSet > Control > MediaProperties > PrivateProperties > Joystick > OEM
delete all keys that contain VID_06A3 in the name
Do the same in HKEY_CURRENT_USER > System > CurrentControlSet > Control > MediaProperties > PrivateProperties

To debug these issues Windows Event log can help us more than the logs of the application.
Althought it is a nice catch, if you delete those and it works, then the driver is faulty (as you said).
Do you need more help on this?

I've this issue too with Cyborg Rumble Pad (P3600). It's; definitely a buggy driver/Windows combination: used to work just fine on previous Windows version.
Removing/renaming SaiPF51A.Dll in c:\Windows\System32 helped. This will disable force feedback completely. Messing with registry entries got me a nice BSOD :).


Proposal to put the treasury fund into yield farming

At the moment the DAO has about 78 ETH sitting idle in the treasury.
There's no clear decision yet on what the fund must be used for. And it's still not clear when such a decision will appear.
I would propose to put the most part (like 90%) of the fund into a reasonably reliable yield farming project.
For example, as far as I can see, Yearn currently offers about 2.5% on ETH -- i.e. on 70 ETH it's about 0.004 ETH per day. The vesting project is subject for discussion, though.
Pros:

the DAO will earn additional profit doing almost nothing.

Cons:

the project can be hacked/rugged/exploited and the fund will be lost;
if withdrawn too early, the fund can actually lose  because of tx fees.

Note 1. The DAO must keep a relatively small amount (like 10%) of liquid funds for 'ongoing needs' (like 2 ETH for the deal with Rarity.tools).
Note 2. The possible agreement with Gearbox must be taken into account, maybe decision should be postponed until it's finalized.
Note 3. The yield profits should go to the DAO for now, they're simply too small to be distributed.
Additionally I would say to move the DAO fund to L2 (Optimism/Arbitrum) in order to save on fees. But l'm too smal brain for such proposal.

To be clear, my idea is not to put it into farming forever. Only until we "really get it going" and will need liquid funds. But personally I have now no idea when we really get it going, in a week, a month, or a year.

why don't we invest DAO funds in interesting projects helping them financially at an early stage and, of course, with smart Lobster heads.farming I think is worth considering from more funds in the DAO


Missing produced events

What happened:
It appears that Synapse doesnt produce events, despite the fact that it claims that it did :)
or lets say it appears as if produced events do not reach the expected EventSink, like in the following example: the "request-something-update" event is never seen on the event channel, while all other events originated by Synapse are seen as expected....
{
  "id": "emit-event",
  "name": "Emit Event",
  "version": "0.1.0",
  "specVersion": "0.8",
  "events": [
    {
      "name": "request-something-update",
      "source": "https://myapp-dev.org.corp.com/sys-admin",
      "type": "com.corp.myapp.something-manager/something/statechangerequested/v1",
      "kind": "produced"
    },
    {
      "name": "something-updated",
      "source": "https://myapp-dev.org.corp.com/something-manager",
      "type": "com.corp.myapp.something-manager/something/statechanged/v1"
    }
  ],
  "states": [
    {
      "name": "Update Something",
      "type": "operation",
      "actions": [
        {
          "name": "Send sys-admin request",
          "eventRef": {
            "data": "${ { \"aggregateId\": \"something-specific-1-1\", \"state\": { \"value\": \"4321\" } } }",
            "triggerEventRef": "request-something-update",
            "resultEventRef": "something-updated"
          }
        }
      ],
      "end": true
    }
  ]
}

[10:49:03] info: Synapse.Worker.Services.WorkflowRuntime[0]
      Starting the workflow's execution...
[10:49:04] info: Synapse.Worker.Services.Processors.OperationStateProcessor[0]
      Initializing activity '7b44fa3b-7edc-4e77-b03e-dfef86e5f158' (type: 'State')...
[10:49:04] info: Synapse.Worker.Services.Processors.OperationStateProcessor[0]
      Activity '7b44fa3b-7edc-4e77-b03e-dfef86e5f158' (type: 'State') initialized
[10:49:04] info: Synapse.Worker.Services.Processors.OperationStateProcessor[0]
      Starting/resuming activity '7b44fa3b-7edc-4e77-b03e-dfef86e5f158' (type: 'State')...
[10:49:04] info: Synapse.Worker.Services.Processors.AsyncFunctionProcessor[0]
      Initializing activity '726744fa-2771-498c-97da-29bbbeba497b' (type: 'Action')...
[10:49:04] info: Synapse.Worker.Services.Processors.AsyncFunctionProcessor[0]
      Activity '726744fa-2771-498c-97da-29bbbeba497b' (type: 'Action') initialized
[10:49:04] info: Synapse.Worker.Services.Processors.AsyncFunctionProcessor[0]
      Starting/resuming activity '726744fa-2771-498c-97da-29bbbeba497b' (type: 'Action')...
[10:49:04] info: Synapse.Worker.Services.Processors.ProduceEventProcessor[0]
      Initializing activity 'f85a630f-7558-484c-ba76-9160dde4e039' (type: 'ProduceEvent')...
[10:49:04] info: Synapse.Worker.Services.Processors.ProduceEventProcessor[0]
      Activity 'f85a630f-7558-484c-ba76-9160dde4e039' (type: 'ProduceEvent') initialized
[10:49:04] info: Synapse.Worker.Services.Processors.ProduceEventProcessor[0]
      Starting/resuming activity 'f85a630f-7558-484c-ba76-9160dde4e039' (type: 'ProduceEvent')...
[10:49:04] info: Synapse.Worker.Services.Processors.ProduceEventProcessor[0]
      Activity 'f85a630f-7558-484c-ba76-9160dde4e039' (type: 'ProduceEvent') completed
[10:49:04] info: Synapse.Worker.Services.Processors.ConsumeEventProcessor[0]
      Initializing activity '6ac2a836-d111-4056-a0e9-24cd7ce2eccb' (type: 'ConsumeEvent')...
[10:49:04] info: Synapse.Worker.Services.Processors.ConsumeEventProcessor[0]
      Activity '6ac2a836-d111-4056-a0e9-24cd7ce2eccb' (type: 'ConsumeEvent') initialized
[10:49:04] info: Synapse.Worker.Services.Processors.ConsumeEventProcessor[0]
      Starting/resuming activity '6ac2a836-d111-4056-a0e9-24cd7ce2eccb' (type: 'ConsumeEvent')...

What you expected to happen:
That produced events get out of the box :)
How to reproduce it:
See example above
Anything else we need to know?:
Synapse rocks! Keep up the awesome work!!
Environment:
Doesnt matter, happens in K8s and in local/docker deployments
Thanks!

Awesome! Works fine in latest, 0.3.19! Thanks!!

Hi.
Is this fixed? I see in the log:
(type: 'ProduceEvent') completed
But the workflow not launch the event. I have other workflow listening to the event: ASSET_REPLACED_EVENT_TYPE, but it doesn't work when this workflow is executed. However with a cloudevent request by Postman it works.
This is my json schema:
{
  "id": "EmitEventWF",
  "name": "Emit Event",
  "version": "1.0.3",
  "specVersion": "0.8",
  "events": [
    {
      "name": "ASSET_REPLACED_EVENT",
      "source": "https://asset-replaced.com",
      "type": "ASSET_REPLACED_EVENT_TYPE",
      "kind": "produced"
    },
    {
      "name": "something-updated",
      "source": "https://asset-created.com",
      "type": "ASSET_CREATED_EVENT_TYPE"
    }
  ],
  "start": "Update Something",
  "states": [
    {
      "name": "Update Something",
      "type": "operation",
      "actions": [
        {
          "name": "Send sys-admin request",
          "eventRef": {
            "triggerEventRef": "ASSET_REPLACED_EVENT",
            "resultEventRef": "something-updated"
          }
        }
      ],
      "end": true
    }
  ]
}

Thanks.


Add dropdown for label color panel and modify color disappear on Mac

Add dropdown for color panel
modify color disappear on Mac

Coverage decreased (-0.02%) to 64.531% when pulling 0938aa52ea4993d3fb63ad0cf28d233d12b7c229 on pengpengshui:colorpanel into 2f4950b80c3a955bae3a398f8486134ac7d3b87c on vmware:master.

most of the code is about visual change, can you provide an environment


breadcrumbs can't be center justified

I believe this bug is limited to breadcrumbs, but I'm not sure. The example app below both demonstrates and documents the bug (see comments):
import hyperdiv as hd

router = hd.router()

@router.route("/")
def home():
    hd.text("home")
    hd.link("/hello/world", href="/hello/world")

@router.route("/hello/world")
def helloworld():
    # The base element of a breadcrumb is a nav with display:flex
    # and flex-direction: row
    with hd.breadcrumb():
        hd.breadcrumb_item("hello", href="/hello")
        hd.breadcrumb_item("world", href="/world")

    # I can add a margin to the nav with:
    with hd.breadcrumb(margin_top=4):
        hd.breadcrumb_item("hello", href="/hello")
        hd.breadcrumb_item("world", href="/world")

    # What if I want to center justify the breadcrumb?
    # Setting justify, in the same way I set margin_top, fails
    # because breadcrumb isn't boxy.
    # with hd.breadcrumb(margin_top=4, justify="center"):
    #     hd.breadcrumb_item("hello", href="/hello")
    #     hd.breadcrumb_item("world", href="/world")

    # Ok, what if we try to style the base nav directly?
    # Well, now it is center justified, but for some reason the
    # nav is now flex-direction: column
    with hd.breadcrumb(
        base_style=hd.style(justify="center"),
    ):
        hd.breadcrumb_item("hello", href="/hello")
        hd.breadcrumb_item("world", href="/world")

    # Alright, perhaps we can just make the flex-direction explicit?
    # Nope. The nav continues to be rendered with flex-direction: column.
    with hd.breadcrumb(
        base_style=hd.style(justify="center", direction="horizontal"),
    ):
        hd.breadcrumb_item("hello", href="/hello")
        hd.breadcrumb_item("world", href="/world")

    # Attempted workaround: maybe just make our own box?
    # Nope, now there is no separator between breadcrumbs
    with hd.breadcrumb():
        with hd.hbox():
            hd.breadcrumb_item("hello", href="/hello")
            hd.breadcrumb_item("world", href="/world")

    hd.text("helloworld! oy I can't seem to center justify the breadcrumb component")

def main():
    loc = hd.location()
    loc.go("/hello/world")
    router.run()

hd.run(main)

Thanks!

Alright, perhaps we can just make the flex-direction explicit?
Nope. The nav continues to be rendered with flex-direction: column.

There's a bug where the direction kwarg is ignored. Will fix.
This should work:
with hd.box(align="center"):
    with hd.breadcrumb():
        hd.breadcrumb_item("hello", href="/hello")
        hd.breadcrumb_item("world", href="/world")

Thanks for the workaround. In hindsight, pretty obvious!


Can we get a changelog

Wondering if we can get a changelog for versions so we can easily make the decision if/when to upgrade.

Never mind.  I should have looked!


Bug fix: device problem in Jacobian functions when working with GPU

Bug 🐛
I was getting this error while trying to get the Jacobian to plot the critical line:
   1036         # Build Jacobian
   1037         J = self._jacobian_deflection_angle_autograd(x, y, z_s, params, **kwargs)
-> 1038         return torch.eye(2) - J.detach()

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

To reproduce the error, assuming your DEVICE is CUDA:
import caustics
import torch
import numpy as np
import matplotlib.pyplot as plt

DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")

n_pix = 32
res = 0.05
upsample_factor = 2
fov = res * n_pix
thx, thy = caustics.utils.get_meshgrid(
    res / upsample_factor,
    upsample_factor * n_pix,
    upsample_factor * n_pix,
    dtype=torch.float32,
    device = DEVICE
)
z_l = torch.tensor(0.5, dtype=torch.float32, device=DEVICE)
z_s = torch.tensor(1.5, dtype=torch.float32, device=DEVICE)
cosmology = caustics.cosmology.FlatLambdaCDM(name="cosmo")
cosmology.to(dtype=torch.float32)

sie = caustics.lenses.SIE(cosmology, name="sie")

x_sie = torch.tensor(
    [
        z_l.item(),  # sie z_l
        0.2,  # sie x0
        0.2,  # sie y0
        0.4,  # sie q
        np.pi / 5,  # sie phi
        0.5,  # sie b
    ]
).to(DEVICE)

# Pack parameters of system
packparams = sie.pack(x_sie)

# Jacobian of the lens equation
A = sie.jacobian_lens_equation(thx, thy, z_s, packparams)

# Determinant of the Jacobian
detA = torch.linalg.det(A).cpu().numpy()

# Plot the critical line
im = plt.imshow(
    detA, extent=(thx.cpu()[0][0], thx.cpu()[0][-1], thy.cpu()[0][0], thy.cpu()[-1][0]), origin="lower"
)
plt.colorbar(im)
CS = plt.contour(thx.cpu(), thy.cpu(), detA, levels=[0.0], colors="b")

plt.show()

Solution 👁
The code breaks because the tensor J (and all others) are in CUDA, but the new tensor created with torch.eye(2) is in CPU by default. So, the fix is to do torch.eye(2).to(J.device)  in the 4 lines that have this! 😄. When changing this, and re-running the script above, it works.
NOTE!!! 🛑
I did not run the unit tests... 😵. Also, the script above only "tests" the fix in line 1038, but not the other 3 changes... I just assumed that it's the same for the other functions. Feel free to close this PR

That's a good catch. I thought we already fixed that bug a while back actually, since I ran into the same issue. Anyways, we need to merge this asap.

@GabrielMissael merge the current dev branch into your branch. Then the checks will run

Hey @ConnorStoneAstro! Sorry, I just saw this!!
Thanks for merging the current dev branch! Could I help with anything else? 😄

This looks good, I'm not sure what the issue is with the docs, but once we figure it out we will merge everything in


Selecting a tag

Hi. Does the library allow us to select a tag and change its background colour different from each other?

This is not sufficient?
let tagView = tagListView.addTag("blue")
tagView.tagBackgroundColor = UIColor.blueColor()

I asked this because there is a statement in readme as follows,

Be aware that if you update a property (e.g. tagBackgroundColor) for a TagListView, all the inner TagViews will be updated.

if the snippet you suggested is gonna change all the tag's background it won't gonna work for me. I am expected to do something like; https://codentrick.com/home/wp-content/uploads/2015/07/Following.png

Setup the layout for all tags through TagListView once. Afterwards you can change the layout of individual tagViews. So you should be ok, I use it that way.

Will I be able to write block which will be executed when I press any tagView?

Setup your class as delegate of TagListView and then call:
func tagPressed(title: String, tagView: TagView, sender: TagListView) {
    your code here
}

Will this work for you?

Absolutely yes! thank you for your help and patience. Enjoy your 800th star 👍

Thanks @aleene for answering! 👍


Handle restrict_scope correctly

Expected Behavior
The SWIG-Proxy should handle the restrict_scope-function correctly.
Actual Behavior
I could not wrap EncryptionRestrictions correctly with SWIG, so I had to add the file "restrict_scope_helper.go" to overcome this issue.
Help wanted
I did not get SWIG to handle this correctly, but I'm pretty sure that it is possible. Any help is greatly appreciated!

This one is still not optimal. With Uplink-c the names changed to "access_share" instead of "restrict_scope" - but the Problem is the same.
I did not manage to get SWIG to generate a good Proxy for this signature:
https://github.com/storj/uplink-c/blob/8a57b27665f7e5f24feeb3c30d157ff6b7e45ae3/access.go#L98
The prefixes-argument gets converted to one single SharePrefix, but is meant as a pointer to the first element of an Array.
Help appreciated!


too many values to unpack (expected 2) in model_builder.py

When I run the default example (python main.py --cfg llm/baseline/testcase.yaml), I always get the following error, both on the dolly and alpaca datasets

Oh I got it, I set the model type in testcase.yaml by model_name@local, ant the optional value is @llm, so the model_bulder can not handel it.


MaterialPicker doesn't get updated when using MVVM

The MaterialPicker doesn't get updated when the MVVM value for the binding of the ItemsSource changes. The expected behavior is to have picker with updated values.
The material picker picker list does get updated if the when the view loads but fails to update when there are changes.
The code to reproduce:
XAML:
<material:MaterialPicker x:Name="PickerName" LabelText="Test" SelectedItem="{Binding TestValue}" ItemsSource="{Binding TestList}" />

ModelView:
// MVVM Variable
private ObservableCollection<string> testList = new ObservableCollection<string>(new List<string> { "Select Value" });
public ObservableCollection<string> TestList
{
    get { return testList; }
    set { if (testList == value) return; testList = value; }
}

private string testValue;
public string TestValue
{
    get => testValue;
    set
    {
        testValue = value;
        OnPropertyChanged();
    }
}

// updating the Variable
for (int I =0; I < 100; I++)
    TestList.Add("Value " + I);

We are excited to announce that we are working on a new generation of controls based on Material Design V3.
This ticket has been included/fixed in the upcoming version of this NuGet package, which will include both current and new generations of controls.
Your feedback is greatly appreciated. Thank you for being part of our journey!


chore(deps): upgrade configuration

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-configuration-1.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1118

Questions ?
Please refer to the Backport tool documentation


bmi160+esp wrover i2c

Hi,
I have some problems probably with sensor configuration. I'm using esp wrover, this is documentation.
These are my write/read functions:
int8_t i2c_read(uint8_t dev_id, uint8_t reg_addr, uint8_t *reg_data, uint16_t length)
{
    if (length == 0) {
        return (int8_t)ESP_ERR_INVALID_SIZE;
    }
    i2c_cmd_handle_t cmd = i2c_cmd_link_create();
    i2c_master_start(cmd);
    i2c_master_write_byte(cmd, ( SENSOR_ADDR << 1 ) | WRITE_BIT, ACK_CHECK_EN);
    i2c_master_write_byte(cmd, reg_addr, ACK_CHECK_DIS);
    i2c_master_start(cmd);
    i2c_master_write_byte(cmd, ( SENSOR_ADDR << 1 ) | READ_BIT, ACK_CHECK_EN);
    if (length > 1) {
        i2c_master_read(cmd, reg_data, length - 1, ACK_VAL);
    }
    i2c_master_read_byte(cmd, reg_data+length-1,NACK_VAL);
    i2c_master_stop(cmd);
    esp_err_t ret = i2c_master_cmd_begin(I2C_PORT, cmd, 1000/portTICK_PERIOD_MS);
    i2c_cmd_link_delete(cmd);
    return (int8_t)ret;
}

nt8_t i2c_write(uint8_t dev_id, uint8_t reg_addr, uint8_t *reg_data, uint16_t length)
{
    i2c_cmd_handle_t cmd = i2c_cmd_link_create();
    i2c_master_start(cmd);
    i2c_master_write_byte(cmd, ( SENSOR_ADDR << 1 ) | WRITE_BIT, ACK_CHECK_EN);
    i2c_master_write_byte(cmd, reg_addr, ACK_CHECK_EN);
    i2c_master_write(cmd, reg_data, length, ACK_CHECK_EN);
    i2c_master_stop(cmd);
    esp_err_t ret = i2c_master_cmd_begin(I2C_PORT, cmd, 1000/portTICK_PERIOD_MS);
    i2c_cmd_link_delete(cmd);
    return (int8_t)ret;
}

where macros:
WRITE_BIT            0x0
READ_BIT             0x1
ACK_CHECK_EN          0x1
ACK_CHECK_DIS        0x0
ACK_VAL              0x0
NACK_VAL             0x1

my sensor init function:
void initSensor()
{
    sensor.id = BMI160_I2C_ADDR;
    sensor.interface = BMI160_I2C_INTF;
    sensor.read = i2c_read;
    sensor.write = i2c_write;
    sensor.delay_ms = delay;
    int8_t rslt = BMI160_OK;
    rslt = bmi160_init(&sensor);
    printf("init %d\n", rslt); // rslt is 0, so it seems work
}

accelerometer configuration:
void confAccel()
{
    /* Select the Output data rate, range of accelerometer sensor */
    sensor.accel_cfg.odr = BMI160_ACCEL_ODR_1600HZ;
    sensor.accel_cfg.range = BMI160_ACCEL_RANGE_8G;
    sensor.accel_cfg.bw = BMI160_ACCEL_BW_NORMAL_AVG4;
    /* Select the power mode of accelerometer sensor */
    sensor.accel_cfg.power = BMI160_ACCEL_NORMAL_MODE;
    int8_t rslt = BMI160_OK;
    /* Set the sensor configuration */
    rslt = bmi160_set_sens_conf(&sensor);
    printf("conf %d\n", rslt); // rslt is 0, so it seems work
}

so I made
void selfTestAccel()
{
    int8_t rslt = BMI160_OK;
    uint8_t reg_addr = 0x40;
    uint8_t data = 0x2C;
    uint16_t len = 1;
    rslt = bmi160_set_regs(reg_addr, &data, len, &sensor); //  rslt is 0, so it seems work
    rslt = bmi160_perform_self_test(BMI160_ACCEL_ONLY, &sensor); // rslt is 0, so it seems work
}

but when i tried to read
void readAccel()
{
    int8_t rslt = BMI160_OK;
    rslt = bmi160_get_sensor_data(BMI160_ACCEL_SEL, &accel, NULL, &sensor);
}

i got 0 on all axes.  Could You please help me?

Hi @hawres ,
Can you run the following snippet after the delay to track if there are internal errors?
int8_t rslt;
uint8_t data = 0;

/* Read the error reg */
rslt = bmi160_get_regs(BMI160_ERROR_REG_ADDR, &data, 1, &sensor);

if (rslt == BMI160_OK) {
	data = data >> 1;
	data = data & BMI160_ERR_REG_MASK;
	if (data == 1)
		rslt = BMI160_E_ACCEL_ODR_BW_INVALID;
	else if (data == 2)
		rslt = BMI160_E_GYRO_ODR_BW_INVALID;
	else if (data == 3)
		rslt = BMI160_E_LWP_PRE_FLTR_INT_INVALID;
	else if (data == 7)
	rslt = BMI160_E_LWP_PRE_FLTR_INVALID;
}

printf("Error register's rslt: %d\n", rslt);

Hi, i have next problem. I configured any motion interrupt - its works very well. Now i'm trying with high-g.
    void confInterrupt()
    {
            /* Select the Interrupt channel/pin */
        int_config.int_channel = BMI160_INT_CHANNEL_1;// Interrupt channel/pin 1

        /* Select the Interrupt type */
        int_config.int_type = BMI160_ACC_HIGH_G_INT;
        /* Select the interrupt channel/pin settings */
        int_config.int_pin_settg.output_en = BMI160_ENABLE;// Enabling interrupt pins to act as output pin
        int_config.int_pin_settg.output_mode = BMI160_DISABLE;// Choosing push-pull mode for interrupt pin
        int_config.int_pin_settg.output_type = BMI160_DISABLE;// Choosing active low output
        int_config.int_pin_settg.edge_ctrl = BMI160_ENABLE;// Choosing edge triggered output
        int_config.int_pin_settg.input_en = BMI160_DISABLE;// Disabling interrupt pin to act as input
        int_config.int_pin_settg.latch_dur = BMI160_LATCH_DUR_1_28_SEC;//

        //int_config.int_type_cfg.acc_any_motion_int.anymotion_en = BMI160_ENABLE;
        int_config.int_type_cfg.acc_high_g_int.high_g_x = BMI160_ENABLE;
        int_config.int_type_cfg.acc_high_g_int.high_g_y = BMI160_ENABLE;
        int_config.int_type_cfg.acc_high_g_int.high_g_z = BMI160_ENABLE;
        int_config.int_type_cfg.acc_high_g_int.high_hy = 0;
        int_config.int_type_cfg.acc_high_g_int.high_dur = 10;
        int_config.int_type_cfg.acc_high_g_int.high_thres = 20;

        int8_t rslt = BMI160_E_NULL_PTR;
        /* Set the Any-motion interrupt */
        rslt = bmi160_set_int_config(&int_config, &sensor); /* sensor is an instance of the structure bmi160_dev  */
        printf("interrupt %d\n", rslt);
    }

but without success- interrupt appears every time, even when sensor is lying down. Could You send me please any working configuration? Or say more about about high_hy, high_dur and high_thres?
Thanks

Hi, i have next question. My code:
    initSensor();    //both according to documentation
    confAccelAndGyro();

[specific moves detection]
Later after a timer I want to disable gyroscope to save energy before I sent the MCU to sleep. I tried
    bmi160_soft_reset(&sensor);
    disableGyro(); //in fact, this is the same config, but with  sensor.gyro_cfg.power = BMI160_GYRO_SUSPEND_MODE;

    confInterrupt();

and it works well, but is there any better way to do it?
later i'm going to deep sleep
    esp_sleep_enable_ext0_wakeup(GPIO_NUM_39, INPUT_LEVEL_LOW);
    printf("Entering deep sleep\n");
    esp_deep_sleep_start();

and interruption from accelerometer will wake up esp.
Thanks

Hi @hawres,
What would you like to improve here?

Is any command to disable gyro without re-configuring all sensor?

Hi @hawres,
You doesn't need to trigger a soft-reset to disable the gyroscope. The bmi160_set_power_mode API should suffice.

Could You explain more, please? And show example how to disable gyro only using this command? I see that is
int8_t set_gyro_pwr(struct bmi160_dev *dev)

but i can't use it correct. Should i modify
sensor.gyro_cfg.power = BMI160_GYRO_PMU_SUSPEND;

and later call set_power_mode?
Thanks


Mythic Bat Pet

Describe the bug
The mythic bat pet doesn't show up on the site. The bat becomes mythic when holding the Vampire Fang item.
Profile/Location
https://sky.shiiyu.moe/stats/meyi/Grapes
Additional Info
N/A
Expected behavior
The bat pet should be mythic when holding the item, and the pet score should be 6 for the pet, not 5.
Screenshots
https://imgur.com/a/dbUxHUY

Done with the latest commit.


Simplify RazorDiagnostic deserialization

From https://github.com/aspnet/Razor/pull/1885#discussion_r158877067
Now that LegacyRazorDiagnostic is gone, we don't need to look at the type name when deserializing RazorDiagnostic. We can just directly deserialize to DefaultRazorDiagnostic.
Additionally, we need to do some profiling on this. This is a hot spot for Razor at build time
Here's a basic plan:

[ ] Use the dotnet new mvc template, add the serializers to project, and dump the set of taghelpers as JSON.
[ ] Add a new perf microbenchmark that serializes/deserializes this data
[ ] Do some profiling and make improvements to the serialization code

@ajaybhargavb added some details, thanks!


Detox setup help

What happened?
In the company I work for, we are trying to use Detox, but without success. After we apply all the necessary changes indicated in the official documentation, when we run the test the emulator is initialized, as defined in detoxrc.json. But a failure occurs and we cannot identify the reason

According to logcat, the problem is related to the device_id, so we cannot identify what is missing from the configuration in this case.

What was the expected behaviour?
No response
Was it tested on latest Detox?

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

Did your test throw out a timeout?

[ ] I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.

Help us reproduce this issue!
No response
In what environment did this happen?
Detox version:  20X
React Native version: "0.70.5"
Node version:  "2.6.7"
Device model:  Pixel XL (Emulator)
Android version:  SDK 33
Test-runner (select one):  other
Detox logs
Detox logs
PS D:\Projetos\Payface\Hibrid app payface-app-store-client\android> yarn e2e:test --loglevel trace
yarn run v1.22.19
$ detox test --loglevel trace
16:47:44.268 detox[14980] INFO:  [test.js] DETOX_LOGLEVEL="trace" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1669664864259 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern "^((?!:ios:).)*$" e2e
16:47:49.719 detox[5068] TRACE: [DETOX_CREATE] created a Detox instance with config:
{
appsConfig: {
default: {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/reactNative/staging/app-reactNative-staging.apk',
build: 'cd android && .\gradlew assembleReactNativeStaging assembleReactNativeStagingAndroidTest -DtestBuildType=debug && cd ..'
}
},
artifactsConfig: {
rootDir: 'artifacts\android.2022-11-28 19-47-44Z',
plugins: {
log: {
enabled: false,
keepOnlyFailedTestsArtifacts: false
},
screenshot: {
enabled: true,
shouldTakeAutomaticSnapshots: false,
keepOnlyFailedTestsArtifacts: false
},
video: {
enabled: false,
keepOnlyFailedTestsArtifacts: false
},
instruments: {
enabled: false,
keepOnlyFailedTestsArtifacts: false
},
timeline: {
enabled: false
},
uiHierarchy: {
enabled: false,
keepOnlyFailedTestsArtifacts: false
}
},
pathBuilder: ArtifactPathBuilder {
_rootDir: 'artifacts\android.2022-11-28 19-47-44Z'
}
},
behaviorConfig: {
init: {
reinstallApp: true,
exposeGlobals: true
},
cleanup: {
shutdownDevice: false
},
launchApp: 'auto'
},
cliConfig: {
loglevel: 'trace',
useCustomLogger: true
},
configurationName: 'android',
deviceConfig: {
type: 'android.emulator',
device: {
avdName: 'Pixel_3a_API_33'
}
},
runnerConfig: {
testRunner: 'jest',
runnerConfig: 'e2e/config.json',
specs: 'e2e',
skipLegacyWorkersInjection: true
},
sessionConfig: {
autoStart: true,
sessionId: '0db40334-cef0-de9b-cc1e-217b86b3b370',
debugSynchronization: 10000
}
}
16:47:49.727 detox[5068] DEBUG: [WSS_CREATE] Detox server listening on localhost:61478...
16:47:49.749 detox[5068] DEBUG: [WSS_CONNECTION, #61479] registered a new connection.
16:47:49.751 detox[5068] TRACE: [WS_OPEN] opened web socket to: ws://localhost:61478
16:47:49.754 detox[5068] TRACE: [WS_SEND] {"type":"login","params":{"sessionId":"0db40334-cef0-de9b-cc1e-217b86b3b370","role":"tester"},"messageId":0}
16:47:49.757 detox[5068] TRACE: [WSS_GET_FROM, #61479] {"type":"login","params":{"sessionId":"0db40334-cef0-de9b-cc1e-217b86b3b370","role":"tester"},"messageId":0}
16:47:49.758 detox[5068] TRACE: [SESSION_CREATED] created session 0db40334-cef0-de9b-cc1e-217b86b3b370
16:47:49.758 detox[5068] TRACE: [WSS_SEND_TO, #tester] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
16:47:49.759 detox[5068] TRACE: [SESSION_JOINED] tester joined session 0db40334-cef0-de9b-cc1e-217b86b3b370
16:47:49.760 detox[5068] TRACE: [WS_MESSAGE] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
16:47:50.187 detox[5068] DEBUG: [EXEC_CMD, #0] "C:\Users\dcard\AppData\Local\Android\Sdk\emulator\emulator.EXE" -list-avds --verbose
16:47:50.230 detox[5068] TRACE: [EXEC_SUCCESS, #0] Pixel_2_API_31
Pixel_3a_API_33
Pixel_6_API_31
16:47:50.231 detox[5068] DEBUG: [EXEC_CMD, #1] "C:\Users\dcard\AppData\Local\Android\Sdk\emulator\emulator.EXE" -version
16:47:50.693 detox[5068] TRACE: [EXEC_SUCCESS, #1] INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
Android emulator version <IP_ADDRESS> (build_id 9189900) (CL:N/A)
Copyright (C) 2006-2017 The Android Open Source Project and many others.
This program is a derivative of the QEMU CPU emulator (www.qemu.org).
This software is licensed under the terms of the GNU General Public
License version 2, as published by the Free Software Foundation, and
may be copied, distributed, and modified under those terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
INFO    | Android emulator version <IP_ADDRESS> (build_id 9189900) (CL:N/A)
16:47:50.695 detox[5068] DEBUG: [EMU_BIN_VERSION_DETECT] Detected emulator binary version { major: 31, minor: 3, patch: 13, toString: [Function: toString] }
16:47:50.696 detox[5068] DEBUG: [ALLOCATE_DEVICE] Trying to allocate a device based on "Pixel_3a_API_33"
16:47:50.699 detox[5068] DEBUG: [EXEC_CMD, #2] "C:\Users\dcard\AppData\Local\Android\Sdk\platform-tools\adb.EXE"  devices
16:47:50.749 detox[5068] DEBUG: [EXEC_SUCCESS, #2] List of devices attached
16:47:50.753 detox[5068] DEBUG: [ALLOCATE_DEVICE] Settled on emulator-11826
16:47:50.755 detox[5068] DEBUG: [SPAWN_CMD] C:\Users\dcard\AppData\Local\Android\Sdk\emulator\emulator.EXE -verbose -no-audio -no-boot-anim -port 11826 @Pixel_3a_API_33
16:52:49.685 detox[5068] ERROR: Exceeded timeout of 300000ms while handling jest-circus "setup" event
16:52:49.693 detox[5068] INFO:  Example is assigned to undefined
16:52:49.694 detox[5068] INFO:  Example: should show home and find text: Pagamento por reconhecimento facial
16:52:49.696 detox[5068] INFO:  Example: should show home and find text: Pagamento por reconhecimento facial [FAIL]
16:52:49.704 detox[5068] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeCleanup()
16:52:49.706 detox[5068] ERROR: Aborted detox.init() execution, and now running detox.cleanup()
HINT: Most likely, your test runner is tearing down the suite due to the timeout error
16:52:49.710 detox[5068] DEBUG: [WSS_CLOSE] Detox server has been closed gracefully
FAIL  e2e/firstTest.e2e.js (301.016 s)
● Example › should show home and find text: Pagamento por reconhecimento facial
Environment setup failed. See the detailed error below.

Device logs
Device logs
PS D:\Projetos\Payface\Hibrid app payface-app-store-client\android> yarn e2e:test --record-logs all
yarn run v1.22.19
$ detox test --record-logs all
13:05:16.333 detox[12644] INFO:  [test.js] DETOX_RECORD_LOGS="all" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1669651516324 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern "^((?!:ios:).)*$" e2e
13:05:21.700 detox[16876] ERROR: ChildProcessError: C:\Users\dcard\AppData\Local\Android\Sdk\platform-tools\adb.EXE -s emulator-16872 shell pm install -r -g -t /data/local/tmp/detox/Application.apk failed with code 1
at ChildProcess. (D:\Projetos\Payface\Hibrid app payface-app-store-client\node_modules\child-process-promise\lib\index.js:132:23)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.cp.emit (D:\Projetos\Payface\Hibrid app payface-app-store-client\node_modules\child-process-promise\node_modules\cross-spawn\lib\enoent.js:40:29)
at maybeClose (node:internal/child_process:1093:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
13:05:21.708 detox[16876] INFO:  Example is assigned to undefined
13:05:21.709 detox[16876] INFO:  Example: should show home and find text: Pagamento por reconhecimento facial
13:05:21.711 detox[16876] INFO:  Example: should show home and find text: Pagamento por reconhecimento facial [FAIL]
FAIL  e2e/firstTest.e2e.js
● Example › should show home and find text: Pagamento por reconhecimento facial
Environment setup failed. See the detailed error below.
● Test suite failed to run
ChildProcessError: `C:\Users\dcard\AppData\Local\Android\Sdk\platform-tools\adb.EXE -s emulator-16872 shell pm install -r -g -t /data/local/tmp/detox/Application.apk` failed with code 1

  at ChildProcess.<anonymous> (../node_modules/child-process-promise/lib/index.js:132:23)
  at ChildProcess.cp.emit (../node_modules/child-process-promise/node_modules/cross-spawn/lib/enoent.js:40:29)

13:05:21.866 detox[12644] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern "^((?!:ios:).)*$" e2e
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS D:\Projetos\Payface\Hibrid app payface-app-store-client\android> yarn e2e:test
yarn run v1.22.19
$ detox test
13:05:39.439 detox[25668] INFO:  [test.js] DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1669651539431 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern "^((?!:ios:).)*$" e2e
Environment setup failed. See the detailed error below.

● Test suite failed to run
ChildProcessError: `C:\Users\dcard\AppData\Local\Android\Sdk\platform-tools\adb.EXE -s emulator-16872 shell pm install -r -g -t /data/local/tmp/detox/Application.apk` failed with code 1

  at ChildProcess.<anonymous> (../node_modules/child-process-promise/lib/index.js:132:23)
  at ChildProcess.cp.emit (../node_modules/child-process-promise/node_modules/cross-spawn/lib/enoent.js:40:29)

13:05:44.561 detox[25668] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern "^((?!:ios:).)*$" e2e
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

More data, please!
detoxrc.json has this configuration:
{"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"skipLegacyWorkersInjection": true,
"apps": {
"android": {

  "type": "android.apk",

  "binaryPath": "android/app/build/outputs/apk/reactNative/staging/app-reactNative-staging.apk",

  "build": "cd android && .\\gradlew assembleReactNativeStaging assembleReactNativeStagingAndroidTest -DtestBuildType=debug && cd .."

}

},
"devices": {
"emulator": {

  "type": "android.emulator",

  "device": {

    "avdName": "Pixel_3a_API_33"

  }

}

},
"configurations": {
"android": {

  "device": "emulator",

  "app": "android"

}

}
}
One point that I must highlight is that the project was originally developed in native kotlin/java and we are applying react in the same project to carry out a migration of some parts, the implementation is being done in Mac, Linux and Windows machines. In the Detox documentation there is no mention of any restriction on the use of native technology and/or operating systems so that the tool is not used in possible scenarios. Any help with this problem we are facing is welcome, we also open space for indications of partner companies that provide Detox deployment and configuration services.

I have the same problem

@dcardosoweb can you please update here if @KeflemTrindade's answer helped you?

@dcardosoweb We need the full device log (i.e. using adb logcat) in order to be able to understand the issue. The error you've mentioned is not very informative.


Firefox hangs on js! call

I'm following this tutorial on building a web app with Yew, and came to a point where running the code in Firefox hangs. After a few seconds Firefox displays a little bar that says "a web page is slowing down your browser" and provides the option to stop the script. Upon stopping it, the following error is emitted to the console:
Error: Script terminated by timeout at:
__cargo_web_snippet_77c7f20d9ad1903cb1faad4b79591e5576426760@http://localhost:8000/hunt-the-wumpus.js:582:17
_ZN15hunt_the_wumpus4util7js_rand17hb7b32a7f756b0960E@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[398]:0x417ae
_ZN15hunt_the_wumpus4game4Game14configure_cave17hdd6a0e1c2a7d0206E@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[240]:0x296d5
_ZN63_$LT$hunt_the_wumpus..Model$u20$as$u20$yew..html..Component$GT$6update17h31b42414e0699416E@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[344]:0x37cfe
_ZN85_$LT$yew..html..ComponentEnvelope$LT$COMP$GT$$u20$as$u20$yew..scheduler..Runnable$GT$3run17h0453ba83ec062212E@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[159]:0x116ce
_ZN3yew9scheduler9Scheduler15put_and_try_run17h032f100b34ca56ffE@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[407]:0x41ff9
_ZN229_$LT$stdweb..webcore..newtype..Newtype$LT$$LP$stdweb..webcore..serialization..FunctionTag$C$$u20$$LP$A12$C$$RP$$RP$$C$stdweb..webcore..mutfn..Mut$LT$F$GT$$GT$$u20$as$u20$stdweb..webcore..serialization..FuncallAdapter$LT$F$GT$$GT$15funcall_adapter17hd8e30ed85274ca16E@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[359]:0x3b672
Module.STDWEB_PRIVATE.dyncall@http://localhost:8000/hunt-the-wumpus.js:474:12
output@http://localhost:8000/hunt-the-wumpus.js:174:17

The offending line in hunt-the-wumpus.js is:
Module.STDWEB_PRIVATE.from_js($0, (function(){return Math.random();})());

This all comes from the following Rust code:
use stdweb::unstable::TryInto;

pub fn js_rand(bottom: u8, top: u8) -> u8 {
    let rand = js! {
        return Math.random();
    };
    let base: f64 = rand.try_into().unwrap();

    (base * top as f64).floor() as u8 * bottom
}

I tried removing the js! call and just hardcoded a Rust f64 value to see what would happen. Running the program still hangs the browser tab, and upon stopping it, the following error is emitted to the console:
Error: Script terminated by timeout at:
_ZN15hunt_the_wumpus4game4Game14configure_cave17hdd6a0e1c2a7d0206E@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[196]:0x1ab35
_ZN63_$LT$hunt_the_wumpus..Model$u20$as$u20$yew..html..Component$GT$6update17h31b42414e0699416E@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[338]:0x37f28
_ZN85_$LT$yew..html..ComponentEnvelope$LT$COMP$GT$$u20$as$u20$yew..scheduler..Runnable$GT$3run17h0453ba83ec062212E@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[167]:0x13029
_ZN3yew9scheduler9Scheduler15put_and_try_run17h032f100b34ca56ffE@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[407]:0x41cc8
_ZN229_$LT$stdweb..webcore..newtype..Newtype$LT$$LP$stdweb..webcore..serialization..FunctionTag$C$$u20$$LP$A12$C$$RP$$RP$$C$stdweb..webcore..mutfn..Mut$LT$F$GT$$GT$$u20$as$u20$stdweb..webcore..serialization..FuncallAdapter$LT$F$GT$$GT$15funcall_adapter17hd8e30ed85274ca16E@http://localhost:8000/hunt-the-wumpus.wasm:wasm-function[353]:0x3b89c
Module.STDWEB_PRIVATE.dyncall@http://localhost:8000/hunt-the-wumpus.js:474:12
output@http://localhost:8000/hunt-the-wumpus.js:174:17

Which corresponds to a loop in the wasm file:
loop $label8
  get_local $var1
  i32.const 0
  i32.store8 offset=16
  get_local $var1
  i32.const 16
  i32.add
  get_local $var2
  i32.const 6
  call $_ZN49_$LT$i8$u20$as$u20$core..slice..SliceContains$GT$14slice_contains17h7841e984ad0bfbccE
  br_if $label8
end $label8

I'm not sure how helpful that is out of context. The reference to core::slice::SliceContains makes me think it might be related one of the places contains is called on a slice elsewhere in the program. I don't know if that has any connection to the previous error related to calling Math.random. Perhaps these are two unrelated errors and removing the first one simply allows the program to proceed far enough to hit the second one.
I'm compiling the program on macOS using cargo web start --release, using cargo-web 0.6.23 and stdweb 0.4.15.
Any idea if I've encountered a bug in stdweb or if I've done something wrong on my end? I'm happy to provide more information if I haven't offered enough context to see what the problem might be.

Hmmm... from what you've wrote it looks like it's working correctly; it just hogs the main thread a little too much.
If you do not stop the script then does it eventually finish?
Can you also try in Chrome and Safari?

I clicked "wait" a few times instead of stopping the script and each time it would hang until the message popped up again.
Chrome and Safari both hang indefinitely without any intervention like what Firefox does.

I noticed your js_rand function doesn't follow the tutorial:
pub fn js_rand(bottom: u8, top: u8) -> u8 {
  let rand = js! { return Math.random(); };
  let base: f64 = rand.try_into().unwrap();
  (base * top as f64).floor() as u8 + bottom
}

Note that the tutorial uses + bottom, not * bottom. That's very important! Since your code is always multiplying by 1, that means the result isn't right.

Wow, that was it! Thank you @Pauan! I guess I need to increase my font size so I can distinguish * and + better. :}
Is there any takeaway here for stdweb? Like, any way that it could have produced a failure that would have been easier to debug? If there's nothing to be done I can just close the issue.

Is there any takeaway here for stdweb? Like, any way that it could have produced a failure that would have been easier to debug? If there's nothing to be done I can just close the issue.

I don't think so. Infinite loops are hard to debug in any language.
Eventually wasm will have good integration with the browser's debugger, and that will help, but I don't think that requires stdweb to do anything.


New debug log line - Log the result and timestamp of every valid request

Currently the service logs in debug mode when it sends a requests.
To be able to debug unexpected issues, it would be great if we can log in debug mode responses of valid requests (here?) also and they include:

Timestamp
Total_response_time
Response_body?

Similar to what we do with response error logs:
Error sending event {"address":"0x...","type":"OUTGOING_TOKEN","tokenAddress":"0x...","txHash":"0x...","value":"3","chainId":"1"} to http://[URL]: [ERROR_MESSAGE]

Closing this because it is duplicated by mistake https://github.com/safe-global/safe-events-service/issues/206


wasted screen real estate with DimArray with units

A 3x3 DimArray with units on the parent matrix cannot be fully displayed to screen in a Pluto notebook.

Do you have a screen shot? I don't really use Pluto so I don't run into this

A 3x3 DimArray has a large offset between the Dimension label and numerical values such that the output needs to hide a column to fit on the screen.

For a variable without units, all entries of the 3x3 matrix can be viewed on screen.

Interesting, it could be DD, but I would guess that Unitful.jl is not telling Julia how to plot units properly in an array. Notice that the string is offset to the end of the whole number rather than the decimal point like it is without units. That's just the Base.print_matrix behaviour of units, not something I specifically wrote for DD.
Probably DD should stop using these base matrix display methods, as they're buggy like this, but it's a bit of work to write the layout logic from scratch.

Yes, looks like this is unitful. To demonstrate with a mixed unit matrix: the decimal points should line up, but we have the same horrible effect as in DD printing.
julia> using Unitful

julia> [1.99809802u"s" 2.339098; 1.0 2.0u"km/hr"]
2×2 Matrix{Quantity{Float64}}:
 1.9981 s        2.3391
      1.0  2.0 km hr^-1

And thats because they don't define a Base.alignment method so it hits the fallback for Number,
which puts everything to the left of the decimal point. This fixes the problem for me:
function Base.alignment(io::IO, x::Unitful.Quantity)
    total = Base.alignment_from_show(io, x)[1]
    parent = Base.alignment(io, ustrip(x))
    return parent[1], parent[2] + total - sum(parent)
end

So:
julia> [1.99809802u"s" 2.339098; 1.0 2.0u"km/hr"]
2×2 Matrix{Quantity{Float64}}:
 1.9981 s  2.3391
 1.0       2.0 km hr^-1

And DD printing looks fine to me too.

Looks really nice now. I think this will make a big impact for those who are trying to follow my Pluto notebook, plus it will help emphasize the usefulness of DimensionalData.jl.  Much appreciated!
Updated printing:


Fix discrepancy between backbone name and available variations

Right now it is crashes when tried to lookup eigenplaces_ResNet50_2048 in AVALIABLE_VARIATIONS

Nice catch, thanks!


Regenerate spanner client

This PR was generated using Autosynth. :rainbow:
Here's the log from Synthtool:
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/google-cloud-clients/google-cloud-spanner/synth.py.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
latest: Pulling from googleapis/artman
Digest: sha256:29bd82cc42c43825fde408e63fc955f3f9d07ff9989243d7aa0f91a35c7884dc
Status: Image is up to date for googleapis/artman:latest
synthtool > Cloning googleapis.
synthtool > Running generator for google/spanner/artman_spanner.yaml.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java.
synthtool > Running generator for google/spanner/admin/database/artman_spanner_admin_database.yaml.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java.
synthtool > Running generator for google/spanner/admin/instance/artman_spanner_admin_instance.yaml.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java.
synthtool > Running java formatter on 166 files
synthtool > Running java formatter on 1 files
synthtool > Running java formatter on 76 files
synthtool > Running java formatter on 1 files
synthtool > Running java formatter on 25 files
synthtool > Running java formatter on 1 files
synthtool > Running java formatter on 30 files
synthtool > Cleaned up 0 temporary directories.
synthtool > Wrote metadata to synth.metadata.

@andreamlin Does this need to sync with gax changes? It looks like we dropped a retry option.

@chingor13 Hey Jeff, I don't think this requires a gax-java change. The removal of DEADLINE_EXCEEDED is WAI.


Extended existing tests to include semver property

I've merged master and resolved any conflicts

@ethauvin when did you plan to release a 1.0.0-beta or 1.0.0 version?

@rveede 1.0.0, as soon as I have the SemVer Annotation Processor caught up.

@rveede I've just released 1.0.0; I'm not done with the processor, but I figured that might make it easier for you to integrate with your projects.


Memcache not found

After installing and while running vendor/bin/wp server I am getting this error on MacOSX in standard mode:
Class 'Memcache' not found in my-wordpress-project/wordpress/wp-content/object-cache.php on line 425
The file object-cache.php resides in multiple locations. That looks a bit weird.

It looks like you need to install or enable the memcache PHP extension. This is easiest via homebrew:
brew install php56-memcache

Where php56 assumes you are running version PHP 5.6.


SQL Lab: Query History: Duration column shows some nonsense durations (expected only duration of run)

Bug description
On the SQL Lab’s “Query History” tab, the “Duration column:
expected: it should show only execution duration for the query (i.e. under a second for simple queries)
actual: it is showing some real values along with some unexpected values as shown in the video and screenshot.
Steps to Reproduce

Go to SQL Lab
Create a query
Run the query (and variations of it) multiple times
Click the “Query History” tab
The “Duration” column will show a fraction of a second for each query
In the Results column, click “View”
Close the query view

Screenshots/recordings

https://github.com/user-attachments/assets/6c952b9c-f612-4478-996e-ab2531d2c41a
Superset version
4.0.2
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist

[X] I have searched Superset docs and Slack and didn't find a solution to my problem.
[X] I have searched the GitHub issue tracker and didn't find a similar bug report.
[X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Here's where that value is calculated/displayed, if you want to debug things a bit (printing out the times used in the calculation, etc)
https://github.com/apache/superset/blob/24b8a94c2ce4d21c65caa076bdc54ba61635be85/superset-frontend/src/pages/QueryHistoryList/index.tsx#L232-L249


Cipher_Group and Cipher_Rule can't be defined at the same time

Environment

Application Services Version: 3.37.0
BIG-IP Version: <IP_ADDRESS>
schemaVersion: 3.37.0

Summary
It doesn't seem possible to declare a Cipher_Rule and a Cipher_Group in the same AS3 definition when starting from nothing. I'm deploying via the Ansible bigip module.
As per this:
https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/refguide/schemaref/Cipher_Group.schema.json.html
"allowCipherRules" is expecting an array of ["bigip":"/something/something"] . using "use" doesn't work.
If I delete my cipher rule and re-declare it along with my cipher group in my AS3 template like so:
                "label.2022":{
                    "class": "Cipher_Rule",

                    "cipherSuites": ["ECDHE-RSA-AES256-GCM-SHA384", "ECDHE-RSA-AES128-GCM-SHA256", "DHE-RSA-AES256-GCM-SHA384", "DHE-RSA-AES128-GCM-SHA256"],
                    "namedGroups": ["DEFAULT"],
                    "signatureAlgorithms": ["DEFAULT"]

                },

                "label.2022":{
                    "class": "Cipher_Group",

                    "allowCipherRules": [ {"bigip":"/Common/Shared/label.2022"} ],
                    "requireCipherRules": [ {"bigip":"/Common/Shared/label.2022"} ]

                },

I get an error that states:
fatal: [myhostnamehere]: FAILED! => {"changed": false, "msg": "{'code': 422, 'declarationFullId': '', 'message': 'Unable to find /Common/Shared/label.2022 for /Common/Shared/label.2022/allowCipherRules/0'}"}

If I flip those to "use" statements I get:
fatal: [myhostnamehere]: FAILED! => {"changed": false, "msg": "{'code': 422, 'errors': ['/Common/Shared/label.2022/allowCipherRules/0/use: AS3 pointer /Common/Shared/label.2022 does not point to required object type'], 'declarationFullId': '', 'message': 'declaration is invalid'}"}

If I comment out my Cipher group statement, run my deployment (so the cipher rule gets deployed) and then add the Cipher_Group back in with the "bigip" version it works fine. The "use" statement version still fails.
EDIT: I must have been doing something else. It actually doesn't work fine. I have to manually create my Cipher_Rule in "/Common" and then include it from there. Otherwise I get:
fatal: [myhostname]: FAILED! => {"changed": false, "msg": "declaration failed. 01070712:3: Values (/Common/Shared/label.2022) specified for Cipher Group Rule (/Common/Shared/label.2022 0 /Common/Shared/label.2022): foreign key index (cipher_rule_FK) do not point at an item that exists in the database.. declaration failed. 01070712:3: Values (/Common/Shared/label.2022) specified for Cipher Group Rule (/Common/Shared/label.2022 0 /Common/Shared/label.2022): foreign key index (cipher_rule_FK) do not point at an item that exists in the database."}

Expected Behavior
Ability to interchange "use" and "bigip" calls (everywhere really) so that I can define Cipher_Rule and Cipher_Group configs in the same AS3 template when starting from scratch.
Actual Behavior
The Cipher_Rule has to be deployed first, the Cipher_Group can then be added.

Thank. So, I guess my problem, as you pointed out, was I didn't have "valid" JSON. I didn't even think of that because they were different "class" types and I wasn't getting a "duplicate" key or index error. I can confirm that "use" works fine once I changed up my labels to not be identical. AS3 deployment lesson learned. Appreciate your time.


Java 8 and 11 support

As Camunda BPM 7.17 still supports Java 8 and 11, it is better if the module supports these version too.

with 7.20 and spring boot 3, Java 17 is the way to go, there are breaking changes


Hsearch 1848

DO NOT MERGE
Removing most of the Infinispan related code; still keeping for now:

documentation
unit tests
integration tests
a deprecated version of the SPIs to make the constants still available

Because of those elements we've still not killed the circular dependency, but at least we start for a smooth transition.
While I don't think we should merge it now, I'd love to see if we're all on the same page on were this is going.

@emmanuelbernard do you agree to release w/o this PR or would you prefer us to consider including it?
It's tempting to include since it's well covered by integration tests, but the new module structure would need more than a trivial version bump to patch WildFly.

While I don't think we should merge it now

Why not?

Because of those elements we've still not killed the circular dependency, but at least we start for a smooth transition.

So why not go the full monty and do a complete removal. Is this not what we have discussed all along?

Looks like a bit too much for a final release indeed,
Reading this PR, it also means that we will "break" applications by moving the Maven coordinates etc. Maybe better do it all in a 5.3.

but the new module structure would need more than a trivial version bump to patch WildFly

I am not sure I follow entirely this, try and ping me. But if I understand you, we would be forced to keep the circularly dependent approach for WF 9 and won't likely fix this until WF 10? Or am I over interpreting?

So why not go the full monty and do a complete removal. Is this not what we have discussed all along?

If we make any non-trivial changes compared to 'Beta1', I'll need another round of testing from all parties; that might get ugly. We already have the green light regarding 5.2.0.Beta1 + Infinispan 7.2 + WildFly 9 combination.
I'd rather release a 5.3.0.Beta1 as well and let's see if that works..

it also means that we will "break" applications by moving the Maven coordinates etc. Maybe better do it all in a 5.3.

No, our old Maven module still exists, it merely has a dependency to the new module. It's empty other than having the deprecated classes which define constants.
But indeed I plan to do better when the time comes to remove it and learn how to publish one of these:
http://maven.apache.org/guides/mini/guide-relocation.html

But if I understand you, we would be forced to keep the circularly dependent approach for WF 9 and won't likely fix this until WF 10? Or am I over interpreting?

The affected modules are flagged "private" even in the application server and we can change them anytime. Actually the user won't even notice they are changed, but I would need to change the build scripts within WF9, which is a bit more complex than merely bump the version number of a structure which has been verified by other parties.

This is now merged


feat: add new pickerAppearance option 'monthOnly'

Description
Implements an additional option for date fields pickerAppearance named 'monthOnly'.
With this it is possible to provide a date field with month selection only.
The following field admin configuration is provided:
{
  name: 'fieldName',
  type: 'date',
  admin: {
    date: {
      pickerAppearance: 'monthOnly',
    },
  },
}

[x] I have read and understand the CONTRIBUTING.md document in this repository

Type of change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

Checklist:

[x] I have added tests that prove my fix is effective or that my feature works
[x] Existing test suite passes locally with my changes
[x] I have made corresponding changes to the documentation

Thank you @rustyy!!!
This will hit with the next patch release. Maybe tonight, definitely tomorrow.
👍


Update image name in Windows 10 21h2 publish file

Fixes a reference to an older image name used in testing that was changed later. This will resolve an error being seen in the publish stage where the image name differs from what is expected.

/assign hopkiw


Configuration issue

I have an issue where I define multiple mappings by extending PropertyMapConfigurerSupport, and also a configuration by implementing ModelMapperConfigurer. In my configuration I set the matching strategy to STRICT.
The issue I am having is that the configuration is not set before the mappings are.
In ModelMapperFactoryBean.java, in the configure method, the list of configurers is in alphabetical order. If my configuration class starts with a letter before any of my mapping classes, I dont have an issue. But if it is somewhere else in the list, ModelMapper throws an error, which would be avoided if my matching strategy was set to STRICT.
Is there a way I can force the configuration to run before the mappings? Can you update your code to have this happen?
Thanks,
Jason

Hey Jason,
I think that there is no need to make changes in this module at all. What you should be able to do is leverage the Spring's ordering functionality by using @Order annotation, you can place that on your bean class declaration or on the @Configuration methods. I have prepared test that illustrates your use case: https://github.com/jmnarloch/modelmapper-spring-boot-starter/blob/master/src/test/java/com/github/jmnarloch/spring/boot/modelmapper/ModelMapperOrdererConfigurerTest.java#L120
Hope that this helps.

Thanks for the quick response. Using the @Order annotation solved my issue. Thanks again!


on page refresh and if I open page in new tab spinner is not working.

What version of angular-loading-bar are you using?
What version of AngularJS are you using?
What browsers are affected?
Please provide either a JSFiddle, Plunkr example that replicates the issue
Please describe the issue
What did you expect to happen?
What actually happened?

angular-loading-bar v0.9.0
AngularJS v1.6.4
Chrome
In my web app on dashboard page there are 3-4 charts. If I redirect to the dashboard page loader is working fine, but if I refresh the page or if I open the page in new tab while redirecting, that time loader is not visible.
Ideally the loader should be visible on page refresh.


Add pogo.

I tried pogo a week ago and I'm curious about its results.
Can you try pogo and update the list, please.
Thank you!

In my opinion, we can close this issue, since pogo is pretty much not maintained since October last year. Of course, if you want to add it to the benchmark yourself, you can always open a pull request.


Wait for bulkShardProcessor to finish at the end of the test

The bulkShardProcessor needs to finish before the @after layers of the test kick in

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@0aae487). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #5182   +/-   ##
=========================================
  Coverage          ?   82.55%
  Complexity        ?    11023
=========================================
  Files             ?     1331
  Lines             ?    45055
  Branches          ?     5658
=========================================
  Hits              ?    37195
  Misses            ?     5228
  Partials          ?     2632

Continue to review full report at Codecov.

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


Use the reduced detail OSP AZ api to mitigate permissions problems

"Skyscape hosted RHEL OSP8 provider refresh failing with: Policy doesn't allow os_compute_api:os-availability-zone:detail to be performed." -- https://bugzilla.redhat.com/show_bug.cgi?id=1352867
This causes the Openstack refresh process to use a reduced-detail Availability Zone API call with less stringent permissions requirements in order to mitigate the issue described in the above bug.
@tzumainn

@mansam, looks like you'll have to re-record the VCR cassettes for the test.  Talk to @Ladas about how to do that.

The tests need to be updated, but this PR is verified to fix the reported issue.

@miq-bot add_label darga/yes

Darga backport merge conflicts:
$ git cherry-pick -x -m 1 1e70efc
error: could not apply 1e70efc... Merge pull request #9672 from mansam/use-reduced-detail-openstack-availability-zone-api
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'

$ git status
On branch darga
Your branch is up-to-date with 'upstream/darga'.
 as appropriate to mark resolution)

        both modified:   spec/models/manageiq/providers/openstack/cloud_manager/refresh_spec_common.rb
        both modified:   spec/vcr_cassettes/manageiq/providers/openstack/cloud_manager/refresher_rhos_icehouse.yml
        both modified:   spec/vcr_cassettes/manageiq/providers/openstack/cloud_manager/refresher_rhos_juno.yml
        both modified:   spec/vcr_cassettes/manageiq/providers/openstack/cloud_manager/refresher_rhos_kilo.yml
        both modified:   spec/vcr_cassettes/manageiq/providers/openstack/cloud_manager/refresher_rhos_kilo_keystone_v3.yml
        both modified:   spec/vcr_cassettes/manageiq/providers/openstack/cloud_manager/refresher_rhos_kilo_with_errors.yml
        both modified:   spec/vcr_cassettes/manageiq/providers/openstack/cloud_manager/refresher_rhos_liberty.yml
        deleted by us:   spec/vcr_cassettes/manageiq/providers/openstack/cloud_manager/refresher_rhos_liberty_keystone_v3.yml

Backported via #10811
$ git log

commit 239bc0d9a650839f2089c4eda96426e87fe4e4f6
Merge: 1ad695b a160d77
Author: Oleg Barenboim<EMAIL_ADDRESS>Date:   Tue Aug 30 11:14:22 2016 -0400

    Merge pull request #10811 from mansam/darga-backport-use-reduced-detail-openstack-availability-zone-api

    [DARGA] Backport  1e70efc: Use reduced detail openstack availability zone API


Feature: In-product support for Cloud Trial

Summary
Feature branch merge to support cloud 14-day trial subscriptions in Subscriptions section in the System Console with corresponding in-product banner notifications.
Ticket Link
https://mattermost.atlassian.net/browse/MM-34441
https://mattermost.atlassian.net/browse/MM-34505
https://mattermost.atlassian.net/browse/MM-34506
Related Pull Requests
Server feature branch PR: https://github.com/mattermost/mattermost-server/pull/17397
Customer Portal branch: https://github.com/mattermost/customer-web-server/tree/feature/cloud_trial_multiple_skus

/update-branch

@stevemudie heads up this is the feature PR for Cloud Trial for webapp, we can do a test once merged and the customer portal can create trial workspaces

@nickmisasi can you help configure the subscription for this pr https://dashboard.stripe.com/test/subscriptions/sub_JITmVTRRWWCXAL to be a trial so @annelieseklein can get a final feature UX pass before we merge to master

@marianunez added a 3 day trial. @annelieseklein let me know if you want to increase/decrease the amount of time left in the trial.

Just realized we can't test this yet because the portal is not updated with the new is_trial calculations.
Apologies @annelieseklein, we can do the feature UX review once we merge and get the customer portal updated as well.

@amyblais heads up this is the cloud 14 day feature that we are merging and need to cherry pick to cloud. The feature will be turned on/off from the portal based on the release testing this week.

/cherry-pick cloud

Cherry pick is scheduled.


dead link

Just FYI, Links from the video under Self Service Password reset return 404 error.  This is the link https://www.youtube-nocookie.com/watch?v=Pa0eyqjEjvQ

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

ID: 31d311ce-04db-267c-2519-b770e546eac0
Version Independent ID: c9b9b2c0-32f4-7838-be72-0c26ce483d1c
Content: Azure Active Directory user authentication
Content Source: articles/active-directory/authentication/overview-authentication.md
Service: active-directory
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@tbogle I am able to go through the link, here is the actual link

@tbogle if you look at the markdown for the document you'll notice we link directly to YouTube

[!VIDEO https://www.youtube.com/embed/hc97Yx5PJiM]

This link works just fine.

@tbogle We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


feat: channel implement get channel querier #81

Description:
As an application developer, I want to implement a "get channel querier" function for a specific channel, so that I can retrieve information about the channel and its details.
Commit Message
feat: implement get channel querier for channel

see the guidelines for commit messages.
Checklist:

[x] I have performed a self-review of my own code
[x] I have documented my code in accordance with the documentation guidelines
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have run the unit tests
[ ] I only have one commit (if not, squash them into one commit).
[x] I have a descriptive commit message that adheres to the commit message guidelines

Please review the CONTRIBUTING.md file for detailed contributing guidelines.

Codecov Report

Merging #220 (28043de) into main (4324c74) will increase coverage by 0.94%.
The diff coverage is 95.40%.

:exclamation: Current head 28043de differs from pull request most recent head 961c02d. Consider uploading reports for the commit 961c02d to get more accurate results

@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
+ Coverage   58.02%   58.97%   +0.94%
==========================================
  Files          68       68
  Lines        6583     6666      +83
==========================================
+ Hits         3820     3931     +111
+ Misses       2763     2735      -28

Impacted Files
Coverage Δ

contracts/cosmwasm-vm/cw-ibc-core/src/msg.rs
94.05% <91.66%> (-0.33%)
:arrow_down:

...osmwasm-vm/cw-ibc-core/src/ics02_client/handler.rs
95.66% <95.83%> (+0.02%)
:arrow_up:

...cosmwasm-vm/cw-ibc-core/src/ics02_client/events.rs
100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Remove unused pattern detectors and update README

The pattern detectors that we are not using by default will move to their own repository. This is to remove confusion for developers and clarify that they can still be used optionally if someone wants to. Also, we want to keep them available for backwards compatibility.

Codecov Report

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

@@             Coverage Diff              @@
##             master     #284      +/-   ##
============================================
- Coverage     80.22%   79.77%   -0.45%
+ Complexity      511      472      -39
============================================
  Files            66       62       -4
  Lines          1502     1449      -53
  Branches        232      224       -8
============================================
- Hits           1205     1156      -49
+ Misses          206      203       -3
+ Partials         91       90       -1

Continue to review full report at Codecov.

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


Update attachment_docusign_image_suspicious_links.yml

Description
Add coverage for missed samples
Associated samples

Sample 1

Associated hunts

Hunt 1

/update-test-rules

Feels like we'll need update the rule name since we're expanding scope beyond images? thoughts @zoomequipd

name updated


nice function picture

During my preparations for an exam in chemistry, I thought that the formula
for solubility of ionic compounds would give a nice picture. Here it is.

Given a dissociating ionic compound

A^+_mB^-_n <-> m A^+ + n B^-

the solubility is

L = (K_L / (m**m * n**n))**(1/(m+n))

where K_L is the solubility constant

K_L = c(A^+)**m * c(B^-)**n

where c is the concentration.

The attached picture was plotted with cplot using

f = lambda x: (1/(m**m * n**n))**(1/(m+n))

with m = x.real and n = x.imag.

Original issue for #183: http://code.google.com/p/mpmath/issues/detail?id=143
Original author<EMAIL_ADDRESS>Original owner<EMAIL_ADDRESS>

Closed in favor of #168


updated typescript types.

Describe your changes :

I worked on the Typescript types because needs to generate updated types from JSON schema.
Type of change :

[x] Bug fix

Frontend Preview (Screenshots) :

Checklist:

[x] I have read the CONTRIBUTING document.
[x] I have performed a self-review of my own.
[x] I have tagged my reviewers below.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[x] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers
@shahsank3t, @darth-coder00

Closing this as some issues occur while generating types.


Use GraphQL

An example GraphQL query that gathers most required information is
{
  repository(owner: "owncloud", name: "core") {
    issues(first: 100) {
      nodes {
        createdAt
        number
        timelineItems(itemTypes: [CLOSED_EVENT, REOPENED_EVENT], first: 10) {
          nodes {
            __typename
            ... on ClosedEvent {
              createdAt
            }
            ... on ReopenedEvent {
              createdAt
            }
          }
          pageInfo {
            hasNextPage
          }
        }
      }
      pageInfo {
        endCursor
        hasNextPage
      }
    }
  }
  rateLimit {
    limit
    cost
    remaining
    resetAt
  }
}

It is so cheap that we probably don’t need API token for public repositories.

@FranklinYu how do you run this code?


Insufficient privileges to complete the operation

Hi
I am https://graphexplorer.azurewebsites.net/ and I have logged in with user having directory role as global administrator in my Azure AD b2c directory.
I have registered an app there and provide it Direcory reaad and write persmissions in Application permission section.Below is screenshot of permissions configured.
I am using https://graph.windows.net/me with api_version=1.6 to partially update the user
say
{
"displayName": "new display name"
}
But it returns with error
{
"odata.error": {
"code": "Authorization_RequestDenied",
"message": {
"lang": "en",
"value": "Insufficient privileges to complete the operation."
}
}
}
It is working with B2C console app i have downloaded from their repository and configured with my registered app settings.

What i am missing here ?

Hello,
I've setup the permissions to the application as follows:

That worked in my situation, but I wasn't using the B2C sample, rather, the dotnet-webapi version. It should be of similar delegated permissions, though, so try it out. I hope it helps!

Closing as there is a reply


Expenses don't load properly when parsing from url parameters

If you paste this URL:
http://localhost:5173/remotefreelancept/#/?income=6000&incomeFrequency=month
you should see blank expenses (-) . However, if you change the income manually back and forth to 6000, it should appear as  3 600.00€. I'm not sure which one is correct, but worth the investigation

Working on it...


Login Takes Too Much Time.

When I log in (or sign up) on my Ghost installation, it takes up to three minutes until the page reloads and I'm logged in.
I use Ghost on my Raspberry Pi (not the most powerful device, I know) and I don't think this should last that long.

Installing bcrypt completely solves this problem on Raspberry Pi (actually npm install bcrypt takes less time than single login using bcryptjs).
It would be nice if using bgcrypt instead of bcryptjs will be default behavior on ARM systems.

It's not still not the case the bcrypt is not compiled on ARM system. This really needs to happen, otherwise ghost is useless on ARM platforms.

@Dygear I am sorry you are having trouble. bryptjs however relies only on JavaScript and therefore works on any ARM platform. The only reason why it is slow on the Raspberry Pi is because the Pi lacks a proper FPU (but you can speed things up by replacing bcryptjs with the native brypt library as pointed out by @ofstudio). Ghost certainly isn't useless on ARM platforms.

The installation and configuration of bcrypt to replace bcryptjs as described in this comment is now mandatory when Ghost is hosted on a Raspberry Pi 1. With bcryptjs the login procedure will timeout with a 'There was a problem on the server' error. This was tested on stock CPU speed with Ghost 0.8.0-1 from the Arch Linux User Repository.


read-only server

Effects https://trello.com/c/aCb5j0u4/24-document-omeroclusterreadonly by adding to https://ci.openmicroscopy.org/job/OMERO-DEV-merge-docs/ws/src/omero/_build/html/developers/Server/Clustering.html some notes on https://github.com/openmicroscopy/openmicroscopy/pull/5684. Do not merge until that PR is merged.

Note that code is opened against metadata54 at the moment so this may not be ready for merging into develop even once that PR is merged.

The latest commits read fine to me and look good to merge.

Holding off merging until the code PR is merged, unclear to me currently if this work is going into the 5.4.x line and we don't currently have another branch in the docs.


Query: Is there a possibility to include enterprise discounts offered by the cloud provider in calculating the individual resource cost or the overall cost?

Query: Is there a possibility to include enterprise discounts offered by the cloud provider in calculating the individual resource cost or the overall cost?

@SarmaKHCL I'd love to learn more about your use-case and which of the various enterprise discount programs you're more interested in, if you like we can have a quick call as it'll be faster than many back-n-forth detailed comments here, my email is<EMAIL_ADDRESS>

Closing this ticket as I believe you're discussing this with @hassankhosseini over email. Other users can add comments here or create new issues so we can understand their use-case.

@SarmaKHCL out of interest, which of these options would work for your use-case to handle discounts from the cloud providers?


Snake game using Gesture Control (Ideation)

@TusharAMD Kindly assign me this issue for GSSOC 22

Assigned

@TusharAMD hey do  close this issue as pr is merged


Fix ssh shell error on win7

Codecov Report

Merging #22 into master will decrease coverage by 2.09%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
- Coverage   64.67%   62.58%   -2.10%
==========================================
  Files          29       29
  Lines        2375     2309      -66
==========================================
- Hits         1536     1445      -91
- Misses        839      864      +25

Impacted Files
Coverage Δ

turbo_tunnel/ssh.py
54.54% <50.00%> (-9.46%)
:arrow_down:

turbo_tunnel/utils.py
68.06% <0.00%> (-4.45%)
:arrow_down:

turbo_tunnel/socks.py
43.36% <0.00%> (-2.40%)
:arrow_down:

turbo_tunnel/conf.py
78.76% <0.00%> (-1.62%)
:arrow_down:

tests/test_ssh.py
98.91% <0.00%> (-1.09%)
:arrow_down:

turbo_tunnel/chain.py
65.62% <0.00%> (-1.05%)
:arrow_down:

turbo_tunnel/server.py
73.15% <0.00%> (-0.88%)
:arrow_down:

turbo_tunnel/https.py
55.46% <0.00%> (-0.74%)
:arrow_down:

turbo_tunnel/tunnel.py
64.97% <0.00%> (-0.73%)
:arrow_down:

... and 9 more

Continue to review full report at Codecov.

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


cannot install

I followed all the steps and tried again and again for a few times but i dont see it in gmod

At garrys mod menu change gamemode to beatrun


Show the engagement name in the dashboard

Change the text "What we heard" in the title to "What We Heard"


how to cross sizes of  only configrable product without color variations

This code is working on color variation producsts.
how to cross sizes of  only configrable product without color variations.


Typo Fix

Fixed Typos in Availability Set notes (line 80)

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

@cynthn Would you review the proposed update to your article? I made some edits to further standardize on grammar and Microsoft style. I also spotted a broken link in line 32; is the link I used correct or OK? Thanks.

#sign-off It's fine for now, but I need to put in a link to the CLI\Linux tutorial as well. I can do that in a follow-up PR. Thanks!


Large file upload is sending Authorization header, causing email attachment upload to fail.

Describe the bug
Attempt to upload a file to an email draft as an attachment fails. Each PUT request to upload a slice of the file gets a 401 error with the following payload.
{"error":{"code":"InvalidAudience","message":"The audience claim value is invalid '00000003-0000-0000-c000-000000000000/@'.","innerError":{"oAuthEventOperationId":"f58e4b30-148c-437e-849f-37ca5b7204a9","oAuthEventcV":"ep+jvnMUEywAMLY2BaKRxw.1.1","errorUrl":"https://aka.ms/autherrors#error-InvalidResource","requestId":"7f325e95-d7f8-4ef1-81d2-db9e1577f602","date":"2024-08-20T20:28:19"}}}

Debug middleware reveals an Authorization header is being sent, which is likely the cause. From looking at the .NET implementation, the auth header is specifically omitted.
https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/blob/650189bf223447571e9ce5925d1d3abe7f25d6ef/src/Microsoft.Graph.Core/Tasks/LargeFileUploadTask.cs#L39
/// <param name="requestAdapter"><see cref="IRequestAdapter"/> to use for making upload requests. The client should not set Auth headers as upload urls do not need them.</param>

Expected behavior
File should upload.

		Messages().
		ByMessageId(*savedDraft.GetId()).
		Attachments().
		CreateUploadSession().
		Post(context.Background(), uploadSessionRequestBody, nil)

	// Max slice size must be a multiple of 320 KiB
	maxSliceSize := int64(320 * 1024)
	fileUploadTask := fileuploader.NewLargeFileUploadTask[models.FileAttachmentable](
		graphClient.RequestAdapter,
		uploadSession,
		byteStream,
		maxSliceSize,
		models.CreateFileAttachmentFromDiscriminatorValue,
		nil)

	// Create a callback that is invoked after each slice is uploaded
	progress := func(progress int64, total int64) {
		fmt.Printf("Uploaded %d of %d bytes", progress, total)
	}

	// Upload the file
	uploadResult := fileUploadTask.Upload(progress)

	if uploadResult.GetUploadSucceeded() {
		fmt.Print("Upload complete")
	} else {
		fmt.Print("Upload failed.")
	}
	// </UploadAttachmentSnippet>
}

SDK Version
1.47.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```

</details>

### Configuration

_No response_

### Other information

_No response_

Thanks for raising this @jasonjoh
I believe the AzureIdentityAccessTokenProvider should already prevent setting the Auth header for non-graph urls.
https://github.com/microsoftgraph/msgraph-sdk-go/blob/cf048153191e603f83c8ae4f2bc60eb54daae03a/graph_service_client.go#L35
Any chance you can share how you are initializing the GraphServiceClient instance?
On a different note, this check should probably be checking for the allowed hosts collection and not the scopes.
https://github.com/microsoftgraph/msgraph-sdk-go-core/blob/202886d3f524fe6064d8b60a962327897eae66de/authentication/azure_identity_access_token_provider.go#L34

Interesting. I was using the AzureIdentityAuthenticationProvider from github.com/microsoft/kiota-authentication-azure-go, which I see doesn't set any valid hosts for the validator, resulting in all URLs being "valid".
I changed to use the AzureIdentityAuthenticationProvider from msgraph-sdk-go-core, and now I get this panic error:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1c9f2c3]

goroutine 1 [running]:
github.com/microsoftgraph/msgraph-sdk-go-core/fileuploader.(*uploadSlice[...]).Upload(0x20d6d20, 0x20821b0)
        /home/jasonjoh/go/pkg/mod/github.com/microsoftgraph/msgraph-sdk-go-core@v1.2.0/fileuploader/upload_slice.go:81 +0x403
github.com/microsoftgraph/msgraph-sdk-go-core/fileuploader.(*largeFileUploadTask[...]).uploadWithRetry(0x20ef560, {{0x0, 0x0}, {0xc000403c00, 0x63d}, 0x0, 0x4ffff, 0x3160b6, 0x50000, {0x20d8e68, ...}, ...}, ...)
        /home/jasonjoh/go/pkg/mod/github.com/microsoftgraph/msgraph-sdk-go-core@v1.2.0/fileuploader/large_file_upload_task.go:136 +0xd1
github.com/microsoftgraph/msgraph-sdk-go-core/fileuploader.(*largeFileUploadTask[...]).Upload(0x20ef560, 0x20821d0)
        /home/jasonjoh/go/pkg/mod/github.com/microsoftgraph/msgraph-sdk-go-core@v1.2.0/fileuploader/large_file_upload_task.go:60 +0x218
sdksnippets/snippets.UploadAttachmentToMessage(0xc000194570, {0xc0001a4190, 0x1b})
        /home/jasonjoh/repos/msgraph-snippets-go/src/snippets/large_file_upload.go:127 +0x64a
sdksnippets/snippets.RunUploadSamples(0xc000194570, {0xc0001a4190, 0x1b})
        /home/jasonjoh/repos/msgraph-snippets-go/src/snippets/large_file_upload.go:23 +0x25
main.main()
        /home/jasonjoh/repos/msgraph-snippets-go/src/main.go:66 +0xba8

package graphhelper

import (
	"context"
	"fmt"
	"log"
	"os"
	"strconv"
	"strings"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	graphdebug "github.com/jasonjoh/msgraph-sdk-go-debug-logger"
	khttp "github.com/microsoft/kiota-http-go"
	graph "github.com/microsoftgraph/msgraph-sdk-go"
	graphcore "github.com/microsoftgraph/msgraph-sdk-go-core"
	auth "github.com/microsoftgraph/msgraph-sdk-go-core/authentication"
)

func NewUserGraphServiceClient(logger *log.Logger) (*graph.GraphServiceClient, error) {
	clientId := os.Getenv("CLIENT_ID")
	tenantId := os.Getenv("TENANT_ID")
	scopes := strings.Split(os.Getenv("GRAPH_USER_SCOPES"), ",")
	debug, err := strconv.ParseBool(os.Getenv("ENABLE_GRAPH_LOG"))
	if err != nil {
		debug = false
	}

	credential, err := azidentity.NewDeviceCodeCredential(&azidentity.DeviceCodeCredentialOptions{
		ClientID: clientId,
		TenantID: tenantId,
		UserPrompt: func(ctx context.Context, message azidentity.DeviceCodeMessage) error {
			fmt.Println(message.Message)
			return nil
		},
	})
	if err != nil {
		return nil, err
	}

	authProvider, err := auth.NewAzureIdentityAuthenticationProviderWithScopes(credential, scopes)
	if err != nil {
		return nil, err
	}

	if debug {
		return NewDebugGraphServiceClient(authProvider, logger)
	} else {
		adapter, err := graph.NewGraphRequestAdapter(authProvider)
		if err != nil {
			return nil, err
		}

		client := graph.NewGraphServiceClient(adapter)
		return client, nil
	}
}

func NewDebugGraphServiceClient(authProvider *auth.AzureIdentityAuthenticationProvider, logger *log.Logger) (*graph.GraphServiceClient, error) {
	showTokens, err := strconv.ParseBool(os.Getenv("GRAPH_LOG_TOKENS"))
	if err != nil {
		showTokens = false
	}
	showPayloads, err := strconv.ParseBool(os.Getenv("GRAPH_LOG_PAYLOADS"))
	if err != nil {
		showPayloads = false
	}

	clientOptions := graph.GetDefaultClientOptions()
	middleware := graphcore.GetDefaultMiddlewaresWithOptions(&clientOptions)
	debugMiddleware := graphdebug.NewGraphDebugLogMiddleware(logger, showTokens, showPayloads)
	allMiddleware := append(middleware, debugMiddleware)
	httpClient := khttp.GetDefaultClient(allMiddleware...)

	adapter, err := graph.NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndHttpClient(
		authProvider, nil, nil, httpClient)
	if err != nil {
		return nil, err
	}

	client := graph.NewGraphServiceClient(adapter)
	return client, nil
}

FYI I get the same panic if I switch back to using the auth provider from Kiota abstractions and pass in an array of valid hosts, like so:
authProvider, err := auth.NewAzureIdentityAuthenticationProviderWithScopesAndValidHosts(credential, scopes, []string{"graph.microsoft.com"})

@jasonjoh Any chance you can share a sample of the go.mod file as well?
Are you able to get the same error if the authentication lib and http package are the latest?

As far as I can tell I have the latest versions.
module sdksnippets

go 1.21

toolchain go1.21.5

require (
	github.com/Azure/azure-sdk-for-go/sdk/azcore v1.14.0
	github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0
	github.com/jasonjoh/msgraph-sdk-go-debug-logger v0.0.2
	github.com/joho/godotenv v1.5.1
	github.com/microsoft/kiota-abstractions-go v1.6.1
	github.com/microsoft/kiota-authentication-azure-go v1.1.0
	github.com/microsoft/kiota-http-go v1.4.4
	github.com/microsoftgraph/msgraph-sdk-go v1.47.0
	github.com/microsoftgraph/msgraph-sdk-go-core v1.2.1
	github.com/thlib/go-timezone-local v0.0.3
)

require (
	github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
	github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect
	github.com/cjlapao/common-go v0.0.40 // indirect
	github.com/davecgh/go-spew v1.1.1 // indirect
	github.com/go-logr/logr v1.4.2 // indirect
	github.com/go-logr/stdr v1.2.2 // indirect
	github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
	github.com/google/uuid v1.6.0 // indirect
	github.com/kylelemons/godebug v1.1.0 // indirect
	github.com/microsoft/kiota-serialization-form-go v1.0.0 // indirect
	github.com/microsoft/kiota-serialization-json-go v1.0.8 // indirect
	github.com/microsoft/kiota-serialization-multipart-go v1.0.0 // indirect
	github.com/microsoft/kiota-serialization-text-go v1.0.0 // indirect
	github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
	github.com/pmezard/go-difflib v1.0.0 // indirect
	github.com/std-uritemplate/std-uritemplate/go v1.0.5 // indirect
	github.com/stretchr/testify v1.9.0 // indirect
	go.opentelemetry.io/otel v1.29.0 // indirect
	go.opentelemetry.io/otel/metric v1.29.0 // indirect
	go.opentelemetry.io/otel/trace v1.29.0 // indirect
	golang.org/x/crypto v0.26.0 // indirect
	golang.org/x/net v0.28.0 // indirect
	golang.org/x/sys v0.24.0 // indirect
	golang.org/x/text v0.17.0 // indirect
	gopkg.in/yaml.v3 v3.0.1 // indirect
)

Just to confirm here, do you get the same error with the latest update after  https://github.com/microsoftgraph/msgraph-sdk-go-core/pull/321

That fixed it! Thanks for checking in.

Thanks for confirming here. Closing this one for now..


[Bug]: Copying selection to clipboard no longer working?

What happened?
I updated the openOutpaint a1111 plugin a few days ago (looks like commit 72f4e27), and now I'm noticing that I can no longer Ctrl-C images to the clipboard after selecting them with the S tool. I've tried toggling the "Use clipboard" icon in the context menu, but that doesn't make a difference.
Is it possible something broke here recently?
Steps to reproduce the problem
Create an image, go to the "Select image" tool, drag to select the image, press Ctrl-C to copy.
Go to another application and try to paste with Ctrl-V -- the clipboard is empty.
What should have happened?
Image should have been copied to clipboard
Commit where the problem happens
72f4e27
What platforms do you use to access openOutpaint?
Windows
What browsers do you use to access the UI ?
Google Chrome
Browser Extensions/Addons
lastpass, bitdefender
AUTOMATIC1111 webUI Commandline Arguments
--autolaunch --api
Additional information
No response

Probably broke on select tool overhaul. Will push a fix as soon as possible.

lol yep was just about to confirm that it seems to be on https://github.com/zero01101/openOutpaint/commit/ec4054529cc81a54a8f8d0f3b95f20473855ac6a unfortunately :/

Fixed.

It works now. Thanks guys!

@seijihariki, @zero01101  Also, I'm using the eager generation thing a lot, and it would be nice if there were a way to mark images and cycle through just the marked ones, for the case where user has generated dozens of inpaintings and is trying to decide between two or three that are far apart in the list. I may try to tackle this in the next couple weeks if I have time, suggestions welcome ahead of time, or you can wait to see what I come up with.

You can delete only the unwanted images, not sure if that is a valid alternative, at least for now.

Oh that's interesting, I didn't notice that before. So instead of scrolling through the list, prune the list with '-' as you go, skipping over the good images with mouse wheel. I'm going to try doing it that way for a while and see how it goes. Thanks!


anchor build panic

Getting the following error when i run anchor build in an anchor init project directory
BPF SDK: /Users/gabrielgrover/.local/share/solana/install/releases/1.8.3/solana-release/bin/sdk/bpf
thread 'main' panicked at 'Failed to install bpf-tools: "Permission denied (os error 13)"', sdk/cargo-build-bpf/src/main.rs:440:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Not sure what directory i need to grant permissions to on my machine from the above error output.  When I chmod /Users/gabrielgrover/.local/share/solana/install/releases/1.8.3/solana-release/bin/sdk/bpf I still get the same error

Are you using VSCode? Haven't seen that before, but there are some potential solutions here https://github.com/rust-lang/cargo/issues/6757.
cargo clean might fix it.

This is solana tools suite issue, not an anchor.