Wrong folder detected.

What folder I need to choose lol

I don't understand what folder are you talking about. Are you trying to compile the app, or run it?

I don't understand what folder are you talking about. Are you trying to compile the app, or run it?

Im ekix7 second acc
Im talking about the running

I assume you installed it from pre-built binaries and you are talking about folder in the last step of the instructions. You just have to extract one sample from the samples.zip and choose the extracted folder on app startup.

I assume you installed it from pre-built binaries and you are talking about folder in the last step of the instructions. You just have to extract one sample from the samples.zip and choose the extracted folder on app startup.

thx I will send a video about the problem next day

I assume you installed it from pre-built binaries and you are talking about folder in the last step of the instructions. You just have to extract one sample from the samples.zip and choose the extracted folder on app startup.

oh it worked kinda but when I click start button (Benchmark.app) app goes not responding then it closes itself.

I tried iNDS.app it was loading but then crashed

I don't know what is iNDS.app, is that some external iOS application?
Anyway, IpasimBenchmark.app should work just fine. Let's see what might be the problem.

What Windows build do you have?
Do you see any error messages logged? When you open the app, it should open two windows—one for the app itself and one for log messages. Can you post a screenshot or write here what it says in the log window before it crashes?
Do the other sample apps work for you (HelloWorld.app and SampleApp.app)?

I don't know what is iNDS.app, is that some external iOS application?
Anyway, IpasimBenchmark.app should work just fine. Let's see what might be the problem.

What Windows build do you have?
Do you see any error messages logged? When you open the app, it should open two windows—one for the app itself and one for log messages. Can you post a screenshot or write here what it says in the log window before it crashes?
Do the other sample apps work for you (HelloWorld.app and SampleApp.app)?

None of samples not worked but only hello world worked
my Build is: Windows 10 21H1 x64

I don't know what is iNDS.app, is that some external iOS application?
Anyway, IpasimBenchmark.app should work just fine. Let's see what might be the problem.

What Windows build do you have?
Do you see any error messages logged? When you open the app, it should open two windows—one for the app itself and one for log messages. Can you post a screenshot or write here what it says in the log window before it crashes?
Do the other sample apps work for you (HelloWorld.app and SampleApp.app)?

Benchmark not worked tho

OK, your Windows build seems fine, that shouldn't be a problem. Can you please post the logs? Otherwise, I am unable to determine where the problem might be.


Mobile - Disable button Stake with Liquid staking Parallel

Describe the bug
Disable button Stake with Liquid staking Parallel

Note:  Fix bug show liquid staking on Earning option screen in case open app from staking reward site

Version test: https://www.diawi.com/qrcode/link/Nhcmey
Device test: IP 11
Validation passed in case:

Disable button Stake

Fix bug show liquid staking on Earning option screen in case open app from staking reward site

Version test: https://www.diawi.com/qrcode/link/Nhcmey
Device test: IP 11
Validation passed in case:

Disable button Stake

Fix bug show liquid staking on Earning option screen in case open app from staking reward site


Improved Russian translation.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Wouldn't it be more productive to create one PR instead of many? :thinking:

I think it would be more productive. I thought one fix one commit.


Reg/drone/serice/battery

Supersedes #75.

Codecov Report

Merging #76 (b3dd84f) into master (4c48468) will increase coverage by 0.27%.
The diff coverage is 54.54%.

@@            Coverage Diff             @@
##           master      #76      +/-   ##
==========================================
+ Coverage   85.37%   85.64%   +0.27%
==========================================
  Files          17       17
  Lines         506      641     +135
==========================================
+ Hits          432      549     +117
- Misses         74       92      +18

Impacted Files
Coverage Δ

src/types/uavcan/node/ExecuteCommand_1_0.hpp
100.00% <ø> (ø)

src/types/uavcan/node/Health_1_0.h
88.09% <ø> (+3.24%)
:arrow_up:

src/types/uavcan/node/Heartbeat_1_0.hpp
100.00% <ø> (ø)

src/types/uavcan/node/ID_1_0.hpp
100.00% <ø> (ø)

src/types/uavcan/node/Mode_1_0.h
88.09% <ø> (+3.24%)
:arrow_up:

src/types/uavcan/node/Version_1_0.h
81.48% <ø> (ø)

src/types/uavcan/node/Version_1_0.hpp
100.00% <ø> (ø)

src/types/uavcan/node/ExecuteCommand_1_0.h
79.09% <30.00%> (ø)

src/types/uavcan/node/ID_1_0.h
75.55% <33.33%> (ø)

src/types/uavcan/node/Heartbeat_1_0.h
75.00% <41.66%> (ø)

... and 8 more

Continue to review full report at Codecov.

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


OutBoxKit Logo

PNG for Preview
This has a white background.

SVGs

Got it, many thanks for the assistance! 🙂


[build] Support building platform code without examples and adapt generic sdk_config.h

[build] Added --with-platform configure option to enable building the platform libraries
without building the example applications or any supporting libraries used solely by the
examples.

[nrf528xx] Modified the nrf528xx-specific makefiles such that Nordic SDK code located in
third_party/NordicSemiconductor is only built/referenced when building the example
applications.  When building just the platform libraries, the caller of configure is
expected to provide the correct arguments to use an external copy of the Nordic nRF5 SDK.
An exception to this is the 802.15.4 radio driver, which is always built using the sources
in third_party/NordicSemiconductor/drivers/radio.

[nrf528xx] Made various minor edits to #include statements in the nrf528xx platform code.
This was necessary because of the difference in directory structure between the code in
third_party/NordicSemiconductor and that in the formally published Nordic nRF5 SDK.

[nrf528xx] adapt generic sdk_config.h file from nRF5 SDK
Platform code configuration definitions can now be supplied in "app_config.h" file.

Currently we have disable-excutables to disable building example apps. Can it solve the part of the problem? If so, it might be possible to keep changes within nordic platform itself. Thoughts?

@bukepo I think it could be done, however that would change the behaviour of the --enable-executable flag, because it only disables the examples.
Perhaps the --with-platform flags for each platform could be consolidated into one, for example --with-external-dependencies and the --enable-executable would be set to no to achieve the same effect.

