VSCode hangs when opening folder in Ubuntu 24.04

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

VS Code Version:

1.88.1
e170252f762678dec6ca2cc69aba1570769a5d39
x64

OS Version: Ubuntu 24.04 (fresh install)

Steps to Reproduce:

Fresh install ubuntu and vscode (both installed today - code from apt-get)
open code in any folder like "code ."
VSCode hangs.

This is happening with my two fresh Ubuntu 24.04 installs (laptop and desktop). I have tried snap install and apt install. Both fail in the same way: open a folder then click just about anywhere and it locks up vscode.

Same experience here.

I did finally figure out that for me, opening a folder that contained a .git directory was the problem. If I moved the .git dir to a different name before trying to open it, the folder opened fine. Of course the git info for that folder was not available.
After that, I decided to go back to Ubuntu 24.04. This time VSCode worked fine. I can't say for sure why it's now working, but I did do something different this time when installing 24.04: This time, I followed my laptop's manufacturer's advice and turned off the "Install 3rd party software for for graphics and wifi...". Then after 24.04 was up I added the specified ppa to download drivers from my manufacturer. After that, I installed VSCode.
Yesterday, I did sudo snap refresh and it upgraded VSCode to 1.89 and it's working fine as well.

No update?

Same experience even if I open a folder that does not contain .git
Try disable wayland, this may work
https://github.com/microsoft/vscode/issues/212430

Yes, for me it works when I restart the laptop.

have vscode 1.90 snap installed, but doesn't work
(this wayland transition is a total BS show, many other programs also broken on Ubuntu 24.04, and Canomical has the gall to call this LTS ... long-term sh...)

Using the latest insiders seems to fix the issue for me.

Please check if issue is present with latest insiders https://code.visualstudio.com/insiders

This is still an issue with insiders (b1c0a14d)

I had these problems last week, but today it works after I did an Ubuntu update and machine restart! 😃
Has the problem been solved?

Yes, I tried 2 other app that were not compatible before (virtualbox, nextchat), and they all worked fine after upgrading to the latest Ubuntu 24.04. It seems that Ubuntu fixed this problem, finally ..

It seems mutter ralated pkg fix this problem
mutter (46.2-1ubuntu<IP_ADDRESS>) noble; urgency=medium
[ Daniel van Vugt ]

