[DocumentDB] Display MongoDB connection string immediately after creation

The new az documentdb list-connection-strings command is awesome, however, it would be helpful if the MongoDB connection string were displayed immediately after calling az documentdb create --kind MongoDB. Right now, the create command displays the DocumentDB connection string immediately after creation, however, this is potentially confusing for a user who might try to use that to connect their Mongo-client to it (which wouldn't be successful?), or would need to then go figure out that they have to call the list-connection-strings command in order to actually get the correct connection string.

Actually, this looks to be an issue with the az documentdb show command as well, so assuming that create simply calls show upon completion of creating a new instance, it would be ideal if the show command displayed the MongoDB connection string for instances whose Kind is MongoDB.

Our resource provider does not return account keys when retrieving the database account as users with read only permissions can make this request. For consistency across our management tools, we are leaving account keys out of the response for now. You can either use list-connection-strings to view the account connection strings or list-keys to construct the connection strings.


Mainly rating can be updated with empty results

mix format
better defaults for new rating.

Thanks so much!

I just published this in 0.3.0, enjoy!


WSL2 fails to run any distros with error 0x80370102

Microsoft Windows [Version 10.0.19043.1052]
Fresh install of WSL, hypervisors platform, virtual machine platform, windows subsystem for Linux, and WSL2 update installed. CPU Virtualization is enabled, but no distro can setup.

can anyone help?

#4120. Please collect WSL logs and post the backlink to the feedback item here.

https://aka.ms/AAcxty9

@BobbyBaratheon - can you verify that virtualization is enabled in your BIOS?
Easiest way is to look at msinfo32.exe

Says it is right in the cmd picture

Virtualization Enabled In Firmware: Yes

Root cause appears to be:
{"Error":-2143878910,"ErrorMessage":"The virtual machine could not be started because a required feature is not installed.","ErrorEvents":[{"Message":"Cannot create system 'ECEAFECC-E667-42F2-98BB-59AB37EABD25' since Hyper-V is not installed on the host."

Maybe something went wrong when the features were enabled.
Can you to disable the virtual machine platform, reboot, enable it again, reboot again try to run wsl ?

I am having the same problem. I've tried disabling and enabling Virtual machine platform between restarts and it did not work. I've also did for Virtualization in the BIOS and it also did not work and I've tried a complete wsl reinstall as well without any success.

So I'm looking at the same error in W11 10.0.22000 on a Hyper-V VM. Best guess is problem has to do with missing TPM?  Like the OP my error is:
PS C:\WINDOWS\system32> ubuntu
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
Press any key to continue...

If you're using HyperV, shutdown the VM and use this script in PowerShell:
set-vmprocessor nameofyourvm -ExposeVirtualizationExtensions $true
Next, disable dynamic RAM (HyperV) and start the VM.
This comment from another issue allowed WSL2/WSLg to run. The error text Error: 0x80370102 The virtual machine could not be started IMO was misleading, as I was already inside a "virtual machine"??  Maybe I'm overthinking as usual :)?

I'm having the same issue. WSL1 ran perfectly fine but WSL2 has not worked since it was released. I have Virtualization turned on, HyperV, etc. I have tried disabling them and reenabling, restarting, removing the ubuntu app and reinstalling. All to no avial.

Having this same issue. I was running wsl2 with no issues for around 4 months using docker to develop until around June 12th, 2021. Then I guess I updated windows and it hasn't worked since (or my wife installed Revit 2020, but I uninstalled it and it still doesn't work). I used to get the error that the Virtual Machine Platform wasn't installed so I couldn't open Ubuntu. So I backed up the Local State/ext4.vhdx (because wsl exporting feature won't work without the distro working apparently) And uninstalled VMP, WSL features, and the linux kernel update and my ubuntu distros. Then reinstalled them all following these instructions https://docs.microsoft.com/en-us/windows/wsl/install-win10.
Some system details:
Version 21H1 (OS Build 19043.1165)
Windows 10 Home
Task manager on performance tab has Virtualization: Enabled.
I've tried a bunch of different solutions in a ton of different threads which have included a sampling of, uninstall docker desktop, uninstall and reinstall VMP and WSL features and distros, Set hyper-v launch type in bcdedit to auto, install VMP and WSL features, turn off virtualization in bios, enable virtualization in bios, and reinstall following the installation instructions above, restarting throughout the process, update some weird networking configurations, testing with windows hypervisor platform feature installed or uninstalled.
The one thing I can't do is enable/disable hyper-V feature because (I think) I'm on Windows 10 Home, which doesn't have hyper-V? (idk I just read it on this page https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/hyper-v-requirements)
Though if I uninstall WSL completely I get information in my systeminfo that says hyper-v is up and running correctly, which is weird. With WSL installed it only says that it has detected a hypervisor so it doesn't show hyper-v info.
System Info:

Window Features:

I can't include the .etl file because github doesn't support it, I'll try to run through that weird feedback workflow.
Been stuck on this for at least 2 months, would love to get some of my projects back that are stuck on WSL. Any help is greatly appreciated. Thanks!

Hello, I have the same problem except that my computer does not restart and runs the automatic recovery.

Lol, after this long, I just upgraded to windows 11 and now it works fine, i can even use the GUI apps which is cool too. I never figured out what caused the original error tho, wish I did.

Having the exact opposite issue. I upgraded to windows 11 on the same hardware, with the exact same settings and now getting - Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
Virtualization is enabled. The linux subsystem is installed. Ubuntu is installed. Not sure what else I can do. Been running this for years without issue before the change to windows 11.

Hi, I am also having the same issue on Windows 11.
Feedback: https://aka.ms/AAf0rot

Same issue on Windows 11 Home. If I turn off the hypervisor via bcdedit, it shows all required features available. Setting it back to auto with WSL, VM Platform, and Hypervisor Platform features enabled (and, yes, toggled many times) and rebooting results in Event Log showing failure to run WSL2 due to Hyper-V not installed on host.

Same issue here windows 11

Guess I'm going to be another person to hop on this band of people reporting this. Same issue here, the same error message and everything enabled and setup. Guess this is just going to be ignored.

I had this same error as well.  Virtualization was enabled in BIOS, Task Manager Performance tab showed it was activated.  But still could not get WSL2 to work after many updates and reboots.
What fixed my problem in the end was:

Open Control Panel -> Programs -> Turn Windows features on or off
Disable Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux
Reboot
Re-enable the features that were disabled: Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux
Reboot
Open a Administrator Powershell and run:
wsl --set-default-version 2
wsl --install -d Ubuntu
And it finally worked

Hope that helps others.

This worked for me. Enable Hypervisor using; bcdedit /set hypervisorlaunchtype auto

@markjasper if you are running VirtualBox this setting may work to re-enable wsl, but it will cause some severe issues with VirtualBox (and Hyper-V as I recall).

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102 ?? ??????? ????????? ??????????? ??????, ????????? ??????????? ??????? ?? ???????????.
guys what to do with it?

Error: 0x80370102

Make sure virtualization is enabled within the computer's BIOS. Instructions on how to do this will vary from computer to computer and this feature will most likely be under CPU related options.
WSL2 requires that the CPU support the Second Level Address Translation (SLAT) feature, which was introduced in Intel Nehalem (1st generation Intel Core) and AMD Opteron processors. Older CPUs (such as Intel Core 2 Duo) will not be able to run WSL2, even if the virtual machine platform is installed correctly.

Hello, I get the same error on a fresh installed updated Windows 10 Home. Enabled Virtualization, none of the distributions can be started.

I had this same error as well. Virtualization was enabled in BIOS, Task Manager Performance tab showed it was activated. But still could not get WSL2 to work after many updates and reboots.
What fixed my problem in the end was:

Open Control Panel -> Programs -> Turn Windows features on or off
Disable Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux
Reboot
Re-enable the features that were disabled: Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux
Reboot
Open a Administrator Powershell and run:
wsl --set-default-version 2
wsl --install -d Ubuntu
And it finally worked

Hope that helps others.

That helped - thanks!

I had this same error as well. Virtualization was enabled in BIOS, Task Manager Performance tab showed it was activated. But still could not get WSL2 to work after many updates and reboots.
What fixed my problem in the end was:

Open Control Panel -> Programs -> Turn Windows features on or off
Disable Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux
Reboot
Re-enable the features that were disabled: Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux
Reboot
Open a Administrator Powershell and run:
wsl --set-default-version 2
wsl --install -d Ubuntu
And it finally worked

Hope that helps others.

Thanks woohoo!!!!!!!!

This doesn't work. I have done tried every recommended method. I have a brand new windows 11 machine it is June 2024. Why is this so hard?

This doesn't work. I have done tried every recommended method. I have a brand new windows 11 machine it is June 2024. Why is this so hard?

Have you found a solution yet?

This doesn't work. I have done tried every recommended method. I have a brand new windows 11 machine it is June 2024. Why is this so hard?

Have you found a solution yet?

Yes. It is nearly always some weird bios setting that is the problem.

Eu tive esse mesmo erro também. A virtualização estava habilitada no BIOS, a aba Desempenho do Gerenciador de Tarefas mostrou que estava ativada. Mas ainda não consegui fazer o WSL2 funcionar depois de muitas atualizações e reinicializações.
O que resolveu meu problema no final foi:

Abra o Painel de Controle -> Programas -> Ativar ou desativar recursos do Windows
Desabilitar Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform e Windows Subsystem para Linux
Reinício
Reative os recursos que foram desabilitados: Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform e Windows Subsystem for Linux
Reinício
Abra um PowerShell de administrador e execute:
wsl --set-default-version 2
wsl --install -d Ubuntu
E finalmente funcionou

Espero que ajude outros.

Funcionou perfeito. Muito obrigado!!

I had this same error as well. Virtualization was enabled in BIOS, Task Manager Performance tab showed it was activated. But still could not get WSL2 to work after many updates and reboots.
What fixed my problem in the end was:

Open Control Panel -> Programs -> Turn Windows features on or off
Disable Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux
Reboot
Re-enable the features that were disabled: Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux
Reboot
Open a Administrator Powershell and run:
wsl --set-default-version 2
wsl --install -d Ubuntu
And it finally worked

Hope that helps others.

我也遇到了同样的错误。BIOS 中启用了虚拟化，任务管理器性能选项卡显示它已激活。但经过多次更新和重启后，仍然无法让 WSL2 工作。
最终解决我的问题的是：

打开控制面板 -> 程序 -> 打开或关闭 Windows 功能
禁用 Hyper-V、虚拟机平台、Windows 虚拟机管理程序平台和适用于 Linux 的 Windows 子系统
重启
重新启用已禁用的功能：Hyper-V、虚拟机平台、Windows 虚拟机管理程序平台和适用于 Linux 的 Windows 子系统
重启
打开管理员 Powershell 并运行：
wsl --set-default-version 2
wsl --install -d Ubuntu
终于成功了

希望这对其他人有帮助。

That works!Thank for your help.I've tried for the whole day!

I had this same error as well. Virtualization was enabled in BIOS, Task Manager Performance tab showed it was activated. But still could not get WSL2 to work after many updates and reboots.
What fixed my problem in the end was:

Open Control Panel -> Programs -> Turn Windows features on or off
Disable Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux
Reboot
Re-enable the features that were disabled: Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux
Reboot
Open a Administrator Powershell and run:
wsl --set-default-version 2
wsl --install -d Ubuntu
And it finally worked

Hope that helps others.

This worked well !! Thank you.


Multi-language support

@kisvegabor @embeddedt
Hi,
I think multi-language feature should be supported in the library. and i have a rough idea about this:
1.add variables in ext structure who is associate with texts, eg. label object(base object of many widgets).
uint16_t ext->lang_index
char *ext->lang
char *ext->langs[6]
...
or
2:
c link variable, like: add custom fonts?
Is it possible to do that?

I would be also interested in the feature. Why have closed it?

😄

Hi,
When it is ready and I would like to raise a PR.

The simplest way is [1].
int main() {
  lv_label_set_text(label, lang(ERROR_NETWORK_DISCONNECTED_YOUR_OPPONENT, esES) );
}

:clipboard: Reference

https://gist.github.com/r-lyeh-archived/cbe7ebd681149af7b335b5f981651311

Another way is [2]. I'm not sure gettext() can be used for littlevgl/embedded platform [2].
#define _(STRING) gettext(STRING)

int main()
{
  /* Setting the i18n environment */
  setlocale (LC_ALL, "");
  bindtextdomain ("hello", "/usr/share/locale/");
  textdomain ("hello");

  /* Example of i18n usage */
  lv_label_set_text(label, _("Hello World\n"));

  return EXIT_SUCCESS;
}

// po/en/hello.po
#: hello.c:12
#, c-format
msgid "Hello World\n"
msgstr ""

// po/fr/hello.po
#: hello.c:12
#, c-format
msgid "Hello World\n"
msgstr "Bonjour le monde\n"

:clipboard: Reference

http://www.labri.fr/perso/fleury/posts/programming/a-quick-gettext-tutorial.html
https://stackoverflow.com/questions/5300079/gettext-on-embedded-systems/5309936

@seyyah

lv_label_set_text(label, lang(ERROR_NETWORK_DISCONNECTED_YOUR_OPPONENT, esES) );

I like it! It's clean and simple.
@turoksama
How/In which aspects can a built-in support better than this?

@kisvegabor
Hi,
Yes, it's simple & cleared.
But what i am looking for a way  to set language at run time. and i think it's automatically changed in system scale by setting a switch or something.
What do you think?

enum locale = enUS;

// TODO: change to locale at runtime

lv_label_set_text(label, lang(ERROR_NETWORK_DISCONNECTED_YOUR_OPPONENT, locale) );

@seyyah
hmm...
What about button matrix?
It includes "\n" in the map of button matrix.

Solution 1: locale string (for example ERROR_NETWORK_DISCONNECTED_YOUR_OPPONENT) contains \n.
Solution 2: you may use string library functionality
#include <string.h>

char str[N];
strcpy(str, lang(ERROR_NETWORK_DISCONNECTED_YOUR_OPPONENT, locale));
strcat(str, "\n");
strcpy(str, lang(ERROR_GENERIC_TEXT, locale));
...

nah,nah,nah...
the map text of button matrix looks like this:
if defined
char *button[]=
{
"b1","b2","b3",""
}
the buttons matrix will palce in one row,
else if defined
char *button[]=
{
 "b1","\n",
 "b2","\n",
 "b3",""
}

they will place in one column.
of course you can store another pointer that point to the map.
and you can use that way to set language.
what i need is built in multi-language, all i have to do is tell the system where the language pointers are, and let the library do the rest.
i have no idea if i am worried too much.
And what do you suggest?

my bad, didn't make myself cleared.
i prefer library behavior rather than user defined composition.

@turoksama I think that in most cases the behavior suggested by @seyyah would be sufficient.
@kisvegabor Possibly we could add an alternative API for setting the button map on lv_btnm that makes multi-language support at runtime easier to implement?

@embeddedt
Yes, it is.
If so, multiple changes should be made as far as i can see.

So the question is how to extend the API of lv_btnm? What about lv_btnm_set_map_str(btn, "a\tb\tc\n1\t2\t\n\t1\t2\t3"). So \t (or other unused spcial character) could be the separator. What do you think?

I think that your suggestion and current implementation is based on text. It is simple/elegant but it can be insufficient for future requirements.
What about
lv_btn_ext_t btnm_ext[];

lv_btnm_set_ext(btnm, btnm_ext);

@seyyah I don't understand. Do you mean lv_btnm_set_text Or what lv_btn_ext_t is?

I recommend using lv_btn_ext_t for each sub-button of btnm. So the btnm_ext may be array, it's size is btnm's size
lv_btn_ext_t btnm_ext[];

With this way, we can adjust each sub-button of btnm in detail as normal button.
Or alternatively may the btnm contain/be in array of btn?

@seyyah I believe the original intent of lv_btnm was to provide a way to use multiple buttons with little memory usage and low performance overhead.
By the time it is reworked to follow your suggestion I am afraid the memory requirements will be very similar to using multiple lv_btns. Perhaps we should just add a note stating that lv_btnm does not support dynamic translation and users who require this feature should use lv_btn instead.

@embeddedt Yes, the goal was to lower memory usage.
What about this:
const char * btnm_map[10];
btnm_map[0] = lang(XYZ_1);
btnm_map[1] = lang(XYZ_2);
btnm_map[2] = lang(XYZ_3);
...
lv_btnm_set_map(btnm, btnm_map);

@kisvegabor For some reason I wasn't notified about your post. That looks like it could work but @seyyah or @turoksama should probably comment as well since they know more about it.
@nicolasvoron The final design has not yet been decided and after that someone will need to implement this. So at the moment I don't think anyone can answer your question.

@embeddedt
Hi,
I am looking for a solution that integrated language system rather than manual ones.
If not so, why not just using:
const char *multi_lang[]=
{
  lang1,
  lang2,
  lang3,
  ...
}

and so on, there are many other such ways either.

We're working on below solution (as draft),
// Define lang keywords
#define LANG_STR1 0
#define LANG_STR2 1

// create lang strings
char lang_tr[N][M] = {"metin1", "metin2", "metin3", ...};
char lang_en[N][M] = {"string1", "string2", "string3", ...};

// Select lang
char (*lang_ptr)[M] = lang_tr;
char (*lang_ptr)[M] = lang_en;

// set lang string
lv_label_set_text(label, lang_tr[LANG_STR1]);

We have not be succeded yet.
:clipboard: Reference

https://stackoverflow.com/questions/1052818/create-a-pointer-to-two-dimensional-array

It works perfectly,
#include <stdio.h>

#define N 2
#define M 3

int main(void) {
  char lang_TR[N][M] = {"aa", "bb"};
  char lang_EN[N][M] = {"11", "22"};

  char (*ptr)[M];

  printf("Language: TR\n");
  ptr = lang_TR;
  printf("matr: %s\n", lang_TR[0]);
  printf("matr: %s\n", lang_TR[1]);

  printf("ptr: %s\n", ptr[0]);
  printf("ptr: %s\n", ptr[1]);

  printf("Language: EN\n");
  ptr = lang_EN;
  printf("matr: %s\n", lang_EN[0]);
  printf("matr: %s\n", lang_EN[1]);

  printf("ptr: %s\n", ptr[0]);
  printf("ptr: %s\n", ptr[1]);
}

The output is
Language: TR
matr: aa
matr: bb
ptr: aa
ptr: bb
Language: EN
matr: 11
matr: 22
ptr: 11
ptr: 22

Our littlevgl test code is
#define N 2
#define M 3

char lang_TR[N][M] = {"aa", "bb"};
char lang_EN[N][M] = {"11", "22"};

char (*ptr)[M];

lv_obj_t *lbl_test = lv_label_create(lv_scr_act(), NULL);
lv_obj_set_pos(lbl_test, 10, 10);

ptr = lang_EN;
lv_label_set_text(lbl_test, ptr[0]);

ptr = lang_TR;
lv_label_set_text(lbl_test, ptr[0]);

@seyyah I like this solution. I'd implement something similar too. It clear and easy to customize to work with any object type.
However, I think @turoksama wants it to work as a built-in method. According to your example:
char * dog_multi[2] = {"dog", "köpek"};
lv_label_set_text_multi(lbl_test, dog_multi);    /*Set all translations of "dog"*/

lv_lang_select(1);     /*Select Turkish and automatically refresh all labels and other elements*/

The question is it worth to add a built-in method for this or let to the user the make it himself.
If a built-in method would be added a new signal, .e.g. LV_SIGNAL_CHANGE_LANGUAGE should be added.

@puzrin
I like that you are thinking about big things! :)
These really seem useful stuff for big projects. At first look, some of the ideas are related to external tools which can be developed independently from LittlevGL.
So please open a new issue!


Changed climbing to one-handed dominance

This pull request implements feature #210 by making climbing use a single dominant hand.

If the secondary hand moves more than 1 meter from its grab-point (either because the primary hand has moved the player, or the player moves their secondary hand) then the secondary hand grab is released. If the player then releases their primary hand then the player will fall.


Minimum int value causes error when represented as code.

Godot version
4.0.1.stable.custom_build (NIX OS PKG)
System information
Nix OS Linux
Issue description
The minimum int value -9223372036854775808 when represented as code appears to be represented under the hood as something like ['-',<PHONE_NUMBER>854775808] and<PHONE_NUMBER>854775808 is higher than int's upper bounds. So, we get the error, "ERROR: Cannot represent<PHONE_NUMBER>854775808 as a 64-bit signed integer, since the value is too large.".
Steps to reproduce
Paste the text "-9223372036854775808" in the editor, look at the output window, wait 2 seconds to let it parse.
Minimal reproduction project
-9223372036854775808

Paste the text "-9223372036854775808" in the editor, look at the output window, wait 2 seconds to let it parse.

Where do you paste this text in the editor?

min_int_reproduction.tar.gz

The fault is here:
https://github.com/godotengine/godot/blob/08c1b55862240e298a751ab4189e9a003f313be7/core/string/ustring.cpp#L2262
Will see about a fix should be trivial

It's due to a broken implementation in:
https://github.com/godotengine/godot/blob/08c1b55862240e298a751ab4189e9a003f313be7/core/string/ustring.cpp#L2262

yall straight up heroes in here.

It appears yes that internally this is treated as unary minus and a literal, which does not work, this turns up in C++ as well at times and not sure how to work it out for this specific case, will take a dive later today


Cross Platform testing

Recently a lot of Safari users have faced issues in using our platforms. The reason being some browsers do not support every available feature. Also we face restrictions ourselves in having access to every browser available, like Safari is only available in MacOS and not everyone will have a MacOS device. This in turn makes it harder for us to QA any feature or bug fix. Hence, it results in the occasional bugs being missed out and creating issues among our users.
A proposed solution(by @raisedadead) was to integrate a tool like Browserstack(https://www.browserstack.com) to make it easier for our contributors to do cross platform testing.
This issue is open to discussion for any suggestion or feedback.
Browserstack developer docs - https://www.browserstack.com/docs/
They also have support to do cross browser testing with Cypress.

I've used Browserstack for cross platform testing and it hasn't disappointed me at all. Mostly I've used it for mobile testing because Devtools has its own restrictions.

Thanks for confirming all these details, we have access to their open-source tier thru Sept. this year. Will you be interested in helping us integrate our codebase/testing workflows with BrowserStack?
If yes, let us know I will check with @ojeytonwilliams to get you a set of credentials.

Yes, I'm interested in working on this.

I have sent you an invite in the chat DM.

Any updates on this @Nirajn2311 ?

I've just gone through their docs at the moment. Will begin working on it soon and update the progress here.

I'm open to collaboration here. Let me know if you need any help

@Art-auto You are welcome to work on this yourself 😄

Now that we've upgraded Cypress to v10 in the repo, we can prepare for WebKit testing using Cypress itself(until Cypress makes it stable). Last I checked there were some errors when I ran the tests locally.

I wanna see how the codebase performs but unfortunately Safari is no longer supported on Windows.
https://support.apple.com/en-us/HT204416

Closing this in favour of Playwright testing.

Playwright Test was created specifically to accommodate the needs of end-to-end testing. Playwright supports all modern rendering engines including Chromium, WebKit, and Firefox. Test on Windows, Linux, and macOS, locally or on CI, headless or headed with native mobile emulation of Google Chrome for Android and Mobile Safari.


Preview URL does not update

Describe the bug
Hi, I am working through the Adding Navigation section of the tutorial. I was expecting to see the URL update with the routing, but
Link to the blitz that caused the error
https://stackblitz.com/edit/angular-cbuocb?file=src%2Fapp%2Fproduct-details%2Fproduct-details.component.html
Steps to reproduce
In the first image you can see the preview URL that just shows "https://angular-cbuocb--4200.local.webcontainer.io" even though it successfully navigates to the ./products/1 URL.

When I open the Webcontainer in a new tab/window, the URL displays correctly:

Expected behavior
Have the preview URL reflect the router URL.
Parity with Local

[ ] I have run the project in my local machine and I could not reproduce the issue.

Screenshots

Platform
Browser name  = Chrome
Full version  = 98.0.4758.102
Major version = 98
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 112493051,
  "usedJSHeapSize": 105644091,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Hash = 758e50e232099fc341a5556812d0423b24cdf1d6

Additional context
No response

This is a big problem in any significant PWA, which would have a router.
Example where this is a problem:

I change my component
Vite does an HMR update to the component, but as the component was recreated, I've lost the state in the component.
One fix is to move some component data to the URL... but it's missing from view

You can imagine this problem would be very common in Vue/React/Angular apps that are not SSR.

See #108 and #223, this is a known limitation that it's on our roadmap.


Why my swiper slide from the last slide?

Without setting the initialSlide, my swiper always slide from the last slide. As I set it to 1, it works (Slide from the first slide). Why not Zero.
swiperOption: {
    pagination: '.swiper-pagination',
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',
    slidesPerView: 1,
    paginationClickable: true,
    spaceBetween: 30,
    loop: true,
    autoplay: 3000,
    autoplayDisableOnInteraction: false
}

I have a local test, did not find this problem, can you provide a more detailed description of it?

@surmon-china It arose when I used the loop (v-for).
  <swiper :options="swiperOption" ref="test" class="category_carousel">
    <swiper-slide
      v-for="(item, index) in classAdsActivity"
      :key="item.id"
      class="J_ping">

    </swiper-slide>

  </swiper>

Me too.

Check if your array order is within your expectations?

Map with the name of Array Item: ['贝恩斯xxx', '欢乐谷xxx', '优惠xxx', '总攻略xxx']

It works when setting loop: false.
The swiper.activeIndex in onTransitionEnd shows the strange order [5, 2, 3, 4]. I think there's something wrong with loop.

@surmon-china

Note: As the array is in data, there is no problem.

mapGetters({classAdsActivity: 'classAdsActivity'}). The initial state of classAdsActivity is [].

had same problem, fixed with
swiperOption: {
        ...
        onInit: function (swiper) {
          swiper.slideTo(1)
        }

@surmon-china thanks for this great plugin

My solution is：
swiperOption: {
...
initialSlide: 1
}

did anyone fixed it because i am still getting same problem

Nope, still getting the issue in 2023. Even though there have been a myriad of threads opened, none have been fixed and all have been closed by the author. He states that in v9 it has completely been redone but there is no difference and the issue is still there.


Wrong Screenshot

At the 'Create the web app project' section for Visual Studio, the screenshot shows project creation for ASP.NET Core MVC project instead of ASP.NET Core Razor pages.

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

ID: 7a54c97f-ddd4-b041-5e5f-a2df009ace50
Version Independent ID: fa488196-1f98-08ea-adcc-17d9dac86727
Content: Razor Pages with Entity Framework Core in ASP.NET Core - Tutorial 1 of 8
Content Source: aspnetcore/data/ef-rp/intro.md
Product: aspnet-core
Technology: aspnetcore-data
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Thanks @ririyad for the heads up!


Fix isovar git dependency

Not sure what the right way is to specify git packages in setup.py, but right now pip install . or python setup.py install give me the following message.
Collecting isovar>=0.0.2 (from cohorts==0.1.0+6.gd3244aa)
  Could not find a version that satisfies the requirement isovar>=0.0.2 (from cohorts==0.1.0+6.gd3244aa) (from versions: )
No matching distribution found for isovar>=0.0.2 (from cohorts==0.1.0+6.gd3244aa)

I can work around it with running the following first
pip install git+git://github.com/hammerlab/isovar

Interesting, maybe we need to remove the isovar>=0.0.2 dependency and leave the depency_links dependency on isovar's repo?


Throw for explicit loading of an untracked entity

When trying to explicitly load a reference or a collection, the values of these properties will still be null in case you are querying a DbSet with NoTracking behaviour (either by using the .AsNoTracking() extension method or by setting the default query tracking behaviour of the DbContext).
This had me puzzled quite a while, since this is not mentioned in any documentation. Furthermore, I would expect it to also be working when querying data in a read-only way.
Steps to reproduce
Query a DbSet using .AsNoTracking(), explicitly load a reference, and inspect the property.
var item = _context.Items.AsNoTracking().FirstOrDefault(i => i.ItemId == id);
_context.Entry(item).Reference(a => a.ItemGroup).Load();

// item.ItemGroup will still be null

Further technical details
EF Core version: 1.1.0
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
IDE: Visual Studio 2015

@ljvanschie Note for triage: This code is saying to load a relationship for a detached entity. It would be nice if this worked, but I expect is is non-trivial. We should probably throw for now.

Thanks for the quick response @ajcvickers. Sorry if I'm misunderstanding or if my example wasn't clear enough, but in this (simplified) example, ItemGroup is a navigation property and also exists as an entity within the same DbContext. If I change the tracking behaviour, it loads as expected.
I don't see how this is different than the examples in the documentation (https://docs.microsoft.com/en-us/ef/core/querying/related-data#explicit-loading). It's similar to the case for explicitly loading the Owner of a blog post.

@ljvanschie AsNoTracking results in entities that are not tracked. The Entry method is typically used to get information and perform operations on a tracked object. (It can be used on an object that is not tracked, but the main use for this is to changed its state to make it tracked.) So if you want the services of the context, including additional loading with fixup, then you need to track the entities. That being said, it is not totally unreasonable for Load to work with un-tracked entities, but it would require a different implementation and we will discuss as a team whether or not to do this. If we do decide to do it, it will still likely be low priority and therefore not done soon.

I see, thanks for clearing that up!

Decided that we should throw for the moment, this isn't a scenario we intended to support. We may look at explicit loading for untracked entities in the future, based on customer demand. For the moment, using a tracking query, or eager loading, would be our recommendation.


Move window.alert() calls to bootstrap modals. Also log errors to console.

Mainly for issue 237 (logging full errors to console)
Moved alert() calls to bootstrap modals because they look better, added utility function for doing it.
@mistercrunch @michellethomas

Coverage remained the same at 71.16% when pulling 1c23dbb413afd1dde41d1e457837d7143e6369a5 on chris/msgs-to-modals into ca4443247e0e97d0466efa5876286967b490805e on master.

:+1:


Added Procfile and "npm start dev" task.

I really like the starting point, but I did not like opening 2 terminals. So I added a Procfile which runs the server, watch and test-watch tasks at the same time. In addition, I added a npm task which handles the file with either the foreman ruby gem or node-forman. In case you're interested... :wink:

Nice, been thinking about the fact that you need to run two separate commands in separate windows during dev as well.
In the interest of keeping the skeleton minimal and not adding additional tools and requirements, I feel there may be a better way. I believe foreman depends on Ruby, and depending on Ruby just to manage a process is a bit heavy handed. There might be a more lightweight node module that supports just that.

Yes! This is where node-foreman comes in. It's an npm module that is compatible to the ruby gem but does not rely on it. The way I added the task to the package.json it can use either the gem or the npm module, whatever is available on the system.
So it actually might be what you're looking for, but I agree on keeping things minimal.

Committed a simple solution using background processes, should address issue of running two separate commands during dev.


README

Includes #33

Explains what low latency is.
Removes .unwrap() from the example.

@kornelski can you update the PR please to trigger the CI


Actions fail intermittently due to NPM ECONNRESET

Description
Every now and again, our actions randomly fail due to an ECONNRESET error coming from NPM, see for example https://github.com/directus/directus/runs/3080202193?check_suite_focus=true, https://github.com/directus/directus/pull/5754/checks?check_run_id=2617592226, https://github.com/directus/directus/runs/2611005993 or https://github.com/directus/directus/runs/2602577476.
I reached out to GitHub Support about this, who referenced me to this repo.
Virtual environments affected

[X] Ubuntu 16.04
[X] Ubuntu 18.04
[X] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[ ] Windows Server 2016
[ ] Windows Server 2019

Image version and build link
n/a. Getting a Error: We are currently unable to download the log. Please try again later. message now..
Is it regression?
No response
Expected behavior
The connection to NPM shouldn't fail
Actual behavior
The connection to NPM fails
Repro steps

Setup a workflow that runs npm ci
See it fail intermittently

Hi @rijkvanzanten!
It shouldn't be related to the images themselves, we will take a look. Where have you seen connection failures since there is an error with logs in provided runs?

Well, found the link with connreset
https://github.com/directus/directus/runs/3080883194?check_suite_focus=true

A more recent run which seems to hit the same error: https://github.com/directus/directus/runs/3080883194?check_suite_focus=true

@rijkvanzanten old logs are not available as the retention policy has been configured to 5 days.
How often do you see such behavior? Could you please provide minimal repro steps? We assume that something is wrong on the NPM side from time to time.

Hi y'all! Thanks for the swift replies!

It shouldn't be related to the images themselves, we will take a look

I would agree, it feels like a weird intermittent connection issue between Actions and NPM. Not sure on what side of the equation it goes wrong though..

We assume that something is wrong on the NPM side from time to time.

I could see this, however, I run npm install (and/or CI, doesn't seem to matter) locally dozens of times anywhere between 1 and 50 times a day, and have never seen this specific ECONNRESET error 🤔 I can't recall (personally) seeing the same exact error outside of GitHub Actions. (Though that's obviously very anecdotal evidence)

old logs are not available as the retention policy has been configured to 5 days.

Gotcha, the error message threw me off there. Should I open a separate ticket here/elsewhere to pick that up?

Could you please provide minimal repro steps?

It seems to happen on a regular npm install, so the minimal repro should be as simple as
name: Debug NPM connection
jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: '16'
      - name: Install dependencies
        run: |
          npm install

How often do you see such behavior?

Hard to tell with exact accuracy due to the logs retention, though I would estimate between 1-5% of the runs.

Hey, @rijkvanzanten !
I have forked your repo and tried to reproduce the problem but have no luck with it :( Seems that it's really rare and no action needed. I'll close this issue but please feel free to reopen it if you have any concerns.
Thanks!

Makes sense, I understand this is too much of an edge case to be able to efficiently research and resolve. As for any concerns, the only one I have is that I'd rather not have our CI fail randomly of course 😅
Is there anything I can do from our side to debug this issue further when it happens?

@rijkvanzanten please let us know as soon as you get it and provide the links to the failed runs. We will check the underlying infrastructure for the particular run.
Thank you!

Will do!

Hey folks, bumping an old thread here, we're seeing a lot of ECONNRESET issues, primarily in one action: https://github.com/actions/setup-dotnet/issues/333
No recent change in the action, is this an issue with the virtual environment?

Multiple runs failed from a long time ago, especially in QEMU-based ARM64 docker image building, but amd64 builder is working:
ARM64 using QEMU:
https://github.com/kmahyyg/ztncui-aio/actions/runs/7677880679/job/20927134240
https://github.com/kmahyyg/ztncui-aio/actions/runs/7677807879/job/20926977995
https://github.com/kmahyyg/ztncui-aio/actions/runs/7504706695/job/20449416696
Successful runs using AMD64 directly (same commit):
https://github.com/kmahyyg/ztncui-aio/actions/runs/7677880679/job/20927134295
https://github.com/kmahyyg/ztncui-aio/actions/runs/7677831444/job/20927028783
https://github.com/kmahyyg/ztncui-aio/actions/runs/7504706695/job/20449416799
@miketimofeev

This can be reproduced stably using GH-Hosted runner on my side.

I have been seeing this intermittently in my org as well.

Seeing this pretty often using stock actions/setup-node@v4
npm ERR! code ECONNRESET
npm ERR! network aborted
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

under
Current runner version: '2.312.0'
Operating System
  Ubuntu
  20.04.6
  LTS
Runner Image
  Image: ubuntu-20.04
  Version: 20240126.1.0
  Included Software: https://github.com/actions/runner-images/blob/ubuntu20/20240126.1/images/ubuntu/Ubuntu2004-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu20%2F20240126.1

Also seeing this pretty often now, I'm getting the following log:
npm ERR! code ECONNRESET
npm ERR! network aborted
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

For the following action (the error comes specifically from the npm ci command):
name: XX
on: [push]
jobs:
  run-defined-frontend-tests:
    runs-on: ubuntu-latest
    name: Webapp Unit Tests
    defaults:
      run:
        working-directory: ./webapp_new
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '18'
      - run: npm ci --legacy-peer-deps
      - run: npm run test:ci
        env:
          CI: true

I get this on macOS runners:
Current runner version: '2.314.1'
Operating System
  macOS
  12.7.3
  21H1015
Runner Image
  Image: macos-12
  Version: 20240218.1
  Included Software: https://github.com/actions/runner-images/blob/macOS-12/20240218.1/images/macos/macos-12-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macOS-12%2F20240218.1
Runner Image Provisioner
  2.0.341.1+ea3907f30f87ddf37e44fa45b753abddb03811b4

Getting the below error intermittently but regularly.
npm ERR! code ECONNRESET
npm ERR! network aborted
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

FYI: Upgrading to Node 20 in the Dockerfile fixed the problem for me...

I solved this by upgrading to Node 20 and enforcing IPv4, see force-ipv4 action.

It's worth noting that npm just closed a bug (pending release) where too many connections were being opened during install:

https://github.com/npm/cli/issues/7072
https://github.com/TooTallNate/proxy-agents/issues/299

I got the same error, exactly as @dadebue describes.
But as I have to stay at Node 18 at the moment, I needed another solution than upgrading to Node 20 in my Dockerfile.
So I just update NPM to the new 10.5.1 release and the GHA build is working again.
Thank you all for commenting this old, closed issue, helping me to fix that! 😄
Regards,
André

The problem is occurring again for me now. Even with Node 20 🤔

I also hit this issue often.
As a temporary solution I leveraged the nick-fields/retry action.
      - name: Install npm dependencies
        if: steps.cacheNodeModules.outputs.cache-hit != 'true'
        uses: nick-fields/retry@v3
        with:
          timeout_minutes: 10
          max_attempts: 3
          command: npm ci


Adding Resume option in navigation bar

I would like to add a resume option to the navigation bar which will redirect the user to the resume file uploaded on google drive.
@smaranjitghose @anushbhatia  If you approve the issue please assign it to me.

we can add resume button in home page itself

@smaranjitghose what say?

@anushbhatia Putting it on the home page will break the essence of the particle theme. Perhaps on the footer, as a download resume button or on the nav bar.
BTW, @divyasri77 feel free to raise an issue to add a blog page to the navbar. ( We won't build it, rather open the blog hosted on another server in a new tab)

n or on the nav bar.

yep


unable to find valid certification path to requested target es-master

I am getting this error when I start up my first master.
[2016-03-11 20:52:43,835][WARN ][io.fabric8.elasticsearch.discovery.kubernetes.KubernetesUnicastHostsProvider] [Fight-Man] Exception caught during discovery: Error executing: GET at: https://kubernetes.default.svc/api/v1/namespaces/default/endpoints/elasticsearch-discovery. Cause: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This is on Kube 1.0.3 and a CentOS 7 Cluster.
kubectl get serviceaccounts --namespace=default
NAME            SECRETS
default         1
elasticsearch   1

This seems to be an error related to SSL certificate not being available to the pod. Your install should provide it, otherwise you can't access secure Kubernetes API.


Allow external libraries to be shared

Features

Playground links have a ext component that stores the external library name to be used
Application is now a Component so that the parsePlayground function can be called outside render()
Refactored actions that rely on internal ControlProps types (e.g IExternal and IChapter) by making arguments specific

TODO

[x] Implement race condition and timeout for libraries being loaded onto the page
[x] Rebase and target master

Issues fixed

Fixes #207

Pull Request Test Coverage Report for Build 431

16 of 29 (55.17%)  changed or added relevant lines in 5 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.2%) to 25.51%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/Application.tsx
13
15
86.67%

src/components/Playground.tsx
0
2
0.0%

src/containers/PlaygroundContainer.ts
0
2
0.0%

src/containers/ApplicationContainer.ts
2
4
50.0%

src/sagas/index.ts
1
6
16.67%

Files with Coverage Reduction
New Missed Lines
%

src/containers/ApplicationContainer.ts
1
80.0%

Totals

Change from base Build 428:
0.2%

Covered Lines:
761

Relevant Lines:
2557

💛  - Coveralls

@remo5000 Can you update https://github.com/source-academy/sicp/issues/5 with the externals sharing stuff?


"Inappropriate ioctl for device" when running yum install

I'm running an unaltered version of the nginx-php7 image (latest). I get the following error when I try to install new packages, such as Nano:

yum install nano

Am I using the wrong credentials to log in?

！！！请教！！！！
报错：
panic: standard_init_linux.go:178: exec user process caused "no such file or directory" [recovered]
panic: standard_init_linux.go:178: exec user process caused "no such file or directory"