--with-platform is intended to specify which platform layer code to build.  Used by itself, it builds the target's platform layer code only, without building any target-specific support code present in third_party.  This is intended as a general purpose feature for all targets, for when developers are building applications using different external components and different configurations than those chosen for the OpenThread examples.
--enable-executable merely controls whether to build executables of any kind.  In my opinion it would obscure its purpose to have it also control whether third_party code is built.
I don't see how --with-external-dependencies (with no argument) would work.  By itself there would be no indication of which platform layer code to build.  --with-external-dependencies=target could work, but its meaning is super unclear; e.g. if you specify --with-external-dependencies=nrf52840 by itself, what gets built?  platform code?  the example apps?  third_party libraries?  The name of the option gives no clue.

Is it necessary to let both --with-example and --with-platform accept a platform name? How about:

Rename --with-example to --with-platform
Remove --enable-excutable, add --enable-example-app, --enable-tools

Rename --with-example to --with-platform
Remove --enable-excutable, add --enable-example-app, --enable-tools

This will break all down-stream build systems, which seems highly undesirable.


Post order traversal java goodie

@miorel I am done with the implementation. But snapshot tests are failing. I couldn't figure out the issue there. See attached screenshots.

Addresses #173.

Thanks @utsavatwork! The problem with the health report is happening because of how we package the source code into the goodies you can see in the web app. For the TypeScript and JavaScript code we have the benefit of a proper parser, but for Java we are using a naive system that makes a lot of assumptions. You can see the code for this system in the file workspaces/adventure-pack/src/scripts/package-goodies/java/splitCodeIntoClasses.ts which is also what is throwing the error.
The error is happening because we are enforcing that there is no code outside of a class. Since the system doesn't understand multiline comments, it thinks that the docblocks on the classes are code, and complains about them. We should fix that in the future, so that docblocks work correctly, but in the meantime I would suggest:

Let's remove the docblock on the AP class. AP, which is short for "Adventure Pack" is supposed to be a catch-all class for any static methods that don't have a better home. When the website packages multiple goodies together, it merges the body of all the different AP classes into one. So it won't be just a post-order binary tree traversal implementation.

As a workaround for the TreeNode class, move the docblock inside the class for now. If you look in workspaces/adventure-pack/goodies/java/src/traverse_in_order/AP.java you'll notice there's already a TODO comment mentioning that we should support comments outside a class during code extraction.

As a bonus, if you feel like it, feel free to create an issue mentioning this problem so that we can plan to fix this soon 😄

Thanks @utsavatwork! The problem with the health report is happening because of how we package the source code into the goodies you can see in the web app. For the TypeScript and JavaScript code we have the benefit of a proper parser, but for Java we are using a naive system that makes a lot of assumptions. You can see the code for this system in the file workspaces/adventure-pack/src/scripts/package-goodies/java/splitCodeIntoClasses.ts which is also what is throwing the error.
The error is happening because we are enforcing that there is no code outside of a class. Since the system doesn't understand multiline comments, it thinks that the docblocks on the classes are code, and complains about them. We should fix that in the future, so that docblocks work correctly, but in the meantime I would suggest:

Let's remove the docblock on the AP class. AP, which is short for "Adventure Pack" is supposed to be a catch-all class for any static methods that don't have a better home. When the website packages multiple goodies together, it merges the body of all the different AP classes into one. So it won't be just a post-order binary tree traversal implementation.
As a workaround for the TreeNode class, move the docblock inside the class for now. If you look in workspaces/adventure-pack/goodies/java/src/traverse_in_order/AP.java you'll notice there's already a TODO comment mentioning that we should support comments outside a class during code extraction.

As a bonus, if you feel like it, feel free to create an issue mentioning this problem so that we can plan to fix this soon 😄

Alright. I'll see.

Thanks @utsavatwork! The problem with the health report is happening because of how we package the source code into the goodies you can see in the web app. For the TypeScript and JavaScript code we have the benefit of a proper parser, but for Java we are using a naive system that makes a lot of assumptions. You can see the code for this system in the file workspaces/adventure-pack/src/scripts/package-goodies/java/splitCodeIntoClasses.ts which is also what is throwing the error.
The error is happening because we are enforcing that there is no code outside of a class. Since the system doesn't understand multiline comments, it thinks that the docblocks on the classes are code, and complains about them. We should fix that in the future, so that docblocks work correctly, but in the meantime I would suggest:

Let's remove the docblock on the AP class. AP, which is short for "Adventure Pack" is supposed to be a catch-all class for any static methods that don't have a better home. When the website packages multiple goodies together, it merges the body of all the different AP classes into one. So it won't be just a post-order binary tree traversal implementation.
As a workaround for the TreeNode class, move the docblock inside the class for now. If you look in workspaces/adventure-pack/goodies/java/src/traverse_in_order/AP.java you'll notice there's already a TODO comment mentioning that we should support comments outside a class during code extraction.

As a bonus, if you feel like it, feel free to create an issue mentioning this problem so that we can plan to fix this soon 😄

@miorel I have pushed the changes according to this.


The UseWithRestEaseClient extension method does not allow to pass the RequestModifier

Description
There is no UseWithRestEaseClient<T> extension method which also allows the RequestModifier, like:
public static IHttpClientBuilder UseWithRestEaseClient<T>(
    this IHttpClientBuilder httpClientBuilder,
    Action<RestClient>? configurer = null,
    RequestModifier? requestModifier = null
)
    where T : class
{
    // ...
}

Can you please add this?
Version Info

RestEase version: 1.5.5
Target framework version: [e.g. net3.1]

The reason for this is that the RequestModifier is passed to a ModifyingClientHttpHandler, which is then configured as the primary HTTP handler using IHttpClientBuilder.ConfigurePrimaryHttpMessageHandler. I therefore only do this is RestEase is the thing creating the IHttpClientBuilder: I don't want to overwrite someone else's primary HTTP message handler.
It would be possible to switch ModifyingClientHttpHandler to inherit from DelegatingHandler, and then we could use it with AddHttpMessageHandler.


Saverr closing immediately

Computer crashed while downloading. When I try and open the program from a shortcut it just closes out while briefly showing up in the taskbar. Windows 10 pro 1903. I can open it from the master folder location but not the shortcut.