New upstream release 46.2 (LP: #2068598)

Fixed mouse clicks falling through to the window behind (LP: #2026194)
...

I believe this issue is related to vscode git extension, because vscode hangs when I try to connect to a repository using the git extension

I believe this issue is related to vscode git extension, because vscode hangs when I try to connect to a repository using the git extension

Looks like that, in my case it hangs at this point in the log:  Checking if encryption is available...
[88468:0827/212931.066403:INFO:CONSOLE(660)] "%cTRACE color: #888 [mainThreadSecretState] Getting password for vscode.github-authentication extension:  github.auth", source: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (660)
[main 2024-08-27T19:29:31.066Z] [EncryptionMainService] Checking if encryption is available...

Upgrade to latest Ubuntu 24.04.1 will solve those problem, see https://github.com/microsoft/vscode/issues/212430

i'm running linux mint
On Wed, 28 Aug 2024 at 04:03, Coder4 @.***> wrote:

Upgrade to latest Ubuntu 24.04.1 will solve those problem, see #212430
https://github.com/microsoft/vscode/issues/212430
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/211762#issuecomment-2313942478,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACFL5IV3RRHXSOL2UIAJINDZTUVWJAVCNFSM6AAAAABHBNEBOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTHE2DENBXHA
.
You are receiving this because you commented.Message ID:
@.***>

i'm running linux mint
…
On Wed, 28 Aug 2024 at 04:03, Coder4 @.> wrote: Upgrade to latest Ubuntu 24.04.1 will solve those problem, see #212430 <#212430> — Reply to this email directly, view it on GitHub <#211762 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFL5IV3RRHXSOL2UIAJINDZTUVWJAVCNFSM6AAAAABHBNEBOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTHE2DENBXHA . You are receiving this because you commented.Message ID: @.>

Mint is also a release based on Debian. You can check when this package will have a corresponding Mint upgrade.
mutter (46.2-1ubuntu<IP_ADDRESS>) noble; urgency=medium
[ Daniel van Vugt ]
New upstream release 46.2 (LP: #2068598)
Fixed mouse clicks falling through to the window behind (LP: #2026194)
...

thanks for the reply.

I believe this issue is related to vscode git extension, because vscode hangs when I try to connect to a repository using the git extension

Looks like that, in my case it hangs at this point in the log:  Checking if encryption is available...
[88468:0827/212931.066403:INFO:CONSOLE(660)] "%cTRACE color: #888 [mainThreadSecretState] Getting password for vscode.github-authentication extension:  github.auth", source: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (660)
[main 2024-08-27T19:29:31.066Z] [EncryptionMainService] Checking if encryption is available...

Fix is to use "password-store": "basic" in ~/.vscode/argv.json ... or start code with --password-store="basic"

I believe this issue is related to vscode git extension, because vscode hangs when I try to connect to a repository using the git extension

Looks like that, in my case it hangs at this point in the log:  Checking if encryption is available...
[88468:0827/212931.066403:INFO:CONSOLE(660)] "%cTRACE color: #888 [mainThreadSecretState] Getting password for vscode.github-authentication extension:  github.auth", source: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (660)
[main 2024-08-27T19:29:31.066Z] [EncryptionMainService] Checking if encryption is available...

Fix is to use "password-store": "basic" in ~/.vscode/argv.json ... or start code with --password-store="basic"

Careful! This is not recommended, so if you are gonna use it, make sure to stop using it asap, if the issue gets fixed. See docs

This happens on my workstation with 22.04.5 LTS.
It hangs during Checking if encryption is available... for many seconds.
I'm not using wayland.

Same issue. Try to disable wayland by editing '/etc/gdm3/custom.conf'  with uncomment WaylandEnable=false but it not worked.
I solved it by remove my version and install again but this time using apt install.
Basically :
sudo apt auto-remove code
then follow the procedure "2. Installing VS Code Using APT on Ubuntu "
Good luck

Facing same issue for last two weeks. let'st try to remove and install it again.

Same issue. Try to disable wayland by editing '/etc/gdm3/custom.conf' with uncomment WaylandEnable=false but it not worked.
I solved it by remove my version and install again but this time using apt install. Basically : sudo apt auto-remove code then follow the procedure "2. Installing VS Code Using APT on Ubuntu "
Good luck


Refine R code a little

Replace tail(-1) with [-1]
We get same results
> tail(1:10, -1)
[1]  2  3  4  5  6  7  8  9 10
> (1:10)[-1]
[1]  2  3  4  5  6  7  8  9 10

and don't need to import utils package anymore.

Awesome, thanks!


How to customize CompletionItemKind icon

I did my own substitution, and he did it in THE URL format and for the moment I'm going to do it in the background-image style but there are limitations because I can't add my own class name and I'm still working on that

any solution?


[Feature] Config File

It would be nice to have a config file to override the default options rather than always passing arguments to the binary.

added in commit 9f088ea


Fix hyperlink in README.md

Description
A spurious newline breaks the markdown hyperlink.
Related Issues
None

Sigh - but of course, every change needs a changelog entry.....


command logging

Qs: Once we have term via wetty, where do the commands that get typed in the wetty term get logged ?
This is useful for auditing.
Regards

umm, wetty does not have the feature of logging commands.


options.mounted hook opportunity

Note that mounted does not guarantee that all child components have also been mounted. If you want to wait until the entire view has been rendered, you can use vm.$nextTick inside of mounted

I found parent.mounted hook only called after all children.mounted called, expect the child component is async. But in that case, vm.$nextTick won't help too.
Is there any mistake of me or the doc?

Hey @LongTengDao! I think the documentation is correct since the mounted hook triggers once the component did mount, it doesn't wait for children to mount. So, if you have a component A that renders a component B, the mounted hook of A executes before the one of B.
This example illustrates it.
Does this help?

I add one console on your example (https://codesandbox.io/s/frosty-night-9o8ku), it shows:
Child is mounted
Parent is mounted
Child mounted nextTick
Parent mounted nextTick

Parent is always after Child, wether you use nextTick

Indeed, I just realized that in my sandbox, the child console.log was in a nextTick callback 🤦♀
However, as you can see in your demo and mine, the parent's nextTick callback always runs last. So the documentation is correct when it says that using it in the parent lets you know that the full tree was rendered.

But the "parent mounted" event is also after "child mounted" event, I can't see the difference between using "mounted" and "nextTick" (which the doc want to express)

🧐 @sdras @NataliaTepluhina any idea?


Correct default container image logic

This might (not yet tested so in DRAFT) fix the minor issue at the end of #801, whereby an image inside the containers key was being reset to the default image when I had no top-level image key.

This passes acceptance tests along with the fix in #810


icloud  Configuration unsuccessful

Following that icloud calendar method didn't work, the plugin and logseq are both the latest version.

link:p204-caldav.icloud.com.cn/published/2/MjA1NjMyNzg5NTQyMDU2MzLMlKhWUEeIcjIzyh05I78JgDVwWGyP-c2zGw9EC4NEcoc2fuzepAVfz-XVdWZ93F7V3qvYUnVCmwzBejEfmbo
(ps:For testing purposes only)

I have not succeeded it with iCloud either until yesterday. But finally I could! The way is to add "http://" before the URL in my case. Try it!

I have not succeeded it with iCloud either until yesterday. But finally I could! The way is to add "http://" before the URL in my case. Try it!

Mine worked the same way, thank you very much.


Refine the project approval page for System Administrators

WIP refining the project approval page
adding the metadata highlights fragment
added styling
closes #574

@bess Thanks for the review!


Random build failure: ✘ [ERROR] Could not resolve "env"

Sometimes builds (both locally and on CI) randomly fail while bundling JS snippets for WASM with the output like:
	cd "/runner/_work/enso/enso/target/ensogl-pack/wasm-pack" && "/usr/local/bin/npx" "--yes" "esbuild" "/runner/_work/enso/enso/target/ensogl-pack/wasm-pack/index.ts" "--format=cjs" "--bundle" "--sourcemap" "--platform=node" "--outfile=/runner/_work/enso/enso/target/ensogl-pack/dist/pkg.js"
	with working directory: /runner/_work/enso/enso/target/ensogl-pack/wasm-pack}: ide_ci::program::command: Spawning.
TRACE ide_ci::program::command: npxℹ <START>
TRACE ide_ci::program::command: npx⚠ <START>
Warning: O ide_ci::program::command: npx⚠ ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
 INFO ide_ci::program::command: npx⚠
 INFO ide_ci::program::command: npx⚠     pkg.js:4146:39:
 INFO ide_ci::program::command: npx⚠       4146 │         input = new URL('pkg_bg.wasm', import.meta.url);
 INFO ide_ci::program::command: npx⚠            ╵                                        ~~~~~~~~~~~
 INFO ide_ci::program::command: npx⚠
 INFO ide_ci::program::command: npx⚠   You need to set the output format to "esm" for "import.meta" to work correctly.
 INFO ide_ci::program::command: npx⚠
Error: NFO ide_ci::program::command: npx⚠ ✘ [ERROR] Could not resolve "env"
 INFO ide_ci::program::command: npx⚠
 INFO ide_ci::program::command: npx⚠     pkg.js:16:29:
 INFO ide_ci::program::command: npx⚠       16 │ import * as __wbg_star3 from 'env';
 INFO ide_ci::program::command: npx⚠          ╵                              ~~~~~
 INFO ide_ci::program::command: npx⚠
 INFO ide_ci::program::command: npx⚠   You can mark the path "env" as external to exclude it from the bundle, which will remove this error.
 INFO ide_ci::program::command: npx⚠

Full log in the attachment.
env-log.zip

I've seen it multiple times on my end.

I'm also seeing this on my end. Multiple times today.

Note that I am running into this a lot and this is causing a lot of lost time.

I'm seeing it rarely. Like once a week. @MichaelMauderer @mwu-tow @sylwiabr what should we do with it? It might happen often on some systems, like @MichaelMauderer's one. @MichaelMauderer have you investigated it a little?

I have not investigated it yet. It does happen daily, but not so often that I stopped to have a more in-depth look.

When this error happens, please copy the content of pkg.js and its location, and paste it here, please. It's runtime generated file and it looks like that this line should not be there. It is not there on my end. It means that sometimes this file might be generated wrongly by warm pack and produce error. I need to see the wrongly generated file though, so ping me when you'll have it. Also, after it happens and you will change code and it works again, please attach the same file from working state here as well, so I could compare them.

@wdanilo Just happened again. The file is located at dist/wasm/pkg.js and this is the content of the failing file..
After deleting dist the error persists.
After cargo clean and rebuilding, the build works. This is the working file then.

Do we know how we can fix it? Any leads? Estimates? @mwu-tow?

in the correct build output, the first line becomes input = new URL("pkg_bg.wasm", import_meta.url);. the second disappears as that is ESM syntax, which is not valid when the build works properly (outputs as CJS)
however it should always be cjs, because of this flag:
https://github.com/enso-org/enso/blob/66631254107fe9ff1d8e05c09b8b684e4b3fbf10/lib/rust/ensogl/pack/src/lib.rs#L427
and it's not like the directory name could possibly be causing problems with esbuild's parsing of the commandline arguments... especially since the paths (and the entire command in general) should be the same every time

@sylwiabr @somebody1234
This is a very, very old issue. It was here before esbuild and likely even before the build script. I have no idea what this is about.
This might be relevant to a degree: https://github.com/rustwasm/wasm-bindgen/issues/2570 https://github.com/rustwasm/wasm-bindgen/issues/2160
I wonder why this is non-deterministic, though. Likely some race condition.

@somebody1234
Interesting find. We should be able to avoid the tokio-reactor dependency; it is outdated and deprecated. From what I see, we pull it in only through the websocket dependency. IIRC, we only used it for the parser service client, which should not be needed anymore since we moved to the Rust parser. Please, check if we can get rid of this dependency.
We should remove this dependency by removing the code or switching to a different websocket implementation.

Though still, even if the parking_lot_core was the source of the problem, I have no idea why it is so random. Still, getting rid of outdated dependencies is always good.

@MichaelMauderer I can't find in these files the line import * as __wbg_star3 from 'env'; - are there correct files?

@MichaelMauderer I can't find in these files the line import * as __wbg_star3 from 'env'; - are there correct files?

These are the files that I found last time this happened. But I will double-check whether there are other locations where these appear with different content.

I had this error today. This is a zip of the whole target/ensogl-pack directory at the time it happened. You can find the import * as __wbg_star3 from 'env'; line in wasm-pack/pkg.js on line 16.
Deleting target/ensogl-pack didn't resolve it, but cargo clean did, as mentioned before.
The new, working version of target/ensogl-pack is too large to upload here apparently, but here is the new version of target/ensogl-pack/wasm-pack/pkg.js (renamed to bypass GitHub filters).

I can't find any usage of the websocket dependency, so I think it's safe to remove it. We seem to only be using web_sys::WebSockets.

I can't find any usage of the websocket dependency, so I think it's safe to remove it. We seem to only be using web_sys::WebSockets.

How is this related to the problem? Removing this dependency resolves it?

How is this related to the problem? Removing this dependency resolves it?

We don't know, but there is a chance that it is related. And even if this doesn't help, eliminating outdated, unused dependencies is a win.

I actually haven't run into it again, so that is why I have no new diagnostics/insights on this.

After getting slowed down a bunch more times by this bug, I decided to write a small script to see if we can get away with only deleting compilation artifacts for a single package (with the hope that only a single package is to blame).
target='wasm32-unknown-unknown'
packages=$(cargo tree --target "$target" --workspace --edges all --prefix none \
    | grep -v '\(\*\)$' \
    | grep -v '^$' \
    | sed 's/^\(\S\+\) .*/\1/' \
    | sort \
    | uniq)
n_packages=$(echo $packages | wc -w)
i=0
while IFS= read -r package || [[ -n $package ]]; do
    ((i+=1))
    echo "Testing package $i/$n_packages"
    echo "Running cargo clean $package"
    cargo clean --target "$target" -p "$package"
    if ./run ide build --skip-wasm-opt; then
        echo "It worked! Package $package was the culprit!"
        break
    fi
done <<< "$packages"

Unfortunately, it seems to have indeterministic results. Sometimes cleaning mio was enough. Another time, it was matrixmultiply. The last time I ran it, it ran until the end without a solution.

I did not run into this issue for months, so It's hard for me to debug it. It's worrying though that @Procrat is facing it. What ideas do you guys have to investigate/resolve it?

I also can't find much more than what @mwu-tow and @somebody1234 already found. I've create a PR (#6535) for removing our dependency on websocket, which then also removes the transitive dependency on that old version of parking_lot.

@Procrat does removing this dependency fixes this issue?

This is so strange. Good to know it's "fixed" by this. I can't understand though how on earth this change can influence this error. If it ever happens again, please re-open this issue :)

I've noticed it as well. This time, I've decompiled target/ensogl-pack/wasm-pack/pkg_bg.wasm with wasm2wat to try and figure why it's trying to import from this env package. These are the imports I found:
  (import "env" "_ZN16ensogl_grid_view10selectable9highlight25Data$LT$InnerGrid$C$E$GT$18connect_with_shape17h304c73ed6f309421E.llvm.9607723420403503891" (func $ensogl_grid_view::selectable::highlight::Data<InnerGrid_E>::connect_with_shape::h304c73ed6f309421 (type 21)))
  (import "env" "_ZN8nalgebra4base3ops168_$LT$impl$u20$core..ops..arith..Add$LT$nalgebra..base..matrix..Matrix$LT$T$C$R2$C$C2$C$SB$GT$$GT$$u20$for$u20$nalgebra..base..matrix..Matrix$LT$T$C$R1$C$C1$C$SA$GT$$GT$3add17ha1ddb8a757bbb102E.llvm.9607723420403503891" (func $nalgebra::base::ops::<impl_core::ops::arith::Add<nalgebra::base::matrix::Matrix<T_R2_C2_SB>>_for_nalgebra::base::matrix::Matrix<T_R1_C1_SA>>::add::ha1ddb8a757bbb102 (type 97)))
  (import "env" "_ZN11ensogl_core9animation5loops13LOOP_REGISTRY7__getit17h8f6678a17766ac9eE.llvm.9607723420403503891" (func $ensogl_core::animation::loops::LOOP_REGISTRY::__getit::h8f6678a17766ac9e (type 5)))

Does anyone see a connection between those? It looks pretty random to me.

After researching this a bit more, I read that somewhere someone mentioned this only happened spuriously when they cancelled the wasm generation process. Based on that, I decided to test the hypothesis that the watch commands stop the process at an inopportune time. This week I haven't used the watch commands at all and I also didn't encounter this bug.

I encounter this without using watch or otherwise interrupting any builds.

Sometimes still happening on my end, see the discord discussion here

Also randomly encounter such error while building small PR: https://github.com/enso-org/enso/actions/runs/5831890147/job/15816211594?pr=7564

The issue is gone with the GUI, as far as I know.


Update balances using rxjs

Looks like this PR depends on waiting for account initialization

clarification: conditional loading of dependencies.


Add MetaNova Verse

@JeremyParish69 Can you review and merge the PR. Bech32 Prefix for MetaNova Verse satoshilabs/slips#1757.


Autocmd event: ShellCmdPre support

Is there any reason ShellCmdPre isn't supported while ShellCmdPost is?
I would like to hook something after :shell and :term but only TerminalOpen is usable.

Can you give more info about why ShellCmdPre would do what you need?

Thanks for such a prompt response.
It's a zero or one-off trigger per vim command, but I have a plugin with an external process started by job_start, but it's only used from vim terminal or shell, so I want to avoid starting it by default, but instead start it via autocmd.

I'm afraid I do not understand.  If you use job_start() you won't need an autocmd, you can execute commands right there.  If you use a terminal window. shell commands started there are done by the shell, not by Vim, thus you won't get any autocmd for these.

sorry I wasn't clear.
I meant the process I start is unnecessary unless :terminal or :shell is called. It doesn't necessarily depends on job_start.
The exact source code would the line 52 of https://github.com/kohnish/vim9-nox11/blob/master/plugin/vim9-nox11.vim
If there was ShellCmdPre, I can always postpone the start instead of starting it by default to avoid increasing the average startup time.

sorry I wasn't clear.
I meant the process I start is unnecessary unless :terminal or :shell is called. It doesn't necessarily depends on job_start.
The exact source code would the line 52 of https://github.com/kohnish/vim9-nox11/blob/master/plugin/vim9-nox11.vim
If there was ShellCmdPre, I can always postpone the start instead of
starting it by default to avoid increasing the average startup time.

Guessing you want to have ShellCmdPre inspect the shell command that is
executed, and only if it is needed then call StartServer().
Is that right?
--
hundred-and-one symptoms of being an internet addict:
121. You ask for e-mail adresses instead of telephone numbers.
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Yes, only :term or :sh is the use case for it.


Source of data

Hi, I just wanted to know how your sourcing your data... I'm exploring NYTimes election site and I find them periodically pinging a similar [state].json file
Is this the same source you're using?

https://github.com/alex/nyt-2020-election-scraper/blob/0c556414280ff8a82a51862755577333c4969043/.github/workflows/scrape.yml#L21


GlobalRoleBinding deletion by garbagecollector causing panic in rancher-webhook

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):

From global --> security --> users --> created user1
From global --> security --> roles --> create global role with Resource authconfigs and no verbs
Associate the custom role to the user.
Delete the custom role

Result:
The global custom role is removed from the global --> security --> roles but the error logs in the rancher server are seen continuously for every few minutes.
Expected Result:
while syncing garbagecollector.node item, no internal error should be seen
Other details that may be helpful:
Logs in rancher:
26 garbagecollector.go:309] error syncing item &garbagecollector.node{identity:garbagecollector.objectReference{OwnerReference:v1.OwnerReference{APIVersion:"management.cattle.io/v3", Kind:"GlobalRoleBinding", Name:"grb-vsx84", UID:"4bd9f139-485c-40ef-bdf6-04bcdf9f5cf2", Controller:(*bool)(nil), BlockOwnerDeletion:(*bool)(nil)}, Namespace:""}, dependentsLock:sync.RWMutex{w:sync.Mutex{state:0, sema:0x0}, writerSem:0x0, readerSem:0x0, readerCount:1, readerWait:0}, dependents:map[*garbagecollector.node]struct {}{(*garbagecollector.node)(0xc022354780):struct {}{}}, deletingDependents:false, deletingDependentsLock:sync.RWMutex{w:sync.Mutex{state:0, sema:0x0}, writerSem:0x0, readerSem:0x0, readerCount:0, readerWait:0}, beingDeleted:false, beingDeletedLock:sync.RWMutex{w:sync.Mutex{state:0, sema:0x0}, writerSem:0x0, readerSem:0x0, readerCount:0, readerWait:0}, virtual:false, virtualLock:sync.RWMutex{w:sync.Mutex{state:0, sema:0x0}, writerSem:0x0, readerSem:0x0, readerCount:0, readerWait:0}, owners:[]v1.OwnerReference{v1.OwnerReference{APIVersion:"management.cattle.io/v3", Kind:"GlobalRole", Name:"gr-79d5n", UID:"540f3166-d9bf-4d65-a467-c4b473fd254e", Controller:(*bool)(nil), BlockOwnerDeletion:(*bool)(nil)}}}: Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": EOF

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): v2.5.8
Installation option (single install/HA): Single

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): Infrastructure Provider

