Build problems Demo Software for S3-BOX in Eclipse

Hi,
I installed from sckratch new ESPIDF and EClipse plugin for ESP32, imported projects from Examples folder on ESP32-S3-BOX  GIT, but when I build whatever example I get this message during compiling:
CMake Error at D:/ESP32IDE/esp-idf-v4.4.1/tools/cmake/component.cmake:301 (message):
Include directory
'D:/ESP32PRojects/S3-BOX/esp-box-master/components/lvgl/lvgl/src' is not a
directory.
Call Stack (most recent call first):
D:/ESP32IDE/esp-idf-v4.4.1/tools/cmake/component.cmake:472 (__component_add_include_dirs)
D:/ESP32PRojects/S3-BOX/esp-box-master/components/lvgl/CMakeLists.txt:27 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "D:/ESP32PRojects/S3-BOX/esp-box-master/examples/image_display/build/CMakeFiles/CMakeOutput.log".
cmake --build . -- -v
ninja: error: loading 'build.ninja': The system cannot find the file specified.
Build complete (0 errors, 0 warnings): D:\ESP32PRojects\S3-BOX\esp-box-master\examples\image_display\build
Total time taken to build the project: 12,567 ms
Does anybody have idea what can be the reason?
Thanks,
Vojko

Hi Vojko, it looks like you have downloaded the .zip file of this repository from Github.
Unfortunately this won't work, since this project uses Git submodules, but Github doesn't include the contents of these submodules in the downloadable .zip files.
Instead, please use git clone --recursive ... command given in the quickstart section: https://github.com/espressif/esp-box#quick-start. This will clone the project along with the submodules.

 Thanks, I will try with clone.