I'm super late on replying, but you could just re-install fresh.
Others have made better apps since I created this. I have not used this one, but it looks good if you want to check it out:
PlexRipper


Minor README.md fixes

Had some trouble building plume and found out that it does not build with JDK8. Thought I'd write that into the docs. Also, strange warnings appear when kotlin-reflect is not mentioned as an explicit dependency. Fixed that as well. The README.md text was also a bit outdated.

Shall I close this one then?

Shall I close this one then?

Shall I close this one then?

We can merge it but there are just merge conflicts needed to be resolved first

Shall I close this one then?

We can merge it but there are just merge conflicts needed to be resolved first

Instead of dealing with merge conflicts this has been added in a single commit now

Instead of dealing with merge conflicts this has been added in a single commit now


models: generate toJson method for each model

Purpose of the PR
Spotify models in this package are very useful and can be reusable by developers in theirs projects.
But in my opinion, the method toJson in missing.
In my case, I would like to store some informations in my database, and I need to serialize this spotify models.
With this PR, I add this toJson method for each model using build_runner and json_serializable.

I'm on the fence regarding this one. I get where you're coming from and at one point we also shipped the models with the toJson methods, but since we're not using them anywhere it really is just dead code, apart from getting a worse code quality score on pub.dev.
Probably best to bring your own DTOs and map between them!


Initialise geolocation fields when duplicating content

Fixes bolt/core#2414 for geolocation

Sorry, somehow I didn't notice this PR. Thanks for the fix!
Will create a release right away.

@LordSimal no worries, thanks for accepting it!


CRAS fails to compile

Please paste the output of the following command here: sudo edit-chroot -all
name: sid
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/sid...
crouton: version 1-20210907212903~master:9b281df5
release: sid
architecture: amd64
targets: kde-desktop
host: version 14092.77.0 (Official Build) stable-channel octopus
kernel: Linux localhost 4.14.239-18064-g098890c16791 #1 SMP PREEMPT Sun Oct 3 21:51:12 PDT 2021 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/sid...

Please describe your issue:
After running sudo crouton -r sid -t kde-desktop, It errors out when compiling CRAS with this
Compiling CRAS (i386)...
In function 'wake_aud_thread',
    inlined from 'stop_aud_thread' at libcras/cras_client.c:1394:3:
libcras/cras_client.c:1378:14: error: 'rc' may be used uninitialized [-Werror=maybe-uninitialized]
 1378 |         rc = write(stream->wake_fds[1], &rc, 1);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:45:
libcras/cras_client.c: In function 'stop_aud_thread':
/usr/include/unistd.h:367:16: note: in a call to 'write' declared with attribute 'access (read_only, 2, 3)' here
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
libcras/cras_client.c:1376:13: note: 'rc' declared here
 1376 |         int rc;
      |             ^~
In function 'write_message_to_server',
    inlined from 'cras_client_set_system_mute' at libcras/cras_client.c:2577:9:
libcras/cras_client.c:2160:28: error: 'write' reading 12 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_system_mute':
../src/common/cras_messages.h:183:36: note: source object 'header' of size 8
  183 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_set_system_volume' at libcras/cras_client.c:2566:9:
libcras/cras_client.c:2160:28: error: 'write' reading 12 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_system_volume':
../src/common/cras_messages.h:170:36: note: source object 'header' of size 8
  170 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_set_user_mute' at libcras/cras_client.c:2588:9:
libcras/cras_client.c:2160:28: error: 'write' reading 12 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_user_mute':
../src/common/cras_messages.h:183:36: note: source object 'header' of size 8
  183 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_set_system_mute_locked' at libcras/cras_client.c:2599:9:
libcras/cras_client.c:2160:28: error: 'write' reading 12 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_system_mute_locked':
../src/common/cras_messages.h:183:36: note: source object 'header' of size 8
  183 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_set_system_capture_mute' at libcras/cras_client.c:2610:9:
libcras/cras_client.c:2160:28: error: 'write' reading 12 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_system_capture_mute':
../src/common/cras_messages.h:183:36: note: source object 'header' of size 8
  183 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_set_system_capture_mute_locked' at libcras/cras_client.c:2622:9:
libcras/cras_client.c:2160:28: error: 'write' reading 12 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_system_capture_mute_locked':
../src/common/cras_messages.h:183:36: note: source object 'header' of size 8
  183 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_set_node_attr' at libcras/cras_client.c:3114:9:
libcras/cras_client.c:2160:28: error: 'write' reading 24 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_node_attr':
../src/common/cras_messages.h:225:36: note: source object 'header' of size 8
  225 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_select_node' at libcras/cras_client.c:3127:9:
libcras/cras_client.c:2160:28: error: 'write' reading 20 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_select_node':
../src/common/cras_messages.h:243:36: note: source object 'header' of size 8
  243 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_add_active_node' at libcras/cras_client.c:3140:9:
libcras/cras_client.c:2160:28: error: 'write' reading 20 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_add_active_node':
../src/common/cras_messages.h:259:36: note: source object 'header' of size 8
  259 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_rm_active_node' at libcras/cras_client.c:3153:9:
libcras/cras_client.c:2160:28: error: 'write' reading 20 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_rm_active_node':
../src/common/cras_messages.h:276:36: note: source object 'header' of size 8
  276 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_set_node_volume' at libcras/cras_client.c:3424:9:
libcras/cras_client.c:2160:28: error: 'write' reading 24 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_node_volume':
../src/common/cras_messages.h:225:36: note: source object 'header' of size 8
  225 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_swap_node_left_right' at libcras/cras_client.c:3437:9:
libcras/cras_client.c:2160:28: error: 'write' reading 24 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_swap_node_left_right':
../src/common/cras_messages.h:225:36: note: source object 'header' of size 8
  225 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_set_node_capture_gain' at libcras/cras_client.c:3451:9:
libcras/cras_client.c:2160:28: error: 'write' reading 24 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_node_capture_gain':
../src/common/cras_messages.h:225:36: note: source object 'header' of size 8
  225 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_add_test_iodev' at libcras/cras_client.c:3460:9:
libcras/cras_client.c:2160:28: error: 'write' reading 12 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_add_test_iodev':
../src/common/cras_messages.h:368:36: note: source object 'header' of size 8
  368 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_get_hotword_models' at libcras/cras_client.c:3553:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_get_hotword_models':