This issue seems to be leading to orphaned GlobalRoleBindings. GlobalRoleBindings set their associated GlobalRole as an owner reference. When the GlobalRole is deleted, the corresponding GRBs should also be removed by the garbage collector, but this looks to not be happening due to this k8s error that is happening. I am investigating the cause of this.

@anupama2501 this is ready to test now. The new chart is: rancher-webhook-0.1.100-rc4+up0.1.1-rc4
Some things to note:

The original error we saw (Post https://<webhook>/v1/webhook/validate: EOF) was being caused by a closed connection. The connection was being closed due to a panic. The panic was fixed in wrangler, so I updated that dependency and resolved the panic / closed connection issue.
The panic was happening due to GlobalRoles not being found when Updating or Deleting GlobalRoleBindings, a responsibility carried out by the k8s garbage collector due to the OwnerReferences on these objects, applied in the norman globalrolebinding.Store. The webhook now admits requests to delete GlobalRoleBindings and update the finalizers when the associated GlobalRole is not found. This allows for the garbage collector to properly cleanup GlobalRoleBindings after their corresponding GlobalRole is removed, which solves the problem of orphaned GRBs which we were seeing as a result of this issue.
The debugging functionality of the webhook was improved, via debug logs through specifying RANCHER_DEBUG=true as an environment variable

To properly test this, we need to make sure a few things are true:

The error logs previously seen coming from the kube-apiserver should no longer happen.
Perform these steps:

Add alice as a Standard User
Create a GlobalRole with any permissions
Associate alice to the newly created GlobalRole
In the management cluster, note the creation of a GlobalRoleBinding via: kubectl get globalrolebindings (it will be the newest one in the list)
Delete the GlobalRole that you created
Observe the GlobalRoleBinding that was recently created has been successfully removed

Further validation can be done with these steps

Add RANCHER_DEBUG=true to the webhook deployment
Perform the steps in 2.
Observe logs like the following: DEBU[0041] admit result: DELETE management.cattle.io/v3, Kind=GlobalRoleBinding grb-8xgqv user=system:serviceaccount:kube-system:generic-garbage-collector allowed=true err=<nil> in the rancher-webhook pod logs. These logs are saying that the garbage collector was allowed to delete GlobalRoleBinding grb-xxxxx.

Verified on rancher-server: v2.5.9-rc4, webhook version: rancher-webhook:v0.1.1-rc4

From global --> security --> roles, created a global role - au-g1, with auth configs and verb:list
Created a standard user - user1 and associated au-g1 to the user.
Verified from the management cluster kubectl that the global role bindings was created:

kubectl get globalrolebindings
grb-gs96h

Deleted the global role au-g1
Verified from the kubectl command that the global rolebindings was deleted.

Enabling RANCHER_DEBUG=true in the webhook deployment

Added the environment variable RANCHER_DEBUG=true, and upgraded the webhook deployment
Verified the debug logs of the rancher webhook pod, displays the global role deleted:

time="2021-07-06T18:28:16Z" level=debug msg="admit result: DELETE management.cattle.io/v3, Kind=GlobalRoleBinding grb-tsjk8 user=system:serviceaccount:kube-system:generic-garbage-collector allowed=true err=<nil>"
time="2021-07-06T18:28:16Z" level=debug msg="admit result: UPDATE management.cattle.io/v3, Kind=GlobalRoleBinding grb-tsjk8 user=system:admin allowed=true err=<nil>"

Upgrade scenario, rancher server: v2.5.8, before upgrade webhook:v0.1.000

From global --> security --> roles, created a global role - au-g1, with auth configs and verb:list
Created a standard user - user1 and associated au-g1 to the user.
Verified from the management cluster kubectl that the global role bindings was created:
Deleted the global role au-g1
Following logs are seen in the rancher server  23 garbagecollector.go:309] error syncing item &garbagecollector.node{identity:garbagecollector.objectReference{OwnerReference:v1.OwnerReference{APIVersion:"management.cattle.io/v3", Kind:"GlobalRoleBinding", Name:"grb-sv7xf", UID:"2907e138-b07a-4e5b-9b0d-aab9612e4bf5", Controller:(*bool)(nil), BlockOwnerDeletion:(*bool)(nil)}, Namespace:""}
Added the nev variables in the webhook deployment RANCHER_DEBUG=true
Upgraded the webhook to version rancher-webhook:v0.1.1-rc4
Verified the grb is removed and no logs for garbage collector is seen.
verified the webhook pod logs time="2021-07-06T18:32:25Z" level=debug msg="admit result: DELETE management.cattle.io/v3, Kind=GlobalRoleBinding grb-sv7xf user=system:serviceaccount:kube-system:generic-garbage-collector allowed=true err=<nil>"


Adding CakePHP Fixtures plugin

Tiny plugin, but might be useful for somebody.
https://github.com/LubosRemplik/CakePHP-Fixtures

"name": "lubos/fixtures"

It is usually recommended to prefix the plugin with cakephp, this now looks like a generic fixtures package, but it seems to in fact be a specific CakePHP plugin.
 "name": "lubos/cakephp-fixtures"

etc
It should also come with some tests.

Thanks @dereuromark for your notes.
The package name was updated to cakephp-fixtures, some unit tests added.

Looks good to me.


Feature Request: Auto-reconnect after low power mode

After using a command such as pyb.stop() or machine.sleep(), having the ability to reconnect to the IDE and continue making outputs to the serial terminal could be useful.
Original forum post for additional context

I'll add a checkbox option to do that to the menus in the IDE.
Since this is easy it will come soon...

Hi, the feature is implemented and working. Will come out this weekend.

This feature works on the 12 Mb/s OpenMV Cams. However, on 480 Mb/s ones the OS doesn't allow the serial port object to be deleted which prevents the IDE from closing. This works after the serial port is forcibly closed by removing it from the PC.
Not sure how to fix this and it's a bug in the OS...


After initializing the state of the Store, reinitializing the state through code does not trigger caching

Describe the bug
After initializing the state of the Store, reinitializing the state through code does not trigger caching
Reproduction

System Info
After initializing the state of the Store, reinitializing the state through code does not trigger caching

Used Package Manager
yarn
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[ ] The provided reproduction is a minimal reproducible of the bug.

export const useStore = defineStore('main', {
  state: () => ({
    someState: 'hello pinia',
  }),
  persist: {},
})

When I manually change sameState in my code to Hello Word, it will not be saved in the cache

Hi, please refer to the documentation for correct usage here: https://prazdevs.github.io/pinia-plugin-persistedstate/
Also, issues won't be looked into if no proper reproduction (repo, stackblitz...) is provided.
Feel free to reopen once you follow the validations. :)


