[BUG] Rule matching does not take rewritten uri into account

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When matching plugin rules, the original uri is used instead of the rewritten uri.
Expected Behavior
The rewritten uri should be used. Otherwise, there is no point in rewrite plugin.
Steps To Reproduce

Add a selector to SpringClould plugin: match uri /**.
Add a rule to SpringClould plugin: match uri /users/**
Add a selector to Rewrite plugin: match uri /v1/**.
Add a rule to Rewrite plugin: match uri /v1/hello, regex: .+, replace: /users/hello
Get /v1/hello  --> Rule not found!

Environment
ShenYu version(s): 2.4.0

Debug logs
2021-09-28 15:23:05.722  INFO AbstractShenyuPlugin   : rewrite selector success match , selector name :/v1
2021-09-28 15:23:09.939  INFO AbstractShenyuPlugin   : rewrite rule success match , rule name :/v1/hello
2021-09-28 15:23:10.897  INFO AbstractShenyuPlugin   : springCloud selector success match , selector name :/
2021-09-28 15:39:40.797 ERROR WebFluxResultUtils     : can not match rule data: springCloud

Anything else?
I'm sure the rewrite plugin was the first to execute, and the execution was successful.
The cause seems to be here. It gets the path directly, instead of checking the rewrite uri first.

/users/hello

have some error？

@yu199195 noop. The backend did not receive the request at all. Shenyu also did not trigger access (I confirmed this through debug.).
There's another evidence:

Add a selector to Rewrite plugin: uri == /users/hello/123.
Add a rule to Rewrite plugin: uri == /users/hello/123, regex: .+, replace: /users/hello
Get /users/hello/123 --> OK

This means that url rewriting is invalid for matching, valid only for the actual processing of the plugin.

At the same time, uri rewriting is not transparent to plugins, all plugins need to handle this situation manually. I don't think that's a good idea.

String url = uri.toASCIIString();
final String rewriteURI = (String) exchange.getAttributes().get(Constants.REWRITE_URI);
if (StringUtils.isNotBlank(rewriteURI)) {
        url = url.replace(uri.getPath(), rewriteURI);
}

The original request path not been replaced?

@yu199195
This function is called in the executor of the plugin -- after being matched by the rules.
But this plugin will not be executed, because rule matching uses the original uri.

this plugin will not be executed, because rule matching uses the original uri.

yes , rule matching uses the original uri.   rewrite plugin  only responsible for replace uri, other plugins are not affected when using uri matcher~

other plugins are not affected when using uri matcher.

Then the role of rewriting plugins is very small. Is this a intented behavior? So I have to use Redirect plugin? @yu199195

Anyway, thanks for the explanation. I have tried Redirect plugin, but encountered another problem. Others have the same report #2028 , but no further information :(


Update use-kustomize-for-kubernetes-deployments.md

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

running checks again

Preview environment: https://ci.pr.harness.io/pr-784


Test enhancement

Ⅰ. Describe what this PR does
Move namespace_test to controller folder.
Ⅱ. Does this pull request fix one issue?

None
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #164 into master will increase coverage by 1.41%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #164      +/-   ##
==========================================
+ Coverage   13.81%   15.22%   +1.41%
==========================================
  Files          50       44       -6
  Lines        2404     2088     -316
==========================================
- Hits          332      318      -14
+ Misses       2030     1729     -301
+ Partials       42       41       -1

Impacted Files
Coverage Δ

pkg/utils/kubeclient/namespace.go

pkg/utils/kubeclient/pod.go

pkg/utils/kubeclient/configmap.go

pkg/utils/kubeclient/node.go

pkg/utils/kubeclient/volume.go

pkg/utils/kubeclient/exec.go

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 d37ffbd...97438ff. Read the comment docs.


Follow up of ticket #10858: "Failed to attach disk"

Windows Version
See the original ticket #10858
WSL Version
See the original ticket #10858
Are you using WSL 1 or WSL 2?

[ ] WSL 2
[ ] WSL 1

Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
The original #10858 ticket is here: https://github.com/microsoft/WSL/issues/10858
The original #10858 ticket is inappropriately closed because the solution given by OneBlue does not work:

Command "wsl --unregister ubuntu" is not recognized.
I manually uninstalled Ubuntu (is this what OneBlue means by "unregister"?) and wsl in Apps & features, reboot, and reinstalled wsl with Ubuntu. The same issue persists. So, it is a bug that cannot be solved. Please log this problem as a bug and assign Microsoft programmers to fix it.

Expected Behavior
See the original ticket #10858.
Actual Behavior
See the original ticket #10858.
Diagnostic Logs
See the original ticket #10858.

I installed with Microsoft store and have gotten the same error
I then uninstalled it and went with wsl --install -d ubuntu and work this time.
from my problem earlier with the Microsoft Store installation, the script where we need to give the username and password didn't run hence getting the error

I don't have the same luck as you. I redid the whole thing again today (uninstalled Ubuntu and WSL, rebooted and reinstalled using wsl --install -d ubuntu), but exactly the same problem recurred.

@Heng-Zhou: wsl --unregister ubuntu should have worked. Can you share the output / error you got from that command ?

Thank you for this information. If I add "wsl --unregister ubuntu" before normal uninstallation and reinstall using "wsl --install -d ubuntu", the error I reported does not occur any more.
Here the "normal uninstallation" means uninstalling Ubuntu and WSL in App& features, unchecking "Virtual Machine Platform" and "Windows Subsystem for Linux" in Turn Windows feature on or off, and rebooting. I think the functions of the command "wsl --unregister ubuntu" should be included when I uninstall Ubuntu in App& features, so I personally still think it is a bug.


Bug: fix null input

In the name input field it is taking null input , it should display a warning to enter name in case input is null
Assign me under Gssoc'24 to solve this issue.
https://github.com/1Shubham7/Wife-Predictor-v2/assets/169196836/439ecdd3-e678-4567-a296-526263d3a676

Great Idea!


About the future

Good day!
First, is v4 release coming?
Second, the main change of v4 is "replaced 3.x task system (orchestrator) with new task system (bach)". But are there some plans about the real future (maybe for v5)? ECMAScript 7, async/await, generators, etc?
Thanks! :smile:

@kuraga FYI we already support all of that stuff - anything that works in node works just fine in gulp, and you can use babel for anything that node core hasn't implemented yet

@contra I'm talking about using these features in gulp (or bach, maybe) mechanisms...
Question is influenced by https://medium.com/swlh/you-might-not-need-gulp-js-89a0220487dd

So, Gulp is callback-oriented now. Might it be promises/generators/async-await/etc. oriented?

It also works with promises and streams, not just callbacks

The async types we support for task completion:

node-style streams
callbacks
promises
node's child processes
Observables (rxjs, etc)

I thought a lot about adding generators but the iteration case didn't seem like a good fit and it would have added a huge amount of code. That being said, you can still use that stuff in your gulpfile, we just don't use it to watch for task completion.

Thanks!


Added extra header path (closes #1)

Fixes issues with project config in some instances.

closes #1

Thanks @hyl :fire_engine:


Delete custom pattern matching operator for RealmSwift.Error in Swift 2.3

Custom pattern matching operator for RealmSwift.Error seems not working.
The following code doesn't work as expected:
let realm: Realm?
do {
    realm = try Realm()
} catch RealmSwift.Error.IncompatibleLockFile() {
    print("Incompatible lock file. The Realm Browser app might be attached to a Realm on the device.")
} catch  {
    // Always enter here
}

It always enter catch { instead } catch RealmSwift.Error.IncompatibleLockFile {
CC @jpsim @austinzheng

No longer support Swift 2.x


add preset for Digital Screen

This adds a preset for digital screens (man_made=video_wall)

Could you please reformat the JSON similar to other presets

Done


After Debugger.pause(), the debuggee program keeps executing.

Hi, @cyrus-and and others. Can you please help me?
I have two node.js processes, one of which is a debuggee (my program to be debugged) and the other one is a debugger client (launches chrome-remote-interface and connects/attaches to the debuggee).
Everything works fine, I get messages Debugger listening... and Debugger attached.
I also have in the client process this call client.Debugger.pause() and after the call I see Debugger.paused event with stack frames listed, and I can see the location of the current frame (in the middle of my program).
The problem: After paused, for some reason the debuggee program continues, i.e. keeps executing. Why is that?
Another problem I tried to put debugger; keyword to force stop but it has no effect.
Do you know what is the reason for the two problems I am facing? Is this probably an expectected behavior? I thought that a debugger should stop a program from executing further when pause is requested.
I will appreciate any help, thank you.
P.S. The code is complicated a little bit, I am working on minimal standalone script to reproduce, until then I would be happy to simply know if this behavior is expected or no?

Component
Version

Operating system
windows 7

Node.js
10.15.3

Chrome/Chromium/...
n/a (I am connecting to node process, not to chrome)

chrome-remote-interface
0.27.1

Is Chrome running in a container? - no chrome, no containers, just a node.js on my windows.

 This happens everytime when the code is complicated... :smiley:

Hi, is this resolved or not?

P.S. The code is complicated a little bit, I am working on minimal standalone script to reproduce, until then I would be happy to simply know if this behavior is expected or no?

The Debugger part is quite complex and can have, in my experience, some surprising outcomes, but yes I guess that this should not happen. Waiting for the minimal standalone script...

@cyrus-and First, thanks for response! Second, after I had received your confirmation that this is unexpected I tried to reproduce it in minimal example, but for some reason the minimal example works as expected, I am still working to find out what's the problem....

@cyrus-and OMG, the problem was in this code:
    finally {
        if (client) {
            await client.close();
        }
    }

which I blindly copied from the example in README.md of the repo. Lol! :smile: So I think the problem was that even if the debugger did pause on debugger;, the finally block closed the connection shortly after that, and closing the debugging connection led to resuming the debuggee script. Phew! This is another example of why making minimal reproducible example is a good thing :-) Thanks, for the response, even if short one, it really helped!

You're welcome, glad you found the bug. :)


New API method to allow to connect graphically other tiles to cables

I was writing a open computer driver for Refined Storage and I need to connect graphically the cables to another tile which doesn't implement INetworkNode nor INetworkMaster.

Thanks for the PR. However I don't think a Set<Class> is flexible enough. Can we perhaps change that to a Set<Predicate<TileEntity>>? Also, the connectableElements field in BlockCable is confusing. Can we centralize that to the API?

Something like this?

Wouldn't it be easier to just make some interface like IConnectable which has that one method shouldConnect or  canConnect or maybe not even have a method? (I guess default it to true, so you can have some requirements in your TE)

The problem with that is the fact I must to connect the TE to the cable without modifying the TE signature.
Creating IConnectable would be easier but more restrictive with code you can't modify.

Any reason you can't change the TE signature? Or what is the use case here?

The TE I want to connect is the Adapter from Open Computers and the use I propose is:
@RSAPIInject public static IRSAPI RSAPI;
Inside my init:
RSAPI.getConnectableConditions().add(tile -> tile instanceof Adapter);

Being a cable might even better just be a capability. Will have to discus this with @raoulvdberge some time.

Yep, a CableConnector capability would be cool. Are you able to bind such a cap to the adapter, @davidog23?

On the topic of the PR, it's nearly perfect. Can you move the  add(tile -> tile instanceof INetworkMaster || tile instanceof INetworkNode) call to ProxyCommon. Other API interactions are happening there too.

Thank you!

I was reading about the capability system but It confuses me, but I think I would be able to bind the TE with the CableConnector capability.


Powershell Start-Transcript does not log the same information each time it is ran

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
When using the following command the data in the log file is not the each time it runs. I am trying to use this command to capture the compile and clone process. The attached document called buildOutput.txt has the expected results but when rerunning my script the second time it did not log anywhere near the same data as the first log. buildOutput2.txt does not contain the cloning or compiling process shown in the first screen shot. The results contained in the log file are not consistent each time I run the power shell script.
buildOutput.txt
buildOutput2.txt
Start-Transcript  -Force -Path  $logfile
Expected behavior
See Attached buildOuput.txt

Actual behavior
See attached buildOutput2.txt file

Error details
No error returned

Environment data
Name                           Value
----                           -----
PSVersion                      5.1.19041.1151
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1151
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Visuals
None

PSVersion                      5.1.19041.1151

The repository is only for PowerShell 7. Can you reproduce the issue in latest PowerShell 7.2 Preview?

Is this a known issue in the current version I have installed?
Ed L Wolf
Technical Advisor - Embedded Software
812-377-0831
@.***
Cummins Inc.
Mail Code: C7004
1460 National Road
Columbus, Indiana 47201
United States
From: Ilya @.>
Sent: Wednesday, September 15, 2021 12:09 AM
To: PowerShell/PowerShell @.>
Cc: Ed L Wolf @.>; Author @.>
Subject: Re: [PowerShell/PowerShell] Powershell Start-Transcript does not log the same information each time it is ran (#16095)
EXTERNAL SENDER: This email originated outside of Cummins. Do not click links or open attachments unless you verify the sender and know the content is safe.
PSVersion 5.1.19041.1151
The repository is only for PowerShell 7. Can you reproduce the issue in latest PowerShell 7.2 Preview?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/PowerShell/PowerShell/issues/16095#issuecomment-919682777, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVUFHSZKOUSNHXI7NVYCJRTUCAL4ZANCNFSM5EA3RQEQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Hi
During some more testing I found that the issue can be resolved by doing the following steps

Open a command prompt in Windows
Execute my powershell script that will use Start-Transcript and Stop-Transcript to log
When the script complete close the command prompt window
Repeat steps 1 thru 3 and everything works fine

If I don’t close the Command prompt window and rerun my powershell script the log file does not always contain all the information that was display in the terminal window.
Any suggestions?
Ed L Wolf
Technical Advisor - Embedded Software
812-377-0831
@.***
Cummins Inc.
Mail Code: C7004
1460 National Road
Columbus, Indiana 47201
United States
From: Ilya @.>
Sent: Wednesday, September 15, 2021 12:09 AM
To: PowerShell/PowerShell @.>
Cc: Ed L Wolf @.>; Author @.>
Subject: Re: [PowerShell/PowerShell] Powershell Start-Transcript does not log the same information each time it is ran (#16095)
EXTERNAL SENDER: This email originated outside of Cummins. Do not click links or open attachments unless you verify the sender and know the content is safe.
PSVersion 5.1.19041.1151
The repository is only for PowerShell 7. Can you reproduce the issue in latest PowerShell 7.2 Preview?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/PowerShell/PowerShell/issues/16095#issuecomment-919682777, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVUFHSZKOUSNHXI7NVYCJRTUCAL4ZANCNFSM5EA3RQEQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

With respect to this issue, you are using Windows PowerShell 5.1. Thie repository only tracks issues with PowerShell 7.
Can you reproduce this issue in PowerShell 7?


Alpha-To-Depth masking

r1 had this as part of the material system.
If the opacity of a surface is less than a given threshold (with 0.0 effectively disabling the effect), then the fragment is discarded in the g-buffer.
This is something that's also going to affect the shadow mapping of #14.

Surface shaders gained the ability in f7e95dce7b63e0d4558de21d389cb44dfb831492  to conditionally discard in a way that's valid according to the GLSL spec. For example:

Writing to gl_FragDepth will establish the depth value for the fragment being processed. If depth buffering is enabled, and no shader writes gl_FragDepth, then the fixed function value for depth will be used as the fragment’s depth value. If a shader statically assigns a value to gl_FragDepth, and there is an execution path through the shader that does not set gl_FragDepth, then the value of the fragment’s depth may be undefined for executions of the shader that take that path. That is, if the set of linked fragment shaders statically contain a write to gl_FragDepth, then it is responsible for always writing it.

That is, the user-defined surface shader function should not call discard itself, but instead return a boolean value that allows the shader driver to later perform the discard after assigning gl_FragDepth.

Closing as this is now fully implemented.


Added MultipleSelectableRows to terra-table

Summary
This pull request adds a new component called MultipleSelectableRows to terra-table. This allows the user to select multiple rows from a table.
Additional Details
I logged issue #794 , where the isSelected prop is not honored without the isSelectable prop set as true in SingleSelectableRows. I changed the behavior of this in the MultipleSelectableRows component so that if you defined isSelected, it would be selected, regardless if you defined isSelectable. As mentioned in the issue, isSelectable is kind of a confusing name at this point, as isSelected could be true while isSelectable is false (in cases where you would want the row to be permanently hard-coded as selected). The desired behavior and interactions of these two props should probably be discussed.

@dv297 I checked out #794 and it appears to be a bug with the rendering of SingleSelect Table. I am currently in the process of addressing this issue. That being said, could you log an enhancement issue for the MultiSelect Table Rows and include a tech design for this PR?

Should this PR be closed until it's been updated and ready for review?

We can do that. With the new changes to SelectableTable, I have to rebase anyways. Closing.


Chance.js version 1.0.12

Hi, can you update Chance.js version to 1.0.12 instead of current 1.0.4.

I updated all vendored libraries in 3.8.1. Live in ~60 minutes.


Install error: Cannot find color scheme 'onedark'

I am trying to install your config on a new machine, but when following instructions in readme (make), the following error appears:
Error detected while processing ColorScheme Autocommands for "*":
E117: Unknown function: onedark#set_highlight
Error detected while processing /home/kurka/.vim/init.vim:
line  149:
E185: Cannot find color scheme 'onedark'
Press ENTER or type command to continue

tried both with vim and nvim installed

@kurka I had the same issue that would pop up on some systems.
I believe https://github.com/hlissner/.vim/blob/3f5c1fb21e4838ed8bef2435b4e3b1e6c7f429b9/init.vim#L4 is the issue.
If XDG_DATA_HOME isn't set then the make install will fail.


PRs changing Travis config cause confusion

In the eternal words of @adriancole:
whoah.. just learned something!
so we have 2 travis checkers on the pull request
the one ending in "pr" uses the travis config from that pull request
the one ending in "push" uses the previous travis config
so .. if you raise a pull request, which affects travis config, you might end up with a christmas status
the "pr" passes", but the "push" fails

Maybe rename them to something more descriptive?
Or should we close this issue? (due to lack of activity)

Methinks the name describes what the job does pretty well (-pr tests with a merge into master, -push tests on the branch). The issue here seems to be that one of the jobs (push) works incorrectly. I'm not sure how to approach fixing this without digging into Travis documentation.
Depending on how you think about GitHub Issues (todo list vs. issue tracker), it may make sense to close this (no-one's been working on this) or keeping it around (let's not forget it's here). Personally I'm in the "issue tracker" camp and would keep this open.

issue was discussed, became inactive, was added to todo list then 2 years later removed from todo list ... So I'll close this one if anyone objects feel free to reopen.


Broken link for distributed application bundles in Docker for AWS docs

Problem description
Docker for AWS has a broken link to "distributed application bundles".
Problem location
Docker for AWS / Distributed Application Bundles: first sentence.
Suggestions for a fix
Looks like Compose  now has a dedicated page for the bundle information/documentation. I have a local branch with the fix that I can open as a PR.

Fixed in #3661


Fadein Images when the page loads

Hello,
When the page loads, is there any way of loading all the images using a fadein effect (not talking about the transition). I've been trying many different ways of doing but are not working for the moment.
Thanks!

Hi. You could do it with CSS transitions:
.sp-image {
	opacity: 0;
	transition: opacity 1s !important;
}

.sp-image[style] {
	opacity: 1;
}

We check if the style attribute exists on the image, which is an indication that the image was fully loaded, resized and positioned.
Cheers.


move to rust for building infrastructure

Changes

Comments

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#331  👈
#328
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @chrisaddy and the rest of your teammates on  Graphite


page.js context?

Is it possible to get access to the page.js context?
I'm curious about using page.js's context to save route specific state for my application.

You can get it from FlowRouter.current().context

Hope we can close this.

Thanks Arunoda, was helpful for me.

May be we want add this to the README.
On Tue, Mar 31, 2015 at 7:27 AM dcworldwide<EMAIL_ADDRESS>wrote:

Thanks Arunoda, was helpful for me.
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/flow-router/issues/42#issuecomment-87897691
.


Add an option to choose AWS SES for email

Description
Add the option to choose SES as email provider. This will install django-anymail[amazon_ses] and set the EMAIL_BACKEND to anymail.backends.amazon_ses.EmailBackend
Rationale
To allow users to start a project with SES for email instead of Mailgun of they wish.
Use case(s) / visualization(s)
Send emails with SES.
//: # ("Better to see something once than to hear about it a thousand times.")

When you select a different value for cloud_provider then AWS, the AWS_* variables are not added to the settings. This breaks you configuration for SES since the credentials are not provided.
https://github.com/pydanny/cookiecutter-django/blob/master/{{cookiecutter.project_slug}}/.envs/.production/.django#L19

Thanks for your effort! I forgot about this, but it's now superseded by #2435, closing


[docker] jfrog rt upload of local folder created by jfrog rt download of a docker repository doesn't keep its directory structure

Describe the bug
The directory structure created by jfrog rt upload of a docker repository, in artifactory, is "flat".
The original repository used when download artifacts with jfrog rt download contained a few folders (e.g., library/debian/10, library/debian/9, ...), but the target repository for jfrog rt upload only contains the following files:

list.manifest.json
manifest.json
a number of sha256__xxx files

The result is a non functioning docker repository, in the sense that you can't use it with the docker cli, in an expected manner.
The log output seems a bit weird, when enabling debug output (perhaps because of threading?).  Anyways, of all 12 reported artifacts, only two log lines describes a HTTP PUT request against Artifactory:
[Debug] Sending HTTP PUT request to: https://username.jfrog.io/artifactory/dck-test-local/sha256__1c6172af85ee14a8db5a3a51d406b768dfa94d196c06d0d06d591507cf8199f0;
[Debug] Sending HTTP PUT request to: https://username.jfrog.io/artifactory/dck-test-local/sha256__376057ac6fa17f65688c56977118e2e764b27c348b3f70637fa829cd2a12b200;

However, this indicates that the CLI is no adding the correct path, to the HTTP PUT request.
To Reproduce

Setup a remote docker repository, e.g., docker hub

Setup a local docker repository, where we will upload the files to (in the real case, this is on another Artifactory server).

Use your docker cli, or any other tool like podman or skopeeo to pull in a few debian images (e.g., debian:10 and debian:9, also copy something else, like the hello-world image, so we have a bit more complex directory structure).
skopeo copy docker://username-dck-docker-remote.jfrog.io/library/hello-world oci-archive://dev/null
skopeo copy docker://username-dck-docker-remote.jfrog.io/library/debian:10 oci-archive://dev/null
skopeo copy docker://username-dck-docker-remote.jfrog.io/library/debian:9 oci-archive://dev/null

This will produce a directory structure like this, in the cache:
dck-docker-remote-cache
    - library
        - debian
            - 10
                - list.manifest.json
            - 9
                - list.manifest.json
            - sha256__18f374fa88f9230a5c860f986dc83d3d03a056708164ff30c98d0e789e90946d
                - manifest.json
                - sha256__376057ac6fa17f65688c56977118e2e764b27c348b3f70637fa829cd2a12b200
                - sha256__5971ee6076a06b695a62d8dbb5e4c977f2db1e45902f5bb8d4b74511d9649dde
            - sha256__d5fee78cade878cd56ae63754a0f923784648b4ad834b7f2f770ad4ff1bda2c6
                - manifest.json
                - sha256__1c6172af85ee14a8db5a3a51d406b768dfa94d196c06d0d06d591507cf8199f0
                - sha256__614bb74b620e2f9b393e1a1891cba13193486792ec2c59f7c3ceabee9e6507dd
    - hello-world
        - latest
            - list.manifest.json
        - sha256__90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042
            - manifest.json
            - sha256__0e03bdcc26d7a9a57ef3b6f1bf1a210cff6239bff7c8cac72435984032851689
            - sha256__bf756fb1ae65adf866bd8c456593cd24beb6a0a061dedf42b26a993176745f6b

Now download the remote docker repository with the jfrog cli
./jfrog rt dl dck-docker-remote-cache site_a-docker-remote/
{
  "status": "success",
  "totals": {
    "success": 12,
    "failure": 0
  }
}

It correctly download the directory structure:
$ tree site_a-docker-remote/
site_a-docker-remote/
└── library
    ├── debian
    │   ├── 10
    │   │   └── list.manifest.json
    │   ├── 9
    │   │   └── list.manifest.json
    │   ├── sha256__18f374fa88f9230a5c860f986dc83d3d03a056708164ff30c98d0e789e90946d
    │   │   ├── manifest.json
    │   │   ├── sha256__376057ac6fa17f65688c56977118e2e764b27c348b3f70637fa829cd2a12b200
    │   │   └── sha256__5971ee6076a06b695a62d8dbb5e4c977f2db1e45902f5bb8d4b74511d9649dde
    │   └── sha256__d5fee78cade878cd56ae63754a0f923784648b4ad834b7f2f770ad4ff1bda2c6
    │       ├── manifest.json
    │       ├──  sha256__1c6172af85ee14a8db5a3a51d406b768dfa94d196c06d0d06d591507cf8199f0
    │       └── sha256__614bb74b620e2f9b393e1a1891cba13193486792ec2c59f7c3ceabee9e6507dd
    └── hello-world
        ├── latest
        │   └── list.manifest.json
        └── sha256__90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042
            ├── manifest.json
            ├── sha256__0e03bdcc26d7a9a57ef3b6f1bf1a210cff6239bff7c8cac72435984032851689
            └── sha256__bf756fb1ae65adf866bd8c456593cd24beb6a0a061dedf42b26a993176745f6b

9 directories, 12 files

Now upload to the new local repository
JFROG_CLI_LOG_LEVEL=DEBUG ./jfrog rt u site_a-docker-remote/ dck-test-local
[Debug] Usage Report: Sending info...
 Log path: /home/user/.jfrog/logs/jfrog-cli.2020-06-01.16-44-32.331206.log
{
  "status": "success",
  "totals": {
    "success": 12,
    "failure": 0
  }
}

The uploads goes fine, but the content of the local repo is wrong.  It doesn't contain any of the folder structure and it seems like the list.manifest.json and manifest.json is from debian:10, which is consistent with the last image that was uploading according to the log file (hello-world:latest, debian:9 and then debian:10).

Expected behavior
Expected behaviour would be that the local repo being uploaded to, contained the correct directory structure, such that one would be able to pull images from it.
Versions

JFrog CLI version: 1.36.0
JFrog CLI operating system: Linux
Artifactory Version: Hosted Cloud (7.5.2)

Additional context

I'm currently testing the newest cli I could find: 1.36.0, but I have been told by a colleague that it has been a problem for as long as he has known (sadly he didn't bother to report it).

argh.  I do believe that I have found the error.  It seems to be on my side, not knowing that download default to --flat=false, however upload defaults to --flat=true.
In my opinion, that is just bad user experience.  There is most likely a great reason for this, I just don't see it right now.  But whatever it is, I would have expected that the flat option would default to the same value in all invocations of the cli.

@reenberg,
Indeed, this is something we are considering changing in a future major version. Having a different default values for --flat for upload and download is indeed not ideal, but cannot be easily changed due to backward compatibility.

I actually started my test with this blog post in mind, perhaps that one ought to get an update, as its example is just
jfrog rt dl generic-local-archived NewFolder/
...
jfrog rt u NewFolder/ generic-local-archive

which (at least) for docker also "fails" even when using --flat false.  Fails in the sense that it creates a new root folder with the name NewFolder.  In order to get a true sync I had to change directory into my folder, and then run the cli from in there with a local reference of ./:
cd site_a-docker-remote/
jfrog rt u --flat=false  ./ dck-test-local

That command seems to do the expected, a copy of the original that should be able to be pulled by docker.
However I seem to experience a few other problems before I can 100% say that it works.

Ah. So first error was that the list.manifest.json and manifest.json meta data files expired, and apparently they are not re-fetched when you attempt to download them.  So I had to pull the images again before Artifactory refreshed them.
I guess it didn't do it automatically since I'm talking directly to the -cache endpoint.  Minor detail.
The real show stopper seems to be that docker and skopeo aren't able to pull images from the local repo, where I uploaded the files to.
Docker errors with
response from daemon: missing signature key

https://jfrog.com/knowledge-base/how-to-fix-a-missing-signature-key-docker-client-error/ suggests that it is because of missing properties, and sure thing.  No properties are present in the local repo, where I uploaded the artifacts to.
I haven't had the chance to dig into the cli source, but if it doesn't know that it is uploading to a docker repo, then it wouldn't know that it should potentially automatically create these.
Skopeo errors with:
  unsupported schema version 2

I'm using version 0.1.40, which I'm unsure about with respect to v2 support.  However it can pull from the remote repo.  They are both configured to be "API Version: V2" under Basic settings.
So perhaps it is the same reason as Docker, just a bad error message?
Fixing the properties on both list.manifest.json and manifest.json, made it work for both skopeo and docker.
@eyalbe4, whats your take on whos responsebility it is to set those properties, and is there a way to work around this easily using the cli before something is fixed in the cli or in Artifactory?

@reenberg,
Which properties are you referring to?
Also, can you explain what are you attempting to achieve?

I'm referring to the properties outlined in the knowledge base article I linked to:

docker.manifest
docker.manifest.digest
docker.manifest.type
docker.repoName
sha256

My end goal, which I might not have made totally clear, is to copy all repositories from one Artifactory instance to another (or atleast most of them), as it is shown in this blog post. The internal instance are on a partially closed network, and thus can't talk to the remote one (rendering replication not an option).
Right now I'm just copying from a remote docker to a local docker repository in order to keep it simple.  And right now I'm focussing on Docker as that was the first repository type that failed.

To be honest I didn't create them manually.  I copied the two meta data files using the web ui from the remote to the local repo, such that the properties was preserved.
It currently have these properties defined, which made it work:

artifactory.internal.etag
docker.manifest
docker.manifest.digest
docker.manifest.type
docker.repoName
sha256

When I first uploaded to the local repository, then none of the files had any properties.

@eyalbe4,
I know this kind of derailed from the original bug report description, and i really want to close this issue, however it is a serious issue for us that the properties are not handled.
As I see it, this should be handled by Artifactory since

the cli doesn't really know that this is a docker repo, and thus doesn't know that the meta data files needs special handling (by having a bunch of properties added).
It seems to be something special Artifactory has added solely for the Docker repo type in order to corectly expose a Docker (v2) registry (podman and docker fails to properly talk to Artifactory without these properties).

However I need a confirmation on this, so that I can create a Jira issue against Artifactory instead or create a new issue here for the specific properties issue, if it should be handled by the cli.

@reenberg encountered this issue and worked around by re-creating the properties using directory structure. Hopefully @eyalbe4 and team will consider providing an upstream fix (at least for docker).

I have also encountered with this issue trying to export a remote repository cache into a local repository on another Artifactory instance located in an air-gaped network.
I prepared a spec file with AQL looking for artifacts created since a certain date and was planning to keep the repositories synchronized this way. (exporting and importing deltas)
I didn't get to check the properties issue mentioned by @reenberg  yet because the cli is failing to download the manifest.json (on docker repo).
a manual download of the manifest.json directly from the cache repo also fails with  a "Resource has expired" error.
I tried to workaround it by creating a virtual repo including the docker remote in it (not the cache)
manually downloading the same manifest.json from the virtual repository has worked (i assume that in this case it retrieves it from the remote repository and not from the cache)
But for my disappointment, downloading from the virtual repo using the jfrog cli did not produce the expected workaround - it is not downloading the manifest.json...
@eyalbe4
It would be great if we could use the cli for this purpose...synchronizing our offline repositories with the remotes...
By the way, this issue happens also with other repositories types like Debian which also has expiration time on certain files.


Iterate Through an Array with a For Loop Has Bug

Challenge Iterate Through an Array with a For Loop has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

// Example
var ourArr = [ 9, 10, 11, 12];
var ourTotal = 0;

for (var i = 0; i < ourArr.length; i++) {
  ourTotal += ourArr[i];
}

// Setup
var myArr = [ 2, 3, 4, 5, 6];

// Only change code below this line

var  total=0;
for (var  i = 0; i < myArr.length; i++) {

  total =total + myArr[i];   //even if by           total+=myArr[i];

}

//total=20;

@ac1982 thanks for the issue. You code runs fine for me. Can you elaborate more on what the bug you are experiencing? Like what is the intended outcome and what are you experiencing? Thanks! The more and descriptive the bug, the easier it is for us to help.

After restart my PC, it works well. I have no idea about the bug.
The reference will be fail with:
total should equal 20

I too am experiencing this bug. Using the latest Firefox Developer Edition.

Having a problem with the same bug.  This is my code, there doesn't seem to have anything wrong with it.
// Example
var ourArr = [ 9, 10, 11, 12];
var ourTotal = 0;
for (var i = 0; i < ourArr.length; i++) {
ourTotal += ourArr[i];
}
// Setup
var myArr = [ 2, 3, 4, 5, 6];
// Only change code below this line
var total = 0;
for ( var i = 0; i < myArr.length; i++) {
total =+ myArr[i];
}

@graysage
Please use the HelpJavaScript chat room for getting challenge related help.
Happy Coding.

graysage:  your total is 6.  It's supposed to be 20.


No longer compiles on ESP-IDF v4.3 or earlier

#74 broke compilation on v4.3 and earlier. The problematic line: https://github.com/lvgl/lvgl_esp32_drivers/blob/5d4334a5b9eaca15b7f9deaa0b734b23ba9ca811/lvgl_tft/esp_lcd_backlight.c#L28
.flags seems to only be available on the ESP-IDF master branch.

Thanks, will be fixed here https://github.com/lvgl/lvgl_esp32_drivers/pull/95


Nydus: temp mount leak if accelctl exits in advance

Reproduce:
$ accelctl convert --config misc/config/config.yaml localhost:5000/nginx:latest
# `Ctrl + C` to exit accelctl if the conversion still in progress.

$ mount | grep overlay
# Will see some temp mounts leak.

Fixed in https://github.com/goharbor/acceleration-service/pull/45


All features except syntax highlighting do not work

Hello and thank you for this vs code extension for the yang language server.
Having installed your extension on WSL Ubuntu (see details on versions below), I can see the syntax highlighting (NB: I have disabled all other YANG extensions and reloaded VS code), but I cannot see any other feature.
FYI I cannot use your extension directly on Windows because some corporate computer policy is blocking Java.
Do you have any idea what might be the cause?
Software versions:

Windows version: Windows 10 21H2 build 19044.2728
WSL Ubuntu version: 20.04.5 TLS
JRE: openjdk-11-jdk, version: 11.0.18+10-0ubuntu1~20.04.1

@dylanbob
It looks like the language server was not started for some reason. Is there something logged in the vs-code logs?
What you could try to nail down the cause is to run the Yang LS executable in the terminal to see if some errors are logged.
The executable is normally in your ~/.vscode user folder.
Try to launch it in the terminal like this:
~/.vscode/extensions/typefox.yang-vscode-2.2.0/server/bin/yang-language-server

Hi @dhuebner. I Can launch it directly from the terminal indeed, with not output:
~/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/bin/yang-language-server
I can then see it in processes :
~ » pgrep -a java
 1282 java -classpath /home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/io.typefox.yang.diagram-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/io.typefox.yang.ide-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/io.typefox.yang-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.sprotty.xtext-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtext.ide-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.lsp4j-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.elk.alg.layered-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.sprotty.server-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.sprotty.layout-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtext-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.lsp4j.generator-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.lsp4j.jsonrpc-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/gson-2.8.6.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/xercesImpl-2.12.2.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.elk.alg.common-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.elk.core-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.sprotty-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/javax.websocket-api-1.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtext.util-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtend.lib-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/log4j-1.2.17.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.equinox.common-3.13.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.osgi-3.16.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.elk.graph-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.emf.ecore.xmi-2.16.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.emf.ecore.change-2.14.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.emf.ecore-2.20.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.emf.common-2.17.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/guice-5.0.1.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/antlr-runtime-3.2.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/javax.inject-1.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtend.lib.macro-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtext.xbase.lib-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/aopalliance-1.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/guava-30.1-jre.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/failureaccess-1.0.1.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/jsr305-3.0.2.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/checker-qual-3.5.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/error_prone_annotations-2.3.4.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/j2objc-annotations-1.3.jar io.typefox.yang.diagram.launch.YangServerLauncher

also, I will see it as well after opening a YANG file in VSC:
~ » pgrep -a java
2318 java -classpath /home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/io.typefox.yang.diagram-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/io.typefox.yang.ide-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/io.typefox.yang-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.sprotty.xtext-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtext.ide-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.lsp4j-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.elk.alg.layered-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.sprotty.server-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.sprotty.layout-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtext-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.lsp4j.generator-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.lsp4j.jsonrpc-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/gson-2.8.6.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/xercesImpl-2.12.2.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.elk.alg.common-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.elk.core-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.sprotty-0.12.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/javax.websocket-api-1.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtext.util-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtend.lib-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/log4j-1.2.17.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.equinox.common-3.13.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.osgi-3.16.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.elk.graph-0.7.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.emf.ecore.xmi-2.16.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.emf.ecore.change-2.14.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.emf.ecore-2.20.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.emf.common-2.17.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/guice-5.0.1.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/antlr-runtime-3.2.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/javax.inject-1.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtend.lib.macro-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/org.eclipse.xtext.xbase.lib-2.26.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/aopalliance-1.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/guava-30.1-jre.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/failureaccess-1.0.1.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/jsr305-3.0.2.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/checker-qual-3.5.0.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/error_prone_annotations-2.3.4.jar:/home/XXXXXX/.vscode-server/extensions/typefox.yang-vscode-2.2.0/server/lib/j2objc-annotations-1.3.jar io.typefox.yang.diagram.launch.YangServerLauncher

I don't see any output in the "Problems", "Output" or "Debug console" VSC views.
I found these logs while searching with ctrlp+p:
2023-03-31 10:00:24.456 [info] Extension host with pid 2952 started
2023-03-31 10:00:24.580 [info] Lock '/home/das/.vscode-server/data/User/workspaceStorage/e30b437bddb1ddefde7cc26189bf04f3/vscode.lock': Lock acquired.
2023-03-31 10:00:24.749 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2023-03-31 10:00:24.755 [info] ExtensionService#_doActivateExtension typefox.yang-vscode, startup: false, activationEvent: 'onLanguage:yang'
2023-03-31 10:00:24.757 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.git
2023-03-31 10:00:25.111 [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
2023-03-31 10:00:25.112 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
2023-03-31 10:00:25.663 [info] Eager extensions activated
2023-03-31 10:00:25.665 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: 'onStartupFinished'
2023-03-31 10:00:25.666 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
2023-03-31 10:00:25.667 [info] ExtensionService#_doActivateExtension GitLab.gitlab-workflow, startup: false, activationEvent: 'onStartupFinished'

Hope it helps...

I cannot trigger anything :( apart from syntax highlighting, nothing seems to work. I cannot test simply on Windows either because technical corporate policies prevent java from running on my computer.
I never had an issue regarding vscode extensions on WSL, but the problem might still be related to it I guess.

@dylanbob
I've asked a friend of my to try it out on Windows using WSL and Ubuntu 22. Everything worked as expected, also the Yang diagram view.
What you can probably also try is to connect to your Ubuntu using vs-code "Remote Development" extension. Otherwise I don't know how to help without having an error log.

Hi @dylanbob Dennis asked me to perform the tests. If you are able to use vscode under Windows you can also as @dhuebner use it to connect to a WSL instance.
Extension installed in a remote session run inside the WSL, means Java or any other software / compilers from the Linux systems are used:

But I also tested vscode running directly in Ubuntu and both scenarios work out of the box.
My Linux env:
# uname -a
Linux Defiant <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

# lsb_release  -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

# java --version
openjdk 11.0.18 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)

Bingo! I managed to make it work with a simple file in a seperate folder, and opening only this folder. So this might be a memory problem like you said. I don't really know how Windows manages the WSL memory allocation...
How could we debug that deeper?

@dylanbob regarding WSL config options this is what you are looking for:
https://learn.microsoft.com/en-us/windows/wsl/wsl-config#configuration-setting-for-wslconfig
https://learn.microsoft.com/en-us/windows/wsl/wsl-config#example-wslconfig-file

Hi. There was a 8GB RAM limit configured by default for WSL, as documented and as I could see with the free command. However, rising this limit (e.g. to 12GB) has no effect on the issue as vscode (or java, or the YANGster extension...) seems to limit itself to 2.5-3GiB according to the ps or htop commands. I cannot see any limit configured on vscode or ubuntu and I have not customised the openjdk11 configuration.
So I am not sure if that's actually a memory limit issue, or rather some bug making the extension or the language server unable to handle large directories ?
Could you try with these ? Nokia SR-OS Yang models

hi @dhuebner. I understand that you are sharing your software freely without support and therefore owe me nothing. Hovewer, just so you do not forget about my issue, I must ask you again if you would please test that your plugin functions correctly with the provided YANG files. Thanks

@dylanbob
I was able to investigate what happens with your example project. It is not a bug or endless loop or similar, the Language Server is just to slow... Even if I remove the biggest 20M and 17M models it still take minutes to finish the initial workspace resolution. Without the initialization the LS doesn't respond on request so it seems like it is not working.
Long story short, one need much more time to find a solution to speed up the Type resolution and also make the scoping faster. What I also missing is a user feedback that indicates the server is currently running, at least a Log would be helpful here.
I will look into some low hanging fruits to speed up the workspace build. Also making it configurable, so one can disable the initial workspace indexing could help.

@dhuebner
Thank you for your investigation. Your leads seem promising. The logs would be great too.
I do not understand how the whole thing works exactly but let suggest something too: maybe one other way to speed up the process would be to only process modules and submodules in opened files? (+ linked files targeted by imports and includes)


typo fixing in BSD-3-Clause

typo fixing in BSD-3-Cluase
refer this https://opensource.org/licenses/BSD-3-Clause

haha I have no idea how those got into there


Feature request - OpenID Connect / OAuth 2 / JWT support

Hi,
Have you thought about adding Authentication support to the QuickLib framework ?
Basic client support for OpenID Connect, OAuth2, JWT would be pretty cool.
https://openid.net/connect/
Regards
Andrew

I support this too :-)

Hi @exilon,
Would you be interested in a pull request that adds OAuth 2 to QuickLib?

Yes, thanks for your code.

Would love to see this addition


[WFLY-3355] MDB fails to deploy on reload

Removal of the RA's bootstrap context must be performed in
AbstractResourceAdapterDeploymentService#stop() method.
JIRA: https://issues.jboss.org/browse/WFLY-3355

This cancels #7853 and puts the removal of the bootstrap context identifier in the correct place

@maeste, can you ack it before it is merged, please?

Linux Build 7257 is now running using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce

Windows Build 2310 is now running using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce

Linux with security manager Build 2126 is now running using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce

Linux with security manager Build 2126 outcome was FAILURE using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce
Summary: Tests failed: 1 (1 new), passed: 896, ignored: 285 Build time: 0:07:38
Build problems:
Failed tests detected
Failed tests
org.jboss.as.test.smoke.deployment.rar.tests.earmultirar.EarPackagedMultiRarDeploymentTestCase: <no details avaliable>

Linux Build 7257 outcome was SUCCESS using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce
Summary: Tests passed: 2983, ignored: 358 Build time: 0:47:16

Windows Build 2310 outcome was SUCCESS using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce
Summary: Tests passed: 2981, ignored: 359, muted: 1 Build time: 0:51:54

LGTM

retest this please

Windows Build 2313 is now running using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce

Linux with security manager Build 2129 is now running using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce

Linux Build 7260 is now running using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce

Linux with security manager Build 2129 outcome was SUCCESS using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce
Summary: Tests passed: 897, ignored: 285 Build time: 0:06:15

Linux Build 7260 outcome was SUCCESS using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce
Summary: Tests passed: 2983, ignored: 358 Build time: 0:47:14

Windows Build 2313 outcome was SUCCESS using a merge of f08c54d2d536788bdaa8a0f84f271bd75a7d62ce
Summary: Tests passed: 2981, ignored: 359, muted: 1 Build time: 0:49:09


MongoDB: Filtering by relation returns no results

Bug description
Given a schema with two models: User and Post and a relation between the two, when querying for posts based on the author's email returns no results.
How to reproduce

Create the prisma schema using the schema below
Create a user and 3 related posts with the following query:

const user = await prisma.user.create({
    data: {
      email<EMAIL_ADDRESS>      firstName: 'David',
      lastName: 'Deutsch',
      posts: {
        create: [
          { title: 'Hello world' },
          { title: 'Introduction to Prisma with Mongo' },
          { title: 'MongoDB and schemas' },
        ],
      },
    },
    include: {
      posts: true,
    },
  })

Query for posts associated with the user:

const posts = await prisma.post.findMany({
    include: {
      author: true,
    },
    where: {
      author: {
        email<EMAIL_ADDRESS>      },
    },
  })

No results are returned
When trying to filter using the authorId the correct results are returned:
const posts = await prisma.post.findMany({
    include: {
      author: true,
    },
    where: {
      authorId: '609be3590072a87400dd7c29',
    },
  })

Expected behavior
Calling findMany with filtering based on the author.email should return the posts.
Prisma information
Prisma schema
model User {
  id        String   @id @default(dbgenerated()) @map("_id") @db.ObjectId
  createdAt DateTime @default(now())
  firstName String
  lastName  String?
  email     String   @unique
  posts     Post[]
}

model Post {
  id        String   @id @default(dbgenerated()) @map("_id") @db.ObjectId
  createdAt DateTime @default(now())
  title     String
  body      String?
  views     Int      @default(0)
  author    User?    @relation(fields: [authorId], references: [id])
  authorId  String?  @db.ObjectId
}

Environment & setup

OS: MacOS
Database: MongoDB
Node.js version: v14.16.1
Prisma version:

prisma               : 2.22.1
@prisma/client       : 2.22.1
Current platform     : darwin
Query Engine         : query-engine 60cc71d884972ab4e897f0277c4b84383dddaf6c (at node_modules/@prisma/engines/query-engine-darwin)
Migration Engine     : migration-engine-cli 60cc71d884972ab4e897f0277c4b84383dddaf6c (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine : introspection-core 60cc71d884972ab4e897f0277c4b84383dddaf6c (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary        : prisma-fmt 60cc71d884972ab4e897f0277c4b84383dddaf6c (at node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash : 60cc71d884972ab4e897f0277c4b84383dddaf6c
Studio               : 0.379.0
Preview Features     : mongoDb

I can confirm this bug with version 2.23.0-dev.28. Thanks for the detailed report! Really appreciate that.

Fixed in 2.28.

Hello everybody,
I'm using prisma 3.15.2 and this bug is still there. When I try to filter a collection using a property in a relation it returns 0 elements.
This is my schema:
  model Campaign {
    id                   String            @id @default(auto()) @map("_id") @db.ObjectId
    name                 String
    status               CampaignStatus
    signatures           Signature[]
  }

  model Signature {
    id                   String            @id @default(auto()) @map("_id") @db.ObjectId
    campaign             Campaign          @relation(fields: [campaignId], references: [id])
    campaignId           String
  }

  enum CampaignStatus {
    NEW
    ACTIVE
    PAUSED
    FINISHED
    EXPIRED
  }

The query I'm trying is:
    const c = await prisma.signature.findMany({
        include: {
            campaign: true
        },
        where: {
            campaign: {
                status: "ACTIVE",
            }
        },
    });

And the result is that c has length 0
I checked the DB and the data is there and correctly linked.
Thanks in advance,
Luis

Please open a new issue @luiso1979, too much changed from this old version for this to make sense to reopen again. You can basically copy/paster your text into a bug issue with its template.


io sockets test leaks on windows

[ "io.sockets.windows" test ] leaks

Three win32-socket objects leak.

No longer has a leaked socket on my win8 lenovo install. Weird. Closing.


alpha.cuelang.org: add "raise bug" feature to playground

Is your feature request related to a problem? Please describe.
The playground is regularly used as a place in which to test out behaviour of CUE, especially when it is considered there might be a bug.
In https://github.com/cue-lang/cue/issues/1150 we discuss bringing the playground inline with the behaviour, commands etc of cmd/cue.
At the moment, copy-paste creation of bug reports is necessary, copying the input to a specific part of the bug report template, as well as the output.
Describe the solution you'd like
A link to quickly create a bug report from the current contents of the playground.
Describe alternatives you've considered
Copy-paste works, it's just painful. We want to make reporting bugs/issues as easy as possible.
Additional context
n/a
cc @mvdan @mpvl

We should also make the playground do something useful, like suggesting that the user report a bug, when the Go code runs into a panic. Right now, it simply freezes and dumps the panic info in the console, meaning that most users are left confused and might not even raise a useful bug report.

This is separate to my mind because it will require work in the Go code space. I will raise a separate issue for that.

Done: https://github.com/cue-lang/cue/issues/2537

This has been working for some time. Per https://github.com/cue-lang/cuelang.org/commit/bcf703c3b2d4cfbbab3d0b5cb779534793d4c223:


Calico Vote (Maryam, Nora, Kushi, Joanna)

Leave N@tm feedback here!!

Beautiful work. Emelya

This is so appealing. i really enjoy this. Edward Hong

This is Justin from CSP Period 5 with Mr. Brown. Your guy's website is very cool. I think you could center some elements and add a break but otherwise it's very cool!

I thought the Calico Critters were a very cute touch. The website functions as expected. A thumbs up/10. Shreena

All your work is completed pretty well and it's really cool seeing everything that you've done throughout this trimester! Your images are so cute and I love the links and how they work. Cats are my favorite too -Hannah

I love the cats and the videos, they are so cute! Your about page is so cool too! -Summer

Your toolbar at the top is really cool, the links all work and go to the expected things. I really like your critter page too! It's so cute and I love the creativity - Rhea

i loved the page. Who got the most votes? I would love to see which critter won. - Matthew (not csp)


Add Spanish translation (#28)

This PR is meant to deploy the work from #28. cc @mberasategi @droidpl @davenowell for review 😊

Create ES translation

Translate first steps

Translate 02_headers except CLI version

Translate 03_pr-succeeds except CLI

translate 03_request except CLI

Translate 04_add except CLI

Translate up to 05 excluding CLI

Translate 06 excluding CLI

Translate up to 07 except CLI

Translate up to 08 exluding CLI

Translate up to 09 exlcluding CLI

Translate 10

Translate CLI option

Add correction suggestions

Replace issue translation from incidencia to propuesta

Translate GitHub Help link title

Apply suggestions from code review

Translate GitHub Help link titles
Co-authored-by: Javier de Pedro López<EMAIL_ADDRESS>
Replace "propuesta" with "incidencia"

Co-authored-by: Javier de Pedro López<EMAIL_ADDRESS>Co-authored-by: miren<EMAIL_ADDRESS>Co-authored-by: Javier de Pedro López<EMAIL_ADDRESS>

You can test the course here. @mberasategi, I'm going to add you to a team within this org so you should also be able to view the test deployment. You should see an invitation in your email. 😊

Woohoo! Thank you so much, @mberasategi, @droidpl, and @davenowell! ✨


Powershell DSC does not work on OSX

Anything related to DSC does not seem to work on OSX because of a dependency problem. Related to https://github.com/PowerShell/MMI/issues/33
It is not a problem with Publish-AzVMDscConfiguration, but this happens with anything DSC related.
Steps to reproduce
Publish-AzVMDscConfiguration ".\configuread.ps1" -OutputArchivePath ".\configuread.ps1.zip"

Expected behavior
No errors

Actual behavior
Publish-AzVMDscConfiguration : Configuration script '/Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1' contained parse errors:
At /Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1:1 char:15
+ Configuration NewADForest
+               ~~~~~~~~~~~
System.IO.DirectoryNotFoundException: Unable to find DSC schema store at /etc/opt/omi/conf/dsc/configuration. Please ensure PS DSC for Linux is installed.
   at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.Initialize(Collection`1 errors, List`1 modulePathList)
   at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.LoadDefaultCimKeywords(Dictionary`2 functionsToDefine, Collection`1 errors, List`1 modulePathList, Boolean cacheResourcesFromMultipleModuleVersions)
   at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.LoadDefaultCimKeywords(Collection`1 errors)
   at System.Management.Automation.Language.Parser.ConfigurationStatementRule(IEnumerable`1 customAttributes, Token configurationToken)
At /Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1:2 char:1
+ {
+ ~
Unexpected token '{' in expression or statement.
At /Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1:8 char:52
+         [System.Management.Automation.PSCredential]
+                                                    ~
Missing closing ')' in expression.
At /Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1:9 char:9
+         $Credential,
+         ~~~~~~~~~~~
Unexpected token '$Credential' in expression or statement.
At /Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1:18 char:5
+     )
+     ~
Unexpected token ')' in expression or statement.
At /Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1:63 char:1
+ }
+ ~
Unexpected token '}' in expression or statement.
At /Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1:6 char:9
+         [Parameter(Mandatory = $true)]
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected attribute 'Parameter'.
At /Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1:7 char:9
+         [ValidateNotNullOrEmpty()]
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected attribute 'ValidateNotNullOrEmpty'.
At /Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1:12 char:9
+         [Parameter(Mandatory = $true)]
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected attribute 'Parameter'.
At /Users/jhk/Workspace/tf-azure-dsc/dsc/configuread.ps1:13 char:9
+         [ValidateNotNullOrEmpty()]
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected attribute 'ValidateNotNullOrEmpty'.
At line:1 char:1
+ Publish-AzVMDscConfiguration ".\configuread.ps1" -OutputArchivePath " ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ParserError: (:) [Publish-AzVMDscConfiguration], ParseException
+ FullyQualifiedErrorId : DscConfigurationParseError,Microsoft.Azure.Commands.Compute.Extension.DSC.PublishAzureVMDscConfigurationCommand

Environment data
I tried both the stable version and the preview.
Name                           Value
----                           -----
PSVersion                      7.0.0-preview.4
PSEdition                      Core
GitCommitId                    7.0.0-preview.4
OS                             Darwin 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2…
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

@amitsara Is this issue being investigated? Travis Plunk mentioned you were looking into this under https://github.com/PowerShell/MMI/issues/33 and while that issue was closed as OMI is obsolete, the issues still exist and make editing DSC configs on MacOS difficult.

Running into this in Azure Cloud Shell. How can I use DSC in the cloud shell then?

This is still an issue on the most recent RC.

Any update on this? Dsc on MacOS is unusable at this point.

@mgreenegit, @nitinbps, is this something you can help?

This is an issue for us as well. @mgreenegit @nitinbps

@PleaseStopAsking  - the way the token errors are showing up makes me think this is more of a unix conversion issue. Have you tried running unix2dos or dos2unix on your .ps1 before running the Start-DscConfiguration? I've seen that the DSC configuration when using an ARM Template will error out with a vanilla configuration file developed on a Mac, but will work fine with one developed on a windows device. The extra line breaks in the configuration file might actually be the cause of the weird schema and parsing errors.

same issue with me , updated Az modules and powershel7 as well. still no luck. My understanding is OMi is not used on Mac but for somereason it still expects it ,
System.IO.DirectoryNotFoundException: Unable to find DSC schema store at /etc/opt/omi/conf/dsc/configuration. Please ensure PS DSC for Linux is installed.
at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.Initialize(Collection1 errors, List1 modulePathList)
at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.LoadDefaultCimKeywords(Dictionary2 functionsToDefine, Collection1 errors, List1 modulePathList, Boolean cacheResourcesFromMultipleModuleVersions)    at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.LoadDefaultCimKeywords(Collection1 errors)
at System.Management.Automation.Language.Parser.ConfigurationStatementRule(IEnumerable`1 customAttributes, Token configurationToken)PowerShell
Peek Problem (⌥F8)

@thecherrytree I am actually not even getting to the point of executing them when I get the error. I am seeing the error when simply viewing my .ps1 files within VSCode. I don't currently execute them on MacOS, just develop them there and then execute on Windows boxes elsewhere.

Here's output when running a good ol fashioned 'Get-DscResource'.
MacOS Catalina (10.15.6) running PowerShell 7.0.3
PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.3
PSEdition                      Core
GitCommitId                    7.0.3
OS                             Darwin 19.6.0 Darwin Kernel Version 19.6.0: Sun Jul  5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

PS> Get-DscResource

PSMessageDetails      :
Exception             : System.Management.Automation.MethodInvocationException: Exception calling "ImportCimKeywordsFromModule" with "5" argument(s): "Unable to load shared
                        library 'libmi' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
                        dlopen(liblibmi, 1): image not found"
                         ---> System.DllNotFoundException: Unable to load shared library 'libmi' or one of its dependencies. In order to help diagnose loading problems,
                        consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(liblibmi, 1): image not found
                           at Microsoft.Management.Infrastructure.Native.NativeMethods.MI_Application_InitializeV1(UInt32 flags, String applicationID, IndirectPtr
                        extendedError, DirectPtr application)
                           at Microsoft.Management.Infrastructure.Native.MI_Application.Initialize(String applicationId, MI_Instance& extendedError, MI_Application& application)
                           at Microsoft.Management.Infrastructure.Internal.CimApplication.GetApplicationHandle()
                           at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
                        --- End of stack trace from previous location where exception was thrown ---
                           at System.Lazy`1.CreateValue()
                           at Microsoft.Management.Infrastructure.Internal.CimApplication.get_Handle()
                           at Microsoft.Management.Infrastructure.Serialization.CimMofDeserializer..ctor()
                           at Microsoft.Management.Infrastructure.Serialization.CimMofDeserializer.Create()
                           at Microsoft.PowerShell.DesiredStateConfiguration.CimDSCParser..ctor(OnClassNeeded onClassNeeded)
                           at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.ImportClasses(String path, Tuple`2 moduleInfo, Collection`1 errors, Boolean
                        importInBoxResourcesImplicitly)
                           at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.ImportCimKeywordsFromModule(PSModuleInfo module, String resourceName,
                        String& schemaFilePath, Dictionary`2 functionsToDefine, Collection`1 errors)
                           at CallSite.Target(Closure , CallSite , Type , Object , Object , PSReference , Object , Object )
                           --- End of inner exception stack trace ---
                           at System.Management.Automation.ExceptionHandlingOps.ConvertToMethodInvocationException(Exception exception, Type typeToThrow, String methodName,
                        Int32 numArgs, MemberInfo memberInfo)
                           at CallSite.Target(Closure , CallSite , Type , Object , Object , PSReference , Object , Object )
                           at ImportCimAndScriptKeywordsFromModule(Closure , FunctionContext )
TargetObject          :
CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : DllNotFoundException
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at ImportCimAndScriptKeywordsFromModule, /usr/local/microsoft/powershell/7/Modules/PSDesiredStateConfiguration/PSDesiredStateConfiguration.psm1: line
                        2527
                        at Get-DscResource<Begin>, /usr/local/microsoft/powershell/7/Modules/PSDesiredStateConfiguration/PSDesiredStateConfiguration.psm1: line 3980
                        at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}

It would be great to be able to develop DSC Configurations for Windows on a Mac.

See ##13399 about cross-planform DSC implementation.

See ##13399 about cross-planform DSC implementation.

Just in case someone is looking at this for other distro, the same issue seems to affect SLES and Alpine, using pwsh 7.1.1 and PSDesiredStateConfiguration module version 2.0.5.

#13399 was merged recently!

Any status updates on this one ?

@brwilkinson See #13399 description.

So is the TL;DR that with latest preview psdesiredstateconfiguration module 3+ class based resources should be supported ?
I would like to be able to package up the DSC zips that are used for the VM DSC Extension on Mac or Linux.
i.e. support to run Publish-AzVMDscConfiguration

So is the TL;DR that with latest preview psdesiredstateconfiguration module 3+ class based resources should be supported ?

Yes, they haven't MMI dependency.

Yes. This issue is resolved in DSCv3. Also, you no longer need to use the DSC extension. You can start testing in Guest Config.
https://docs.microsoft.com/en-us/azure/governance/policy/concepts/guest-configuration
https://docs.microsoft.com/en-us/azure/governance/policy/concepts/guest-configuration-custom

@mgreenegit definitely looking forward to be able to use the fresh new guest config goods.
For now, many customers still have full ecosystems of deployment templates, 50% of which are push mode, with established MOF based resources.
I have found that many customers deploying Windows Operating Systems in Azure, have easily been able to deploy from Linux or MAC via PowerShell 7, without problems for 98% of the lifecycle (being: Terraform/Templates/ARM/Bicep/DSC/Script extension Etc.)
I found that 'Publish-AzVMDscConfiguration' was the 1 blocker to packaging the zips for push mode deployments, i.e. staging them on the storage account for deployment, So I had to roll my own version with Compress-Archive to create these packages (on Mac or Linux) to get around this issue.

I feel like 'Publish-AzVMDscConfiguration' should be updated to work anywhere powershell 7 runs.
Since it just reads the configuration.ps1, then reads the import-dscresource list and packages the resource folders into the zip with the json manifest, along with the configuration.

Yep. We made a huge investment in the authoring module to address that issue and others such as making it easy to test.
https://docs.microsoft.com/en-us/azure/governance/policy/how-to/guest-configuration-create
https://docs.microsoft.com/en-us/azure/governance/policy/how-to/guest-configuration-create-test
https://docs.microsoft.com/en-us/azure/governance/policy/how-to/guest-configuration-create-publish
GC is like push mode with reporting and multiple configs.

From: Ben Wilkinson @.>
Sent: Friday, September 3, 2021 12:56:55 PM
To: PowerShell/PowerShell @.>
Cc: Michael Greene @.>; Mention @.>
Subject: Re: [PowerShell/PowerShell] Powershell DSC does not work on OSX (#10782)
I feel like 'Publish-AzVMDscConfiguration' should be updated to work anywhere powershell 7 runs.
Since it just reads the configuration.ps1, then reads the import-dscresource list and packages the resource folders into the zip with the json manifest, along with the configuration.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F10782%23issuecomment-912711407&data=04|01|michael.greene%40microsoft.com|cd00b54877a3482b8a9608d96f043821|72f988bf86f141af91ab2d7cd011db47|1|0|637662886178979440|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=7q1mwGTHuCHD27ZygcNfPb00TtMMJMr%2FZL03UjjQF8M%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABHQMO6IRQFTEWIPAVRXZC3UAED6PANCNFSM4JAEF36A&data=04|01|michael.greene%40microsoft.com|cd00b54877a3482b8a9608d96f043821|72f988bf86f141af91ab2d7cd011db47|1|0|637662886178979440|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=qJSDN%2Fk7erbqLpJ6%2BzDNUwBCr2H0u69Jj8nNn7vMqZY%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01|michael.greene%40microsoft.com|cd00b54877a3482b8a9608d96f043821|72f988bf86f141af91ab2d7cd011db47|1|0|637662886178989397|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=YOdS%2FuOjdBgrmSkDlHkGnPPCgqs5uMjWSNufkMWBqZo%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01|michael.greene%40microsoft.com|cd00b54877a3482b8a9608d96f043821|72f988bf86f141af91ab2d7cd011db47|1|0|637662886178989397|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=BMHaLZGYEDjGVnoQXbOrD8dMZEe3XyaWPE9nfD1mOoE%3D&reserved=0.

Not talking about GC, talking about what customers are already using.
We should make 'Publish-AzVMDscConfiguration' work with Powershell 7. Since the rest of the Azure modules work with Powershell 7. It just needs to package the zips.

Same as of 7.2.2
Name                           Value
----                           -----
PSVersion                      7.2.2
PSEdition                      Core
GitCommitId                    7.2.2
OS                             Darwin 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

System.IO.DirectoryNotFoundException: Unable to find DSC schema store at /etc/opt/omi/conf/dsc/configuration. Please ensure PS DSC for Linux is installed.    at
     | Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.Initialize(Collection`1 errors, List`1 modulePathList)    at
     | Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.LoadDefaultCimKeywords(Dictionary`2 functionsToDefine, Collection`1 errors, List`1
     | modulePathList, Boolean cacheResourcesFromMultipleModuleVersions)    at System.Management.Automation.Language.Parser.ConfigurationStatementRule(IEnumerable`1
     | customAttributes, Token configurationToken)

Get-DscResource returns
MethodInvocationException: Exception calling "LoadDefaultCimKeywords" with "2" argument(s): "Unable to load shared library 'libmi' or one of its dependencies. In order to help diagnose loading problems,


[All hosts] (toc) Remove duplicate reference to Outlook API overview …

…page

Docs Build status updates of commit a9be2c6:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


the min/max of yAxis don't match the boundary of selected area when using toolbox zoom button

Version
4.9.0
Steps to reproduce
config = {
    ...
    toolbox: {
          show: true,
          feature: {
            dataZoom: {
              filterMode: 'none'
            }
          }
        },
        dataZoom: [
          ...channelList.map((c, i) => ({
            type: 'inside',
            // xAxisIndex: 'none',
            filterMode: 'none' as any,
            yAxisIndex: i
          })),
          {
            type: 'inside',
            // xAxisIndex: 'none',
            filterMode: 'none',
            xAxisIndex: 0
          },
          {
            type: 'slider',
            // xAxisIndex: 'none',
            filterMode: 'none',
            xAxisIndex: 0
          }
    }
}

(I don't assign any fixed min/max for yAxis)

What is expected?
the max and min of y axis should match the selected area. For this case, no data point should be shown on the graph because no one is in the selected area, no matter whether min/max of yaxis is set to a fixed value or not
What is actually happening?
the max of y axis is the max value of the curve.

Demo
https://codesandbox.io/s/clever-proskuriakova-pmds2?file=/src/index.js

Demo added


Error: Profile with the provided email does not exist or the email is not verified

Importing from Confluence to Space was a challenge due to some pages being authored by users who did not exist in Space. The import process failed, showing an error message stating, "Error: Profile with the provided email does not exist or the email is not verified."
Upon reviewing the webserver logs, I noticed the following entry: "GET /api/http/team-directory/profiles/email:xxx.xxx%xxxx.de?verified=true&%24fields=* HTTP/1.1" 404 119 "-" "Space CLI client" "-"
To resolve the issue, I copied the pages from Confluence and changed the ownership to myself. Then, I deleted the original pages. After taking these steps, the import was successful.

Hi,
For future generations, this is what I tried:

Created a new space, with the name XFER,  in Confluence and copied everything from the main space into this XFER space.

I started the import which failed with the error in this issue's subject.

I then noticed that the Confluence admin account I was using had an email address of<EMAIL_ADDRESS>

I changed that to the same, verified, email address that I had on JB Space.

I also cloned this repo, built the app myself, and started to run the import with the newly built JAR.

Now the migration started.

Only to fail on
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.length()" because "csq" is null
    at com.vladsch.flexmark.util.sequence.LineAppendableImpl.append(LineAppendableImpl.java:547)
    at com.vladsch.flexmark.util.format.MarkdownWriterBase.append(MarkdownWriterBase.java:109)
    at com.vladsch.flexmark.html2md.converter.internal.HtmlConverterCoreNodeRenderer.processImg(HtmlConverterCoreNodeRenderer.java:662)
    at com.vladsch.flexmark.html2md.converter.HtmlNodeRendererHandler.render(HtmlNodeRendererHandler.java:19)

I tried manually exporting that NPE-inducing page, and replacing its contents with a one line of text containing "Manually exported." In the hopes that migration would manage to jump over that.

Did not help, even the one liner was too much.

My guess is that the entire Space is too big to this tool to import. Also, looking at the code, it really should be more fault tolerant, i.e. not to fail on a single error. Better would be to log the error, and continue on to the next document. This way, if there was a single problematic document, only that would not be imported. The current implementation forces full imports again and again in hopes of a problematic page being solved.
My suggestion to others with this problem: do as I did:

Export Confluence as HTML.
Run the exported html files through https://github.com/suntong/html2md , or similar tool, and import generated MD files into Space via folder import.


OG Helium Miner (Pi3)

Some OG miners are the Pi3 board (all of mine are) and not the Pi4 board.
Is it possible to update to allow usage with these variant of the OG miner?

@arduino43 thanks for the report - do you know if it is possible to tell programatically if they are pi3 or pi4? if not, we may need to just create a new fleet
but any info you could provide would be useful? such as pictures of the hotspot, what frequency you are etc etc

Not 100% sure if you can tell programatically. All of mine are US915.
Originally all Pi3 board but due to sync issues I replaced all with Pi4. I forked the Balena fleet for the OG-Pi4 and installed on a Pi3 and it seems to be running without any issues.
I've attached two pictures. The only external difference between them is the location of the ethernet port, which on the Pi4 is closer to the antenna port (see photos).
Pi3:
http://klasjord.com/sites/default/files/inline-images/IMG_20200102_133557.jpg
Pi4:
https://preview.redd.it/wjkllm562uk51.jpg?auto=webp&s=e93b041008fee3207b27d3ba36705aeac57b5264

This should be fixed by #408
@arduino43 can you confirm?


Add Python API

Adds a Python API - basically a re-write of the TypeScript API, just in type-checked Python

I suppose it would be good to add an example/test file using the API, like it's done with Done, right @reu-dev?


{CI} Update config.yml

Adjust the content of the automatic reply.
This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

CI

/azp run


Add existing draftClaim to argument in Draft

So the search / find thing

Drafts being found - but not showing up in search results drop down

Drafts now being moved into argument. the big save works. But the local save (as in the one on the reason) is throwing an error. argh. bug fixing time

Turns out it was trying to save a draftClaim that already existed! fortunately, there was already a status system in place so all it needed was to check for a 'New' status. Boom!


Add user-agent in HTTP request

Pull Request type
This PR add User-Agent

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: #497
What is the new behavior?

HTTP request now contains User-Agent, e.g.:
GET /feeder_gateway/get_block HTTP/1.1
accept: */*
user-agent: papyrus/pre-release (Arch Linux; Rolling Release; 64-bit)
host: localhost:5555