../src/common/cras_messages.h:412:36: note: source object 'header' of size 8
  412 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_set_hotword_model' at libcras/cras_client.c:3563:9:
libcras/cras_client.c:2160:28: error: 'write' reading 28 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_hotword_model':
../src/common/cras_messages.h:427:36: note: source object 'header' of size 8
  427 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_client_set_bt_wbs_enabled' at libcras/cras_client.c:3621:9:
libcras/cras_client.c:2160:28: error: 'write' reading 12 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_bt_wbs_enabled':
../src/common/cras_messages.h:472:36: note: source object 'header' of size 8
  472 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_send_register_notification' at libcras/cras_client.c:3643:7,
    inlined from 'cras_client_set_output_volume_changed_callback' at libcras/cras_client.c:3656:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_output_volume_changed_callback':
../src/common/cras_messages.h:485:36: note: source object 'header' of size 8
  485 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_send_register_notification' at libcras/cras_client.c:3643:7,
    inlined from 'cras_client_set_output_mute_changed_callback' at libcras/cras_client.c:3666:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_output_mute_changed_callback':
../src/common/cras_messages.h:485:36: note: source object 'header' of size 8
  485 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_send_register_notification' at libcras/cras_client.c:3643:7,
    inlined from 'cras_client_set_capture_gain_changed_callback' at libcras/cras_client.c:3677:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_capture_gain_changed_callback':
../src/common/cras_messages.h:485:36: note: source object 'header' of size 8
  485 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_send_register_notification' at libcras/cras_client.c:3643:7,
    inlined from 'cras_client_set_capture_mute_changed_callback' at libcras/cras_client.c:3688:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_capture_mute_changed_callback':
../src/common/cras_messages.h:485:36: note: source object 'header' of size 8
  485 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_send_register_notification' at libcras/cras_client.c:3643:7,
    inlined from 'cras_client_set_nodes_changed_callback' at libcras/cras_client.c:3698:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_nodes_changed_callback':
../src/common/cras_messages.h:485:36: note: source object 'header' of size 8
  485 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_send_register_notification' at libcras/cras_client.c:3643:7,
    inlined from 'cras_client_set_active_node_changed_callback' at libcras/cras_client.c:3708:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_active_node_changed_callback':
../src/common/cras_messages.h:485:36: note: source object 'header' of size 8
  485 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_send_register_notification' at libcras/cras_client.c:3643:7,
    inlined from 'cras_client_set_output_node_volume_changed_callback' at libcras/cras_client.c:3719:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_output_node_volume_changed_callback':
../src/common/cras_messages.h:485:36: note: source object 'header' of size 8
  485 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_send_register_notification' at libcras/cras_client.c:3643:7,
    inlined from 'cras_client_set_node_left_right_swapped_changed_callback' at libcras/cras_client.c:3730:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_node_left_right_swapped_changed_callback':
../src/common/cras_messages.h:485:36: note: source object 'header' of size 8
  485 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_send_register_notification' at libcras/cras_client.c:3643:7,
    inlined from 'cras_client_set_input_node_gain_changed_callback' at libcras/cras_client.c:3742:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_input_node_gain_changed_callback':
../src/common/cras_messages.h:485:36: note: source object 'header' of size 8
  485 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
In function 'write_message_to_server',
    inlined from 'cras_send_register_notification' at libcras/cras_client.c:3643:7,
    inlined from 'cras_client_set_num_active_streams_changed_callback' at libcras/cras_client.c:3753:9:
libcras/cras_client.c:2160:28: error: 'write' reading 16 bytes from a region of size 8 [-Werror=stringop-overread]
 2160 |                 write_rc = write(client->server_fd, msg, msg->length);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libcras/cras_client.c:50:
libcras/cras_client.c: In function 'cras_client_set_num_active_streams_changed_callback':
../src/common/cras_messages.h:485:36: note: source object 'header' of size 8
  485 |         struct cras_server_message header;
      |                                    ^~~~~~
In file included from libcras/cras_client.c:45:
/usr/include/unistd.h:367:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)'
  367 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
cc1: all warnings being treated as errors
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/sid...

If known, describe the steps to reproduce the issue:
Download crouton from https://goo.gl/fd3zc
Running these commands in a shell
sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
sudo crouton -r sid -t kde-desktop

The line referenced here does not exist in prepare.sh
The line referenced here does not exist in prepare.sh
The line referenced here does not exist in prepare.sh

OK so where is cras_client.h stored?  Running sudo find / -name "cras_client.h" doesn't yield any results.

Thank you @libjared. Beautiful fix. This enabled the normal Kali install to succeed after failure. Now I need to go back and try this on the other distros that failed in the same place.

@mcckotn I have the same exact problem. I’ve posted my own but only got a response from the same one who commented on here telling me to go to #4450 . Which is absolutely no help since not a single person says where to find cras_client.h . And like here, when asked where to find it, nothing. If I figure it out or figure out a fix in general I’ll be sure to let you know man!

@marsacom I followed the instructions above and was able to complete the installation.
============================
That is, go to line ~498ish and add the s/-Werror//g line as shown above, without the plus sign.
Type:wq to save and exit
Run sudo chmod -w /usr/local/chroots/sid/prepare.sh to prevent crouton from thinking it's "invalid"
Run sudo enter-chroot -n sid
Answer Y to run the setup script. There will be compile warnings still, but the build should succeed, and the update should continue as normal.

@DennisFaucher @libjared I cannot thank both of you enough, I have been pulling my hair out trying to figure this out. Thank you for making it easy to explain and helping me out!

I was having problems updating a chroot named sid, this is how I fixed it.

Run sudo crouton -u -n sid to update the chroot normally until CRAS compile fails
Run sudo chmod +w /usr/local/chroots/sid/prepare.sh
Run sudo vi /usr/local/chroots/sid/prepare.sh to edit the setup script
Apply this patch manually:

--- /prepare.sh
+++ /prepare.sh
@@ -498,6 +498,7 @@
         s/if\\ !\(.*\)/if [ -z "${\1}" ]; then/
         s/if\\ \([^!].*\)/if [ -n "${\1}" ]; then/
         s/endif/fi/