How to make Jitsi installer(Packaging) for Windows? Please provide respective steps...?

ant -f resources/install/build.xml build-installation-wix


[iOS] 'Flutter/Flutter.h' file not found

logs
 /Users/ayushisharma/Documents/OHP/ohp-international-develop/ios/Runner/GeneratedPluginRegistrant.h:10:9: error:
    'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^
    1 error generated.
    <unknown>:0: error: failed to emit precompiled header
    '/Users/ayushisharma/Library/Developer/Xcode/DerivedData/Runner-dpgdwgzbalfwqkegudmlstdnvtxf/Build/Intermediates.noindex/Pr
    ecompiledHeaders/Runner-Bridging-Header-swift_2U48THN5ZRD4A-clang_194POGHR34DPR.pch' for bridging header
    '/Users/ayushisharma/Documents/OHP/ohp-international-develop/ios/Runner/Runner-Bridging-Header.h'
    /Users/ayushisharma/Documents/OHP/ohp-international-develop/ios/Runner/Runner-Bridging-Header.h:1:9: note: in file included
    from /Users/ayushisharma/Documents/OHP/ohp-international-develop/ios/Runner/Runner-Bridging-Header.h:1:
    #import "GeneratedPluginRegistrant.h"
            ^
    2 errors generated.
    remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
    error: generate-pch command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Planning
    note: Build preparation complete

I have tried all the stack overflow solutions.

https://stackoverflow.com/questions/66549471/generatedpluginregistrant-h89-flutter-flutter-h-file-not-found

 flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 11.6 20G165 darwin-arm, locale
    en-GB)
    • Flutter version 2.8.1 at /Users/ayushisharma/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

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

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

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

[✓] VS Code (version 1.63.2)
    • VS Code at /Users/ayushisharma/Downloads/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.110

Hi @AyRawat, thanks for reporting this.
Kindly provide the following information

complete output of flutter run -v, the output may be huge so kindly put it into a .txt file and attach it here
ios/Podfile & ios/Podfile.lock
pubspec.yaml & pubspec.lock
ios/Runner.xcodeproj/project.pbxproj

Thank you

I am attaching all the files in a .txt format
flutter run -v
run.txt
iOS/Podfile

Podfile.lock
Podfile_lock.txt
Pubspec.yaml
pubscpec_yaml.txt
Pubspec.lock
pubspec_lock.txt
project.pbxproj
project_pbxproj.txt

Hi @AyRawat, it appears you run flutter run -v with chrome as the target.
Please provide the output of flutter run -v with iOS as the target.
Thank you

Hi @danagbemava-nc , I am new to flutter. Can you please tell me where can I set iOS as the target.
Thank You.

Connect either an iPhone or an iOS Simulator and type flutter run -v.
If either of those devices are the only ones you have connected, it should run on them directly, otherwise you'll need to select either of them when the prompt comes in the console.

Uploading logs.txt…

logs.txt

Do you have this issue with only the iOS simulator or does it occur with a physical device as well?

Hi @AyRawat, can you check if you have the run script in this comment? https://github.com/flutter/flutter/issues/83680#issuecomment-852364711
Also, check if https://github.com/flutter/flutter/issues/74210#issuecomment-800646581 helps in any way.
Thank you

Upgrading the Xcode version . Fixed thus issue for me. Thank You @danagbemava-nc  for helping me.


[DO NOT MERGE] Auto PR to update dependencies of istio

This PR will be merged automatically once checks are successful.
none

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
5213b350c83a653ca4b7f9d56fc0a460792795c5
link
/test istio-presubmit

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

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
565b68e978cb57834bf42ae880ebb9d7b61630db
link
/test istio-presubmit

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

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
3f3de944f8375930b78f7703b3968cacaabaacf1
link
/test istio-presubmit

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


WsFederation SaveTokens is not working

Hello,
I have tried setting WsFederationOptions.SaveTokens = true to get token in AuthenticationProperties but it is not being set in Asp.Net Core 2.0 or 2.1.
According to the documentation (WsFederationOptions documentation)  it should work, but it looks like this functionality is not implemented. In other Authentication models (OpenIdConnect, Oauth, JwtBearer) there is functionality to save tokens if SaveTokens is set to true.
I can create pull request to implement it if you will be willing to review it. Or is there a reason why WsFederation does not have it?

What tokens do you expect there to be in WSFed? The token is the identity, there aren't refresh or access tokens in WSFed.

This has been discussed before: https://github.com/aspnet/Security/issues/1716

In app I was expecting to get the same token which WsFederationMessage.GetToken() returns.
If you prefer to leave SaveTokens options as it is in WSFederation now, maybe it would be good to clarify in WsFederationOptions documentation that this option is ignored.

Let's override the property and:

Set [EditorBrowsable(None)]
Update the doc comment to say it's not supported


Builder fails on ECR when using dockerconfigjson file

Hello,
With ECR you can use AWS as the username and an authentication token as the password. You can put this in a dockerconfigjson file like this:
{
    ".dockerconfigjson": {
      "auths": {
        "https://<account>.dkr.ecr.<region>.amazonaws.com/v2/<repository>": {
          "username": "AWS",
          "password": "XXXXX ECR Authorization Token XXXXX"
        }
     }
  }
}

If you put that in a Kubernetes secret of type kubernetes.io/dockerconfigjson and attach it to the kpack service account as both a secret and an image pull secret, then the Builder that uses that service account will produce the following error:
status:
  conditions:
    - lastTransitionTime: '2023-05-26T11:53:54Z'
      message: >-
        Post
        "https://<account>.dkr.ecr.<region>.amazonaws.com/v2/<repository>/blobs/uploads/":
        EOF
      status: 'False'
      type: Ready

The logs in the kpack controller show this:
{
  "level":"error",
  "ts":"2023-05-26T11:54:00.413273068Z",
  "logger":"controller",
  "caller":"controller/controller.go:566",
  "msg":"Reconcile error",
  "commit":"79126fe-dirty",
  "knative.dev/kind":"builders.kpack.io",
  "knative.dev/traceid":"f787f9bb-f774-4dd3-a65e-8e00b519d2f3",
  "knative.dev/key":"play/weblogic-ai-builder",
  "duration":5.782489848,
  "error":"Post \"https://<account>.dkr.ecr.<region>.amazonaws.com/v2/<repository>/blobs/uploads/\": EOF",
  "stacktrace":"knative.dev/pkg/controller.(*Impl).handleErr\n\tknative.dev/pkg@v0.0.0-20221005141429-8cacac2ea6d7/controller/controller.go:566\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221005141429-8cacac2ea6d7/controller/controller.go:543\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221005141429-8cacac2ea6d7/controller/controller.go:491"
}

The AWS policy in the role I generated the authorization token from was the following:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "",
            "Effect": "Allow",
            "Action": [
                "ecr:BatchGetImage",
                "ecr:DescribeRepositories",
                "ecr:ListTagsForResource",
                "ecr:PutImage",
                "ecr:UploadLayerPart",
                "ecr:CompleteLayerUpload",
                "ecr:InitiateLayerUpload",
                "ecr:BatchCheckLayerAvailability",
                "ecr:GetDownloadUrlForLayer"
            ],
            "Resource": "arn:aws:ecr:<region>:<account>:repository/<repository>"
        },
        {
            "Sid": "",
            "Effect": "Allow",
            "Action": [
                "ecr:GetAuthorizationToken"
            ],
            "Resource": "*"
        }
    ]
}

Note that for the cluster stack and the cluster store this works fine.

I forgot to mention that this is with version 0.10.1. I noticed that this release file uses the 0.10.1-rc.3 version of the images for the Deployment resources.

Huh, these all look correct to me. For sanity's sake, can you check that:

Is the ClusterStack and ClusterStore pointing to private ECR images or public images? If they're public images then unfortunately it doesn't tell us much about the ECR creds
The ECR repository the builder is pointing to exists. ECR has an annoying policy of requiring repos to be explicitly created instead of dynamically created on pushes like dockerhub or gcr
The Builder is created after the service account and secret. I'm not 100% sure but I think the controller doesn't re-reconcile Builders on service account changes

Can you also try using just the hostname in the dockerconfig? Something like:
      "auths": {
        "<account>.dkr.ecr.<region>.amazonaws.com": {
          "username": "AWS",
          "password": "XXXXX ECR Authorization Token XXXXX"
        }
     }

Hey @wdonne
We are facing similar issues with ECR put permissions too. Did you find any workaround?

Hi @semmet95 ,
I haven't pursued this further yet, but the only possible thing I see is using the domain name instead of the URL in the dockerconfig.

@wdonne For me your approach worked when I created a secret using .docker/config json file after logging in to ecr with the  IAM role with proper policies.
kubectl create secret generic regcred --from-file=.dockerconfigjson=/Users/amisingh/temp/.docker/config.json --type=kubernetes.io/dockerconfigjson


Update - Modify the column within the aggrid

Issue #333

Introduced an HeaderComponent for AgGrid defaultColDef
Moved all column operation into the AgGrid Header

Thanks for the PR @witehound ! That's great work. There is however still an issue
Screen.Recording.2023-08-14.at.16.41.49.mov
I think it stems from the fact that you are using the add button as a special kind of column. Not sure if this has a solution. If not, I'd propose to have instead an Add column button below near add row. @aakrem what do you think? @MohammedMaaz Any ideas, I looked into https://www.ag-grid.com/react-data-grid/ and could not find any case where they add a custom button to the header. Maybe you have better ideas?

@mmabrouk thanks for the review i missed that issue. I am thinking putting the add row button outside might be the solution but any tips to improve UX.

@MohammedMaaz thanks for the review. Are you saying to add the plus button next to the last colunm header?

@MohammedMaaz thanks for the review. Are you saying to add the plus button next to the last colunm header?

yes, but make it absolute positioned with right: -100px for example to make it look like its not actually part of the last header but rather next to it

@mmabrouk would it be better UX to avoid editing in the modal and instead change the header cell to an input field when user enters edit mode of a column?

@mmabrouk would it be better UX to avoid editing in the modal and instead change the header cell to an input field when user enters edit mode of a column?