Operating system informations are retrieved with os_info
Please not that version is hardcoded to pre-release.
Does this introduce a breaking change?

[ ] Yes
[x] No

Other information

This change is

Dependencies have been sorted.
Should I squash & rebase ?

I accidentally rebased myself. If you wish you can reset to 4617642 and rebase yourself so I won't be part of the PR. !

Don't worry, it's ok for me.


RGL reads "[NOTHING]"

I've been trying to create a self replicating virus but it copies "[NOTHING]" into memory. Though the funny thing is that an RLG codon got loose in the environment & actually created new 5 codon viruses, which unfortunately didn't make it to the second generation, but it was amazing. Any suggestions on how to fix this?

What arrangement of codons did you have? I haven't (and can't really) try to do this, but maybe it's just because you tried to read with the hand pointing outwards instead of inwards

Here are some self replicating ones:
Basic Virus Factory: 46-11-22-33-11-22-0a0-4a0-46-5704-60 (CTRL + V in Cell editor)
no cell work Virus: 0a0-4a0-46-5704-60-7a0
0a0-4a0-46-5706-0a1-60-7a1 V2
0a0-4a0-46-5705-60-77AA V3
Throw out factory: 0a0-4a0-46-5706-60-28-77BB
I Highly recommend this fork (because copy pasta):
https://github.com/sirati/VirusGame