+        s/-Werror//g
     ' 'Makefile.am'
     echo '
         # buildsources: Build all source files for target

That is, go to line ~498ish and add the s/-Werror//g line as shown above, without the plus sign.

Type:wq<enter> to save and exit
Run sudo chmod -w /usr/local/chroots/sid/prepare.sh to prevent crouton from thinking it's "invalid"
Run sudo enter-chroot -n sid
Answer Y to run the setup script. There will be compile warnings still, but the build should succeed, and the update should continue as normal.

However, you will need to reapply this fix every time you update. If you want a longer-lasting solution, you'll need to extract crouton's scripts. I haven't tried it, but here's a tutorial: #4450 (comment).

I've been trying to do these steps but I am not able to find line ~498

@teteu-ai
I've been trying to do these steps but I am not able to find line ~498

Why not?

@teteu-ai

I've been trying to do these steps but I am not able to find line ~498

Why not?

I have been trying to use Kali Linux with crouton, but I am getting the exact same issues, and when I try using:
sudo chmod +w /usr/local/chroots/kali/prepare.sh
sudo vi /usr/local/chroots/kali/prepare.sh
I only find: @@-379 +485 @@ and @@-537 +624 @@
And there's nothing about
--- /prepare.sh
+++ /prepare.sh

--- /prepare.sh
+++ /prepare.sh
@@ -498,6 +498,7 @@

@teteu-ai These three lines are patch syntax. They aren't actually in the file. It's just a machine-readable way of describing how a file should be changed. Those symbols are purely informative. The @@ describe line numbers. The white-colored lines, AKA "context", actually exist in the file. That is what you should be looking for.

--- /prepare.sh

+++ /prepare.sh

@@ -498,6 +498,7 @@

@teteu-ai These three lines are patch syntax. They aren't actually in the file. It's just a machine-readable way of describing how a file should be changed. Those symbols are purely informative. The @@ describe line numbers. The white-colored lines, AKA "context", actually exist in the file. That is what you should be looking for.

Weird, I added "s/-Werror//g"
But it still doesn't work, it says: Failed to complete chroot setup. The chroot setup script may be broken. Your chroot is not fully configured. UID1000 not found in kali.

--- /prepare.sh

+++ /prepare.sh

@@ -498,6 +498,7 @@

@teteu-ai These three lines are patch syntax. They aren't actually in the file. It's just a machine-readable way of describing how a file should be changed. Those symbols are purely informative. The @@ describe line numbers. The white-colored lines, AKA "context", actually exist in the file. That is what you should be looking for.

Weird, I added "s/-Werror//g"
But it still doesn't work, it says: Failed to complete chroot setup. The chroot setup script may be broken. Your chroot is not fully configured. UID1000 not found in kali.

I have followed and added
'''
s/-Werror//g
'''
in line 495 but i still could not install Kali using crouton. It still gave me an error.

I was having problems updating a chroot named sid, this is how I fixed it.

Run sudo crouton -u -n sid to update the chroot normally until CRAS compile fails
Run sudo chmod +w /usr/local/chroots/sid/prepare.sh
Run sudo vi /usr/local/chroots/sid/prepare.sh to edit the setup script
Apply this patch manually:

--- /prepare.sh
+++ /prepare.sh
@@ -498,6 +498,7 @@
         s/if\\ !\(.*\)/if [ -z "${\1}" ]; then/
         s/if\\ \([^!].*\)/if [ -n "${\1}" ]; then/
         s/endif/fi/
+        s/-Werror//g
     ' 'Makefile.am'
     echo '
         # buildsources: Build all source files for target

That is, go to line ~498ish and add the s/-Werror//g line as shown above, without the plus sign.

Type:wq<enter> to save and exit
Run sudo chmod -w /usr/local/chroots/sid/prepare.sh to prevent crouton from thinking it's "invalid"
Run sudo enter-chroot -n sid
Answer Y to run the setup script. There will be compile warnings still, but the build should succeed, and the update should continue as normal.

However, you will need to reapply this fix every time you update. If you want a longer-lasting solution, you'll need to extract crouton's scripts. I haven't tried it, but here's a tutorial: #4450 (comment).

Worked perfectly for me. Thanks for the workaround

I was having problems updating a chroot named sid, this is how I fixed it.

Run sudo crouton -u -n sid to update the chroot normally until CRAS compile fails
Run sudo chmod +w /usr/local/chroots/sid/prepare.sh
Run sudo vi /usr/local/chroots/sid/prepare.sh to edit the setup script
Apply this patch manually:

--- /prepare.sh
+++ /prepare.sh
@@ -498,6 +498,7 @@
         s/if\\ !\(.*\)/if [ -z "${\1}" ]; then/
         s/if\\ \([^!].*\)/if [ -n "${\1}" ]; then/
         s/endif/fi/
+        s/-Werror//g
     ' 'Makefile.am'
     echo '
         # buildsources: Build all source files for target

That is, go to line ~498ish and add the s/-Werror//g line as shown above, without the plus sign.

Type:wq<enter> to save and exit
Run sudo chmod -w /usr/local/chroots/sid/prepare.sh to prevent crouton from thinking it's "invalid"
Run sudo enter-chroot -n sid
Answer Y to run the setup script. There will be compile warnings still, but the build should succeed, and the update should continue as normal.

However, you will need to reapply this fix every time you update. If you want a longer-lasting solution, you'll need to extract crouton's scripts. I haven't tried it, but here's a tutorial: #4450 (comment).

Worked perfectly for me. Thanks for the workaround

Did you apply the fix to install Kali-rollinf and not Sid?

\

I was having problems updating a chroot named sid, this is how I fixed it.

Run sudo crouton -u -n sid to update the chroot normally until CRAS compile fails
Run sudo chmod +w /usr/local/chroots/sid/prepare.sh
Run sudo vi /usr/local/chroots/sid/prepare.sh to edit the setup script
Apply this patch manually:

--- /prepare.sh
+++ /prepare.sh
@@ -498,6 +498,7 @@
         s/if\\ !\(.*\)/if [ -z "${\1}" ]; then/
         s/if\\ \([^!].*\)/if [ -n "${\1}" ]; then/
         s/endif/fi/