@MohammedMaaz of course, if that's doable, that's better

@mmabrouk would it be better UX to avoid editing in the modal and instead change the header cell to an input field when user enters edit mode of a column?

@MohammedMaaz of course, if that's doable, that's better

@mmabrouk , @MohammedMaaz ive gone ahead to update the ui but it comes with a two UX problems, 1 let user know there is an error like trying to reuse a column name, 2 a way to exit the input field when use clicks edit, for now it has just save but if there is an error user can exit it either. Let me know your thoughts.

@witehound Can you commit your changes so that we can test the UX?

@mmabrouk review needed.

Thanks @witehound I think this looks great. I only have two minor comments:

I think the user should be able to exit the input field if they click on enter (in addition to the save button).
We should make the artificial column that we use for the add icon as small as possible, so that it does not look like an extra column, and have all the others in the same size.

Great work! That was a challenging issue


Full list of actions isn't showing up

I'm on a fresh copy of Articulateand having quite a few issues, here's number one:
I've created greetings and goodbyes actions, but the action list seems to be filtered:

The action isn't hidden by scrolling or anything like that I looked at the source. Also there are no errors on the page or console.

The actual error was that the actions were being overwritten.
Closed by https://github.com/samtecspg/articulate/commit/64f434cb456be98486b6266d899b24cb60710bb4


Change bundle format into extension method

From discussion on https://github.com/VirtusLab/git-machete-intellij-plugin/issues/852.
@mkondratek :

I ve quickly tried this (getString & format together):
  public static String getFmtStr(@PropertyKey(resourceBundle = BUNDLE) String key, String... args) {
    return format(instance.getString(key), args);
  }

@PawelLipski :

I ve quickly tried this (getString & format together):

The question is whether we can still have compile-time checking of properties done by https://checkerframework.org/manual/#i18n-formatter-checker ... it looks that @I18nMakeFormat won't work on such getFmtStr method ☹

Although! I still think some hacks can be done with Lombok's ExtensionMethod, like getString(...).fmt(..., ...) which would expand to format(getString(...), ..., ...) but be more readable, while not impeding I18nFormatterChecker's operations

Oh! I've just opened more generic #854 😅

ok!


DynamicShop Lang

Is it possible to improve the lang customisation for DynamicShop? For example, I am currently unable to remove lore from items such as the exit button. I am also unable to customise some buttons fully, such as the page change button (can only change the "Page" part of the name, making the page number colour inconsistent).

https://github.com/7sat/DynamicShop/commit/bd31c9f1c2f9f8c0c564641985d25cbf1599877c
There is room for improvement, but I think this will solve the problem for now.


Feature/sortpotential

Is there anything missing ? Evaluation is still unclear, no ?

What about default value...

You might want to benchmark again. Sorting by potential was broken.

Was it ? Couldn't figure what was broken in th issue, but will just run them again...

Was it ? Couldn't figure what was broken in the issue [...]

I would think that the expression get_potential(edge) + edge.weight - get_potential(edge) evaluates to edge.weight.

Well, my awesomeness striked again. :man_facepalming:

results.zip
Looks good, reversed potential has some potential.


Removed references to 'registering_order', as it was unused.

See https://github.com/godotengine/godot/issues/16863#issuecomment-704211113

Thanks!


Use sed /g global flag to make highlight do all occurences.

Default behavior only highighted the first occurence.

Thanks!


How do batched updates work?

I am curious whether React Redux utilises batched updates in any way. I want to know whether I need to be worried about multiple render cycles happening when dispatching a single action. There are a few other issues concerning this, however they appear to be related to the old version of this library, and they don't detail the exact workings.
Here is my current understanding. Please tell me where I am wrong!
Each instance of Connect will call its onStateChange method when the Redux state changes, which internally will call setState if the props have changed.
This means we will be calling setState for many instances of the Connect component, all within the same call frame.
As far as I understand it, React only implements batching for multiple setState calls in the same event handler sequence. In our case, the setState calls happen outside of an event handler, so each instance of Connect which needs updating will trigger its own render cycle when calling setState.
Do I understand correctly? I don't believe I do, because in my own profiling it appears there is only one render cycle…

After further testing, I think I understand the situation better now. Please correct me where I'm wrong.
We only call setState on the common ancestor of all connected components. Because of this, we avoid multiple render cycles. For example, given a component tree of:
ConnectedParent
  ConnectedChildA
  ConnectedChildB

When Redux state changes, we only call setState for ConnectedParent. This triggers a re-render of all child components, but importantly, within the same render cycle.
However, if connected components do not have a common ancestor:
UnconnectedParent
  ConnectedChildA
  ConnectedChildB

In this case, setState will be called for both connected child components, and because these calls to setState occur outside of an event handler, they will not be batched and thus we will cause multiple render cycles:

https://stackblitz.com/edit/react-ts-vw6ske?file=index.tsx
In this case it might make sense to use something like redux-batched-subscribe to wrap the calls to setState in a ReactDOM.unstable_batchedUpdates.

This will be irrelevant in a post-async world under React 17. There's a reason batched updates are marked as unstable 😄
But without a stable API to build on, this is not something we should build into the library. Luckily, React is solving the problem for us, so this will be a non-issue in the relatively near future.

Hi @timdorr, I'm aware of the forthcoming async rendering. I was just keen to understand how things work/should work in the world today.
Is my explanation correct?

Yes.


Couldnt find the dom

ok have this error couldnt find the dom .... background is i had a file created in Khanacadmey  which had html and css in the one sheet ... i then copied the css to notepad and saved as a stylesheet
deleted the css from original and saved as the html.
But when i open in Brackets all goes fine untlil i use the preveiw .. if i click on any element it dosent get highlighted  from the html section .... if i click on a css id or class it hightlights that in the page to show me where in the page it is.
on the developer you can see the error as cant find the dom ...
As i have very limited understanding of javascript i would not be able to sort this out (only learning javascript a few weeks)
main reason im posting is i seen those who created Brackets like to see problems that crop up . I will probably just rewrite the code directly in brackets as its only for practice anyway
if anymore info is required please post and if i can provided it i will.

Could you share the file / project you are having this problem with


Chrome Extensions: Content-Security-Policy Flutter applies deprecated directives.

From here: https://github.com/Dart-Code/Dart-Code/blob/bca09132c5f8afd58c740f652edf8c0ef3b8fc79/src/extension/sdk/dev_tools/embedded_view.ts
this.panel.webview.html =

;
the line:
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'nonce-${scriptNonce}' 'nonce-${cssNonce}' http://${vs.Uri.parse(devToolsUri).authority};">
For Chrome Extensions this is not allowed and flutter is creating non CSP compliant pages. More details on manifest V3
This means that flutter currently cant be used to make chrome extensions.
Please fix

Hi @coppermight
I'm not sure I can understand this right. If it's an issue with Dart Code, I would recommend filing an issue in its repository for better support.
If you are looking for a solution to make a Chrome extension, you may check this tutorial for reference. You may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://flutter.dev/community or https://www.reddit.com/r/flutterhelp for resources.
Closing for now. If you are proposing a change, please use the appropriate new issue template and fill out the requested details so that we can address this issue properly. Thank you!


OPA Gatekeeper doesn't work with default values on GKEv2

What kind of request is this (question/bug/enhancement/feature request): bug
Steps to reproduce (least amount of steps as possible):

deploy upstream cluster with rancher/rancher:v2.5-head 41f173a
from the rancher emberUI provision Hosted GKEv2 cluster - use default values from the wizard
Switch to Cluster Explorer of the GKE cluster and try to deploy OPA Gatekeeper-3.3.001-rc00 (from dev-v2.5 chart repo) out of any project (none)

Result:
Go to Workload->Deplyments and after a while see status of OPA Gatekeeper deployments gatekeeper-audit and gatekeeper-controller-manager - both are in Error state and stuck on Failed Condition:
[FailedCreate] insufficient quota to match these scopes: [{PriorityClass In [system-node-critical system-cluster-critical]}]

Other details that may be helpful:

Workaround is to remove two lines containing priorityClassName: system-cluster-critical from values.yaml
works ok with default values on single-node RKE cluster

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): v2.5-head
Installation option (single install/HA): HA

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): Hosted GKEv2 with default values
Machine type (cloud/VM/metal) and specifications (CPU/memory): default
Kubernetes version (use kubectl version): v1.17.17-gke.3000

Known Upstream Issue: https://github.com/open-policy-agent/gatekeeper/issues/1120


add orderby examples

hi all
here are some order by tests to get you started. I will add more to it when i get the opportunity.
rgds
Ben

@BKSpurgeon Great! I've two requests though

Why did you remove Answers/Partition.txt? Seems fine to me. Can you recover it?
Rename TestData.OrderByWords1 to TestData.OrderByWordsExtended

@walkhard greetings,
let me address  your questions in turn:

i thought about what you said re: answers - you are right they are simple answers so just got rid of them entirely. i'm sure i can recover via git.

no problem will rename.

rgds
Ben

@BKSpurgeon Either we include all answers or none, please recover it and I'll accept.
Thanks

hi @walkhard have recovered some missing answers, have added partitions and set operators also. have added a few tricky problems in there as well to challenge students.
Perhaps I will create a separate class which requires students to combine different methods together to solve a particular problem.
rgds
Ben

@BKSpurgeon There are couple of things which I want you to fix.

OrderBy-SelectedAnswers do not fit current answers format, can you please make it look like other answer files?
Each line in PartitionAnswers starts with -, can you deal with it?
There is a typo in SetAnsers, it should be SetAnswers.
You mentioned that you want to create a separate class which uses combined methods to solve a problem. I like that idea.
SetAnswers one exercise is more complicated (more than one line of code to solve it). Maybe it could be our first excercise for 4)?
There are some extra whitespaces/indentation irregularities in SetOperations (possibly in other files too). Would you tidy it up? I can recommend a plugin for VS called CodeMaid which will automatically do it for you among other nice things.
Make sure comments are consistient (all above code, not in the same line).  Also, I think that it is obvious and we can acually remove those comments.:
// please edit/complete so that the test passes