Add support for Lua or AngelScript scripting.

Due to dozens of problems and missing features related to QtScript correctness and performance, add support for creating in-world scripts with either Lua or AngelScript. (preferably both [tell me which is better afterwards {I am serious}]).

i made the boilerplate for a Lua scripting module using QtLua a while ago, is uncommitted on my laptop at home - i could check it in the evening and push somewhere. qtlua seemed pleasant to work with so far at least, i've no idea how it performs in the c++ <-> lua conversions
for performance and other things can be a good idea to test the PythonQt thing we already have in and working, it at least reuses the qobject instances cleverly afaik

For the remainder of this issue item, you may post all odd snippets which crash inside Qt, or silently fail, or similar. (you may also create a separate issue for them)
Here is one:
var v = float3.zero;
v.x = 1;
print(v); // Prints (0,0,0)
print(float3.zero); // Prints (0,0,0)
Above v is initialized to be a reference of float3.zero. Because float3.zero is read-only (you can't make the zero vector non-zero), assigning to v is not allowed. However, QtScript will silently ignore the statement 'v.x = 1;' without issuing an error (which I think is a bug in QtScript itself).
To allow assigning v.x = 1;, the constant float3.zero should be made to behave like a value type, but it is not possible with QtScript (or JavaScript) (afaik).

Pypy claims to have a safe Python sandbox: http://doc.pypy.org/en/latest/sandbox.html

There is also an internal QtScript bug related to printing variables, which can crash the server, but I will not disclose that until the bug has been fixed inside Qt.

Using Python for inworld scripts would require
a) The ability to create separate script contexts per EC_Script component.
b) Implement the support to use the script class mechanism for Python as well.
c) Safe automatic teardown of script contexts. (can use a OnScriptDestroyed mechanism for those features that require C-like free()s)
d) Implement several bindings to Python (i.e. issues #34, #35, #36, and related ones)