+        s/-Werror//g
     ' 'Makefile.am'
     echo '
         # buildsources: Build all source files for target

That is, go to line ~498ish and add the s/-Werror//g line as shown above, without the plus sign.

Type:wq<enter> to save and exit
Run sudo chmod -w /usr/local/chroots/sid/prepare.sh to prevent crouton from thinking it's "invalid"
Run sudo enter-chroot -n sid
Answer Y to run the setup script. There will be compile warnings still, but the build should succeed, and the update should continue as normal.

However, you will need to reapply this fix every time you update. If you want a longer-lasting solution, you'll need to extract crouton's scripts. I haven't tried it, but here's a tutorial: #4450 (comment).

Worked perfectly for me. Thanks for the workaround

Did you apply the fix to install Kali-rollinf and not Sid?

Yes

@sanrobin ! Can you just type down all the instruction and command lines just how they fix it with Sid but this is for Kali-rolling?
I've read many people issueing installing Kali on Chromebook so it's better to make a clear instruction only for Kali.
Please!

Well all I did was renaming sid to kali-rolling.

I ran sudo crouton -r kali-rolling -t gnome-desktop,core,x11,xorg
I then sudo chmod +w /usr/local/chroots/kali-rolling/prepare.sh
I then opened the file using vi  sudo vi /usr/local/chroots/kali-rolling/prepare.sh
I then again ran sudo chmod -w /usr/local/chroots/kali-rolling/prepare.sh so crouton will not think it is invalid
I finally typed sudo enter-chroot to finish the installation.