It looks like you're doing it in a hurry, no need to rush Ben. Thanks for your efforts!

@walkhard ok chrs for the posts - keeps me honest :P - i didn't realise those issues - I will update all those when i get the chance. pls bear with me time-wise, but will get to it
rgds
Ben


Switch to official Emscripten Docker image

... and update to the latest release. Includes switching to the "upstream" backend, which seems to build a bit faster (~2 mins on travis). Also should include the workaround for audio.
Bonus: flight and the perspective effect in tilemap-test now work (#97/#340). (The nans/infs are still there, they just don't cause exceptions any more...)

Awesome, thanks. And good news regarding flight and tilemap!


tf 2.0.0-rc0 tutorial colab (hub_with_keras) fails when batching images for simple model training

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): google colab
TensorFlow version (use command below): 2.0.0-rc0
Python version: 3.6.8

Describe the current behavior
Original bug report: https://github.com/tensorflow/hub/issues/359
Using tf 2.0.0-rc0 and constructing a simple Keras model fails to train. The issue seems to be due to batching in the tf.keras.preprocessing.image.ImageDataGenerrator().flow_from_dictionary().
Maybe some default parameters were changed.
If this is the case, the tutorial colab has to be adapted:
https://www.tensorflow.org/beta/tutorials/images/hub_with_keras
Code to reproduce the issue
Original official colab: https://www.tensorflow.org/beta/tutorials/images/hub_with_keras
Issue first reported based on this colab: https://colab.research.google.com/gist/MokkeMeguru/788255c93d4a4d8d4485098a7ba5e9f5/hub_with_keras.ipynb
Simplified colab reproducing the error with a simple model:
https://colab.sandbox.google.com/drive/1YI0XnFOgt9OEUzpvlAP4Tcb1W9NkPMdN#scrollTo=OGNpmn43C0O6

Resolution: instead of ".fit()", one should have used ".fit_generator()".


Adding additional L2 NIC to instance produces inconsistent result

Hi fellas,
Recently needed to add a NIC with L2 network to VM and it caused an error:
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.cloudstack.cloudstack_nic.db[0], provider "provider[\"registry.terraform.io/cloudstack/cloudstack\"]" produced an unexpected new value: Root object was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Tried multiple configurations with IP with different networks, same issue. Anyone else got similar issues?
Terraform version: 1.9.8
CloudStack version: 4.19
CloudStack Terraform Provider: 0.5.0

Seems like it was privilege issue.


Person without email causes attribute error

In Person.clean(), self.email can be None.

@pbanaszkiewicz  Can you  please elaborate how to reproduce this bug ? I created a new person with no email id, but it didn't throw any error.

@prerit2010 I found it when I was changing permissions for a person without email.

Closed via #841.


Questions: Maximum value in a column and comparing keys across tables

Prework

[x] Read and agree to the code of conduct and contributing guidelines.
[ ] If there is already a relevant issue, whether open or closed, comment on the existing thread instead of posting a new issue.
[ ] For any problems you identify, a minimal reproducible example so the maintainer can troubleshoot. A reproducible example is:

[ ] Runnable: post enough R code and data so any onlooker can create the error on their own computer.
[ ] Minimal: reduce runtime wherever possible and remove complicated details that are irrelevant to the issue at hand.
[ ] Readable: format your code according to the tidyverse style guide.

Question
This is a great package, and a promising R-based equivalent of Great Expectations in Python. However, when building ML pipelines there are a set of transforms and tests that come up frequently, but these do not seem to be available in pointblank at this point in time:

Maximum value of a column -- Generally, I want to determine if the maximum value of a date column is yesterday. This is a breaking condition to prevent models being trained if the latest transactions haven't been received.

Consistency of keys between tables -- When applying transforms to data it is often desired to ensure that all of the keys in table A are present in table B; i.e, if I train a model I want to ensure that all of the entries in my input table A have predictions in output table B.

Are either of these operations possible within pointblank with the col_vals_* functions, perhaps in a way that I've not considered?

Thanks for the question and for the good words! I have a set of solutions for the first scenario (a situation that is near and dear to my heart, actually):
library(tidyverse)
library(pointblank)
library(lubridate)

today <- ymd("2016-01-31")
yesterday <- today - days(1)

# Strategy A: transform the target table to get the maximum value for a column
# and make an explicit check for equality
create_agent(read_fn = ~small_table) %>%
  col_vals_equal(
    columns = vars(date), value = yesterday,
    preconditions = ~ . %>% dplyr::select(date) %>% summarize(date = max(date, na.rm = TRUE))
  ) %>%
  interrogate()

# Strategy B: Determine whether a column of values contains a one-value subset
create_agent(read_fn = ~small_table) %>%
  col_vals_make_subset(
    columns = vars(date), set = yesterday
  ) %>%
  interrogate()

If you run both of these, you'll find that the single 'test unit' passes in both. Different ways of solving the same problem. One of the focus areas for this package (probably for v0.8) is to provide a set of transformer functions to safely mutate a table before applying a col_vals_*() validation function. Having the flexibility to mutate a table in a single step with validation functions that act dependably across backends should allow for a huge range of validations. The goal is to make it all easier and provide good documentation so that it becomes a bit more obvious.
For the second scenario, do you mean keys in the form of columns or column values (i.e., categorical values)? Either way, both can be done. Just clarify and I could provide another code example with a solution.

Important note for strat B: it requires the development version of pointblank, obtainable by using devtools::install_github("rich-iannone/pointblank"). The function col_vals_make_subset() is not in the latest CRAN release.

Hey @rich-iannone that makes sense. I missed the utility of the preconditions flag. You Strategy A is the equivalent of what I've got in place now with testthat:
context("table: sales")
test_that("last received sales data was yesterday", {
  conn = connect_db()
  query = "
    select
        max(to_date(orderdate, 'DD/MM/YYYY')) as date
    from
        stage.sales
  "
  last_received_sales_data = DBI::dbGetQuery(conn, query)$date
  yesterday = Sys.Date() - 1
  odbc::dbDisconnect(conn)
  expect_equal(last_received_sales_data, yesterday)
})

For my second question, I am explicitly talking about column values. My use-case is where there are, say, 30,000 sku IDs in my raw data. I am training a model via a number of intermediate transforms and want to ensure that the output predictions table includes predictions for all 30 of my input sku IDs.  I'm curious as to how to monitor the consistency of IDs on both the input and output tables and through the intermediate steps so that we can determine items are being dropped or removed.
A further question on the back of the preconditions flag is how pointblank carries out the transforms and ultimately tests the data when using remote tables. If I'm using tbl pointing at a Redshift table, how does pointblank validate the data? Is the data pulled into R and validated in-memory (in R), or does a query (or dbplyr equivalent) get executed on the remote table? I'm dealing with a few hundred million rows of data in Redshift so the former would be a blocker for adoption just from a data transfer perspective.

Thanks for the follow up info! Here's what you can do to ensure an exact match of column values from one table source to the next (operating again on the tiny data of small_table):
library(tidyverse)
library(pointblank)

small_table_1 <- small_table_2 <- small_table

keys <- small_table_1 %>% dplyr::select(f) %>% dplyr::distinct() %>% dplyr::pull()

create_agent(read_fn = ~ small_table_2) %>%
  col_vals_make_set(
    columns = vars(f), set = keys
  ) %>%
  interrogate()

This results in 4 test units being evaluated: one for each set item plus an extra one that checks for values outside of this set. All four in this case are passing (i.e., exact set matching). The col_vals_make_set() function is quite new (and only available in the dev version of this package). Hope this helps and I now see the need for a basic helper function that combines select(), distinct(), and pull() (with a limit option).
To answer your question about where the validations take place, it's always in-database and only the count of passing/failing units is collected (plus data extracts--up to 5000 rows per step--all settable in interrogate()). My first use case in 2017 for this package was actually validating dozens of tables on Redshift (with pretty large data), so, the basic requirement from the beginning was to never collect large amounts of rows from the DB.

That's great @rich-iannone, thanks for the details. Definitely sounds promising and I'm keep to get stuck into testing this as a validation engine.
From your last example,  if I understand correctly, it is first necessary to define the reference set outside of the agent. Do you have a recommended/suggested way of doing this in the contest of working with a database? Obvious option is to create the reference set with a query (or dbplyr) and then use it in the same way you define keys above.   I definitely agree that having a utility function for that will be good. Perhaps an even more useful function would be one where it is possible to provide a reference tbl against which we compare the set automatically without having to manually define the keys.
Great package, and I'm sure I'll have more questions and ideas in future. Great work.