Thanks a lot,
Vojko
From: Ivan Grokhotkov @.***
Sent: Wednesday, August 3, 2022 5:38 PM
To: espressif/esp-box @.>
Cc: vojkob @.>; Author @.***>
Subject: Re: [espressif/esp-box] Build problems Demo Software for S3-BOX in Eclipse (Issue #40)
Hi Vojko, it looks like you have downloaded the .zip file of this repository from Github.
Unfortunately this won't work, since this project uses Git submodules, but Github doesn't include the contents of these submodules in the downloadable .zip files.
Instead, please use git clone --recursive ... command given in the quickstart section: https://github.com/espressif/esp-box#quick-start. This will clone the project along with the submodules.
—
Reply to this email directly, view it on GitHub https://github.com/espressif/esp-box/issues/40#issuecomment-1204121514 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4FV3MAI24332KQZNSP5ZDVXKG6RANCNFSM55PG2FKQ .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AL4FV3PXO5POVNASQCQIUY3VXKG6RA5CNFSM55PG2FK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI7CW7KQ.gif Message ID: @.*** @.***> >

Hi,
I made clone on my disk, the compiling is running, but now I got typical “undefined symbol “ message, which should not occur on valid build.
D:/ESP32PRojects/ESP32_S3_BOX/components/bsp/src/boards/esp32_s3_box_lite.c:52:25: error: 'GPIO_NUM_45' undeclared here (not in a function); did you mean 'GPIO_NUM_35'?
 .GPIO_LCD_BL =     (GPIO_NUM_45),

                     ^~~~~~~~~~~

                     GPIO_NUM_35

D:/ESP32PRojects/ESP32_S3_BOX/components/bsp/src/boards/esp32_s3_box_lite.c:55:25: error: 'GPIO_NUM_48' undeclared here (not in a function); did you mean 'GPIO_NUM_38'?
 .GPIO_LCD_RST =    (GPIO_NUM_48),

                     ^~~~~~~~~~~

                     GPIO_NUM_38

D:/ESP32PRojects/ESP32_S3_BOX/components/bsp/src/boards/esp32_s3_box_lite.c:105:29: error: 'GPIO_NUM_47' undeclared here (not in a function); did you mean 'GPIO_NUM_37'?
 .GPIO_I2S_LRCK =       (GPIO_NUM_47),

                         ^~~~~~~~~~~

                         GPIO_NUM_37

D:/ESP32PRojects/ESP32_S3_BOX/components/bsp/src/boards/esp32_s3_box_lite.c:116:29: error: 'GPIO_NUM_46' undeclared here (not in a function); did you mean 'GPIO_NUM_36'?
 .GPIO_PWR_CTRL =       (GPIO_NUM_46),

                         ^~~~~~~~~~~

                         GPIO_NUM_36

Thanks for reply,
Vojko
From: Ivan Grokhotkov @.***
Sent: Wednesday, August 3, 2022 5:38 PM
To: espressif/esp-box @.>
Cc: vojkob @.>; Author @.***>
Subject: Re: [espressif/esp-box] Build problems Demo Software for S3-BOX in Eclipse (Issue #40)
Hi Vojko, it looks like you have downloaded the .zip file of this repository from Github.
Unfortunately this won't work, since this project uses Git submodules, but Github doesn't include the contents of these submodules in the downloadable .zip files.
Instead, please use git clone --recursive ... command given in the quickstart section: https://github.com/espressif/esp-box#quick-start. This will clone the project along with the submodules.
—
Reply to this email directly, view it on GitHub https://github.com/espressif/esp-box/issues/40#issuecomment-1204121514 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4FV3MAI24332KQZNSP5ZDVXKG6RANCNFSM55PG2FKQ .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AL4FV3PXO5POVNASQCQIUY3VXKG6RA5CNFSM55PG2FK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI7CW7KQ.gif Message ID: @.*** @.***> >

Hi,
Here is also list of problems. There are some additional unresolved definitions:
Description         Resource             Path       Location               Type
'GPIO_NUM_45' undeclared here (not in a function); did you mean 'GPIO_NUM_35'?   factory_demo                   line 47, external location: D:\ESP32PRojects\ESP32_S3_BOX\components\bsp\src\boards\esp32_s3_box.c C/C++ Problem
'GPIO_NUM_45' undeclared here (not in a function); did you mean 'GPIO_NUM_35'?   factory_demo                   line 52, external location: D:\ESP32PRojects\ESP32_S3_BOX\components\bsp\src\boards\esp32_s3_box_lite.c                C/C++ Problem
'GPIO_NUM_46' undeclared here (not in a function); did you mean 'GPIO_NUM_36'?   factory_demo                   line 111, external location: D:\ESP32PRojects\ESP32_S3_BOX\components\bsp\src\boards\esp32_s3_box.c                C/C++ Problem
'GPIO_NUM_46' undeclared here (not in a function); did you mean 'GPIO_NUM_36'?   factory_demo                   line 116, external location: D:\ESP32PRojects\ESP32_S3_BOX\components\bsp\src\boards\esp32_s3_box_lite.c                C/C++ Problem
'GPIO_NUM_47' undeclared here (not in a function); did you mean 'GPIO_NUM_37'?   factory_demo                   line 100, external location: D:\ESP32PRojects\ESP32_S3_BOX\components\bsp\src\boards\esp32_s3_box.c                C/C++ Problem
'GPIO_NUM_47' undeclared here (not in a function); did you mean 'GPIO_NUM_37'?   factory_demo                   line 105, external location: D:\ESP32PRojects\ESP32_S3_BOX\components\bsp\src\boards\esp32_s3_box_lite.c                C/C++ Problem
'GPIO_NUM_48' undeclared here (not in a function); did you mean 'GPIO_NUM_38'?   factory_demo                   line 50, external location: D:\ESP32PRojects\ESP32_S3_BOX\components\bsp\src\boards\esp32_s3_box.c C/C++ Problem
'GPIO_NUM_48' undeclared here (not in a function); did you mean 'GPIO_NUM_38'?   factory_demo                   line 55, external location: D:\ESP32PRojects\ESP32_S3_BOX\components\bsp\src\boards\esp32_s3_box_lite.c                C/C++ Problem
Symbol 'ESP_ERR_INVALID_ARG' could not be resolved                esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 192 Semantic Error
Symbol 'ESP_FAIL' could not be resolved              esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 165 Semantic Error
Symbol 'ESP_OK' could not be resolved esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 159 Semantic Error
Symbol 'ESP_OK' could not be resolved esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 166 Semantic Error
Symbol 'ESP_OK' could not be resolved esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 177 Semantic Error
Symbol 'ESP_OK' could not be resolved esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 195 Semantic Error
Symbol 'false' could not be resolved       esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 44   Semantic Error
Symbol 'GPIO_NUM_45' could not be resolved esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 47   Semantic Error
Symbol 'GPIO_NUM_46' could not be resolved esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 111 Semantic Error
Symbol 'GPIO_NUM_47' could not be resolved esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 100 Semantic Error
Symbol 'GPIO_NUM_48' could not be resolved esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 50   Semantic Error
Symbol 'NULL' could not be resolved      esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 145 Semantic Error
Symbol 'true' could not be resolved        esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 42   Semantic Error
Symbol 'true' could not be resolved        esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 43   Semantic Error
Type 'bool' could not be resolved             esp32_s3_box.c                /factory_demo/esp_idf_components/BOX/bsp/src/boards        line 162 Semantic Error
Regards,
Vojko
From: vojko blazic @.***
Sent: Thursday, August 4, 2022 9:52 AM
To: 'espressif/esp-box' @.>; 'espressif/esp-box' @.>
Cc: 'Author' @.***>
Subject: RE: [espressif/esp-box] Build problems Demo Software for S3-BOX in Eclipse (Issue #40)
Hi,
I made clone on my disk, the compiling is running, but now I got typical “undefined symbol “ message, which should not occur on valid build.
D:/ESP32PRojects/ESP32_S3_BOX/components/bsp/src/boards/esp32_s3_box_lite.c:52:25: error: 'GPIO_NUM_45' undeclared here (not in a function); did you mean 'GPIO_NUM_35'?
 .GPIO_LCD_BL =     (GPIO_NUM_45),

                     ^~~~~~~~~~~

                     GPIO_NUM_35

D:/ESP32PRojects/ESP32_S3_BOX/components/bsp/src/boards/esp32_s3_box_lite.c:55:25: error: 'GPIO_NUM_48' undeclared here (not in a function); did you mean 'GPIO_NUM_38'?
 .GPIO_LCD_RST =    (GPIO_NUM_48),

                     ^~~~~~~~~~~

                     GPIO_NUM_38

D:/ESP32PRojects/ESP32_S3_BOX/components/bsp/src/boards/esp32_s3_box_lite.c:105:29: error: 'GPIO_NUM_47' undeclared here (not in a function); did you mean 'GPIO_NUM_37'?
 .GPIO_I2S_LRCK =       (GPIO_NUM_47),

                         ^~~~~~~~~~~

                         GPIO_NUM_37

D:/ESP32PRojects/ESP32_S3_BOX/components/bsp/src/boards/esp32_s3_box_lite.c:116:29: error: 'GPIO_NUM_46' undeclared here (not in a function); did you mean 'GPIO_NUM_36'?
 .GPIO_PWR_CTRL =       (GPIO_NUM_46),

                         ^~~~~~~~~~~

                         GPIO_NUM_36

Thanks for reply,
Vojko
From: Ivan Grokhotkov @.***
Sent: Wednesday, August 3, 2022 5:38 PM
To: espressif/esp-box @.*** @.> >
Cc: vojkob @. @.> >; Author @. @.***> >
Subject: Re: [espressif/esp-box] Build problems Demo Software for S3-BOX in Eclipse (Issue #40)
Hi Vojko, it looks like you have downloaded the .zip file of this repository from Github.
Unfortunately this won't work, since this project uses Git submodules, but Github doesn't include the contents of these submodules in the downloadable .zip files.
Instead, please use git clone --recursive ... command given in the quickstart section: https://github.com/espressif/esp-box#quick-start. This will clone the project along with the submodules.
—
Reply to this email directly, view it on GitHub https://github.com/espressif/esp-box/issues/40#issuecomment-1204121514 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4FV3MAI24332KQZNSP5ZDVXKG6RANCNFSM55PG2FKQ .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AL4FV3PXO5POVNASQCQIUY3VXKG6RA5CNFSM55PG2FK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI7CW7KQ.gif Message ID: @.*** @.***> >

Maybe the target is not set to esp32s3, so those GPIOs are not defined.

Hi,
Hm, I installed last ESP IDF tools, but I can not select ESP32-s3 in as target in Eclipse. Just ESP and ESP S2.
Regards,Vojko
From: alic-maker @.***
Sent: Thursday, August 4, 2022 10:32 AM
To: espressif/esp-box @.>
Cc: vojkob @.>; Author @.***>
Subject: Re: [espressif/esp-box] Build problems Demo Software for S3-BOX in Eclipse (Issue #40)
Maybe the target is not set to esp32s3, so those GPIOs are not defined.
—
Reply to this email directly, view it on GitHub https://github.com/espressif/esp-box/issues/40#issuecomment-1204938937 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4FV3NWCRXCMOTP32M7VX3VXN5ZHANCNFSM55PG2FKQ .
You are receiving this because you authored the thread.Message ID: @.***>

Hi,
OK, I managed to change target in Eclipse to S3, after 5 minutes of compile time, it seems there are no errors. Thanks a lot.
Regards,
Vojko

Hi,
actually there are errors, but this Eclipse is very nasty IDE. Not show anything in Console, just in Problems section:
Description	Resource	Path	Location	Type
Symbol 'ADC1_CHANNEL_0' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 64	Semantic Error
Symbol 'ESP_ERR_INVALID_ARG' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 192	Semantic Error
Symbol 'ESP_FAIL' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 165	Semantic Error
Symbol 'ESP_OK' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 159	Semantic Error
Symbol 'ESP_OK' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 166	Semantic Error
Symbol 'ESP_OK' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 177	Semantic Error
Symbol 'ESP_OK' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 195	Semantic Error
Symbol 'false' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 44	Semantic Error
Symbol 'GPIO_NUM_0' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 15	Semantic Error
Symbol 'GPIO_NUM_1' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 114	Semantic Error
Symbol 'GPIO_NUM_10' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 78	Semantic Error
Symbol 'GPIO_NUM_11' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 75	Semantic Error
Symbol 'GPIO_NUM_12' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 77	Semantic Error
Symbol 'GPIO_NUM_13' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 74	Semantic Error
Symbol 'GPIO_NUM_14' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 76	Semantic Error
Symbol 'GPIO_NUM_15' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 104	Semantic Error
Symbol 'GPIO_NUM_16' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 103	Semantic Error
Symbol 'GPIO_NUM_17' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 102	Semantic Error
Symbol 'GPIO_NUM_18' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 69	Semantic Error
Symbol 'GPIO_NUM_2' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 101	Semantic Error
Symbol 'GPIO_NUM_39' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 97	Semantic Error
Symbol 'GPIO_NUM_4' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 51	Semantic Error
Symbol 'GPIO_NUM_5' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 49	Semantic Error
Symbol 'GPIO_NUM_6' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 53	Semantic Error
Symbol 'GPIO_NUM_7' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 52	Semantic Error
Symbol 'GPIO_NUM_8' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 70	Semantic Error
Symbol 'GPIO_NUM_9' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 79	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 54	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 80	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 84	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 85	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 86	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 87	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 90	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 91	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 92	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 93	Semantic Error
Symbol 'GPIO_NUM_NC' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 96	Semantic Error
Symbol 'NULL' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 145	Semantic Error
Symbol 'true' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 42	Semantic Error
Symbol 'true' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 43	Semantic Error
Type 'bool' could not be resolved	esp32_s3_box.c	/factory_demo/esp_idf_components/BOX/bsp/src/boards	line 162	Semantic Error

Hi,
I expected  the compilation and download will be quicker. I see no big advantage in using ESP-IDE over Arduino, since I;m not digging to deep into ESP hardware. Can You help me with necessary step, too make S3-BOX arduino enabled?
Thanks,
Vojko

@vojkob ESP-IDF is not Arduino. Two different platforms.

Hi, if you don't have any questions, please close this issue. Thank you!

I switch completely to Arduino Visual Studio Code, Platformio, I use some native libraries where necessary and system runs really good. Thanks for help anyway.

Thanks a lot.


Renamed taxonomy doesn't show content

Again  shown with my demo setup.
I want to rename the default taxonomy categories in the German version to "Kategorien". I added the following snippet to the config file:
[languages.de.taxonomies]
        category = "kategorien"

I can access http://localhost:5000/de/kategorien/ but no content is shown even if two content files (foo.de.md and bar.de.md) have a category.
Furthermore, I renamed the the category taxonomy for the default content language (en) as well:
[taxonomies]
    category = "kategorien"

Hugo renders a site at http://localhost:5000/kategorien/ but here are also no pages shown. foo.md and bar.md list a category in their frontmatter.

I can access http://localhost:5000/de/kategorien/ but no content is shown even if two content files (foo.de.md and bar.de.md) have a category.

No, they have some categories -- which is different. I'm not sure what kind of magic you expect from this mapping, but I'm curious.

@digitalcraftsman,
Can you test the taxonomy change without the multilingual features?  The problem appears to be unrelated to multilingual.  If you can't rename the category plural name at all, that's a bigger problem.

@moorereason what is the problem I ask?

@bep,
Nevermind, I misunderstood what was happening.
@digitalcraftsman,
If you rename the main category in your config to kategorien (as your last example did), you have to rename your frontmatter tags to match.  "categories" => "kategorien" and "categories_weight" => "kategorien_weight".

But it would be nice to have one taxonomy definition (category -> categories) and have it translated, but that is certainly out of scope of this feature. May have that in mind when fixing Page vs. Node.

But it would be nice to have one taxonomy definition (category -> categories) and have it translated

Exactly this was the idea behind this issue but I should have been a bit more precise. I interpreted the handling of taxonomies wrong.
Thanks @moorereason for clarifying that I've to rename the frontmatter tags as well.


Object Editing no longer working in map.apps 4.9

Object editing in map.apps 4.9 no longer works. This is partially due to the "snap-to" functionality being broken. There is some aspects into the sketchViewModel contained within 'dn_sketchingenhanced-snappingmanager/SnappingManager' that I suspect are no longer valid.
I suspect there have been some changes to the Esri SketchViewModel

ArcGIS API 4.0.15 SkechViewModel changes:
The update event on Sketch widget and SketchViewModel no longer have cancel state. The parameter aborted on update events indicates that the process got cancelled.


Select server framework

[ ] Flask or Node.js? Pending response: https://github.com/oceanprotocol/decentralized_storage_backend/issues/3#issuecomment-1275198093
[ ] Separate file and function for each endpoint

Alex answered that Node.js would be fine.
https://github.com/oceanprotocol/decentralized_storage_backend/issues/3#issuecomment-1276333283


Write the logo grid functional specs

User Story

As a [user role below]:
DDS developer

I need to:
have logo grid functional specifications

so that I can:
correctly develop the logo grid pattern

Additional information

The functional specs will be worked on in parallel with the design specs Issue (#2032)
Dev Issue (#1846)

Acceptance criteria

[ ] Documented Logo grid functional specifications
[ ] Sent and/or presented the specs to Design, Content Strategy and Dev for their review and comments
[ ] Additional stories are created, if needed, for any work to be done in future sprints
[ ] Send a message to Jeff to let him know that the functional specs are ready for a developer by tagging him in the dev issue.

Not stale.  Waiting to schedule when resources available.

version 1.0 of func specs uploaded to box: https://ibm.box.com/s/2c2dt2fivbmbcce29oul7hjaktjaqj26

minor updates made to version 1.0, based on discussions in engineering review, uploaded to box: https://ibm.box.com/s/2c2dt2fivbmbcce29oul7hjaktjaqj26. refer to change log for details of updates.


Add id column for all SFA db objects

We have an (eventual) requirement to be able to monitor n SFA appliances at once. In order to do this, we need to have a composite primary key for most SFA objects of the index and storage_system. Unfortunately, Django does not allow for composite primary or foreign keys even though it's doable in Postgres.
Long term we should move our migrations out of Django and use diesel instead (which allows you to embed migrations into a binary) but for now we'll keep using the Django migrations and add an unique_together constraint for index and storage_system and drop the fk constraints for index on tables.
Additionally, there is a bug where a changed row will appear in both the Upserts and Deletions of get_changes. We need to have a key fn to determine if something actually belongs in the Deletions.
Add an Identifiable trait that will uniquely id a record so it can be removed from Deletions if it's actually a change.
Finally, split out the SFA objects to their own modules within the iml-orm crate for better maintainability.

This change is

iml-sfa/src/main.rs, line 9 at r1 (raw file):
Previously, mkpankov (Michael Pankov) wrote…
Should we rename all of these to not include Sfa prefix since all of them are in sfa module?

These names mirror the XML elements they are pulled from.


OpenCR can't read motor encoder

Hi,
my turtlebot works great, but it can't read the motor encorders, while is able to control them very well.
Here the motor info:

firmware version 41
protocol 2.0

The topic /sensor_state is never published, while topic joint_states return the same value:
header:
  seq: 759
  stamp:
    secs:<PHONE_NUMBER>
    nsecs: 940208339
  frame_id: base_link
name: ['wheel_left_joint', 'wheel_right_joint']
position: [0.0, 0.0]
velocity: [0.0, 0.0]
effort: [7.335467576660691e+21,<PHONE_NUMBER>4277344]

Hi :)
You need to check your setup. Please following below tutorial.
setup dynamixel

HI,
I tried it, but the OpenCR is not able to detect any motor.. It seems that it's able to receive information from the motors, even if all works well with U2D2!
It may be an hardware issue?


Remove raw template string usage

Closes https://github.com/blakeembrey/sql-template-tag/issues/11.

Pull Request Test Coverage Report for Build 55

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 51:
0.0%

Covered Lines:
45

Relevant Lines:
45

💛  - Coveralls


fix upsert for non existing id

pls see Issue #33.  The original code r.table(..).get(id) does not raise exception therefore insert failed for non existing id. This patch uses rethinkdb's update mechanism instead.

I'm closing this since tests are failing and due to the discussion on #33. Please see the discussion on the issue related to this (and to the possible cause of the failures). Also, please open PRs on the develop branch, not master.


Create multiple Tomcat Server doesn't work

In my project, I need 3 differents Tomcat server. It's the same version but with different classpath and config. When I create the first one, it is called "Apache Tomcat 8.0.43" and I can't change its name. Then I create a second one, its name is "Apache Tomcat 8.0.43 (1)", it's not really easy to remember but it's OK. BUT the third one is named  "Apache Tomcat 8.0.43 (1)" too ! And the third one takes the classpath and config from the second one (when I look into C:\Users{me}.SmartTomcat{project}{project}. If I change manually, the plugin doesn't keep my changes.
Hope it's clear enough.

I think you can use 3 differences  ports for 3 projects (servers)


flutter web on iphone 5s, overflow: TextOverflow.ellipsis No effect。

new Text(
'${model.introduce}',
maxLines: 3,
overflow: TextOverflow.ellipsis,
style: new TextStyle(
color: grayFontColor,
fontSize: 13.0,
),
),

Hi @qiuguian
can you please provide your flutter doctor -v
and flutter run --verbose?
Also, to better address the issue, would be helpful
if you could post a minimal code sample to reproduce the problem
Thank you

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.13.1-pre.93, on Mac OS X 10.15.1 19B88, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[!] VS Code (version 1.40.1)
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available)

Hi @qiuguian
you might want to use ellipsis w/ max lines set to 1
please take a look to the sample code.
Please see https://flutter.dev/community for resources for asking questions like this,
you may also get some help if you post it on Stack Overflow.
Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you


cmd/cgo: how to use third part framework?

What version of Go are you using (go version)?

$ go version
go version go1.12.6 darwin/amd64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/youchain-y/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/youchain-y/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.6/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.6/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/y5/zq0rjb2s7ggc_y4qk8k45k440000gn/T/go-build774485073=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
#cgo LDFLAGS: -framework third-part-framework

What did you expect to see?
third part framework can work
What did you see instead?
third part framework cannot be found

@ianlancetaylor

What is the exact command that you ran?  What is the complete and exact output?
I don't know how the -framework option normally works.  Does passing -framework third-part-framework to the linker work when linking a C program?

Sorry,
I know how to use the system framework of system in folder "/System/Library/Frameworks" like below,
/* #cgo LDFLAGS: -framework CoreFoundation #include <CoreFoundation/CoreFoundation.h> */
but I don't know how to use the framework created by myself.

You need to install your framework to the expected location.
See: https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/InstallingFrameworks.html#//apple_ref/doc/uid/20002261-BBCCFBJA
If not you need to use the -F ldflag to specify a location to look for it.
See: https://clang.llvm.org/docs/ClangCommandLineReference.html#introduction
For proper help I suggest you ask around in the normal OSX developer places as this is not a Go specific thing. https://developer.apple.com/support/

Thank you,
I can use framework normally if the framework is build by xcode in the below way,
#cgo LDFLAGS: -F ${SRCDIR} -framework xxx.framework
but I have a framework that I build by go mobile, and I encountered some error in this way, as below:
duplicate symbol __cgo_panic in:     $WORK/b001/_cgo_main.o     ./framework/Mobile.framework/Mobile(go.o) duplicate symbol __cgo_topofstack in:     $WORK/b001/_cgo_main.o     ./framework/Mobile.framework/Mobile(go.o) duplicate symbol _crosscall2 in:     $WORK/b001/_cgo_main.o     ./framework/Mobile.framework/Mobile(go.o) duplicate symbol __cgo_wait_runtime_init_done in:     $WORK/b001/_cgo_main.o     ./framework/Mobile.framework/Mobile(000012.o) ld: 4 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

If there are C/C++/etc... sources in the same folder as Go sources, they will automatically be compiled and included into the Go program without -framework. So by putting the -framework flag you are telling it to include them twice.

Hi there,
We have decided that our experiment to allow questions on the issue tracker has not had the outcome we desired, so I am closing this issue. I'm sorry that we can't continue to answer your question here.
There are many other methods to get help if you're still looking for answers:

Stack Overflow with questions tagged "go"

The Go Forum, a web-based forum

Gophers Slack, use the invite app for access. The #general channel is a good starting point.

Go Community on Hashnode with questions and posts tagged with "go"

The golang-nuts mailing list

IRC channel #go-nuts on Freenode

Thanks


MSSQL 2016 - Store Procedure - Column Name does not align in list with icons

DBeaver version: 5.1.2
Description:
In Edit procedure I get the following below from the procedure parameters. It does not seem to align correctly. Only visual problem.
Screenshot:

Thanks for report.
Workaround: you can move columns by drag-n-drop (in most of DBeaver table views), so you can put Name column (the one with the icon) first.


refactor(dbm-services): 获取升级包函数默认参数

关联研发信息
dev_branch: refactor/get_all_bigger_version_pkg/#8634
target_branch: v1.5.0


{TE 7.5] remove fabric fails makes device un-responsive on other fabrics

Problem
chip-tool operationalcredentials read fabrics-list 2222 0 - Shows 3 fabrics As expected
chip-tool operationalcredentials remove-fabric 2 2222 0 - Fails
DUT is now unable to connect to any controller on any of the remaining fabrics.
I was able to replicate the problem 3x in a row.
Attached are 2 sets of logs from each of the 3 controllers along with the test procedure followed.
Proposed Solution
TC-MF-1.17-Procedure.txt
TC-MF-1.17-RPI0.log
TC-MF-1.17-RPI0-1.log
TC-MF-1.17-RPI1.log
TC-MF-1.17-RPI1-1.log
TC-MF-1.17-RPI2.log
TC-MF-1.17-RPI2-1.log

Per Slack conversation with @chrisbeach59 this worked in TE8.


Problem with example code image rendering

Hi:
I have ran the code for "Plot RGBA values on brain surface", but the picture rendering seems wrong.  It was different with the example result.

How could I fix the problem?  Many thanks for your reply!

The same thing happened to me, did you find a solution?


Launch websocket server on production with SSL

Hey,
I can't launch the WS server.
My config:
gos_web_socket:
    server:
        port: 8888        #The port the socket server will listen on
        host: <IP_ADDRESS>   #The host ip to bind to
        router:
            resources:
                - '%kernel.project_dir%/config/pubsub.yaml'
    client:
        firewall: main
        session_handler<EMAIL_ADDRESS>
stunnel.conf:
cert = /etc/letsencrypt/live/mysubdomain.mydomain.fr/fullchain.pem
key = /etc/letsencrypt/live/mysubdomain.mydomain.fr/privkey.pem

socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

chroot = /var/run/stunnel4/
pid = /stunnel.pid

local = mysubdomain.mydomain.fr

[websockets]
accept = 8443
connect = mysubdomain.mydomain.fr:8888

But when i use this commande:
bin/console gos:websocket:server -a mysubdomain.mydomain.fr -eprod
i have this error:
[console] Error thrown while running command "gos:websocket:server -a 'mysubdomain.mydomain.fr' -eprod". Message: "Given URI "tcp://mysubdomain.mydomain.fr:8888" does not contain a valid host IP" ["exception" => InvalidArgumentException { …},"command" => "gos:websocket:server -a 'mysubdomain.mydomain.fr' -eprod","message" => "Given URI "tcp://mysubdomain.mydomain.fr:8888" does not contain a valid host IP"]
Someone have an idea ?
Ty

I think running bin/console gos:websocket:server will be sufficient
create your config in the gos_web_socket.yaml file
another thing you can try, is configuring an IP address in stead of a domain name.

For production, you need supervisord, to ensure the server stay up and running. You can check : https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/master/Resources/docs/ShipInProduction.md
and also look at the wiki, they are feedback from production (like aws, ssl, apache)
hope it's usefull for you


Add ubuntu 20.04 postgres setup documentation

What
Adds a separate markdown file, documenting local PostgreSQL install and configuration on Ubuntu 20.04
Why
The configuration was not well known in the team. Documenting the steps could speed up any new starters initial setup.
Screenshots
N/A
Notes

Some sections may be applicable to other Linux distributions
Linked from the README.md and back again

Problematic merge issue. Resolved with a new branch and PR in #319
Closing.


New app version is not considered

Can someone please tell why the new version with a much higher version number is not seen as a new one?
2020/10/07 17:51:34.189|DEBUG|Application updater: Found an item in the app cast: version 1.2.2030.0 () -- os = windows  2020/10/07 17:51:34.189|DEBUG|Application updater: While parsing app cast item, converted 'Wed, 07 Oct 2020 18:14:53 GMT' to 10/7/2020 11:14:53 AM. 2020/10/07 17:51:34.189|DEBUG|Application updater: Found an item in the app cast: version 1.2.2021.0 () -- os = windows  2020/10/07 17:51:34.189|DEBUG|Application updater: App cast successfully downloaded and parsed. Getting available updates...  2020/10/07 17:51:34.189|DEBUG|Application updater: Touch the last check timestamp 2020/10/07 17:51:34.189|DEBUG|Application updater: Installed version is valid, no update needed (1.2.2021.0)

Hi @anti-matter,
Please post your app cast here (anonymized as necessary) so I can take a look. Thanks!
(Did you click "Skip this Version" previously?)

No, I did not say skip any version.
`

REDACTED
/v0.1/public/sparkle/apps/REDACTED

Version (1.2.2030.0)
Initial desktop production release. Notable improvements in this release:  None
Thu, 08 Oct 2020 00:39:03 GMT

Version (1.2.2021.0)
Initial desktop production release. Notable improvements in this release:  None
Wed, 07 Oct 2020 18:14:53 GMT

`

Thanks. I'll have to take a look. I'll try to do so soon.

Ugh. Never mind. Error on our part. The dsa signature setting, which was working, suddenly stopped. Just need to figure out why its not being set in our build process. Sorry.

Ah, glad you figured it out!
All the same, I went ahead and added some additional debug LogWriter statements to help people debug these things in the future: see commit dfcccd288cb25c1159cad0c7be83f287f931d3c1 and preview version 2.0.0-preview20201008001. The log now states why it is rejecting an app cast item as being a valid update. Hopefully that will help catch such issues sooner.
Thanks!


Issues with the payment flow

[ ] failed payment email not sent
[ ] total on confirmed page after failed then successful payment
[ ] total wrong on order confirmation page (is it hard coded?)

For checkpoint 3, this needs to change: https://github.com/jgne/bubbles/blob/master/src/js/components/views/expo/expo-order-confirmed-page.jsx#L15-L17


allow passing act to WildcardMockLink and utilities

Mb we also should add some note about it in readme?

@greenroach good point

@greenroach Added some docs and also made the way the library takes options simpler.


C26875: Removing space befor asterisk that breaks bold style

Hello, @mairaw  ,
Localization team has reported source content issue that causes localized version to have broken/different format compared to en-us version.
"Extra space before asterisk causes broken content"
Please review and merge the proposed file change to fix to target versions. If you make related fix in another PR  then share your PR number so we can confirm and close this PR.
Many thanks in advance.

Thanks @rpetrusha


Change chem func

Codecov Report

Merging #77 (359676c) into main (412b00e) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##            main     #77      +/-   ##
========================================
- Coverage   5.14%   5.13%   -0.02%
========================================
  Files         26      26
  Lines       2487    2493       +6
========================================
  Hits         128     128
- Misses      2359    2365       +6

Flag
Coverage Δ

tests
5.13% <0.00%> (-0.02%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

symmer/chemistry/__init__.py
0.00% <ø> (ø)

symmer/chemistry/build_molecule.py
0.00% <ø> (ø)

symmer/chemistry/fermionic_ham.py
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


ReactMultiscreen PageContext not loading

Category

[x] Question
[ ] Typo
[ ] Additional article idea

Question
I am not able to load the spfx context in the webpart .tsx files. It always shows undefined.
I am using a multiscreen webpart, I am using react framework. I am not able to get the context to load in the webpart file(.tsx) Below is the code so far. There were 2 issues initially, one was getting the page url without /sitepages when the webpart is deployed, I worked around this by passing my own web url manually.
I have observed that when I set log at .ts file which is the webpart file, it is not showing loaded when navigating to the .tsx webpart screen.I am guessing because the ts file has not loaded hence the context is not generated. Please help in how to load sharepoint context to use spfx controls in multiscreen webpart.
I have attached files for any additional reference.
let web=Web("my weburl") -----------------------------------------This works for calling list item
let web=Web(this.props.context.pageContext.web.absoluteUrl);--Doesn't work
<PeoplePicker  context={this.props.context}-----------------------Doesn't work because it says undefined

Attached
ReactGetItemstsx.txt
ReactGetItemstsx.txt
ReactGetItemsWebPartts.txt
IReactGetItemsPropsts.txt
Environment details

OS: Windows 10
Framework: Spfx, PnpJS, React
Browser(s): Chrome IE 11

sorry for my novice knowledge. I am closing this as I figured out that .ts file is already present with the multiscreen as I was trying to create multiple .ts files and got confused.
I need to do the init on the already existing multiscreenwebpart.ts
public onInit(): Promise < void> {
return super.onInit().then(_ => {
sp.setup({
spfxContext: this.context
});
});
}
Helped me stetup the context.


Update .swiftlint.yml

What does this PR do?

Related tickets

Danger has errored
[!] Invalid Dangerfile file: swiftlint is not installed. Updating the Danger gem might fix the issue. Your Danger version: 8.5.0, latest Danger version: 8.6.1
 #  from Dangerfile:32
 #  -------------------------------------------
 #  swiftlint.binary_path = 'Pods/SwiftLint/swiftlint'
 >  swiftlint.lint_files inline_mode: true
 #  issue_difference = swiftlint.issues.count()
 #  -------------------------------------------

  Generated by :no_entry_sign: Danger


feat: isEmail: validate display name using standards of RFC2822

Linked issue: https://github.com/chriso/validator.js/issues/976
Currently, the validation rule of a display name is not such standard, I have found out the standard of display name.
Refer to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2
The display name of an email address can be any characters(but I ruled out invisible characters in the code),
if there is any illegal character such as angled-brackets/quotes/semicolon, must enclose the display name in double-quotes,
quotes in display name should start with a backslash
And thanks for the contributions you all guys, benefit a lot!

Any update?
Will be great if this one can be merged

Really need this PR to be merged. 🙏

Looks good – thanks for the PR :smile:

I'll push a new version very soon.

Thanks!


A user with the email ... already exists but with different credentials

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
I've found some similar issues but not quite the same.
Previously we used Microsoft Azure authentication to authenticate users. We are now moving to Keycloak, using OIDC login.
When I change the authentication method from Azure to OIDC and login, I get the error:
"A user with the email ... already exists but with different credentials"
I've seen other issues that mention updating the external ID, but I can see no such option. I can see 'Disconnect account'.
We have lots of users so the ideal solution will not involve editing via the UI.
Thanks in advance!
Exact BookStack Version
23.06.2
Log Content
A user with the email ... already exists but with different credentials
PHP Version
8.2.8
Hosting Environment
Docker image ghcr.io/linuxserver/bookstack:23.06.2 on Kubernetes.

Hi @antwacky,
Please see my video linked below, particular the "External authentication ID field" part of the video starting at 9:16.
https://youtu.be/TJQ4NJrMvkw?t=556

Hi, thanks for this. When I select external_auth_id from the database the field is empty for all users (current auth method is Azure OIDC).
So I should prepopulate the external_auth_id field using the Keycloak ID for each user then switch Bookstack to OIDC method?

So I should prepopulate the external_auth_id field using the Keycloak ID for each user then switch Bookstack to OIDC method?

Assuming that the Keycloak ID is the ID property being used (for the ID token sub claim unless you're changing it with the BookStack OIDC_EXTERNAL_ID_CLAIM option) then yes.
Could just test it with one account first to make sure you're using the right ID property.

Great thanks, maybe I'll set the claim to be the email so I don't have to cross reference each user when updating.
Another quick question, the Azure method has the options:
AZURE_AUTO_REGISTER: "true"
AZURE_AUTO_CONFIRM_EMAIL: "true"
I couldn't see similar options for OIDC.

AZURE_AUTO_REGISTER

When OIDC is active, there is no separate register page, auto-register is essentially active by default.

AZURE_AUTO_CONFIRM_EMAIL

Again, this is usually redundant if using OIDC, you'd generally look to trust the incoming users from your identity platform, so you wouldn't use the domain restriction/email confirmation options.

Awesome thanks, closing the issue. Will reopen if I come across issues on the next attempt at moving to OIDC.


ipybind

@wjakob @jagerman @dean0x7d
Hi – tagging you to take a look, what do you think? Cython has a dedicated cell magic, so we should have one (preferably a better one) too :) If you think it would be useful  we can provided a link on pybind11's page.
Was quite a bit of pain to make it work properly on Windows, partially due to my inexperience with it and msvc stack in particular, but it looks like things generally work ok. There's a minor amount of things to finish, like adding a few nbval tests, mostly error reporting and stream capturing, documenting a few more things in readme, maybe minor code reshuffling – but most of it is done.
One thing that can be done to is adding a few lines to pybind11's __init__.py, so that one coud do %load_ext pybind11 which is arguably nicer:
def load_ipython_extension(ip):
    try:
        import ipybind
        ipybind.load_ipython_extension(ip)
    except ImportError:
        pass  # or maybe show a warning "ipybind has to be installed for this to work"

(Potential other TODOs I have written down: add a line magic to build external C++ file; allow exporting the module to a user-specified path while figuring the name automatically; expose the building API without wrapping it in IPython's magics, kind of like in cppimport - since there's a bunch of useful stuff here; replace PYBIND11_PLUGIN with PYBIND11_MODULE eventually in the readme)
(It is also possible to compile a big tutorial notebook with various examples from pybind11's documentation and host it in pybind11's repo so users can view it online rendered by github but also run it / play around with it)

This is awesome! I had no idea I wanted something like this, but now I probably won't be able to do without it. It has become my goto for quick tests and I also recently put together a small demo of pybind11 for colleagues. So I definitely like the idea of putting some tutorial notebooks online!
Regarding load_ext in pybind11's __init__.py: I personally think that would be a great addition. The ImportError should definitely have an informative message rather than just pass.
Regarding features: As an option, could the module namespace remain intact? I.e. import m instead of from m import *? I can see both schemes being useful under different circumstances. Also, any plans for automatic cleanup of the build directory?

@dean0x7d Regarding features: As an option, could the module namespace remain intact? I.e. import m instead of from m import *? I can see both schemes being useful under different circumstances.

Already done (-m), it's just missing from the docs along with a few other things :) (58874a10fcbb1ba2a899c89e09ba4f4d734141cf) There's yet another mode I've planned implementing -- outputting the resulting module to a user specified folder, e.g. current directory, this may be useful if you have other scripts that import your scratch code. It's quite a bit more tricky however, because we don't really know the module name, but could still be done.
I'll get back to finishing documentation and tests soon, and then maybe push to pypi and open a PR on pybind11 to enable load_ext.

@dean0x7d In regards to cleaning the build folder - do you mean the cached module binaries or the temporary build artifacts (object files etc)? If it's the former, I'm not quite sure, since "caching" and "automatic cleanup" are two opposite things :) Could provide an explicit way to kill everything, e.g. %pybind11_cleanup or the like.

In regards to cleaning the build folder - do you mean the cached module binaries?

Yes, those.

Another possibility is some sort of enabling/disabling module caching globally.

That would be nice. The cache dir grows rapidly as the C++ code in the notebook is edited (as far as I understand each change of the code creates a new .so file in the cache) which means that I need to manually delete the cache once in a while. The cache is nice when restarting a notebook, but I think the hit rate is low for REPL.

That would be nice. The cache dir grows rapidly as the C++ code in the notebook is edited (as far as I understand each change of the code creates a new .so file in the cache) which means that I need to manually delete the cache once in a while. The cache is nice when restarting a notebook, but I think the hit rate is low for REPL.

Hmm, would you have a suggestion for what the most reasonable default would be? You have probably used this package more than myself at this point :) Maybe caching off by default, but possible to turn on globally? Or the other way around? How exactly (and, more importantly, when) should binaries be cleaned up?
One problem is this: you can't remove a binary module on Windows if it's currently imported (you'll get "access denied"). Which means you either have to wait until interpreter shutdown, or do it at start before anything is imported (not sure exactly when). Also, you have to keep hashes (=names) different for different modules because otherwise the module import mechanism gets in the way and you can't reimport stuff.

Another issue about cleanups I forgot to mention -- there may be multiple kernels open at the same time, so not all cached extensions may be "owned" by one.


Fix NaN handling for map subscript and add test for map()

Summary:
Ensures that map subscript identifies NaN as a key where NaNs with any binary
representation are considered equal.
Differential Revision: D57634535

This requires all places where a float can be hashed to use the NaN aware hasher instead of folly::hasher, which is a pretty invasive change and will affect/fix many other cases where NaN handling needs to be fixed. Need to dig in and come up with a comprehensive fix.


Failed to install 'com.googlemaps.ios':CordovaError: Uh oh!

Hi,
Getting this issue when attempting to install the plugin.
Failed to install 'com.googlemaps.ios':CordovaError: Uh oh!
Cannot find resource file "...\plugins\com.googlemaps.ios\Maps\Frameworks\GoogleMaps.framework\Versions\A\Resources\Go
ogleMaps.bundle" for plugin com.googlemaps.ios in iOS platform
tried using the cmd
$> cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"

$> cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"

What OS do you use? I guess you don't use MacOS X.
You can install from here.
https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk

Sorry if this sounds dumb. Im new to cordova and using it as part or ionic2.
Im using Windows 10. Do I need to add the plugin on a Mac? If so is there a way to add on the "andriod" plugin in browser development purposes?

Develop an app on MacOS X, there is no trouble for installation of com.googlemaps.ios plugin.
Typically Windows user.
So I just want to confirm what OS do you use.
Some people develop their app on Windows for iOS.
But I'm not Windows user, please you resolve the issue yourself.
And this plugin does not run on browser.
Only this plugin run in Android app or iOS app.

hello, i have the same problem ,  I develop on windows  and i have this error. But when i try to install https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk
Cordova write same error :
"...\plugins\com.googlemaps.ios\Maps\Frameworks\GoogleMaps.framework\Versions\A\Resources\Go
ogleMaps.bundle" for plugin com.googlemaps.ios in iOS platform.
Best regards

The only way i got it working was to "downgrade" the cordova ios version to 3.9.0 which allows the install to complete but unfortunately it skips the ios install as version 4.0.0 is the min version.
@wf9a5m75 I tried doing the install on a Mac OSX running sierra and latest version of xcode with no luck, still saying the file is missing.

hi @wf9a5m75,
Can u have  pull request for install with cordova ios version upper 4.x.x ?
Best regards

I managed to get my hands on a mac with xcode installed, copied the project over and it installs correctly.
I did have to delete the com.googlemaps.ios folder in the plugins directory though.
@wf9a5m75 can you suggest if there is a way to make it "skip" the ios install when not on a Mac?
Thanks again

the solution is here
https://software.intel.com/en-us/forums/intel-xdk/topic/705862


Function signature help doesn't work, when inside other parentheses.

if (NPC_KnowInfo()) // Doesn't show correct completions

Fails with langserver/lsphandler.go:98	signature completion error index out of bounds:

Completions are also not counting in function-symbols.
e.g.
func string This() { return ""; };

// ...
const string a = "a";
ConcatStrings(a, [Completing doesn't show methods])

That is a very good point, offer functions with the right return value as a completion.


HIV Guidance Document-Table mixup in R markdown

Potential sequencing strategies table is absent. It is currently being occupied by the subtyping tools table

Moved table 3 to where it belongs, and added table 2 to the approapriate place in the doc.

Resolved

Thanks Marc!


Support app with expo

Not everybody could run a emulator on your pc because is needed the whole SDK Android and Apple. An easy way to do that is implement expo. On this way more people could contributte with the project and test on own device
https://expo.io/learn

He made a new repository to build it with Expo.
https://github.com/lucasmontano/openweathermap-rn-expo


YUNIKORN-746: Simplify the REST API document

Doc changes to clearly explain the Old and Newer version API's use.

hi @manirajv06  thanks for working on this. Can we remove the "Deprecated" and "Newer version" in the doc, and merge them into one section? For queus/apps/nodes, we should only have one section each, and the old/new API can all be explained in each single section.

Taken care. Pls check.


Enabling highlighting with tree sitter results in broken highlighting

Repro:

Have a typescript file open
Open settings.json
Enable highlighting with tree sitter for typescript

  "editor.experimental.preferTreeSitter": [
    "typescript"
  ]

Go back to the typescript file and see partial highlighting

I don't see anything relevant in the dev console. My theme is light+.
https://github.com/user-attachments/assets/7e3595e9-11ad-4ac3-b597-76b893341b69
Version: 1.93.0-insider
Commit: e1db90f81da28c0994b5d50dc2b51e964359e62d
Date: 2024-08-21T05:04:11.586Z
Electron: 30.3.1
ElectronBuildId: 9960165
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 23.6.0

I think the only highlighting you're getting there is from the typescript extension's semantic tokens.
Likely fixed by https://github.com/microsoft/vscode/commit/82216f99d1ff7678bf60445246652ea72c8ecc5c, though you'll still probably have problems until https://github.com/microsoft/vscode/pull/226357 is available.

I still only see partial highlighting with the repro steps above. Full highlighting returns only after I reload the window.

Bug is caused by a different issue, but this is still behind a hidden setting and won't be announced in the release notes this release. Moving to September.

Resolved by one or both of https://github.com/microsoft/vscode/pull/228381 and https://github.com/microsoft/vscode/pull/228235.


use usize for the argument of words::sentence

Negative word counts wouldn't make sense

Done, the tests now pass :)


[WEB-1007] FetchUserEmailQuery

📲 What
In order to reduce the amount/size of network calls to get the currently logged in user's email for our CAPI events, we can add a simpler query that just gets the email and store it globally instead of asking for the entire user object every time.
🤔 Why
reduces the amount of network calls needed and makes accessing the user's email simpler.
🛠 How
Add a small one field query in AppDelegate that will grab the email and make it accessible app-wide in AppEnvironment.currency.loggedInUserEmail .

[ ] Steps to test this feature
[ ] Environment to test on
[ ] Issues to look out for

⏰ TODO

[ ] Got planned refactors to come
[ ] Will add more tests
[ ] Need feedback on a design

SwiftFormat found issues:

File
Rules

Library/AppEnvironment.swift:45:1
warning: (indent) Indent code in accordance with the scope level.

Library/Environment.swift:47:1
warning: (indent) Indent code in accordance with the scope level.

Library/ViewModels/PledgePaymentMethodsViewModel.swift:388:1
warning: (redundantParens) Remove redundant parentheses.

  Generated by :no_entry_sign: Danger

SwiftFormat found issues:

File
Rules

Library/ViewModels/PledgeViewModelTests.swift:1965:1
warning: (consecutiveBlankLines) Replace consecutive blank lines with a single blank line.

Library/ViewModels/PledgeViewModelTests.swift:2070:1
warning: (consecutiveBlankLines) Replace consecutive blank lines with a single blank line.

  Generated by :no_entry_sign: Danger

          1 Warning

:warning:
Big PR

  Generated by :no_entry_sign: Danger


docs: clarify scheduler architecture info

This PR aligns terminology with what is in the install section and improves the readability of the prose.
Reviewers: Please check the very last section of this page (which is not touched in this PR).  I think that info only applies to the original scheduler.
Also, no mention is made of vCluster on this page -- should it be?  I didn't think so until I saw that last section.

@StackScribe can you please resolve the conflicts ?


Move from Discord to Slack

Discord is just as bad as Slack privacy wise.
Nevertheless, Slack seems to be the standard in scientific chat communication and to blend in we will also resort to using Slack.
:pirate_flag:

Apparently slack has a new "feature" (quote from their customer service to me lol) that you cannot create non expiring invitation links anymore.
I absolutely don't want to change the link every 30 days. That's just dumb.
What to do?

I can now create unlimited invitation links again. In 11 days Slack premium expires and I know whether this is persistent or not.

We could be trendy and use matrix. Start a movement in the scientific community.

We could be trendy and use matrix. Start a movement in the scientific community.

@Imipenem and me are actually communicating over Matrix. Do you think that people would really join the Matrix network?
Also, can we easily create a non-expiring invite link to a Matrix room? Maybe https://matrix.to/ could work?
I've never done this before.

I think we may have to host it but the non-expiring link looks possible and the explanation is pretty quick. I haven't had a good excuse to use matrix yet myself. It looks like they use matrix.to here https://linuxunplugged.com/matrixinfo

I think we may have to host it but the non-expiring link looks possible and the explanation is pretty quick. I haven't had a good excuse to use matrix yet myself. It looks like they use matrix.to here https://linuxunplugged.com/matrixinfo

I def don't want to host a matrix server. However, Element allows you to create rooms, so we might be able to make use of Element's infrastructure?
Still unsure whether this generally is a good idea...

I def don't want to host a matrix server
Just to clarify, is it that you don't want to admin it, or just don't want to bother with it as an organization?

Here's there's hosted platform pricing https://element.io/pricing which looks cheaper than slack.

I def don't want to host a matrix server
Just to clarify, is it that you don't want to admin it, or just don't want to bother with it as an organization?

Here's there's hosted platform pricing https://element.io/pricing which looks cheaper than slack.

Yeah, but we don't have any funding to pay for this. Money is not an issue for my current groups, but I would have to ask for dedicated funding for this. Since most of the work was conducted while I was associated with QBiC I don't know whether I should pursue this...
Element itself is free and according to their pricing the free tier has:
Communities/groups of users

Unlimited

I'll have to play around with it. Does that include a "server" where we can have channels for the templates and whatnot like the discord is set up currently? Not just a single chat for a group.

Ah yeah, good point. From what I can see it's only a single room and no sub channels/rooms.

@Emiller88 just had a quick discussion with @Imipenem. Although we, as avid users, love the Matrix network we don't think that it's really suitable for our purpose at the moment.
It will be one of Discord, Slack, Mattermost I guess.

I agree sadly. Thanks for the update!


Error: Class 'SendGrid\Email' not found

Hi Team,
We are installed above "yii2-sendgrid" using composer.
And we are getting below error:
Class 'SendGrid\Email' not found
Here is my code;
$sendGrid = Yii::$app->sendGrid;
$attributes = array('name' => "ABC", 'email' => "xyz@example.com");
$message =<EMAIL_ADDRESS>['attributes' => $attributes]);
<EMAIL_ADDRESS><EMAIL_ADDRESS>->setSubject('Thanks')
->send($sendGrid);

it looks like you have autoloading problem or so.

Yes, It's working fine now.
Thank you

@bureddysantosh what did you do to make it work? I'm having the same problem.

@bureddysantosh what did you do to make it work? I'm having the same problem.please help


Bug

Describe the bug
The site is not responsive to mobile devices and should be built with this in mind! I know this is technically a feature but the site should work seamlessly across all devices.
To Reproduce
Steps to reproduce the behavior:

Go to ' view the the site on mobile'
Click on '....'
Scroll down to '....'
See error

Expected behavior
The site should correctly respond to mobile and Tablet devices not only desktop for a improved UI/UX experience
Screenshots
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.
Wallet address
0x88849a3Aa0d305f6Fa1EAC210477715FDA3e54A0

we will add the mobile support at a later stage.
thanks for the report.

we will add the mobile support at a later stage.
thanks for the report.


incorrect container group id

seen on linux
launching a container via docker-compose or visual studio code, files created by the user running the container appear to have a group id that matches the user id and that group id doesn't have a named group
this article has a great discussion about user and group ids
"Running Docker Containers as Current Host User"
https://jtreminio.com/blog/running-docker-containers-as-current-host-user/

completed with commit to dev branch referenced above

completed with commit to dev branch referenced above


Replace pycodestyle with Ruff

Pydocstyle was deprecated in favor of Ruff. Ruff has the exact same lints via the D ruleset.
As before, we only run the doc checks on source code and not tests.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>1
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>4:
0.0%

Covered Lines:
2330

Relevant Lines:
2330

💛  - Coveralls


[prism] Report prism changes.

Add CHANGES.md notes about

Prism binaries being published.
Prism supporting synthetic ProcessingTime timer handling.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

R: @kennknowles

R: @damondouglas


RefreshControl refresh indicator is not shown on iOS

Description
The refresh indicator for <RefreshControl /> is not shown in<ScrollView> and related components like <VirtualizedList /> and <FlatList /> etc.. when refreshing is initially set as true (i.e.  refreshing={true}).
This happens in both, when using Expo Go and when using the build iOS app.
Version
0.69.7, 0.70.6
Output of npx react-native info
System:
OS: Linux 5.15 Gentoo Linux
CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
Memory: 16.15 GB / 62.44 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.17.0 - ~/.config/nvm/versions/node/v16.17.0/bin/node
Yarn: 1.22.19 - ~/workspace/fgs/mobile/node_modules/.bin/yarn
npm: 2.15.12 - ~/workspace/fgs/mobile/node_modules/.bin/npm
Watchman: Not Found
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: 11.0.15 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.6 => 0.69.6
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
<ScrollView
        contentContainerStyle={styles.scrollView}
        refreshControl={
          <RefreshControl
            refreshing={true}
            onRefresh={onRefresh}
          />
        }
      >
        <Text>
        This refresh indicator is not shown on iOS
        </Text>
      </ScrollView>

Snack, code example, screenshot, or link to a repository
https://snack.expo.dev/@danielmorlock/refresh-indicator-bug

I'm also having this issue. To resolve I'm setting refreshing boolean after 10 mills
const fetchData = ()=>{
    this.setRefreshing(true)
    //... data fetching logic
}

React.useEffect(() => {
    setTimeout(() => {
        state.fetchData()
    }, 10)
}, [])

I am also having this issue, the RefreshControl will not show when initially set to true. It will only show on pull to refresh

I am also having this issue, any update?

I was able to work around with setTimeout as @ngima mentioned above:
import { useEffect, useState } from 'react';
import {
  RefreshControlProps,
  RefreshControl as RefreshControlRN,
} from 'react-native';

export function RefreshControl({ refreshing, ...other }: RefreshControlProps) {
  const [isRefreshing, setRefreshing] = useState(false);
  useEffect(() => {
    setTimeout(() => {
      setRefreshing(refreshing);
    }, 200);
  }, [refreshing]);
  return <RefreshControlRN refreshing={isRefreshing} {...other} />;
}

It’s still a problem…

I am experiencing this exact problem. In the code example (or in your app), if you pull the screen down a bit you can see the loading icon so it's there, just not visible.

same

I have implemented a workaround by programmatically scrolling the view slightly, which makes the hidden refresh control visible on iOS.
import React, { useRef, useState, useEffect } from 'react';
import { ScrollView, RefreshControl } from 'react-native';

const App = () => {
  ....
  const [loading, setLoading] = useState<boolean>(true);

  const scrollRef = useRef<ScrollView>(null);

  useEffect(() => {
    setTimeout(() => {
      scrollRef?.current?.scrollTo({ y: -50 });
    }, 500);
    fetchData();
  }, []);

  const fetchData = () => {
    setLoading(true)
    // Your refresh logic here
    setLoading(false)
  };

  ....

  return (
    <ScrollView
      ref={scrollRef}
      refreshControl={
        <RefreshControl
          refreshing={loading}
          onRefresh={fetchData}
        />
      }
    >
    ....
    ....
    </ScrollView>
  );
};

The above code uses a useRef to hold a reference to the <ScrollView>. In the useEffect, it programmatically scrolls the view slightly upwards after a delay, which makes the refresh control visible.
This workaround ensures that the refresh control is displayed properly on iOS when the refreshing prop is true without pulling.

We are having the same issue with FlashList. It's also reported on that repo but the issue is not of the library but of react native.
https://github.com/Shopify/flash-list/issues/875

Working fine for me with recent unreleased fixes. (tested with 0.75.4)
https://github.com/facebook/react-native/pull/46655
https://github.com/facebook/react-native/pull/46628

Facing this issue currently as well.
react native : 0.73.6
flashlist: 1.7.0

This issue has been reported before (and sometimes incorrectly closed): #24855 & #37308 & #36173 & #24530
Some of those issues are related to a FlatList, while this story is related to a ScrollView.
For us this is still reproducible:
  expo-env-info 1.2.1 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 22.6.0
      Yarn: 1.22.22
      npm: 10.9.1
    IDEs:
      Android Studio: AI-242.23339.11.2421.12550806
    npmPackages:
      expo: ~52.0.14 => 52.0.14
      expo-router: ~4.0.11 => 4.0.11
      react: 18.3.1 => 18.3.1
      react-dom: 18.3.1 => 18.3.1
      react-native: 0.76.3 => 0.76.3
      react-native-web: ^0.19.13 => 0.19.13
    Expo Workflow: bare

+1

Having the same issue with Flatlist and Flashlist


Add support for ClientTrustConfig

Description

A ClientTrustConfig message wraps a TrustRoot and a SigningConfig, the latter specifying which URLs should be contacted to fetch a signing certificate, fetch an identity token, log a signing event, and get a signed timestamp.
This standardizes support for bring-your-own-infrastructure without the need to configure each client or bake in any URLs from the public good infrastructure.

Created a PR for SigningConfig. We can omit ClientTrustConfig for now since the TUF root won't ship this file, this would only be for private use cases where both signing and verification configs are distributed by the same entity.


Add evcc to latest

RE-CHECK!

Automated adapter checker
ioBroker.evcc

:thumbsup: No errors found

[ ] :eyes: [W400] Cannot find "evcc" in latest repository

Add comment "RE-CHECK!" to start check anew

Hi,
thank you for your submission. Here is some review feedback,

Please activate Github actions so that testing can run and make sure it is green
the admin UI src is not committed?
please add the channel objects too for the statis info/status objects
makes is sense to have port in IP? https://github.com/Newan/ioBroker.evcc/blob/main/io-package.json#L98 This is uncommon ... maybe better have two config fields?
even if local cinnection because of the intervalb better add a timeout and amake sure interval is not smaller then timeout

Thank you for checking and adjusting,
Ingo

@Apollon77
"please add the channel objects too for the statis info/status objects" -> https://github.com/Newan/ioBroker.evcc/blob/main/src/main.ts#L155 pls a hint what is to do?
"the admin UI src is not committed?" i see the admin folder in the repo?

1.) was referring to https://github.com/Newan/ioBroker.evcc/blob/main/io-package.json#L101 ... you have no info channel object and no status channel object. Or do you add that in code?
2.) Yes admin folder is there but just the "build" folder .. not the src folder

i use only jsonConfig now, this are old data -> delte it

@Apollon77  why i musst have info.status and info.channel? Other Adapter have this also not:
https://github.com/TA2k/ioBroker.fronius-solarweb/blob/master/io-package.json

You miss this one !! https://github.com/TA2k/ioBroker.fronius-solarweb/blob/master/io-package.json#L90-L97

fixed

Then we are fine here too. Please release (and remove nodejs 12 from testing, then it should be ok again). and then I can merge

@Apollon77 fixed and release a new version. Thanks


Remove feature gate for Encoding

Encoding is gated under a feature "experimental-lazy-reader". This needs to be removed for 1.0 release.
Encoding and LazyEncoder share some similar functionalities and needs to be modified to keep only one of these.

The practical effect of this change will be that Element::read_* and Element::write_* methods will be able to accept a ReadConfig and WriteConfig respectively, allowing users to (e.g.) specify a Catalog or request a particular version of Ion. These types also future-proof these methods by giving us an avenue by which to add more options without modifying the API.

If we remove the feature gate for Encoding, then we need to add a feature gate specifically to the Ion 1.1 encodings (until the Ion 1.1 spec is finalized). Currently, the Cargo.toml file does not list any feature for Ion 1.1.

Interestingly, I've learned that it's possible to expose a type that's generic over E: Encoding without making Encoding itself pub, which is nice. This is currently the case with WriteConfig<E: Encoding>. In light of that, I'm closing this for now. If anyone disagrees, please re-open this and we'll discuss.


TSDB Compaction failures bring to OOM shutdown

Bug Report
What did you do?
Using prometheus with 2000+ targets, 41k+ samples/sec, 10Mbit/s downlink
What did you expect to see?
Stable work
What did you see instead? Under which circumstances?
Compaction failures, increasing RAM consuming, wal log growth, OOM error shutdown
Environment

System information:

Linux 4.4.0-137-generic x86_64

4CPU, 32GB RAM, Local TSDB data (SSD)

Prometheus version:

prometheus, version 2.4.3 (branch: HEAD, revision: 167a4b4e73a8eca8df648d2d2043e21bdb9a7449)
  build user:       root@1e42b46043e9
  build date:       20181004-08:42:02
  go version:       go1.11.1

TSDB launch arguments

--storage.tsdb.min-block-duration=30m --storage.tsdb.max-block-duration=2h --storage.tsdb.retention=1d

Prometheus configuration file:

---
# yamllint disable rule:line-length
global:
  scrape_interval: 30s
  evaluation_interval: 30s
  scrape_timeout: 20s

alerting:
  alertmanagers:
    - timeout: 1s
      static_configs:
        - targets:
          - alertmanager-1:9093
          - alertmanager-2:9093

rule_files:
  - /opt/prometheus/rules/dynamic-rules.yml

scrape_configs:
  - job_name: consul-services
    consul_sd_configs:
     - server: consul-server
       token: token
       datacenter: prod
       tag: prometheus_exporter
[  - job_name: job-name
    scrape_interval: 30s
    static_configs:
      - targets:
          - target-#
        labels:
          group: project
          env: prod
          service: service
    relabel_configs:
      - source_labels: [__address__]
        regex: ^(.*):\d+$
        target_label: instance
        replacement: $1
        action: replace
]

Logs:

Oct 18 09:16:52 vm-prometheus-prod-app01 prometheus[17227]: level=error ts=2018-10-18T06:16:52.967557383Z caller=db.go:305 component=tsdb msg="compaction failed" err="persist head block: write compaction: add series: symbol entry for \"service_acquisition_latency_ms><>Mean: 0.015672376193069618\" does not exist"

Additional Info
We use two prometheus servers with the same configuration (targets, consuld_sd_config, alertmanagers, etc). Luckily the compaction breaks on one of them and both of them are not affected at the same time.

For the following graph we didn't detect any compaction failed errors in logs:

We've lived very long with 16GB RAM per node and then it went out of control.
If some additional metrics are needed - we can take them.

This seems related to https://github.com/prometheus/prometheus/issues/4110.  Getting pprof heap profiles during the compaction would help to debug the issues.

@SuperQ Hello, thanks for your answer. Generally we detect compaction failures at about 16Gb ram consuming (50% of total). Do you think it might need so much memory for compaction process?

Yes, right now compactions do need quite a lot of memory.
One thing you're doing that's making it worse is setting the --storage.tsdb.min-block-duration=30m. I suggest you remove this flag and using the default 2h. Sample chunks are 120 samples long. Your scrape_interval is 30s, which means your writing out 60 samples in a 120 sample chunk, which wastes a ton of memory and storage space.
Also, if you set min-block and max-block to the same number, you will spend no time doing additional compactions.

@SuperQ , hi! I am a colleague of @ashepelev .
How can I give you the archive with pproff debug?

The easiest way is to attach it as a file to this issue.

prom_debug.tar.gz
Here pprof debug for two nodes.

@SuperQ I think the problem here is different.
The error is when trying to persist the head into a block and not when trying to join 2 or more blocks together.
Oct 18 09:16:52 vm-prometheus-prod-app01 prometheus[17227]: level=error ts=2018-10-18T06:16:52.967557383Z caller=db.go:305 component=tsdb msg="compaction failed" err="persist head block: write compaction: add series: symbol entry for \"service_acquisition_latency_ms><>Mean: 0.015672376193069618\" does not exist"
I think the problem here is with some strange character in your series labels.
service_acquisition_latency_ms><>

If that is the case please let me know the series label that caused this so we can add some sanitization somewhere.

@krasi-georgiev hi!
The fact that this happens at different labels. Eg, yesterday:
 prometheus[9131]: level=error ts=2018-10-29T15:47:27.462714041Z caller=db.go:305 component=tsdb msg="compaction failed" err="persist head block: write compaction: add series: symbol entry for \"/var/lib/docker/overlay2/ea206854728cc1ff29dfc5a6f7c7b2e5cb98dd767c96cef3ba1b6481371070b2/merged\" does not exist"
This was due to a different label.

@krasi-georgiev, hello,
I guess that compaction failed errors is not the root but the consequence of the problem. We detected that theoretically we should be fine with 32GB RAM installation for our amount of metrics (30m min/max block, 1d retention, 60s global scrape interval). But the truth is we cannot make any more pressure on prometheus. Changing any of this settings causes OOM. After restart it starts to read WAL, starts compaction again and OOM again. I've tried to find out some prometheus metrics which will help me to resolve this issue, but all of them are just fine: I see head flushing every 30m, I see head time window size behaves just normally. I don't see any exceptions in prometheus debug mode. I've looked across other prometheus RAM issues and figured out several things to check:

Heave rules. I've searched across rules that were added when the problem started (yes, the problem appeared immidiately, it was not the long way of growing RAM). The heavist one is 125ms, while others are 10-20ms evaluation time.
We use pushgateway, but there are few metrics total (~100)
Dynamic labels. When the exporter sends different label KV pairs all the time. That causes creating new timeseries and might be hard for it.
I've tried to detect the current in-memory size and the number of samples with the help of prometheus metrics but I couldn't calculate that. Anyway I believe the problem is somewhere around samples/timeseries and processing of them, but I can't diagnose which one can cause this, maybe there are some advices?

The problem I see is completely different.
The head is the in memory holder of the ingested metrics and these are flushed to disk periodically to free up the memory.
Now this flush fails so the head grows indefinitely until eventually it eats all the memory and gets killed.
We need to figure out why are you getting the symbol entry error.
Back to my original question, did you change anything recently? New exporter, new app or anything new in the metrics side, relabelling etc.
Anything in relations to series labels.
symbols are all strings of the series label, name pairs. so I think the problem is that somehow these are messed up. Either when we add them or read them from the  head. Probably caused by some weird character somewhere which we need to sanitise.

adding an additional series label/name pair to an existing application could also cause this.

Another thing that can help if you could upload the data/wal folder somewhere and share the link with me privately kgeorgie at redhat.com

@fabxc 	, @gouthamve 	any other suggestion that might cause this?

I guess we figured out the problem.
After long investigation over scraping metrics and prometheus metrics we've looked inside data/<block_id>/index and found out that it is 3x size comparing with chunks size which is abnormal. Thanks to it's text format we were able to inspect the contents. We've found out that some labels have lots of values (hash sums, ids, etc.). Also we've found metrics coming from wrong configured JMX-exporter, which pass metrics value inside label value. After configuring droping of this metrics we've detected that RAM usage decreased significantly.
Currently we return pre-failure configuration: min.block=2h max.block=12h with 30d retention and 30s global scrape interval. Both of our nodes feel fine, using 30% of RAM, while it was catching OOM on min.block=30m max.block=30m retention=60s and scrape_interval=60s before fixing.
Thanks everyone for assitance and your tips.
Hope it will help you to figure out your high OOM usage reasons.

increased memory usage is expected, but not the original error you have posted so I still think that some sanitization is missing somewhere.
can you maybe post a sample of a scrape in the text format (removing all confidential info) so It gives me some starting point to dig deeper into this?

ping @ashepelev

@krasi-georgiev
Sorry for not answering.
As I've said before we have resolved a problem by blacklisting metrics with lots of label values.
Here's an example:
http_metric{env="env",group="proj",instance="host.company.com",job="jobname",name="200><>FifteenMinuteRate: 0.0011530746427113085",service="service",type="http_metric"}

As you can see the label name is filled with metric value.
This happend because of wrong jmx_exporter config:
rules:
-   labels:
        name: $1
        type: http_metric
    name: http_metric
    pattern: ^com.*, name=(.*).*$

We had lots of such samples in scrape. That lead to incredible block index-file growing.
That correlates with initial error in prometheus logs:
Oct 18 09:16:52 vm-prometheus-prod-app01 prometheus[17227]: level=error ts=2018-10-18T06:16:52.967557383Z caller=db.go:305 component=tsdb msg="compaction failed" err="persist head block: write compaction: add series: symbol entry for \"service_acquisition_latency_ms><>Mean: 0.015672376193069618\" does not exist"

Generally each scrape produced new values. I guess prometheus wasn't ready for that.

Closing at it was due to unbounded label cardinality.


Move queries to SFC

Single file components are best practice.
Could it be used also for GraphQL? Similarly like here:

https://github.com/wheatjs/vite-plugin-vue-gql
https://apollo.vuejs.org/guide/apollo/

@iBobik The decision to forego allowing writing GraphQL documents (queries / mutation) within the SFC is at the heart of this module, and is also one that I don't see us changing anytime soon.

Aha, so it is strategic decision. Could you, please, explain it, so I can learn why I should not do it?Honza Pobořil💬Signal17. 9. 2022 v 12:20, Conrawl Rogers @.***>:
@iBobik The decision to forego allowing writing GraphQL documents (queries / mutation) within the SFC is at the heart of this module, and is also one that I don't see us changing anytime soon.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>


BUG: "UnknownError The user denied permission to access the database." when opening using incognito

---name: Bug report
about: Create a report to help us improve
title: 'Received UnknownError The user denied permission to access the database.' when opening project in incognito tab via Google Chrome.
labels: ''
assignees: ''

Describe the bug
I received an error when attempting to open a nodejs StackBlitz project in an incognito tab via Google Chrome. When I open the url via incognito, I see the StackBlitz message, 'Unable to connect to local.webcontainer.io', which I'd expect. However, when selecting the open button or project title link, a new window opens with an error, 'UnknownError The user denied permission to access the database'.
Link to the blitz that caused the error
https://express-in-browser--5000.local.webcontainer.io/
To Reproduce
Steps to reproduce the behavior:

Go to https://express-in-browser--5000.local.webcontainer.io/
Click on either 'Open Project' or option 1 with your project title link.
Open up console in new window
See error

Expected behavior
User project should open with no non-logged in state.
Version of webcontainer
Hash: 7286dbe8d47d3473cde7be488b7d048fb59b05f2
Screenshots

**Desktop (please complete the following information):**![image](https://user-images.githubusercontent.com/37988868/119187816-d5f54f00-ba47-11eb-9daf-e4d0c30c21a8.png)Browser name  = Chrome
Full version  = 90.0.4430.212
Major version = 90
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
performance.memory = {
  totalJSHeapSize: 53737633,
  usedJSHeapSize: 51401537,
  jsHeapSizeLimit:<PHONE_NUMBER>
}
Additional context
Add any other context about the problem here.

Hi!
🙏 for reporting. This does seem like a bug on our end!

I'm getting the same error while trying to use the JS<EMAIL_ADDRESS>

Hi @umairhm!
It looks like we successfully shipped a fix for this. Here is my example: https://express-in-browser-hvwpdp--5000.local.webcontainer.io/
Feel free to let us know if you have any more issues!

@HeyGarrison @KwintenP Thank you both for the updates. I tried a few days back and got the same issue. I suspect it may be due to an Organization repository that I am trying to use. Please confirm if that is the case and how can I utilize an organizational repository, if possible.

@umairhm can you open a new issue with your specific repro steps? The original repro steps here don't include anything git related. Thanks for your help!!

Hello @HeyGarrison ,
I encountered the same issue in Chrome version 115.0.5790.110's incognito mode. In my environment, I am using an iframe to load a URL from a different domain. The problem occurs only in incognito mode, and it works fine outside of incognito mode. Can you please advise on how to resolve this?

Sorry to bring this up again but the jsfiddle link in the homepage doesn't seem to work and brings up the same error on Brave but works on Safari?
https://jsfiddle.net/3tf5r0cu/


WARN	Keyword 'Capture Page Screenshot' could not be run on failure: NoSuchWindowException: Message: u'Unable to get browser'

Originally submitted to Google Code by zac4l... on 25 Jan 2014

While executing the test cases on IE 9,10 and 11. I am getting  a warning messagwe "Keyword 'Capture Page Screenshot' could not be run on failure: NoSuchWindowException: Message: u'Unable to get browser' "
However, it's working well on chrome.
I am using
Selenium2Library,RobotFramework 2.8.3
Python 2.7.5 64-bit and Windows 7 64-bit
Can you please assist me in resolving this issue?
Cheers.
Zac

Originally submitted to Google Code by @pekkaklarck on 13 Aug 2015

This tracker is for the old and deprecated SeleniumLibrary, not for Selenium2Library.


Update deps for node12 support

Followed these:
https://github.com/nodejs/nan/issues/849
https://github.com/nodejs/node-gyp/issues/1763

@karelhala done - good catch!

Codecov Report

Merging #77 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #77   +/-   ##
=======================================
  Coverage   16.92%   16.92%
=======================================
  Files          12       12
  Lines          65       65
  Branches        5        5
=======================================
  Hits           11       11
  Misses         51       51
  Partials        3        3

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 da690c0...4e14fe6. Read the comment docs.


Refresh protobuf.

Signed-off-by: Henner Zeller<EMAIL_ADDRESS>

Codecov Report

Merging #1158 (6071c05) into master (e098c2e) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1158   +/-   ##
=======================================
  Coverage   92.86%   92.87%
=======================================
  Files         337      337
  Lines       22745    22744    -1
=======================================
  Hits        21123    21123
+ Misses       1622     1621    -1

Impacted Files
Coverage Δ

verilog/tools/kythe/kythe_proto_output.cc
0.00% <0.00%> (ø)

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 20efd66...6071c05. Read the comment docs.

Will need some work to compile with kythe, and the actual problem I'd like to see fixed (-Wstringop-overflow warning with gcc-11) is even in latest protobuf. Will work with protobuf team first to get that resolved.


Provide language selection for TG

Description
To increase Teragrep's accessibility it should be translated to other languages (such as in Finnish) as well.
Use case or motivation behind the feature request
There has been a request to provide Teragrep software in Finnish language.
There are (probably) two ways to achieve this:

Provide a select for language in profile settings
Provide a separate installment for Finnish and English UI

Related issues

Additional context

see related issue in zep_01 https://github.com/teragrep/zep_01/issues/18


Wrong indentation of comments when semicolons are missing

Input
The code looked like this before beautification:
f()
/* a */

Expected Output
The code should have looked like this after beautification:
f()
/* a */

Actual Output
The  code actually looked like this after beautification:
f()
    /* a */

Steps to Reproduce

Open http://jsbeautifier.org/
Paste the code
Hit the beautify button
Observe the misalignment of /* a */
Add a ; for f()
Hit beautify again
Observe the correct alignment of /* a */

Environment
OS: N/A
Settings
The default settings for http://jsbeautifier.org/
This is the options argument supplied to the js_beautify function:
{
"brace_style": "collapse",
"break_chained_methods": false,
"comma_first": false,
"e4x": false,
"end_with_newline": false,
"indent_char": " ",
"indent_inner_html": false,
"indent_scripts": "normal",
"indent_size": "4",
"jslint_happy": false,
"keep_array_indentation": false,
"max_preserve_newlines": "5",
"preserve_newlines": true,
"space_before_conditional": true,
"unescape_strings": false,
"wrap_line_length": "0"
}

There is a missing semicolon. Does it work with this?
f();
/* a */

Yes it does (see the title and repro steps), but I'd expect the indentation to be the same. Semicolons shouldn't affect indentation since they're optional. I don't re-indent my code when I add/remove ; from my code.


Add FQDN policy troubleshooting guide

At a glance, I don't see good documentation for debugging this case here:
https://docs.cilium.io/en/v1.8/troubleshooting/
One of the common cases for FQDN policy is where the ToPorts section of the policy doesn't include the L7 DNS rules:
https://docs.cilium.io/en/v1.8/policy/language/#example
It would be great to have a guide that takes from app behaviour (connect times out) through cilium monitor debugging with example output similar to:
xx drop (Policy denied) flow 0x4c7f85a0 to endpoint 0, identity 15266->2: <IP_ADDRESS>:34534 -> <IP_ADDRESS>:22 tcp SYN

Could potentially use cilium identity get to identify the source/destination, possibly use cilium policy trace to figure out whether the rules are applying.
In this case, if we are attempting to allow the traffic via FQDN policy, and the destination identity is 2, that indicates that the destination is reserved:world rather than some CIDR identity (16xxxxxx). This means that the FQDN policy is not properly matching At least for the FQDN example this logically leads to ensuring that the DNS L7 policy applies properly to the DNS traffic from the pods.

Example app behaviour:
bash-5.0# curl -vvv cilium.io
*   Trying <IP_ADDRESS>:80...

Then it just times out after some time.

@joestringer I would like to take this up. Any pointers that you can give me to start this?

@chowmean awesome, sure.
I would start by following the FQDN policy getting started guide, but when you reach the section around applying the policy, remove this section:
      rules:
        dns:
        - matchPattern: "*"

If you remove this section of the policy, the policy will not work as intended. At that point, you can try some of the commands mentioned in the issue description above to observe how Cilium behaves and get example command output.
Then to write the section, assume that you're in this situation to begin with; what kind of commands could you run to establish that this is the problem? (Mostly rewording the stuff in the description above), then towards the end, edit the policy to include the above lines. Once the policy has been updated to include these lines, you should be able to re-run the commands from the getting started guide and they will work.


GitLFS disable lfs pull

Is your feature request related to a problem? Please describe.
We have Git LFS in our repo, and you recently added support for GitLFS which is great. The problem is that it consumes all of our bandwidth, because it pulls all of our repo on every call to gitStream.
Describe the solution you'd like
It would be great to have a flag to allow us to disable git LFS pull, assuming we don't wish any of the cm logic to apply of changed LFS files. Another option is do not pull them by default.

BTW, we completely stopped working with gitStream for now since it ate up all of out git LFS quota

Sorry to hear that @SiviP-Glossai I'll update here once we have better support for Git LFS


PBTS: do we need the Proposal when the proposed block received a Polka?

Originally posted by @cason in https://github.com/cometbft/cometbft/pull/2018#discussion_r1458778006:
  A note to remember: we are forcing a `Proposal` to be received to run the prevote logic. While this is necessary when POLRound == -1, it might not be otherwise.

The PBTS-enabled consensus code adds the requirement of receiving and accepting a Proposal to precommit a block:
https://github.com/cometbft/cometbft/blob/1733219c2fec4be370b672081f8daf84b768a0e9/internal/consensus/state.go#L1619-L1621
This requirement is not present in the original code, in the main branch,  where the absence of a valid proposal (cs.Proposal) does not cause the node to precommit nil. The reason for which is that a node may realize that a proposal block has become valid, because it received a Polka, in the case the blockID in the following code:
https://github.com/cometbft/cometbft/blob/1733219c2fec4be370b672081f8daf84b768a0e9/internal/consensus/state.go#L2374-L2376
What happens here is that the node starts "looking" for this block,  by updating its cs.ProposalBlockParts field. There are two possibilities to consider here:

The node received a Proposal for a block that doesn't match the blockID that became valid. This happens when a Byzantine proposer produces multiple proposals in a round. This is not the case considered int this issue, since the cs.Proposal should be set, probably for a different block, but the code doesn't care.
The node has not received any valid Proposal, so it is not building any block. This is the scenario addressed here.

The general point here is that if we received a Polka for a block, it does not matter the (first valid) Proposal we received, not even if we have not received any Proposal. This block has been deemed valid by 2/3+ validators, so there is no reason for not precommiting it. Note that we use the same rationale in PBTS when we receive a Proposal backed by a Polka in a POLRound: we don't check the block time again, as it was accepted by a quorum of validators.
With this in mind, this additional check added to the precommit round step does not make sense:
https://github.com/cometbft/cometbft/blob/1733219c2fec4be370b672081f8daf84b768a0e9/internal/consensus/state.go#L1625-L1628
While it is probably the only reason for requiring cs.Proposal != nil to get to this point. My proposal is then:

[ ] Remove the cs.Proposal != nil condition to precommit a block (cs.enterPrecommit)
[ ] Remove the cs.Proposal.Timestamp.Equal(cs.ProposalBlock.Header.Time) check at the same step

For the record, I had the concern that, if we remove the checks for nil we might risk calling ExtendVote with a nil block. After synchronous discussion with @cason , I'm 100% convinced this is not a problem here, because of the (weird) implementation of HashesTo.