Note that GNOME is kinda unstable (it crashes if any GUI application is opened. I need to try other desktop environments. XFCE didn't install well as I had some dependency issues.)

Another option is to specifically exclude the warnings that are failing the build, using -Wno-error=maybe-uninitialized (etc) in targets/audio.  I've just opened pull request #4658 that does this, and have verified that it allows CRAS to compile on sid.  The xfce target seems to have issues right now, but my local version of Crouton at least gets past the broken audio target now with this change!

Yay, this now builds on sid... but not focal, which doesn't like -Wno-error=stringop-overread.  I'm testing a change to just -Wno-error now (on sid, focal, impish, and kali-rolling).

(This is fixed now, by pull request #4662.)


Documentation: make the API guarantee example explicit

Signed-off-by: Hui Kang<EMAIL_ADDRESS>

Can you reword the git commit title to Documentation: ...?

Updated the commit message. Thanks.


npm ready and install command globally

This is a relatively small change to the package structure. The module entry point is explicitly declared, and a global link to the wetzel CLI is created.

Thanks @isysd.
LGTM.
@lilleyse is this inline with our other packages on npm?  Can you please make/suggest any other required changes?

Looks good to me too.


Fix Invoke-PSInject for Windows 10 1803

Fixes the "Ambiguous match found" error when using Invoke-PSInject on Win 10 1803.
Fixes #1
Tested on Windows 7, and Windows 10, builds 1709 and 1803.

Bump


Publish master -> live

Docs Build status updates of commit af818a3:
:warning: Validation status: warnings

File
Status
Preview URL
Details

articles/libraries/chemistry/concepts/second-quantization.md
:warning:Warning

Details

articles/quickstart.md
:warning:Warning

Details

articles/relnotes/index.md
:warning:Warning

Details

articles/techniques/testing-and-debugging.md
:warning:Warning

Details

articles/libraries/numerics/numerics.md
:warning:Warning

Details

articles/libraries/chemistry/samples/loading-from-file.md
:warning:Warning

Details

articles/libraries/chemistry/concepts/symmetries-molecular.md
:warning:Warning

Details

articles/machines/qc-trace-simulator/width-counter.md
:warning:Warning

Details

articles/language/index.md
:warning:Warning

Details

articles/relnotes/0.3-migration.md
:warning:Warning

Details

articles/libraries/chemistry/samples/resource-counts.md
:warning:Warning

Details

articles/install-guide/vs-2017.md
:warning:Warning

Details

articles/libraries/chemistry/samples/molecular-hydrogen.md
:warning:Warning

Details

articles/contributing/style-guide.md
:warning:Warning

Details

articles/install-guide/vs-code.md
:warning:Warning

Details

articles/Glossary.md
:warning:Warning

Details

articles/license.md
:warning:Warning

Details

articles/libraries/index.md
:warning:Warning

Details

articles/install-guide/command-line.md
:warning:Warning

Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

api/docfx.json
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Arithmetic.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Core.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Environment.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Extensions.Convert.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Oracles.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Preparation.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Simulation.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.arithmetic.applyleoperationonphasele.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.arithmetic.applyphaseleoperationonle.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.diagnostics.nearequalityfact.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.oracles.reflectionoraclefromdeterministicstateoracle.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.preparation.preparequbit.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.evolutionset.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.generatorindex.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.generatorsystem.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.identitygeneratorindex.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.pauliblockencoding.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.paulievolutionset.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.simulationalgorithm.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.timedependentsimulationalgorithm.yml
:white_check_mark:Succeeded

articles/TOC.yml
:white_check_mark:Succeeded

articles/contributing/index.md
:white_check_mark:Succeeded

articles/docfx.json
:white_check_mark:Succeeded

articles/index.md
:white_check_mark:Succeeded

articles/install-guide/index.md
:white_check_mark:Succeeded

articles/install-guide/jupyter.md
:white_check_mark:Succeeded

articles/install-guide/python.md
:white_check_mark:Succeeded

articles/language/expressions.md
:white_check_mark:Succeeded

articles/libraries/chemistry/concepts/hartree-fock.md
:white_check_mark:Succeeded

This comment lists only the first 50 files in the pull request.

articles/libraries/chemistry/concepts/second-quantization.md

[Warning] 2 invalid cross reference(s) "<xref:Microsoft.Quantum.Chemistry.LadderOperators.LadderOperator>", "<xref:Microsoft.Quantum.Chemistry.LadderOperators.LadderSequence>".

articles/quickstart.md

Line 43: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 43: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 43: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 304: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 304: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 304: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.

articles/relnotes/index.md

Line 28: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 45: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 81: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 162: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 169: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 186: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 200: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 211: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 224: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 232: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 244: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 296: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 310: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 317: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 402: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 437: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 448: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/techniques/testing-and-debugging.md

Line 25: [Warning] Tab name Visual Studio 2017 is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 25: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 25: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 25: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 86: [Warning] Tab name Visual Studio 2017 is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 86: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 86: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 86: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 151: [Warning] Tab name Visual Studio 2017 is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 151: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 151: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 151: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 155: [Warning] Invalid file link:(~/media/unit-test-output.png).
Line 295: [Warning] Tab name Visual Studio 2017 is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 295: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 295: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 295: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 300: [Warning] Invalid file link:(~/media/qubit_id.png).

articles/libraries/numerics/numerics.md

Line 68: [Warning] Link https://docs.microsoft.com/en-us/quantum contains locale code en-us. For localizability, remove en-us from links to Microsoft sites. For more information, see https://aka.ms/LocaleSpecificLinks.

articles/libraries/chemistry/samples/loading-from-file.md

Line 11: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/libraries/chemistry/concepts/symmetries-molecular.md

Line 12: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/machines/qc-trace-simulator/width-counter.md

Line 30: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/language/index.md

[Warning] 1 invalid cross reference(s) "microsoft.quantum.qsharp-ref.file-structure".
Line 13: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 43: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/relnotes/0.3-migration.md

Line 15: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 133: [Warning] A space is required after the hash (#) in H1. See https://aka.ms/MarkdownHeadings for more information.
Line 133: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 187: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 193: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 204: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/libraries/chemistry/samples/resource-counts.md

Line 11: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/install-guide/vs-2017.md

Line 37: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/libraries/chemistry/samples/molecular-hydrogen.md

Line 11: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/contributing/style-guide.md

Line 16: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 16: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 16: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 16: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 82: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 82: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 82: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 82: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 131: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 131: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 131: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 131: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 171: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 171: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 171: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 171: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 191: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 191: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 191: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 191: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 214: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 214: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 214: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 214: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 246: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 246: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 246: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 246: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 263: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 263: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 263: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 263: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 319: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 319: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 319: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 319: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 345: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 345: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 345: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 345: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 411: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 411: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 411: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 411: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.

articles/install-guide/vs-code.md

Line 56: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/Glossary.md

Line 11: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/license.md

Line 25: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/libraries/index.md

Line 10: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/install-guide/command-line.md

Line 35: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit af818a3:
:warning: Validation status: warnings

File
Status
Preview URL
Details

articles/libraries/chemistry/concepts/second-quantization.md
:warning:Warning

Details

articles/quickstart.md
:warning:Warning

Details

articles/relnotes/index.md
:warning:Warning

Details

articles/install-guide/vs-code.md
:warning:Warning

Details

articles/libraries/numerics/numerics.md
:warning:Warning

Details

articles/install-guide/command-line.md
:warning:Warning

Details

articles/language/index.md
:warning:Warning

Details

articles/libraries/chemistry/concepts/symmetries-molecular.md
:warning:Warning

Details

articles/libraries/chemistry/samples/loading-from-file.md
:warning:Warning

Details

articles/license.md
:warning:Warning

Details

articles/libraries/chemistry/samples/molecular-hydrogen.md
:warning:Warning

Details

articles/techniques/testing-and-debugging.md
:warning:Warning

Details

articles/libraries/index.md
:warning:Warning

Details

articles/install-guide/vs-2017.md
:warning:Warning

Details

articles/Glossary.md
:warning:Warning

Details

articles/libraries/chemistry/samples/resource-counts.md
:warning:Warning

Details

articles/contributing/style-guide.md
:warning:Warning

Details

articles/machines/qc-trace-simulator/width-counter.md
:warning:Warning

Details

articles/relnotes/0.3-migration.md
:warning:Warning

Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

api/docfx.json
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Arithmetic.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Core.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Environment.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Extensions.Convert.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Oracles.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Preparation.yml
:white_check_mark:Succeeded

api/qsharp/Microsoft.Quantum.Simulation.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.arithmetic.applyleoperationonphasele.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.arithmetic.applyphaseleoperationonle.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.diagnostics.nearequalityfact.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.oracles.reflectionoraclefromdeterministicstateoracle.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.preparation.preparequbit.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.evolutionset.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.generatorindex.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.generatorsystem.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.identitygeneratorindex.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.pauliblockencoding.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.paulievolutionset.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.simulationalgorithm.yml
:white_check_mark:Succeeded

api/qsharp/microsoft.quantum.simulation.timedependentsimulationalgorithm.yml
:white_check_mark:Succeeded

articles/TOC.yml
:white_check_mark:Succeeded

articles/contributing/index.md
:white_check_mark:Succeeded

articles/docfx.json
:white_check_mark:Succeeded

articles/index.md
:white_check_mark:Succeeded

articles/install-guide/index.md
:white_check_mark:Succeeded

articles/install-guide/jupyter.md
:white_check_mark:Succeeded

articles/install-guide/python.md
:white_check_mark:Succeeded

articles/language/expressions.md
:white_check_mark:Succeeded

articles/libraries/chemistry/concepts/hartree-fock.md
:white_check_mark:Succeeded

This comment lists only the first 50 files in the pull request.

articles/libraries/chemistry/concepts/second-quantization.md

[Warning] 2 invalid cross reference(s) "<xref:Microsoft.Quantum.Chemistry.LadderOperators.LadderOperator>", "<xref:Microsoft.Quantum.Chemistry.LadderOperators.LadderSequence>".

articles/quickstart.md

Line 43: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 43: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 43: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 304: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 304: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 304: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.

articles/relnotes/index.md

Line 28: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 45: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 81: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 162: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 169: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 186: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 200: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 211: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 224: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 232: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 244: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 296: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 310: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 317: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 402: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 437: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 448: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/install-guide/vs-code.md

Line 56: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/libraries/numerics/numerics.md

Line 68: [Warning] Link https://docs.microsoft.com/en-us/quantum contains locale code en-us. For localizability, remove en-us from links to Microsoft sites. For more information, see https://aka.ms/LocaleSpecificLinks.

articles/install-guide/command-line.md

Line 35: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/language/index.md

[Warning] 1 invalid cross reference(s) "microsoft.quantum.qsharp-ref.file-structure".
Line 13: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 43: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/libraries/chemistry/concepts/symmetries-molecular.md

Line 12: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/libraries/chemistry/samples/loading-from-file.md

Line 11: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/license.md

Line 25: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/libraries/chemistry/samples/molecular-hydrogen.md

Line 11: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/techniques/testing-and-debugging.md

Line 25: [Warning] Tab name Visual Studio 2017 is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 25: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 25: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 25: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 86: [Warning] Tab name Visual Studio 2017 is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 86: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 86: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 86: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 151: [Warning] Tab name Visual Studio 2017 is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 151: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 151: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 151: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 155: [Warning] Invalid file link:(~/media/unit-test-output.png).
Line 295: [Warning] Tab name Visual Studio 2017 is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 295: [Warning] Tab name Command Line / Visual Studio Code is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 295: [Warning] Tab tabid-vs2017 is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 295: [Warning] Tab tabid-vscode is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 300: [Warning] Invalid file link:(~/media/qubit_id.png).

articles/libraries/index.md

Line 10: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/install-guide/vs-2017.md

Line 37: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/Glossary.md

Line 11: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/libraries/chemistry/samples/resource-counts.md

Line 11: [Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/contributing/style-guide.md

Line 16: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 16: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 16: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 16: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 82: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 82: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 82: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 82: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 131: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 131: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 131: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 131: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 171: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 171: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 171: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 171: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 191: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 191: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 191: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 191: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 214: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 214: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 214: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 214: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 246: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 246: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 246: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 246: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 263: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 263: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 263: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 263: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 319: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 319: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 319: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 319: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 345: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 345: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 345: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 345: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 411: [Warning] Tab name Guidance is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 411: [Warning] Tab name Examples is not approved. Tab names are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 411: [Warning] Tab guidance is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.
Line 411: [Warning] Tab examples is not approved. Tab IDs are case-sensitive. See https://aka.ms/ConceptualTabs for details.

articles/machines/qc-trace-simulator/width-counter.md

Line 30: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

articles/relnotes/0.3-migration.md

Line 15: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 133: [Warning] A space is required after the hash (#) in H1. See https://aka.ms/MarkdownHeadings for more information.
Line 133: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 187: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 193: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.
Line 204: [Warning] Multiple H1s are not allowed. You can only have one top-level heading. See https://aka.ms/MarkdownHeadings for more information.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Insufficient support of rational trees, cyclic terms

?- I=[_|I], catch(findall(t,true,I),E,true).
uncaught exception: error(resource_error(cyclic_term),'$catch'/3) % unexpected
?- I=[_|I], copy_term(I,J).
uncaught exception: error(resource_error(cyclic_term),copy_term/2) % unexpected

See this commitment.

It takes time to do all these things. Converting stuff is a step-at-a-time
process.
On Sun, Mar 13, 2022 at 7:24 PM UWN @.***> wrote:

See this
https://github.com/trealla-prolog/trealla/issues/300#issuecomment-997182155
commitment.
—
Reply to this email directly, view it on GitHub
https://github.com/trealla-prolog/trealla/issues/495#issuecomment-1066060032,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFNKSEVF7X3OBGQIIMYVLHTU7WX5JANCNFSM5QTCXW2A
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Now:
?- I=[_|I], catch(findall(t,true,I),E,true).
   I = [_A|I], E = error(resource_error(finite_memory),call/1), unexpected.

Expected: type_error(list, I)

I just realize that findall/3 alone is OK:
?- I=[_|I], findall(t,true,I).
   error(type_error(list,[_|I]),findall/3).

So how does the top level implement catching errors, if not with catch/3? Could it be that there another mechanism is used? This I in the answer might be somewhat a hint towards it.

Now:
ulrich@p0:/opt/gupu/trealla$ ./tpl -v ; ./tpl -f
Trealla Prolog (c) Infradig 2020-2022, v1.28.14
?- I=[_|I], catch(findall(t,true,I),E,true).
   false.

?- I=[_|I], catch(findall(t,true,I),E,true).
   I = [_A|I], E = error(type_error(list,[_B|...]),can_be/2).

Purefect!

Now (sorry for the inadverted closing):
?- I=[_|I], catch(findall(t,true,I),E,true).
Segmentation fault (core dumped)

Now:
?- I=[_|I], catch(findall(t,true,I),E,true).
   I = [_A|I], E = error(type_error(list,[_B,findall/3|'']),findall/3), unexpected.

There is this findall/3 in the list and this ''.


ValueError: Python inputs incompatible with input_signature

I'm working with this On-Device Training with TensorFlow Lite
https://www.tensorflow.org/lite/examples/on_device_training/overview#setup
However, I customized the model. But, after customization, the following error is coming
ValueError: Python inputs incompatible with input_signature:
inputs: (
tf.Tensor(
[[ 9.       17.229916]
[15.       10.601508]
[15.       10.517618]
[ 7.       26.893026]
[15.       10.572687]
[ 7.       27.393883]
[15.        9.859101]
[14.       11.724992]
[12.       13.421819]
[ 7.       28.229916]], shape=(10, 2), dtype=float32),
tf.Tensor([1. 1. 1. 0. 1. 0. 1. 1. 1. 0.], shape=(10,), dtype=float32))
input_signature: (
TensorSpec(shape=(10, 2), dtype=tf.float32, name=None),
TensorSpec(shape=(10, 1), dtype=tf.float32, name=None)).
Please find the code here
https://colab.research.google.com/drive/1jLM8BWuB7VRDMJHxKUDAIBR17MHqYSKk?usp=sharing

Hi @harshayelchuri ! I think you have already resolved the issue by changing these lines.
TensorSpec(shape=(10, 2), dtype=tf.float32, name=None) ,TensorSpec(shape=(10, 1), dtype=tf.float32, name=None)
to
TensorSpec(shape=(None, 2), dtype=tf.float32, name=None), TensorSpec(shape=(None, 1), dtype=tf.float32, name=None)

Yes I resolved the issue, But the final code is this:
@tf.function(input_signature=[tf.TensorSpec([None, 2], tf.float64),tf.TensorSpec([None], tf.float64)])

Are you satisfied with the resolution of your issue?
Yes
No