I've recently added in some functions that make DB access a little nicer (db_tbl(), and tbl_store()). While I don't have small_table in a DB we can use the similar-in-behavior file_tbl() to pull the same data (again, pretend it's different) from a repo and make the validation self-contained:
agent <-
  create_agent(read_fn = ~ pointblank::small_table) %>%
  col_vals_make_set(
    columns = vars(f),
    set = file_tbl(
      from_github(
        file = "small_table.rda",
        repo = "rich-iannone/pointblank",
        subdir = "data")
    ) %>%
      dplyr::select(f) %>% dplyr::distinct() %>% dplyr::pull()
  ) %>%
  interrogate()

What I currently don't like about this is that we can't (yet) provide the file_tbl() call as a RHS formula expression. The reason I don't like it is that the agent won't preserve the expression in it's YAML representation (useful if you want to reuse the agent from disk with yaml_agent_interrogate() and always re-eval since the data sources will change).
I think utility functions (for many common operations like this) and stored expressions will be areas of development and I'd appreciate your input every now then on what could make the API better in real-world use cases!

For what it's worth, your Strategy A above worked but only if the preconditions were collected. Without that the test fails.
Going to close this thread and move further questions to Discussions, which I only just found. Thanks @rich-iannone!


Parse HTML element and attribute positions

Overview
This PR adds positions to the templ parser results for HTML elements and attributes relating to conversation in  https://github.com/a-h/templ/issues/498, specifically the recommendation made in https://github.com/a-h/templ/issues/498#issuecomment-1952638089.
This handles only calculating expression positions. I plan to open another PR when ready to use the calculated positions to enable LSP intellisense with a few hard-coded results. After that, I can work towards the solution I recommended in https://github.com/a-h/templ/issues/498#issuecomment-1952566968, to import an HTML LSP's data into templ's LSP.

@a-h, I finished getting all the unit tests updated to reflect the position calculations so this should be ready for code review now.

My immediate thoughts here are that maybe Expression isn't the right type, so far I think we only store Go in here.
I could be being nit-picky but I think it makes more sense for there to be an HTML specific expression type.

@joerdav, that sounds valid. I mainly reused it since it was already a pattern for storing positions. Should be simple enough to do a find and replace with a new name. Do you have anything in mind as an alternative to Expression?

Considering that Expression.Value ends up with the same value as Name from the parent struct in all of these cases, we could probably just use Range directly to store the positions of elements/attributes.

@joerdav, I went ahead and replaced Expression with Range in all cases. Let me know if this approach works better with you.

@alehechka the type range makes sense, happy with that. I wonder if a better name for the property could be in order? The name Range Range to me suggests it's the range of the whole open tag, maybe NameRange Range could be more specific? After that I'm happy with this PR if @a-h is.


[tool_crash] RPCError - App crashes after adding awesome_notification and icon_notification icon

Command
flutter run --verbose

Steps to Reproduce

run flutter

Logs
RPCError
#0      VmService._call (package:vm_service/src/vm_service.dart:1769:7)
#1      VmService.getVM (package:vm_service/src/vm_service.dart:1245:25)
#2      FlutterDevice.initLogReader (package:flutter_tools/src/resident_runner.dart:428:55)
#3      HotRunner.attach (package:flutter_tools/src/run_hot.dart:266:21)
<asynchronous suspension>
#4      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:867:27)
<asynchronous suspension>
#5      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1408:27)
<asynchronous suspension>
#6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#7      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#8      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:420:9)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#11     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13     main (package:flutter_tools/executable.dart:93:3)
<asynchronous suspension>

[✓] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.22631.4460], locale en-US)
    • Flutter version 3.24.3 on channel stable at C:\Developer\Flutter\SDK\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (3 months ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Nnam0\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.11.35431.28
    • Windows 10 SDK version 10.0.22621.0
    ✗ The current Visual Studio installation is incomplete.
      Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.

[✓] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[✓] VS Code (version 1.95.3)
    • VS Code at C:\Users\Nnam0\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.102.0

[✓] Connected device (3 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 15 (API 35) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22631.4460]
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 131.0.2903.70

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 761747bfc538b5af34aa0d3fac380f1bc331ec49
Plugins
awesome_notifications-0.10.0
device_info_plus-11.1.1
firebase_core-3.8.0
firebase_core_web-2.18.1
firebase_messaging-15.1.5
firebase_messaging_web-3.9.4
flutter_native_contact_picker_plus-0.0.3
package_info_plus-8.1.1
path_provider-2.1.5
path_provider_android-2.2.14
path_provider_foundation-2.4.0
path_provider_linux-2.2.1
path_provider_windows-2.3.0
printing-5.13.4
shared_preferences-2.3.2
shared_preferences_android-2.3.2
shared_preferences_foundation-2.5.2
shared_preferences_linux-2.4.1
shared_preferences_web-2.4.2
shared_preferences_windows-2.4.1
url_launcher-6.3.1
url_launcher_android-6.3.14
url_launcher_ios-6.3.1
url_launcher_linux-3.2.1
url_launcher_macos-3.2.1
url_launcher_web-2.3.3
url_launcher_windows-3.1.3
webview_flutter-4.10.0
webview_flutter_android-4.1.0
webview_flutter_wkwebview-3.16.3

Closing this as a duplicate of https://github.com/flutter/flutter/issues/154903


Conversion from onnx to nnet format

see: https://github.com/sisl/NNet

After installing the python package onnx, and downloading the github package NNet  the following works in my machine
import sys
sys.path.append('/home/mforets/Tools/NNet')
from NNet.python.nnet import *

from NNet.converters.onnx2nnet import onnx2nnet
from onnx import *

## Script showing how to run onnx2nnet
# Min and max values used to bound the inputs
inputMins  = [0.0,-3.141593,-3.141593,100.0,0.0]
inputMaxes = [60760.0,3.141593,3.141593,1200.0,1200.0]

# Mean and range values for normalizing the inputs and outputs. All outputs are normalized with the same value
means  = [1.9791091e+04,0.0,0.0,650.0,600.0,7.5188840201005975]
ranges = [60261.0,6.28318530718,6.28318530718,1100.0,1200.0,373.94992]

# ONNX file to convert to .nnet file
onnxFile = '/home/mforets/Tools/NNet/nnet/TestNetwork2.onnx'

# Convert the file
onnx2nnet(onnxFile, inputMins, inputMaxes, means, ranges)

I'm having a problem loading the module NNet
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-175acfe1d4a3> in <module>
      1 import sys
      2 sys.path.append('/home/sguadalupe/NNet')
----> 3 from NNet.python.nnet import *

ModuleNotFoundError: No module named 'NNet'

oh, i think the path line should be sys.path.append('/home/sguadalupe')

We tried converting this model but we keep getting this error, the models use a version of onnx that has an operator called "FC"(we know this using onnx.load(onnxFile).graph.node[1].op_type), it looks like it is no longer supported, we get the error because the converter does not support FC, it only supports "MatMul", "Add" and "ReLu"

Closing this as we have other means for the conversion.. we can eventually reopen in case we need to parse such files.


Added custom name support to KMS

This allows you to use the custom naming for the IAM Role in the KMS module.

Thanks this is pretty handy :)


9P/virtio-fs: inotify does not work: ConfigMap Updates

ConfigMap Updates: inotify doesn't work on 9p/virtio-fs filesystem mounts
A common design pattern in Kubernetes is to watch for changes to files/directories passes in as Configmaps or Secrets. Sidecar's normally use inotify to watch for changes and then signal the main container or perform some other type of reconfiguration.
Given that Kata today uses 9p to pass in both ConfigMaps as well as Secrets into the VM this will not work.
Note: This will be an issue for virtio-fs too
Expected result
Here is an example for a sidecar used to inject configuration change
apiVersion: v1
data:
    authorized_keys: |
      ssh-rsa USE_SIDECAR_TO_ADD_KEYS_kubectl_cm_edit_ssh-pub-key
kind: ConfigMap
metadata:
  name: ssh-pub-key
---
apiVersion: v1
kind: Pod
metadata:
  name: footfed
spec:
  runtimeClassName: kata
  volumes:
  - name: runv
    emptyDir:
      medium: "Memory"
  - name: runlockv
    emptyDir:
      medium: "Memory"
  - name: tmpv
    emptyDir:
      medium: "Memory"
  - name: fakecgroup
    hostPath:
      path: /sys/fs/cgroup
  - name: ssh-dir
    emptyDir:
      medium: "Memory"
  - name: ssh-pub-key
    configMap:
      name: ssh-pub-key
      defaultMode: 384
  containers:
  # This sidecar is used to constantly update the keys allowing the VM
  # keys to be revoked or updated
  - name: key-sidecar
    image: pstauffer/inotify
    command: ["sh", "-xc", "chmod 700 /root/.ssh; cp /tmp/keys/authorized_keys /root/.ssh/authorized_keys; inotifywait -m -r -e create /tmp/ | while read IGNOREME; do echo /tmp/keys/authorized_keys; cp /tmp/keys/authorized_keys /root/.ssh/authorized_keys; chmod 600 /root/.ssh/authorized_keys; done"]
    volumeMounts:
    - name: ssh-dir
      mountPath: /root/.ssh
    - name: ssh-pub-key
      mountPath: /tmp/keys
  - name: footfed
    image: quay.io/footloose/fedora29:latest
    command: ["/sbin/init"]
    volumeMounts:
    - name: runv
      mountPath: /run
    - name: runlockv
      mountPath: /run/lock
    - name: tmpv
      mountPath: /tmp
    - name: fakecgroup
      readOnly: true
      mountPath: /sys/fs/cgroup
    - name: ssh-dir
      mountPath: /root/.ssh

Once the pod is fully up and running

Edit the config map using kubectl edit cm ssh-pub-key and modify the key

Watch for the key to change (it will take a few seconds

watch kubectl exec footfed -c footfed -- cat /root/.ssh/authorized_keys

You should see the new key being setup
Actual result
The key is never updates as the config map change is never detected.
You can also see this in the side-car logs when things work
Every 2.0s: kubectl logs footfed -c key-sidecar                                                           bored-pelinor: Tue Apr  9 01:05:06 2019

+ chmod 700 /root/.ssh
+ cp /tmp/keys/authorized_keys /root/.ssh/authorized_keys
+ inotifywait -m -r -e create /tmp/
+ read IGNOREME
Setting up watches.  Beware: since -r was given, this may take a while!
Watches established.
+ echo /tmp/keys/authorized_keys
+ cp /tmp/keys/authorized_keys /root/.ssh/authorized_keys
/tmp/keys/authorized_keys
+ chmod 600 /root/.ssh/authorized_keys
/tmp/keys/authorized_keys
+ read IGNOREME
+ echo /tmp/keys/authorized_keys
+ cp /tmp/keys/authorized_keys /root/.ssh/authorized_keys
+ chmod 600 /root/.ssh/authorized_keys
+ read IGNOREME

This is an issue that minikube faces too https://github.com/kubernetes/minikube/issues/1551

@ganeshmaharaj can you verify that inotify works with virtio-fs.
/cc @sboeuf @egernst

Ouch. Hmm, @stefanha @dagrh, I wonder if virtio-fs might help out minikube as well then?

@grahamwhaley host->guest inotify is not available in virtio-fs yet.  It's something we will look at in the future.

@

@grahamwhaley host->guest inotify is not available in virtio-fs yet. It's something we will look at in the future.

@stefanha is this a limitation of fuse filesystem or the current implementation.

On Tue, Apr 9, 2019 at 6:32 PM Manohar Castelino<EMAIL_ADDRESS>wrote:

@
@grahamwhaley https://github.com/grahamwhaley host->guest inotify is
not available in virtio-fs yet. It's something we will look at in the
future.
@stefanha https://github.com/stefanha is this a limitation of fuse
filesystem or the current implementation.

FUSE itself does not support inotify.

@stefanha thanks for the confirmation. Any other limitation related to FUSE that we would have missed?

On Wed, Apr 10, 2019 at 6:59 AM Sebastien Boeuf<EMAIL_ADDRESS>wrote:

@stefanha https://github.com/stefanha thanks for the confirmation. Any
other limitation related to FUSE that we would have missed?

We haven't tested SELinux yet.  In theory it could just work but there's
always a chance that additional work will be necessary.

@mcastelino this is what i found about fuse and inotify.
The initial blog to get inotify,fsnotify and the series is at https://github.com/libfuse/libfuse/wiki/Fsnotify-and-FUSE where the author stefbon says he is working on an implementation to enable the transport for events. The latest on this topic is an issue opened in the github project at https://github.com/libfuse/libfuse/issues/328 where it seems the current status of the effort is that  the feature is still being worked on but nothing of substance exists yet. https://github.com/libfuse/libfuse/issues/328#issuecomment-450960533

@dagrh, @rhvgoyal,  Stefan mentioned that "FUSE itself does not support inotify.". Is there something planned on the FUSE side to support it or can we mark this one as a known limitation on our side?

@dagrh, @rhvgoyal,  Stefan mentioned that "FUSE itself does not support inotify.". Is there something planned on the FUSE side to support it or can we mark this one as a known limitation on our side?

@fidencio Lack of inotify support is a known limitation. Although we are discussing how to add support, the work has not yet begun and there is ETA. It seems to be technically possible but non-trivial.

@fidencio Lack of inotify support is a known limitation. Although we are discussing how to add support, the work has not yet begun and there is ETA. It seems to be technically possible but non-trivial.

@stefanha, ack, thanks the confirmation!

@stefanha, ack, thanks the confirmation!


What is the aggregation when requesting quotes with interval size?

When I request quotes on other exchanges every X minutes usually there is a "High" and "Low" (as it is for a period) but with get_hist_option it seems to be a single number.  What is the aggregation that's being done?

Each interval is a millisecond of the day. We provide the exact quote at each interval. Whatever the last quote is at the exact time is the computed value. You can use OHLC_QUOTE to receive aggregated ohlc for quotes. Our REST API documents behavior of this much more than Python does. For API support, I highly recommend you join our discord server for faster replies: https://discord.thetadata.us.

Ah so it's not aggregated it's just subset, makes sense


Changed sub-headings so that the IDs are unique

Having unique IDs on the sub-headings allows linking to sections of the documentation easier.  Without this change, the following link is ambiguous:
http://redux.js.org/docs/basics/UsageWithReact.html#container-components

Thanks!  I think I actually noted that the other day, then it skipped my mind.  Appreciate the fix!


Debugger errors thrown when ReflectionProbe sees a ShaderMaterial that reads from the depth texture (both in game and in editor)

Godot version
4.0.rc3
System information
Windows 10 & Arch Linux, both Vulkan backend with AMD RX 6700
Issue description
When an object with a ShaderMaterial that accesses the depth texture is visible to a ReflectionProbe, errors will be thrown each time the ReflectionProbe redraws. This happens both in the editor and in game. There does not appear to be any obvious effects of this aside from the error, but I might not have found them yet.
In the editor this message will be displayed to the Output:
servers/rendering/renderer_rd/storage_rd/texture_storage.cpp:2697 - Condition "!rt" is true. Returning: RID()

In game this error will be displayed to Debugger/Errors:
E 0:00:00:0881   render_target_get_override_depth: Condition "!rt" is true. Returning: RID()
  <C++ Source>   servers/rendering/renderer_rd/storage_rd/texture_storage.cpp:2697 @ render_target_get_override_depth()

Steps to reproduce

Create a 3D scene containing a ReflectionProbe, a MeshInstance3D, and a Camera3D.
Attach a ShaderMaterial to the mesh which access the depth texture:

shader_type spatial;

uniform sampler2D depth_texture : hint_depth_texture;

void fragment() {
	float depth = texture(depth_texture, SCREEN_UV).r;
}

Move the ReflectionProbe around the scene, note the errors in the Output tab.
Run the scene, note the errors in the Debugger/Errors tab.

Minimal reproduction project
Test.zip

Will be fixed by https://github.com/godotengine/godot/pull/73733


add Creative Cloud from Adobe

Creative Cloud offers syncing of images (unlimited) and also files.
I would use their service it if they would offer 2FA.
Images (private or commercial) and creative creations need a good protection.

Hmm, i'm not sure if Backup is the correct category for it. While Creative Cloud does offer image syncing, I don't think it's the primary product.
Also see #819.

Well it is a multipurpose product. You can put binary files into it (like Dropbox/GDrive), you can work collaborative on files there (covering most of Adobe products), you can sync your Lightroom image sets to it (which is not a 100% backup but a sync which is two way and in a very good quality). Same login is also used for downloading their products. So it is most similar to a Google Account with various sync products underneath.

@therealmarv Yes, every service should have 2fa for user accounts. However, this site is not intended to list every single possible site out there.
When people think about Creative Cloud, image syncing is not the 1st thing that comes to mind. I think it's all of the Adobe applications.
If this site is going to be added, I think it should not go into backup category, but rather into "other" category.

I'm fine with moving it to another category. No problem with that.

I say it looks-good.

Yeah, like #819 I don't think this should be added to the list.

I see that on #819 everybody is ok with Adobe. I do not care about downloading their products. The main reason for this PR is beeing able to use the Creative Cloud with your professional or private images together with iPad/Android Creative Cloud apps and image synching

Why don't we just change it to Adobe then? They also have document cloud which would be important to protect. All of their products use the same account system, so why don't we just add Adobe itself instead of their individual products?

@jamcat22 good point. I'm not into every corner of their products but you are right. They all use the same  so called Adobe ID

for Creative Cloud and DC (Document Cloud) and maybe also other things...

@therealmarv Are you still going to update this?

Just added the "Inactive" label to make it easier to delete in case the contributor doesn't reply within a reasonable amount of time.

@jamcat22 @Carlgo11 updated it now. Thanks for reminding me.

@therealmarv Thanks! See the wiki for more info on what happens after a request is merged.

:+1: :)


Allow comparing to specific commits rather than a branch

Many times, I find myself wanting to compare to the commit I branched from rather than to master.
It would be useful to allow using individual commits (SHA) rather than branch names as a base.
Magnificent work here!

I've merged the feature to master now. You can give it a test if you want by downloading the artifacts from this CI build (version <IP_ADDRESS>). Running GitBranchDiffer.vsix will install that version of Git Branch Differ to your VS2022.
I'll update Github Action workflows and some related code and release soon.

This has been released in v1.1.0


New data storage tool

Created a new netcdf storage module for a stable way to record saltswap simulation data. The previous way of storing results used text files with custom write-read functions. Basing the storage system on netcdf with a unit-tested interface is a more sustainable option.

Does this actually run?
Yes, my unit tests (in test_recorder.py) test the reading and writing of simulation data

And where do you store the configurations sampled?
I'll be storing the simulation configurations with dcd files as this makes it easiest to view the simulations.

Yes, my unit tests (in test_recorder.py) test the reading and writing of simulation data

Great! I was worried the zlib argument to Dataset might cause problems since it wasn't listed in the docs.

I'll be storing the simulation configurations with dcd files as this makes it easiest to view the simulations.

XTC or DCD should be fine.


Plugin stopped working after eac476d0 on macOS

Hi there. After the eac476d0 commit, I'm unable to save session. I'm using macOS, and since this commit:
==== Pager mode false
sessions dir or file nil
==== Using session DIR
==== Session Name \%Users\%rafi\%src\%bla\%foo
==== is_readable false
==== is_readable false
File not readable, not restoring session
sessions dir or file nil
==== Using session DIR
==== Session Name \%Users\%rafi\%src\%bla\%foo
==== is_readable false
==== is_readable false
File not readable, not restoring session
SaveSession param is not a directory, saving as a file.
Session saved at

Session is saved in current path as Session.vim, not what expected.

I can see the same behavior on Linux. In addition I can see the following error message thrown by nvim:
E5108: Error executing lua ...site/pack/packer/start/auto-session/lua/auto-session.lua:178: attempt to concatenate local 'session' (a nil value)

What happens (AFAICT) is that the new local session is initialized from an empty value sessions_dir. And while sessions_dir is checked on the following line if it is empty and then being overwritten with the return value of AutoSession.get_root_dir() this won't affect the emptiness of session and nvim complains about concatenating a nil value.

Yeah fixed by #54.
That was my bad.
This reminds me I should come up with tests for the plugin so I don't break core functionality in the future.

@rafi @wilriker lmk if the fix doesn't work 🙏

I can confirm it works again for me.


Use einsum for trace log prob evaluation in HMC

This uses the einsum backend for evaluating the log pdf of a model trace, and is gated behind the experimental_use_einsum flag. This allows for handling the HMM example with large number of steps. This was previously intractable and led to OOM issues.
This is however slow for many simple models (https://github.com/pytorch/pytorch/issues/10661), and is therefore gated behind a flag. Once the perf issues are fixed upstream in torch.einsum, we can simply remove the experimental_use_einsum flag and have this be a completely backend change.

Codecov Report

Merging #1322 into dev will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             dev    #1322      +/-   ##
=========================================
+ Coverage   95.8%   95.81%   +0.01%
=========================================
  Files        121      121
  Lines       6330     6347      +17
=========================================
+ Hits        6064     6081      +17
  Misses       266      266

Impacted Files
Coverage Δ

pyro/infer/mcmc/nuts.py
100% <ø> (ø)
:arrow_up:

pyro/infer/mcmc/util.py
100% <100%> (ø)
:arrow_up:

pyro/infer/mcmc/hmc.py
100% <100%> (ø)
:arrow_up:

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 4c7b930...b27da46. Read the comment docs.

@fritzo, @eb8680 - Since it might take a while for https://github.com/pytorch/pytorch/issues/10661 to get resolved, can we try getting this merged into dev? We can deprecate the experimental flag once all perf issues are resolved upstream.