Any invalid or redundant config in jaeger-query?

Requirement - what kind of business use case are you trying to solve?

Is there any redundant config which takes no effect in jaeger-query? Like the config  --es.create-index-templates takes no effect to the application after I look into the code. It really confused me and lead me to wrong side. (The index template should be created by collector).
Docs is here link
Problem - what in Jaeger blocks you from solving the requirement?

It may confuse someone who is the beginner of jaeger.
Proposal - what do you suggest to solve the problem or improve the existing situation?

None
Show valid config in the component  docs or in -h command line
Any open questions to address

None

Can you point to the code? Generally, the way Storage plugins are implemented, it's irrelevant where they are instantiated, so I would assume you could create templates from the query service just as well.

@salmon7, are you asking only about Elasticsearch configuration?
Jaeger query can persist data via archive storage. The reader and writer share storage configuration that exposes flags - we do this for all storages except Kafka (split by producer and consumer).

Can you point to the code? Generally, the way Storage plugins are implemented, it's irrelevant where they are instantiated, so I would assume you could create templates from the query service just as well.

In jeager query, I can not find any place will init spanWriter which is the only way to init the template of es. It just inits the spanReader here but no anything about writer. On the contrary, in collector it inits spanWriter here.
I will show the call inverted stack to create index template in es for collector:

CreateTemplates
writer.CreateTemplates
Factory.CreateSpanWriter
main.storageFactory.CreateSpanWriter

So, if the query can write the storage, maybe it should init the writer first?

@salmon7, are you asking only about Elasticsearch configuration?
Jaeger query can persist data via archive storage. The reader and writer share storage configuration that exposes flags - we do this for all storages except Kafka (split by producer and consumer).

Em.... But I can't see any code to init the writer in jaeger query, maybe it not direct instantiated because the abstract factory?

Em.... But I can't see any code to init the writer in jaeger query, maybe it not direct instantiated because the abstract factory?

It's archive storage, for example here:
https://github.com/jaegertracing/jaeger/blob/32d667ee851c09a32966b4aaca635c741e38e4c3/cmd/qu
ery/app/querysvc/query_service.go#L129

I am closing this, we will do a cleanup of flags in Jaeger 2.0.


update script to write directly to S3

Update to write directly to S3 from floop data collection script. I added some functionality so that the input steps can be bypassed by passing parameters to the script directly from the terminal like so:
python3 floop_data_collection.py <path to your floop firebase pem file> <aws_access_key_id> <aws_secret_access_key>
For example, the path to my floop firebase pem file is: /Users/daleberg/Downloads/floop-firebase-development-firebase-adminsdk-g8bpy-8c72987529.json
If you need help finding your key, you can follow the docs here: https://aws.amazon.com/blogs/security/wheres-my-secret-access-key/
You can confirm that the file was uploaded by checking the floop-dataset bucket, and looking for the file floopData<$time_and_date_uploaded>.json
Please let me know if you have any questions! I'll be happy to answer them.
This PR fulfills requirements in https://github.com/North-Seattle-College/ad440-winter2022-tuesday-repo/issues/44

Hi @dale108, I am having some trouble creating the pem file for the floop database. Is there a specific method you would recommend? When I try and generate a private key file, I get an error message.
Floop Firebase error message:

Hi @dale108, I am having some trouble creating the pem file for the floop database. Is there a specific method you would recommend? When I try and generate a private key file, I get an error message. Firebase documentation
Floop Firebase error message:

Hey Kristin! you can go to the floop firebase app here:https://console.firebase.google.com/u/0/project/floop-firebase-development/overview
then go to project settings here:

Then on the "service accounts" tab, you can generate a private key:

that should download a handy json file with your credentials!

Hmm still getting the same error, @dansjack do I need to have updated permissions to create a Floop Firebase access key?

Hi @KristinJJ, this appears to be a Firebase issue. I can't create a new key either! Can you try again tomorrow and see what happens? If it comes to it, I can upload a key to the dev environment to S3.

Hi @KristinJJ, this appears to be a Firebase issue. I can't create a new key either! Can you try again tomorrow and see what happens? If it comes to it, I can upload a key to the dev environment to S3.

Oh man, Firebase issue! Yes I can try again tomorrow and let you know if I'm able to generate a key or not then.


Store myPersonalDetails.timezone.automatic as a bool

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
N/A
Expected Result:
myPersonalDetails.timezone.automatic should be stored as a bool
Actual Result:
myPersonalDetails.timezone.automatic is stored as a string
Workaround:
Unknown
Platform:
Where is this issue occurring?
Web
iOS
Android
Desktop App
Mobile Web
Version Number: 1.0.79-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
proTypes failing here

Expensify/Expensify Issue URL:
View all open jobs on Upwork

From @marcaaron https://expensify.slack.com/archives/C01GTK53T8Q/p1626727094488000

Seems like myPersonalDetails.timezone.automatic is being stored as a string. Not sure if there are any negative effects but it should be a bool I think...

Triggered auto assignment to @yuwenmemon (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Hmmm... I'm seeing this for some users but not others...

... Which tells me the problem is with a "setter" somewhere, but no matter how hard I try I can't get my timezone.automatic to turn into a String...

This is a bug in Onyx that will allow you to override the values on the store. You can directly modify the props that are coming from Onyx and it will update that value on localstorage.

@parasharrajat I'm sorry I'm having a hard time understanding what you mean. Can you provide an example of what you're talking about?

Are you implying that @Beamanator somehow manually changed his timezone.automatic to be a String?

Yeah. It is possible. I did this earlier.

I've manually changed my timezone a few times recently but I don't remember manually changing timezone.automatic to be a String 😆

I haven't been able to find where this is magically getting set to a String. I highly doubt it's due to folks manually changing their timezone/automatic to a String by overriding Onyx though.
We could just apply a band-aid and change timezone.automatic to a Bool in this method: https://github.com/Expensify/App/blob/6b9d7739c1216836223bc8af3fdef427647ee68f/src/libs/actions/PersonalDetails.js#L65-L94
I don't love it because it doesn't fix the heart of the issue though.

Perhaps found another issue where we have not added timezone to the set of details that are updateable via the API here.

I haven't been able to reproduce. I see that it exists for some accounts already, but those accounts can simply toggle their timezone.automatic in E.Chat, and the situation self-resolves:

So, to me, it seems like this stems from a bug that was already fixed. Gonna close this out!


Custom Dart for data migrations

Is your feature request related to a problem? Please describe.
When adding migrations, it's sometimes helpful to run custom application code to fill new columns or other similar tasks.
Describe the solution you'd like
It'd be nice if a migration.dart file (or similar) was added to a new generated migrations folder with an empty main method, into which a developer could write arbitrary code.
Describe alternatives you've considered
For many (most?) scenarios, data seeding can be done directly in SQL - but not always. Or sometimes, not without tremendous SQL complexity that a little application code would tackle more directly.
Additional context
A risk of custom code in migrations is that they can be coupled to the shape of the schema and application code at the time they are written. Consider a migration that uses application functionality that is later deprecated or unwanted by its original place. Normally, apps would delete such unwanted code; but if it is referenced in a migration then it is unsafe to delete for the life time of that migration. However, I think some documentation and warnings around this would suffice.

Hey @craiglabenz!
Happy to see you in our community 🎉
We have been discussing this and have a related issue to this here that explores the possibility of adding SQL to a migration.
Disregarding the risks and complexity, exposing our generated models (with type-safe operations) to be used in migrations would provide a good user experience.


AMBARI-23565. Restore configs does not work.

What changes were proposed in this pull request?
Now server compares actual agent configs with updated to identify configs that were staled. Also server checks all components depended for changed configs.
How was this patch tested?
Manual testing.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2087/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2100/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2102/
Test PASSed.


bad seed

Version: BioRand 2.1.6
Seed: R520-KBP9-Z1KAWN2L105N
locked out from finishing game

Can you please describe what happened that caused you to softlock.


Crash when sideloading an eap-config file

When sideloading a profile via Safari, the app opens and displays an error.

Error: Ungaught (in promise):
TypeError undefined is not an
object (evaluating 'response.data')
capacitor://localhost/build/main.js:1
01:46 generatorResume@[native
code]
fulfilled@capacitor://localhost/build/
main.js:33:62
onInvoke@capacitor://localhost/buil
d/vendor.js:5085:39
capacitor://localhost/build/polyfills.j
s:3:10149
capacitor://localhost/build/polyfills.j
s:3:20245
onInvokeTask@capacitor://localhos

It has a Back button, which brings me to a username/password prompt. The profile in question contains a client certificate and supports only EAP-TLS, so this is not correct.

Crash for example with the profile from https://cat.eduroam.no/download/?idp=9;profile=10;os=eap-config

After seeing this issue the problem is realted to the app scope and how it handles files. In iOS there are 2 options:

Open in app
Copy in app

In geteduroam we have both but that's why that fails. When you have a file in an email for example, the only option you have is "Copy in" and that works. On the other hand, when you download a file, it's in the filesystem and you have 2 options available "Open in" and "Copy in". The Open in crases because the file is out of the app scope (and capacitor or any iOS app cannot handle file from out of its cope if that file access is not handled directly in Swift). Capacitor, as it's defined, doesn't work on that way (we detected that in a comment of a non related issue - https://github.com/ionic-team/capacitor/issues/3492 - where a member of the ionic team said "iOS don't require permissions to read files, but can only read files inside its own sandbox, so you are probably trying to open a file outside the sandbox" and that was the clue.
So the "Open in" option will be removed and only the "Copy in" option will be allowed. So, iOS will "copy temporary" the file into the app scope and it will be able to handle that correctly as it's handled in other scopes.


[code-infra] Recreate lockfile

A hail Mary to see the effect on codesandbox ci

Runs into build issues and most likely not the cause of codesandbox issues. This was proven by retrying codesandbox ci runs on commits that worked before.


review tests section

We no longer run any unit-tests
This removes the outdated commands
Review the way single test or group of tests can be run.
related to https://github.com/ome/openmicroscopy/pull/6218

Good to merge from my point of view 👍

Looks good. The example tests (test_annotate and test_admin) fail, but I could run them. Was just wondering, we say for OMERO web tests you need pip install pytest-django. But you also need omero-web, or is that obvious anyway?

I was only looking at the unit tests and Java section but I will check the web part

@dominikl
it is there
including omero-pyandomero-web if you want to run OmeroWeb tests.

You are right. I was just looking at the section
# for Omeroweb tests
$ pip install pytest-django

Didn't look further up. That's alright then 👍


Updating tests for Python 3.8.3 and 3.9.0

Bonjour André,
Tests was failing on my laptop for 3.8.3 due to a new error and the wrapping of another.
To ensure I don't miss more of them, I wanted to test with 3.6, 3.7, 3.8 and 3.9, so I took the liberty to add a tox.ini file with a basic config, it allows to run tests in parallel in multiple versions of Python (as long as you have them installed), like:
$ tox -p all
✔ OK py36 in 3.943 seconds
✔ OK py37 in 4.046 seconds
✔ OK flake8 in 4.7 seconds
✔ OK black in 4.884 seconds
✔ OK py38 in 5.909 seconds
✔ OK py39 in 6.697 seconds
__________________________ summary _____________________
  py36: commands succeeded
  py37: commands succeeded
  py38: commands succeeded
  py39: commands succeeded
  flake8: commands succeeded
  black: commands succeeded
  congratulations :)

All of this made me change a few things:

Had to pass black on friendly_traceback/.
Added "cannot use assignment expressions with" error message for Python 3.8.
"invalid character in identifier" is now "invalid character" in Python 3.9 (but it gives the character).
Had to add a pyproject.toml because tox requires isolated build to run in parallel, and isolated builds requires a pyproject.toml :(
Had to hardcode the version in the setup.py: in isolated builds we cannot import the module before installing it: the snake bite its own tail. It could be fixed by using setup.cfg,  like version = attr: friendly_traceback.__version__, but I feel this PR is big enough to not convert the setup.py file to setup.cfg, « À chaque jour suffit sa peine », but if you're ok we can convert the setup.py file, there's even a tool for it.
Moved the handling of catch_*.py from conftest.py to pytest.ini because it was not displaying the details of AssertErrors in catch_*.py files (so you manually added some).
Used pytest.mark.parametrize instead of a for loop to have more feedback in case of error, but I dropped your if __main__, is that bad?
Had to unwrap the result (unwrapped_result = " ".join(result.split())) because a test was failing due to wrapping (see below).

using pytest.mark.parametrize
Before when test_syntax_errors failed, it was not telling which one failed, we had to deduce from the assert string:
============================== FAILURES ============================================
____________________________ test_syntax_errors ____________________________________________

After when a test_syntax_errors fail, it shows which file failed:
============================== FAILURES ============================================
___________________ test_syntax_errors[raise_syntax_error66]  __________________________________

filename = 'raise_syntax_error66'

The wrapping issue
assert cause in result, "\nExpected: %s\nGot: %s" % (cause, result)
AssertionError:
Expected: it reached the end of the file and expected more content.
Got:
    Python exception:
        SyntaxError: unexpected EOF while parsing

[...truncated for readability...]

    Likely cause based on the information given by Python:
        Python tells us that it reached the end of the file
        and expected more content.

In this example "end of the file" is separated of "and expected more" by a newline and some spaces, making the test fail.

Bonjour Julien,
Thank you for this. I have a Windows batch file (run_tests.bat) which, I think, did the same as what tox does when it comes to testing with various Python versions. Still, tox, which I have never used, is definitely a nicer cross-platform tools - so, thanks for that. Also thanks for the parametrized tests.
I will merge now, and try to look at it more closely tomorrow.

@JulienPalard I used setup-py-upgrade as you suggested to create a separate setup.cfg file and have the version number back to a single location.
Dropping the if __main__ in tests is certainly acceptable. When I had fewer tests, I would sometimes run individual files but I no longer do this.
Thanks for all the improvements you made!

You can still filter using pytest -k pattern. I'm also a big fan of variations like pytest -lf (run only last failed), pytest -vx (verbose and stop at first failure).

Thanks for all the improvements you made!

Thank you!


#12855: Fix unpacker race condition by putting stall after MMIO

Fix the race condition by introducing a stall. Brought down the semaphore_post right before the stall as this is supposed to have no functional change. Since you cannot write to the address which is currently being used by the unpacker since there is a wait_for_next_context(2) right above it. Context can start from 0, then go to 1 and then come back to 0 and reach the MMIO writes when wait_for_next_context(2) passes, and that happens when the code that was previously working in context 0 has finished. Same argument for context 1.

Post commit tests pass : https://github.com/tenstorrent/tt-metal/actions/runs/11695968823


Getting compilation error while running the command "mvn test"

Hi team,
I am trying to run the UT for the package - org.drools:drools-mvel:8.44.0.Final with JAVA VERSION 11.0.20
however it is showing me the error -> "[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project drools-decisiontables: Compilation failure
[ERROR] /root/incubator-kie-drools/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInXLSTest.java:[89,19] error while writing org.drools.decisiontable.UnicodeInXLSTest.?lov?k: bad filename RelativeFile[org/drools/decisiontable/UnicodeInXLSTest$?lov?k.class]
"
Please let me know the solution for the same.
Thanks

Probably your env variable LANG is not UTF-8? Please try export LANG=en_US.UTF-8.

Closing as no response. Please reopen if needed.


[BUG]: issue Developer Compliance Center App Error. Archive Approvals permissions lacking

Describe the bug
When a user launches the Developer compliance center app they receive an error message.
You don't have permission to view this data. Server Response: Archive Approvals failed: Principal user (Id=7ae2150b-b7d0-ea11-a812-000d3a25ce3c, type=8, roleCount=4, privilegeCount=0, accessMode=0), is missing prvReadadmin_ArchiveApproval privilege (Id=50c35816-4fad-4fcd-973f-fc4c43ce5f39) on OTC=10143 for entity 'admin_archiveapproval'. context.Caller=7ae2150b-b7d0-ea11-a812-000d3a25ce3c
User has the following roles
Basic User, Power Platform User SR, Power Platform Maker SR via an AAD Group
Component (please tell us which flow or app you are experiencing issues with):

Solution - CenterofExcellenceAuditComponents
Version 1.38
App or Flow - Developer compliance center

To Reproduce
Steps to reproduce the behavior:

launch the Developer compliance center app

Expected behavior
No errors
Screenshots
If applicable, add screenshots to help explain your problem.
Error:

User Settings:

Additional context
Add any other context about the problem here.

I just went to find the dupe for this since I already fixed it and then realized this was the bug I asked you to post to track :)
So thank you for posting! I have this local fixed and it will ship with the March update.

Hello Jenefer,
I think the problem is lack of permissions, but not being the developer, I don't know what the 'should' be. So for example I can fix this by adding:

When I've tested before there are then others with a similar issue. But I'm guessing it could be that the Canvas App itself could be at fault, i.e. the Maker Role trying to use something it shouldn't have access to.
I'm guessing is there a workaround till March?
Thanks
Laurence

You are correct, the fix is to grant the Maker security role full read access to that table, so only the read column in your picture (2nd column I think) would be green, the rest empty.
Basically when we add tables to the CoE, or features from existing tables in to new apps, we don't always remember that the permissions need to also be updated, and of course we work from the admin persona and not maker. Hence the bug.
We try to only ship monthly, and hence we will ship this in the March update, at the beginning of March.
We do have a few other fixes in the security roles coming with the March release (see #757 ) so if you still see issues with the March release, please post them and we will fix.
Thanks for helping make CoE great!

Thanks, setting that Permission change has fixed the issue for me.
Laurence

Wonderful news. I will keep this issue open until we ship, for others to see.

This fix is now released. Please be sure to remove any unmanaged layers from flows before you update as described in installing updates or you will not see the changes.
Thanks for using CoE.


the game plays but the dialoge don't come first

Describe your bug here.
when i add mods on the mods folder it wont start the dialoge
video if you don't understand
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Mac
Did you edit anything in this build? If so, mention or summarize your changes.
no

sorry for shitty video but thats the best i can do


chore(release): v0.11.1 🎉

:robot: I have created a release *beep* *boop*
0.11.1 (2022-11-28)
Bug Fixes

async: ensure that the async caching wrapper uses same key serialization for its internal request deduplication cache (608785d)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ehmpathy/with-simple-caching/releases/tag/v0.11.1 :sunflower:


uv-client cannot be compiled

uv-client cannot be compiled with below error message:
   Compiling uv-client v0.0.1 (https://github.com/astral-sh/uv.git#615dda0e)
error[E0277]: the trait bound `reqwest_middleware::client::ClientWithMiddleware: From<ClientWithMiddleware>` is not satisfied
   --> /Users/fyusifov/.cargo/git/checkouts/uv-01b33d56c4bfa7c4/615dda0/crates/uv-client/src/registry_client.rs:574:21
    |
573 |                 let mut reader = AsyncHttpRangeReader::from_head_response(
    |                                  ---------------------------------------- required by a bound introduced by this call
574 |                     self.uncached_client().client(),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<ClientWithMiddleware>` is not implemented for `reqwest_middleware::client::ClientWithMiddleware`, which is required by `ClientWithMiddleware: Into<reqwest_middleware::client::ClientWithMiddleware>`
    |
    = help: the trait `From<reqwest::Client>` is implemented for `reqwest_middleware::client::ClientWithMiddleware`
    = help: for that trait implementation, expected `reqwest::Client`, found `ClientWithMiddleware`
    = note: required for `ClientWithMiddleware` to implement `Into<reqwest_middleware::client::ClientWithMiddleware>`
note: required by a bound in `AsyncHttpRangeReader::from_head_response`
   --> /Users/fyusifov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async_http_range_reader-0.8.0/src/lib.rs:302:22
    |
301 |     pub async fn from_head_response(
    |                  ------------------ required by a bound in this associated function
302 |         client: impl Into<reqwest_middleware::ClientWithMiddleware>,
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AsyncHttpRangeReader::from_head_response`

error[E0277]: the trait bound `reqwest_middleware::client::ClientWithMiddleware: From<ClientWithMiddleware>` is not satisfied
   --> /Users/fyusifov/.cargo/git/checkouts/uv-01b33d56c4bfa7c4/615dda0/crates/uv-client/src/registry_client.rs:573:34
    |
573 |                   let mut reader = AsyncHttpRangeReader::from_head_response(
    |  __________________________________^
574 | |                     self.uncached_client().client(),
575 | |                     response,
576 | |                     url.clone(),
577 | |                     headers,
578 | |                 )
    | |_________________^ the trait `From<ClientWithMiddleware>` is not implemented for `reqwest_middleware::client::ClientWithMiddleware`, which is required by `ClientWithMiddleware: Into<reqwest_middleware::client::ClientWithMiddleware>`
    |
    = help: the trait `From<reqwest::Client>` is implemented for `reqwest_middleware::client::ClientWithMiddleware`
    = help: for that trait implementation, expected `reqwest::Client`, found `ClientWithMiddleware`
    = note: required for `ClientWithMiddleware` to implement `Into<reqwest_middleware::client::ClientWithMiddleware>`
note: required by a bound in `AsyncHttpRangeReader::from_head_response`
   --> /Users/fyusifov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async_http_range_reader-0.8.0/src/lib.rs:302:22
    |
301 |     pub async fn from_head_response(
    |                  ------------------ required by a bound in this associated function
302 |         client: impl Into<reqwest_middleware::ClientWithMiddleware>,
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AsyncHttpRangeReader::from_head_response`

error[E0277]: the trait bound `reqwest_middleware::client::ClientWithMiddleware: From<ClientWithMiddleware>` is not satisfied
   --> /Users/fyusifov/.cargo/git/checkouts/uv-01b33d56c4bfa7c4/615dda0/crates/uv-client/src/registry_client.rs:579:18
    |
579 |                 .await
    |                  ^^^^^ the trait `From<ClientWithMiddleware>` is not implemented for `reqwest_middleware::client::ClientWithMiddleware`, which is required by `ClientWithMiddleware: Into<reqwest_middleware::client::ClientWithMiddleware>`
    |
    = help: the trait `From<reqwest::Client>` is implemented for `reqwest_middleware::client::ClientWithMiddleware`
    = help: for that trait implementation, expected `reqwest::Client`, found `ClientWithMiddleware`
    = note: required for `ClientWithMiddleware` to implement `Into<reqwest_middleware::client::ClientWithMiddleware>`
note: required by a bound in `AsyncHttpRangeReader::from_head_response`
   --> /Users/fyusifov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async_http_range_reader-0.8.0/src/lib.rs:302:22
    |
301 |     pub async fn from_head_response(
    |                  ------------------ required by a bound in this associated function
302 |         client: impl Into<reqwest_middleware::ClientWithMiddleware>,
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AsyncHttpRangeReader::from_head_response`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `uv-client` (lib) due to 3 previous errors

Steps to reproduce:

Create new project: cargo new <project_name>
Add uv-client as a project dependency: cargo add uv-client --git https://github.com/astral-sh/uv.git
Run the program: cargo run

I think you need to do something like this because we have a forks of these crates:
[dependencies]
uv-client = { git = "https://github.com/astral-sh/uv.git", rev = "615dda0e944f1daa65bbb8ee2f9d87a1fc914911" }

[patch.crates-io]
reqwest-middleware = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe" }
reqwest-retry = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe" }

Thanks, @charliermarsh. This worked.


Fix the benchmark as it is broken by the exact matching change

It's now benching the wrong api.
cc @mcdonnelldean

Fixed in 5f04e2771f89ce831fd3eb41db508d6bbb6ecc70


Refresh page when developing nuxt 3 raise document not defined error

Describe the bug
The nuxt page display

500
document is not defined

at enableDismissTrigger (./node_modules/bootstrap/dist/js/bootstrap.js:888:21)
at ./node_modules/bootstrap/dist/js/bootstrap.js:977:3
at ./node_modules/bootstrap/dist/js/bootstrap.js:7:83
at Object. (./node_modules/bootstrap/dist/js/bootstrap.js:10:3)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at ModuleWrap. (node:internal/modules/esm/translators:190:29)
at ModuleJob.run (node:internal/modules/esm/module_job:185:25)

To Reproduce
just refresh page
Expected behavior
not happen
Screenshots

Environment (please complete the following information):

OS: [e.g. Windows 10 wsl2 ubuntu 20.04]
Version [e.g. 0.2.6]

Additional context
Add any other context about the problem here.

Bootstrap v5 is not ssr friendly. Your error is pointing to a bootstrap js file.
I believe they're planning on making ssr friendly changes in an upcoming update. But since they're not ssr friendly, we do not support ssr applications


Bone Candidates

A list of components that are on the short list for being adapted to play well with Skeleton Framework.
To qualify, candidates should be relatively small, be easy to work with, and have no huge dependencies.
Feel free to suggest a component below. We'll take a look and add things to the list that seem like a good fit.
Well Suited Components
These are already adapted/built for skeleton or are well suited to be so.  Point being, they should only need a light touch, a bit of CSS, so that they aren't broken by Skeleton.

[x] pikaday
[ ] skeleton-tabs
[ ] skeleton-alerts
[ ] skeleton-fontawesome-buttons

Nice Comps, But Not Adversely Affected by Skeleton
I'm putting this here for now, since I'd hate to have good components get passed over. I think there's good value in curating a list of quality, stand alone stuff for people to use.

jump.js

ok. Some of these are good ideas some are not, imo, but I'll share them all. These may not even be considered as bones considering conversation in #6 These are projects on github that use skeleton to some degree. Take ideas, fork and play, whatever. There are many more. Just presenting ideas.
https://github.com/gld1982ltd/skeleton-tabs
https://github.com/gld1982ltd/skeleton-alerts
https://github.com/gld1982ltd/skeleton-fontawesome-buttons
https://github.com/gld1982ltd/skeleton-ui
https://github.com/gld1982ltd/skele_nav

Not sure if this fits, but I'd like to put forth https://github.com/callmecavs/jump.js for consideration

@J-Hood That looks like it can definitely be used. Providing a skeleton styled button for use with jump would be great.

https://github.com/roshiro/TitleNotifier.js - Not a style-able thing but seems like a great utility, and it's seems like it could be expanded to work with a something like a notification tab pretty easily

@orbitbot I'm putting in a vote for button groups being in the core CSS.

http://formvalidation.io/examples/supporting-skeleton-framework/

I agree with @orbitbot . If said component is usable with any framework or without one, it should not be considered as a bone. Bones should either require Skeleton to work, or give Skeleton styles to said component. With those 2 categories I believe all use cases for any component could be compensated. This is why I chose the Pikaday Bone as a starting bone. It 1.) requires Skeleton to work, and 2.) it gives Skeleton style to the used component. It is a great example of both methods of defining a bone.

In addition, regarding what you said about dependency-free utilities:

Only that ideal candidates be standalone.  Trying to shy away from things that require big libs, like jQuery.
@gld1982ltd Pikaday doesn't require Skeleton. The pikaday skeleton repo we've been citing as an example just provides a shim of CSS to reset Skeleton styles that adversely affect vanilla Pikaday.
That's the ideal, as it stands.  My original conception of Bones was to craft them as direct extensions of the core Skeleton CSS, extending it with a collection of modular components that people could mix and match. Conversation and experimentation revealed the folly in that, given the existing scope and spirit of the Skeleton project. Too much work, not enough value. Other libs have already done it, and well.
A better way to quickly and effectively build value into Skeleton (and, hopefully, reinvigorate it's presence in the community at large) is to reduce the Bone concept to the same kind of simple shims as the Pikaday Bone.   Find that it conflicts with Skeleton? There's probably a Bone for that.
For components that don't require shimming, but are still like totally rad brad, we'll just put them in a different list.  I love the idea of doing this as a way of helping new devs get a feel for what using an ad-hoc collection of small, tightly designed, decoupled components is like, and where to find such things.  In service to the original ideal of Skeleton, we can set people on the path of a leaner, mobile first development structure for their work. Especially since a bunch of said newbs will have probably come from building stuff with the big players like Bootstrap, as I did.

Skeleton Pikaday doesn't require Skeleton Framework to work, but it is a dependency. I didn't actually try it without Skeleton... Argh... I get ahead of myself sometimes. @enlore where are you before I stick my foot in my mouth?

Any vertical nav bars in the works, or that someone has experience with?
I've only seen Coffin (http://fat.github.io/coffin/), but it seems that it hasn't been updated in a while, and has a bug that does not allow you to scroll on mobile devices

I've used Skeleton a handful of times to get a few lightweight projects up and running quickly.  There are only a couple components I find myself creating every time.
The first is a simple Card, like this card in Material Design Lite.
The second is a simple Header for brand on the left, and a few nav links on the right (Create Account, Sign In, Sign Out, etc.).
I think we could write some Skeleton-style components for both of these pretty easily, and of course they'd have no dependencies because they're just CSS like the other Skeleton components, .button for example.

I'm new to contributing to open source projects, but I've been designing and writing front-end code for several years. I'd be happy to take a stab at creating a Skeleton-style Card component and submitting it for everyone's review, if that would be helpful.

@kiley0 I encourage you to build any skeleton components you can, and submit a pull request for it to be included in the list at https://github.com/skeleton-framework/bones.
I'm not really into limiting developers that wish to contribute. I think the lightweight purpose to Skeleton is completed in the core Skeleton css. Bones are meant to be something different. Lightweight addons for Skeleton. SO, in my opinion, really, the more the better.

@gld1982ltd and @orbitbot -- cool, thanks for the response.  i'll spend some time creating a bone later this week (probably just a simple Card), then i'll make a GitHub Page to showcase it and submit a pull request for it to be added to the /bones list.  thanks!

@kiley0 Sounds good! Looking forward to it!

:+1:

I would like to start contributing to this project as well. some things i think are needed, in lean and mean style of course:

carousel
dropdown
modals
navbar
tooltips
responsive video (iframe)
switches
accordion

@enlore Should I add this also to my Pull Request?

Alerts
Navbar
Tooltips
Dropdown
Tabs

(All in pure-css)

We've been trying to keep things fairly minimalist, but adding those as a few more basic features doesn't seem like a bad idea especially if they're just CSS.  So sure, add them in and I'll do my review of them early next week. Thanks!

I'd like to take a stab at this too, @enlore. Pulling in changes from @oltmannsdaniel to do some testing locally. I should be done testing by Tuesday.

@enlore any thought to just keeping a dead simple minimal boilerplate and then another version with add-ons?

After exploring this idea of a unified set of components, I think moving in the direction of a small, simple core is a more useful idea. I've actually been giving some thought to tweaking the build process to make certain parts of the framework (the grid, the form styles, etc) available as standalone css files (in addition to the complete css with all of the components).
For my part, I find that I tend to extract just the parts of the framework that I need for a given project. Grab the grid alone for this project, grab the grid and typography for that project, etc.
I'd like to get some feedback from users at large here. How do you use skeleton? Do you grab the whole thing? Do you just extract pieces?

Personally, what I've always liked about skeleton is how easy it is to work with the grid and the grid is what I really only cared about. It's nice to have some other components, but having just a bare bones grid system that I can build on top of is what really appeals to me. That keeps it light weight for projects that may or may not require extra components. Just my two cents anyway.

alerts should definitely be included


Gradients with tf.math.expm and complex inputs generates casting warning

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
binary
TensorFlow version
2.15.0
Custom code
No
OS platform and distribution
Archlinux
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
Computing gradients using tf.linalg.expm with complex types gives warnings about casting to real types.
Standalone code to reproduce the issue
import tensorflow as tf
x=tf.Variable(0, dtype=tf.complex128)
A = tf.constant(
    [[0,0,0,0,0],
     [0,0+1.0j,0,0,0],
     [0,0,-2,0,0],
     [0,0,0,-3.0j,0],
     [0,0,0,0,4]]
    ,tf.complex128)
with tf.GradientTape() as g:
    g.watch(x)
    out = tf.linalg.expm(x*A)
display(g.jacobian(out, x))

Relevant log output
WARNING:tensorflow:You are casting an input of type complex128 to an incompatible dtype float64.  This will discard the imaginary part and may not be what you intended.

<tf.Tensor: shape=(5, 5), dtype=complex128, numpy=
array([[ 0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j],
       [ 0.+0.j,  0.-1.j,  0.+0.j,  0.+0.j,  0.+0.j],
       [ 0.+0.j,  0.+0.j, -2.+0.j,  0.+0.j,  0.+0.j],
       [ 0.+0.j,  0.+0.j,  0.+0.j,  0.+3.j,  0.+0.j],
       [ 0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  4.+0.j]])>

Hi @aplund ,
This is intended. The API warns you that when casting a complex number to float, it will ignore the imaginary part which is the behaviour of the casting op. Please refer this part of source code.
https://github.com/tensorflow/tensorflow/blob/4c288453087edd9610dba9e94822044ddafc568f/tensorflow/python/ops/math_ops.py#L1011-L1017

I'm trying to see where in the code snippet a cast to a real number is indicated. Are you able to point to the line where it happens?

Hi @aplund ,
It seems cast being called internally by the tf.GradientTape().jacobian method. Hard to trace though.

I'm not sure I fully understand how to run tensorflow from within the build tree, so I just changed the python file in the venv and generated the trace that way.
tmpout.txt

Hello, I'd like to work on this issue. Can I contribute?

@SuryanarayanaY  I am facing issues regarding bazel build in tensorflow while building from source. Is there a way to resolve the issue so that I can test the code

@aplund,
As suggested, have you tried the altenative appraoch by cloining the TF repo locally and chaning the logging.warning(".....") to raise TypeError("...") in cast op API python/ops/math.py file and adding tf.debugging.disable_traceback_filtering after tensorflow import. Please feel free to move this issue to closed status, if the issue got resolved. Thank you!


Transparent background not working

Maybe I am doing something wrong but I cant set up the transparency for my background with this theme. Otherwise I love it!
I am using LazyVim and my config is:
    "ramojus/mellifluous.nvim",
    name = "mellifluous",
    config = function()
          require("mellifluous").setup({
            transparent_background = {
              enabled = true,
           },
           })

    end,
  },

  {
    "LazyVim/LazyVim",
    opts = {
      colorscheme = "mellifluous",
    },
  },

I get the error as

...ocal/share/nvim/lazy/LazyVim/lua/lazyvim/config/init.lua:216: Vim:E5113: Error while calling lua chunk: ...e/nvim/lazy/mellifluous/lua/mellifluous/utils/shader.lua:17: attempt to call method 'get_hsl' (a nil value)
stack traceback:
	...e/nvim/lazy/mellifluous/lua/mellifluous/utils/shader.lua:17: in function 'replicate_shade'
	...mellifluous/lua/mellifluous/highlights/custom_groups.lua:25: in function 'MenuButtonSelected'
	...mellifluous/lua/mellifluous/highlights/plugins/mason.lua:9: in function 'set'
	.../mellifluous/lua/mellifluous/highlights/plugins/init.lua:13: in function 'set'
	...vim/lazy/mellifluous/lua/mellifluous/highlights/init.lua:5: in function 'set'
	...cal/share/nvim/lazy/mellifluous/lua/mellifluous/init.lua:22: in function 'load'
	...cal/share/nvim/lazy/mellifluous/lua/mellifluous/init.lua:31: in function 'apply'
	...local/share/nvim/lazy/mellifluous/colors/mellifluous.lua:12: in main chunk
	[C]: in function 'colorscheme'
	...ocal/share/nvim/lazy/LazyVim/lua/lazyvim/config/init.lua:216: in function <...ocal/share/nvim/lazy/LazyVim/lua/lazyvim/config/init.lua:212>
	[C]: in function 'xpcall'
	...
	[C]: in function 'xpcall'
	.../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:135: in function 'try'
	...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:391: in function 'config'
	...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:358: in function '_load'
	...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:197: in function 'load'
	...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:127: in function 'startup'
	...artey/.local/share/nvim/lazy/lazy.nvim/lua/lazy/init.lua:112: in function 'setup'
	/home/dartey/.config/nvim/lua/config/lazy.lua:9: in main chunk
	[C]: in function 'require'
	/home/dartey/.config/nvim/init.lua:2: in main chunk

Nice catch. target is the plain string "NONE" inside this function when transparent background is enabled: https://github.com/ramojus/mellifluous.nvim/blob/1d4884d64b0ebd685f418c29eeb4274f3688eecc/lua/mellifluous/utils/shader.lua#L12
The culprit: https://github.com/ramojus/mellifluous.nvim/blob/1d4884d64b0ebd685f418c29eeb4274f3688eecc/lua/mellifluous/highlights/general.lua#L8-L9


Not finding external dependencies

I'm submitting a ...  (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

I'm trying to use angular2-modal with angular-seed.
I followed the instructions on the wiki:
"npm install angular2-modal --save"
And then referenced it in app.module.ts and in my app.
when I do npm start, I get an error in the console:
'Error loading http://localhost:5555/node_modules/angular2-modal.js as "angular2-modal" from http://localhost:5555/app/app.module.js Report this error at https://github.com/mgechev/angular2-seed/issues'
I also tried the additional steps of adding these:
this.SYSTEM_CONFIG_DEV.paths['angular2-modal']=${this.APP_BASE}node_modules/angular2-modal;
this.SYSTEM_BUILDER_CONFIG.packages['angular2-modal']={
  main: 'bundles/angular2-modal.umd.js',
  defaultExtension: 'js'
}

to project.config.ts but I get the same error
Expected behavior

It should pull in the modal package and allow the functionality in dev.
Minimal reproduction of the problem with instructions

The steps I took are outlined in the faulty behavior section.
What is the motivation / use case for changing the behavior?

This will enable users to use external packages with angular-seed, or at least get provide clarity on how it will happen.
Please tell us about your environment:

Windows 8.1, Visual Studio Code, npm, npm.

Angular Seed Version: aaaaf75

not sure where to find this...just downloaded it last week.

Node: node --version =
6.3.0

I'm having the same issue but with angular2-google-maps

My workaround was to download the source and wire it into the client folder and let seed take care of it...far from ideal, however.

for some reason it is not picking up from system_builder_config or system_config_dev for external scripts.. I had to add it to NPM dependencies
// Add NPM third-party libraries to be injected/bundled.
this.NPM_DEPENDENCIES = [
...this.NPM_DEPENDENCIES,
// {src: 'jquery/dist/jquery.min.js', inject: 'libs'},
// {src: 'lodash/lodash.min.js', inject: 'libs'},
{ src: 'primeng/resources/primeng.min.css', inject: true },
{src: 'primeui/primeui-ng-all.min.js', inject: true}
  // inject into css section

];
or you could download it and put it under client folder

project.config.ts
import { join } from 'path';

import { SeedConfig } from './seed.config';

/**
 * This class extends the basic seed configuration, allowing for project specific overrides. A few examples can be found
 * below.
 */
export class ProjectConfig extends SeedConfig {

  PROJECT_TASKS_DIR = join(process.cwd(), this.TOOLS_DIR, 'tasks', 'project');

  constructor() {
    super();
    // this.APP_TITLE = 'Put name of your app here';

    /* Enable typeless compiler runs (faster) between typed compiler runs. */
    // this.TYPED_COMPILE_INTERVAL = 5;

    // Add `NPM` third-party libraries to be injected/bundled.
    this.NPM_DEPENDENCIES = [
      ...this.NPM_DEPENDENCIES,
      // {src: 'jquery/dist/jquery.min.js', inject: 'libs'},
      // {src: 'lodash/lodash.min.js', inject: 'libs'},
    ];

    // Add `local` third-party libraries to be injected/bundled.
    this.APP_ASSETS = [
      ...this.APP_ASSETS,
      // {src: `${this.APP_SRC}/your-path-to-lib/libs/jquery-ui.js`, inject: true, vendor: false}
      // {src: `${this.CSS_SRC}/path-to-lib/test-lib.css`, inject: true, vendor: false},
    ];

    this.addPackageBundles({
      name: 'angular2-modal',
      path: 'node_modules/angular2-modal/bundles/angular2-modal.umd.js'
    });

    /* Add to or override NPM module configurations: */
    // this.mergeObject(this.PLUGIN_CONFIGS['browser-sync'], { ghostMode: false });
  }

}

With the only change:
    this.addPackageBundles({
      name: 'angular2-modal',
      path: 'node_modules/angular2-modal/bundles/angular2-modal.umd.js'
    });

@mgechev, That change had no effect in my environment.

What version of the seed are you using? What's the hash of the last commit?

Is the problem solved? I run into the same issue with ngx-datatable(https://github.com/swimlane/ngx-datatable). When I import this library into angular-tours-of-hero, it works fine.

Anyone able to address this issue? I am using ngx-datatable with angular-seed. when I do a prod build I get following error only on linux machine.
It tries to look<EMAIL_ADDRESS>instead of<EMAIL_ADDRESS>not sure why?
Error: Error on dependency parsing for dist/tmp/app/shared/shared.module.js at file:///app/dist/tmp/app/shared/shared.module.js
        Loading dist/tmp/app/app.module.js
        Loading dist/tmp/app/main.js
        (SystemJS) ENOENT: no such file or directory, open<EMAIL_ADDRESS>        Error: ENOENT: no such file or directory, open<EMAIL_ADDRESS>            at Error (native)
        Error loading<EMAIL_ADDRESS>            at Error (native)
            at Error (native)

I could address these issue with following setup:

project.config.ts -> added following configuration for additionalPackages.

 {
      name: '@swimlane/ngx-datatable',
      path<EMAIL_ADDRESS>    }

seed.config.ts -> SYSTEM_BUILDER_CONFIG -> packageConfigPaths:
join('node_modules', '@swimlane', '*', 'package.json')

project.config.ts add 2 statements it worked for me.
{
name: '@swimlane/ngx-charts',
path<EMAIL_ADDRESS>},
{
name: '@swimlane/ngx-charts/*',  //prod
path<EMAIL_ADDRESS>},


Missing yellow outline in the logo at the integration page (dark mode)

Unlike the smaller logo at the integration list page:

... the bigger logo that shows in the integration page doesn't have a yellow border when in dark mode:

This is caused by https://github.com/home-assistant/brands/issues/4471 and should be fixed.

Home Assistant Brands PR: https://github.com/home-assistant/brands/pull/5009


circleci: Paralelism off

Codecov Report
Patch and project coverage have no change.

Comparison is base (cb036b9) 85.45% compared to head (ab0ba5f) 85.45%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage   85.45%   85.45%
=======================================
  Files           2        2
  Lines          55       55
=======================================
  Hits           47       47
  Misses          8        8

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Added support to accept skip_labels array

Fixes https://github.com/bigbinary/neeto_commons/issues/764

@unnitallman _a We need to test this change

@abhishekt98 Please test it.


Drop support for Node 12

Node v12 is now EOL, we should drop support for it.
Testing against Node v12 is currently blocking some major upgrades:
https://github.com/apollographql/apollo-utils/pull/193
https://github.com/apollographql/apollo-utils/pull/206

Followup: create version-1 branch. Configure renovate and changeset workflow to both see it as well as main. The version-1 branch will be used for releasing important bugfixes / security patches as needed.


diff between two relative path files still shows up as deleted+added

I think we still have our logic a bit off if you are passing two filenames as arguments:
go run ./cmd/mal diff ../malcontent-samples/linux/clean/ls.x86_64 ../malcontent-samples/macOS/clean/ls
├─ 🟡 Deleted: ls.x86_64 [MEDIUM]
│     ≡ data [LOW]
│       🟢 compression/lzma — works with lzma files
│     ≡ discovery [LOW]
│       🟢 system/hostname_get — get computer host name: gethostname
│     ≡ execution [LOW]
│       🟢 shell/TERM — Look up or override terminal settings: TERM
│     ≡ filesystem [LOW]
│       🟢 link_read — read value of a symbolic link: readlink
│     ≡ networking [LOW]
│       🟢 url/embedded — contains embedded HTTPS URLs:
│            https://gnu.org/licenses/gpl.html, https://translationproject.org/team/, https://wiki.xiph.org/MIME_Types_and_Fil…
│     ≡ process [MEDIUM]
│       🟡 name_set — get or set the current process name: __progname
│
├─ 🟢 Added: ls [LOW]
│     ≡ execution [LOW]
│       🟢 shell/TERM — Look up or override terminal settings: TERM
│     ≡ filesystem [LOW]
│       🟢 directory/traverse — traverse filesystem hierarchy: _fts_children, _fts_close, _fts_open, _fts_read, _fts_set
│       🟢 link_read — read value of a symbolic link: readlink

similar to the diff(1) command, this should show up as a single changed file.

I think this comes down to the added/removed logic. The first file will be stored in the map with the key ls.x86_64 and we'll use that to do the lookup for ls and it won't match so it will be treated as an add/remove rather than a modify.

Ah, I see why. This is from the clean path changes in #617. I'll work on handling this differently for diffs.

If I store the value of rel without the extension, this works as described above:
$ go run cmd/mal/mal.go diff ../malcontent-samples/linux/clean/ls.x86_64 ../malcontent-samples/macOS/clean/ls
├─ 🔵 Changed: ../malcontent-samples/macOS/clean/ls [MEDIUM → LOW]
│     X data [LOW → NONE]
---     🔵 compression/lzma — works with lzma files
│     X discovery [LOW → NONE]
---     🔵 system/hostname — get computer host name
│     ≡ execution [LOW]
│       🔵 shell/TERM — Look up or override terminal settings: TERM
│     ≡ filesystem [LOW]
│       🔵 link_read — read value of a symbolic link: readlink
+++     🔵 directory/traverse — traverse filesystem hierarchy: _fts_children, _fts_close, _fts_open, _fts_read, _fts_set
│     X networking [LOW → NONE]
---     🔵 url/embedded — contains embedded HTTPS URLs
│     X process [MEDIUM → NONE]
---     🟡 name_set — get or set the current process name
│

Do we want to go this route? Two files of different types with the same name would show odd behavior drift but maybe we want that? Conversely, two files with different names may be the same underlying file and the diff would show as deleted/added when it would be more appropriate to show as changed.

FWIW, like diff(1), the file name shouldn't matter at all if two filenames are being passed into it. Filename logic only happens when directories are passed in.

I mentioned relative paths in the initial bug report, but this happens for absolute paths too:
go run ./cmd/mal/ diff ../malcontent-samples/linux/clean/ls.x86_64 /bin/ls

FWIW, like diff(1), the file name shouldn't matter at all if two filenames are being passed into it. Filename logic only happens when directories are passed in.

Ah okay, this clarifies things. I'll hack on that tomorrow.

Addressed via #628.


After zooming in, the value of viewer.viewport.deltaPixelsFromPoints seems to be wrong.

I am programming to make a cursor with a size of 128 x 128 and move the cusor using the arrow keys, and move the viewport by 128 when the cursor is out of the viewport.
After zooming out to the maximum, it was programmed as follows.
// to get the size and position of the viewport
viewBounds = viewer.viewport.getBounds(true);
// Get the start x,y and end x,y of the viewport as point values.
firstX = viewBounds.x;
firstY = viewBounds.y;
lastX = viewBounds.x + viewBounds.width;
lastY = viewBounds.y + viewBounds.height;
// Change the starting x, y and last x, y point values of the viewport to pixels
firstPoint = new OpenSeadragon.Point(firstX, firstY);
lastPoint = new OpenSeadragon.Point(lastX, lastY);
firstPos = viewer.viewport.deltaPixelsFromPoints(firstPoint, false);
lastPos = viewer.viewport.deltaPixelsFromPoints(lastPoint, false);
In this way, it was confirmed that it was imported normally.
But after zooming in to viewport.zoomBy(0.5)
If you try to get the pixel value of the above viewport again, I cannot get a normal value.
For example, it initially gets the following values:
viewBound Start Position(pixel) : 8422.04, 16943.38
viewBound Last Position(pixel) : 8782.04, 17358.38
And after zoom in to viewport.zoomBy(0.5),
If I try to get the pixel value of the viewport again, I get smaller values.
viewBound Start Position(pixel) : 4121.02, 8367.94
viewBound Last Position(pixel) : 4481.02, 8782.94
After zooming in, how do I get a value within the same range instead of a smaller value?

What are you trying to do with these values? Do you really want the delta conversion, which doesn't take into account position but is just for sizes?
If you're trying to pan by 128 web pixels no matter how zoomed in or out you are, you could do something like:
var isRightArrowPressed; // Set this based on your event handling
if (isRightArrowPressed) {
  viewer.viewport.panBy(viewer.viewport.deltaPointsFromPixels(new OpenSeadragon.Point(128, 0)));
}

Thank you very much for your reply.
As you mentioned, if you press the key to move the cursor one space at a time by 128 pixels, the viewport needs to be updated again when the cursor leaves the viewport.
For example, if you press the right arrow key to move 128px out of the viewport of the screen, you want to move the viewport itself to the right by 128px to continue showing it to the user. So, as you mentioned, in addition to moving the cursor 128px, the purpose is to make sure the cursor is out of the viewport area and move the viewport itself by 128px. As I said above, when zooming in, the viewport becomes smaller, which is a problem. Is there a way to get the exact position of the viewport in web pixels when zooming out and zooming in? Thank you so much for your kind reply.

Sure, to get the current viewport bounds in web coordinates, you can do viewer.viewport.viewportToViewerElementRectangle(viewer.viewport.getBounds()).


Require github action to keep other repos uptodate with .devcontainer

There is a folder in this repo which is consumed in other repo's (for example, the go.d repo).
https://github.com/netdata/community/tree/main/devenv/.devcontainer
However, this appears to be kept up to date only manually.
Could we have some automation to copy, on change, from this repo to the consuming repos?
We already have config drift between the two repos mentioned.

Note that the readme says:
The devenv includes all the dependencies required to develop for the following repositories:

netdata/netdata
netdata/dashboard
netdata/go.d.plugin
netdata/helmchart

And so we should think about pushing at least to those.
I am wondering whether a solution would be to convert the devcontainer.json in this repo into a devcontainer templates as per here:
https://containers.dev/implementors/templates/
And then each repo could have a well-known named file such as devcontainer_custom.json which would be referenced the devcontainer.json and contain any repo specific settings.

@luisj1983 updating the readme is an alternative option, keep it in mind 😄

@ilyam8
Sure but all that really matters is whether Netdata team want the devcontainer stuff in your repos or not :-D
My view is that it adds value by lowering the bar to entry for contributing and ensuring consistency.
If the above is a good idea then the only question is whether it gets supported well or poorly; and having to keep files like that manually in sync doesn't feel like the best option (in fact, it feels a lot like more work).
Who might own the code and be responsible for its upkeep is different question and a valid concern; one I think I'd be happy to assist with (if that helps at all).


About tensor dimensions and layout

I am not quite familiar with openvino and general knowledge about ML. Please allow me to ask this here.

https://github.com/bytecodealliance/wasi-nn/blob/556890b121dd1171665d835aba4d04a7e29e37dc/rust/examples/classification-example/src/main.rs#L35
I noticed in wasmtime openvino implementation,  let desc = TensorDesc::new(Layout::NHWC, &dimensions, precision);. The code is using "NHWC" layout and "dimension" of wasm tensor, which is in "NCHW"([1,3,224,224]）shape, together. I assume "openvino-rs" will do extra to convert tensor data (from "NCHW" to "NHWC").
Questions are:

In classification-example case, why not create wasm tensor in "NHWC" directly. Then there is no need for data pre-processing("NCHW" -> "NHWC")?
It seems users can create tensors in either "NHWC" and "NCHW" layout. How make provisions for matching input tensor and model input port requirement? I mean should we always assume users can satisfy the input requirement or backends in runtime has to do data pre-processing(like ppp in openvino)?

The OpenVINO pre-processing that you observed in Wasmtime was a hack that OpenVINO forced on us but as you note here, that shouldn't be necessary any more. The current design of wasi-nn asks users to set up their tensors in the exact format expected by the model/graph; wasi-nn is low-level in this sense. In the past we've discussed adding more pre-processing functionality to the wasi-nn API (and that avenue is still open if you want to propose something!) but for now we have found that adding all the image-related helper functions to the image2tensor crate is "good enough."


cicd: backend migration actually requires external-secrets created in the step after

Note: On brand new build this doesnt happen, but can be a problem if people deploy one(staging) environment, do some development then go ahead and deploy their 2nd(prod) environment at a later date.
The existing flow for CI/CD pipeline deployment goes something like this

build image
check migration files
2.1 if no migration files skip to deploy
2.2 if there are migration files create migration job and waits for job to succeed
deploy (kustomize  apply overlay/)

On a brand new repo during ci/cd, when there's no migration file it works, But if the first time running one already has migration files, the k8s environment does not have secret for migration job to mount, which would be created from external-secrets during deploy step.

basically the same reason as https://github.com/commitdev/zero-backend-go/issues/72


Vietnamese source update: nettruyen

Hi Dev
Nettruyen (a big Vietnamese source) has updated their new domain.
Previous: nettruyenme.com
New domain: nettruyenin.com
Thus come we Vietnamese unable to search or read using the Aidoku app anymore.
If you have sometime, kindly please help update the source list.
Much appreciate and have a nice weekend!
Thank you for this app.

Thanks for reporting, should be fixed now.


fixed bug

If the character is lowercase,indexOf will return -1 ,b and c is 255;will throw "input contains invalid UTF data"

Thank you!
Unfortunately, there are a few problems with this CR. I've pushed 33f6ee4 instead, which should address the same issue. Let me know if you run into any cases I've missed over at issue #11.


WebUI does not render properly - compared to images I've seen.  And tortoise fails to generate

Fresh install of Ubuntu 22.04, with cuda 12.3 and Nvidia driver 535.
Tried this a few times with the latest one click, and the webUI renders in a simple grey background with no formatting.
The only thing notable on installation was some errors with python libs:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. audiocraft 1.3.0a0 requires hydra-core>=1.1, but you have hydra-core 1.0.7 which is incompatible.                                                                                audiocraft 1.3.0a0 requires torch==2.1.0, but you have torch 2.0.0 which is incompatible.
and
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. audiocraft 1.3.0a0 requires torch==2.1.0, but you have torch 2.0.0 which is incompatible.                                                                                fairseq 0.12.2 requires hydra-core<1.1,>=1.0.7, but you have hydra-core 1.3.2 which is incompatible.                                                                                fairseq 0.12.2 requires omegaconf<2.1, but you have omegaconf 2.3.0 which is incompatible.
Upon install, the webUI allows me to attempt a generation with Tortoise, but the text doesn't get through to the model:
Traceback (most recent call last):   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction     output = await route_utils.call_process_api(   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api     output = await app.get_blocks().process_api(   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api     result = await self.call_function(   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py", line 1199, in call_function     prediction = await utils.async_iteration(iterator)   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 519, in async_iteration     return await iterator.__anext__()   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 512, in __anext__     return await anyio.to_thread.run_sync(   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync     return await get_asynclib().run_sync_in_worker_thread(   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread     return await future   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run     result = context.run(func, *args)   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 495, in run_sync_iterator_async     return next(iterator)   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 649, in gen_wrapper     yield from f(*args, **kwargs)   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/generation_tab_tortoise.py", line 168, in gen     yield from generate_tortoise_long(   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/gen_tortoise.py", line 200, in generate_tortoise_long     datas = generate_tortoise(   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/gen_tortoise.py", line 111, in generate_tortoise     result, state = tts.tts_with_preset(   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/tortoise/api.py", line 321, in tts_with_preset     return self.tts(text, **settings)   File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/tortoise/api.py", line 464, in tts     clip_results = torch.cat(clip_results, dim=0) RuntimeError: torch.cat(): expected a non-empty list of Tensors {   type: 'status',   endpoint: '/generate_tortoise_1',   fn_index: 263,   time: 2024-01-22T20:56:09.818Z,   queue: true,   message: null,   stage: 'error',   code: undefined,   success: false }
Many thanks for such a great project and effort

Also just tried out Bark and got a fail, so I'll paste the output here in case it helps:
`Generating: ''' Howdy! '''
Parameters: history_prompt: v2/en_speaker_0 text_temp: 0.7 waveform_temp: 0.7
Traceback (most recent call last):
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction
output = await route_utils.call_process_api(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api
output = await app.get_blocks().process_api(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api
result = await self.call_function(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py", line 1199, in call_function
prediction = await utils.async_iteration(iterator)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 519, in async_iteration
return await iterator.anext()
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 512, in anext
return await anyio.to_thread.run_sync(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 495, in run_sync_iterator_async
return next(iterator)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 649, in gen_wrapper
yield from f(*args, **kwargs)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/bark/generation_tab_bark.py", line 327, in gen
filename, filename_png, _, _, filename_npz, seed, metadata = generate(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/bark/generation_tab_bark.py", line 81, in generate
full_generation, audio_array = custom_generate_audio(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/bark/extended_generate.py", line 53, in custom_generate_audio
burn_in_prompt_semantic = text_to_semantic(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/bark/api.py", line 25, in text_to_semantic
x_semantic = generate_text_semantic(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/bark/generation.py", line 394, in generate_text_semantic
history_prompt = _load_history_prompt(history_prompt)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/bark/generation.py", line 358, in _load_history_prompt
history_prompt = np.load(history_prompt_input)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/numpy/lib/npyio.py", line 405, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: 'voices\2023-06-18_21-51-07__bark__continued_generation.npz'
{
type: 'status',
endpoint: '/bark',
fn_index: 140,
time: 2024-01-22T21:01:06.117Z,
queue: true,
message: 'None',
stage: 'error',
code: undefined,
success: false
}
Traceback (most recent call last):
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction
output = await route_utils.call_process_api(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api
output = await app.get_blocks().process_api(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api
result = await self.call_function(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py", line 1199, in call_function
prediction = await utils.async_iteration(iterator)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 519, in async_iteration
return await iterator.anext()
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 512, in anext
return await anyio.to_thread.run_sync(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 495, in run_sync_iterator_async
return next(iterator)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 649, in gen_wrapper
yield from f(*args, **kwargs)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/generation_tab_tortoise.py", line 168, in gen
yield from generate_tortoise_long(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/gen_tortoise.py", line 200, in generate_tortoise_long
datas = generate_tortoise(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/gen_tortoise.py", line 111, in generate_tortoise
result, state = tts.tts_with_preset(
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/tortoise/api.py", line 321, in tts_with_preset
return self.tts(text, **settings)
File "/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/tortoise/api.py", line 464, in tts
clip_results = torch.cat(clip_results, dim=0)
RuntimeError: torch.cat(): expected a non-empty list of Tensors
{
type: 'status',
endpoint: '/generate_tortoise_1',
fn_index: 263,
time: 2024-01-22T20:56:09.818Z,
queue: true,
message: null,
stage: 'error',
code: undefined,
success: false
}
`

Thanks for the detailed report. Are you using it with Gradio or react? I'm
guessing Gradio. That tortoise error seems to be specific to what's going
on within the model. Do you have the full tortoise generation parameter
list from command line?
For bark I can see that it's a Unix / vs \ issue. In this case I'll
probably do a path.split then path.join but I'm not near any workstations
for several more days.
On Tue, Jan 23, 2024, 12:03 AM jamesdnexa @.***> wrote:

Also just tried out Bark and got a fail, so I'll paste the output here in
case it helps:
`Generating: ''' Howdy! '''
Parameters: history_prompt: v2/en_speaker_0 text_temp: 0.7 waveform_temp:
0.7
Traceback (most recent call last):
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/queueing.py",
line 407, in call_prediction
output = await route_utils.call_process_api(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/route_utils.py",
line 226, in call_process_api
output = await app.get_blocks().process_api(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py",
line 1550, in process_api
result = await self.call_function(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py",
line 1199, in call_function
prediction = await utils.async_iteration(iterator)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py",
line 519, in async_iteration
return await iterator.anext()
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py",
line 512, in anext
return await anyio.to_thread.run_sync(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/to_thread.py",
line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py",
line 877, in run_sync_in_worker_thread
return await future
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py",
line 807, in run
result = context.run(func, *args)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py",
line 495, in run_sync_iterator_async
return next(iterator)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py",
line 649, in gen_wrapper
yield from f(*args, **kwargs)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/bark/generation_tab_bark.py",
line 327, in gen
filename, filename_png, _, _, filename_npz, seed, metadata = generate(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/bark/generation_tab_bark.py",
line 81, in generate
full_generation, audio_array = custom_generate_audio(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/bark/extended_generate.py",
line 53, in custom_generate_audio
burn_in_prompt_semantic = text_to_semantic(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/bark/api.py",
line 25, in text_to_semantic
x_semantic = generate_text_semantic(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/bark/generation.py",
line 394, in generate_text_semantic
history_prompt = _load_history_prompt(history_prompt)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/bark/generation.py",
line 358, in _load_history_prompt
history_prompt = np.load(history_prompt_input)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/numpy/lib/npyio.py",
line 405, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory:
'voices\2023-06-18_21-51-07__bark__continued_generation.npz'
{
type: 'status',
endpoint: '/bark',
fn_index: 140,
time: 2024-01-22T21:01:06.117Z,
queue: true,
message: 'None',
stage: 'error',
code: undefined,
success: false
}
Traceback (most recent call last):
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/queueing.py",
line 407, in call_prediction
output = await route_utils.call_process_api(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/route_utils.py",
line 226, in call_process_api
output = await app.get_blocks().process_api(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py",
line 1550, in process_api
result = await self.call_function(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py",
line 1199, in call_function
prediction = await utils.async_iteration(iterator)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py",
line 519, in async_iteration
return await iterator.anext()
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py",
line 512, in anext
return await anyio.to_thread.run_sync(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/to_thread.py",
line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py",
line 877, in run_sync_in_worker_thread
return await future
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py",
line 807, in run
result = context.run(func, *args)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py",
line 495, in run_sync_iterator_async
return next(iterator)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py",
line 649, in gen_wrapper
yield from f(*args, **kwargs)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/generation_tab_tortoise.py",
line 168, in gen
yield from generate_tortoise_long(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/gen_tortoise.py",
line 200, in generate_tortoise_long
datas = generate_tortoise(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/gen_tortoise.py",
line 111, in generate_tortoise
result, state = tts.tts_with_preset(
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/tortoise/api.py",
line 321, in tts_with_preset
return self.tts(text, **settings)
File
"/home/james/workspace/ttswui/workspace/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/tortoise/api.py",
line 464, in tts
clip_results = torch.cat(clip_results, dim=0)
RuntimeError: torch.cat(): expected a non-empty list of Tensors
{
type: 'status',
endpoint: '/generate_tortoise_1',
fn_index: 263,
time: 2024-01-22T20:56:09.818Z,
queue: true,
message: null,
stage: 'error',
code: undefined,
success: false
}
`
—
Reply to this email directly, view it on GitHub
https://github.com/rsxdalv/tts-generation-webui/issues/267#issuecomment-1904811791,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABTRXI5KI5SRCK7IKDEJDODYP3HYJAVCNFSM6AAAAABCF3LEMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBUHAYTCNZZGE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Ok, I looked at it again and here are some potential answers:
Generating: '''Howdy!'''
Parameters:
  history_prompt: v2/en_speaker_0
  text_temp: 0.7
  waveform_temp: 0.7

Traceback (most recent call last):
  File "/path/to/gradio/queueing.py", line 407, in call_prediction
    output = await route_utils.call_process_api(…)
  File "/path/to/gradio/route_utils.py", line 226, in call_process_api
    output = await app.get_blocks().process_api(…)
  File "/path/to/gradio/blocks.py", line 1550, in process_api
    result = await self.call_function(…)
  File "/path/to/gradio/blocks.py", line 1199, in call_function
    prediction = await utils.async_iteration(iterator)
  File "/path/to/gradio/utils.py", line 519, in async_iteration
    return await iterator.__anext__()

...

FileNotFoundError: [Errno 2] No such file or directory: 'voices/2023-06-18_21-51-07__bark__continued_generation.npz'

...
RuntimeError: torch.cat(): expected a non-empty list of Tensors

The bark failed to find the voice, could be for many reasons, but as long as you change the voice it will work fine.
The Tortoise failure with non-empty list of Tensors usually means that something was empty, i.e., no prompt or the voice files were empty or the batch size is too small for your GPU.
If there are still any issues, please ask more or reopen this issue.


More new examples

Extended Autonumber to support '1.1.1' format
Added IncreaseAutonumber method
Extended SkinParameter to support more typed parameters
Added[H|R]Note & [H|R]StartNote methods
Added option to align (Start)([H|R])Note
Consolidated unit tests
Bugfix: Handle null format on Arrow's ToString

Pull Request Test Coverage Report for Build 960560930

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

Totals

Change from base Build 954438482:
0.0%

Covered Lines:
1391

Relevant Lines:
1391

💛  - Coveralls


As of installing this plugin, the on save action, to execute black formatter, gets disabled.
Steps to reproduce

Have black configured on save

Install and enable the Pyright plugin
The save action stops working

Relevant log output or stack trace
No response
Operating system
macOS

This seems to be (yet) another unwanted side effect of triggering save programmatically. I have explained this design choice once in #10 and thus I'm closing this issue as a duplicate of it. I will work on a fix if I ever know better, but that is unlikely to happen.
However, the good news is that this won't be a problem when #42 is merged, which would allow PyCharm Community users to make good use of Pyright's language server capabilities. Please look forward to it.

Thank you for explaining!


Package request:  kando 🥧 The Cross-Platform Pie Menu.

Project description
Kando will be a pie menu for the desktop. It will be highly customizable and will allow you to create your own menus and actions. For instance, you can use it to control your music player, to open your favorite websites or to simulate shortcuts. It will be available for Windows, Linux and macOS.
Metadata

homepage URL: https://ko-fi.com/post/Introducing-Ken-Do-L3L7L0FQ2
source URL:  https://github.com/kando-menu/kando
license: mit
platforms:  linux, darwin

Packaging this from source seems a bit difficult at the moment:

The project uses electron-forge for building electron apps, which uses electron-packager as a build back-end, which is very annoying to work with.

There are no packages ATM in nixpkgs, which use it, however I have a pending PR https://github.com/NixOS/nixpkgs/pull/250627, which actually uses it
Here are the package subcommand docs: https://electron.github.io/packager/main/interfaces/Options.html

The app uses cmake-js which tries to fetch some node-api related files from the network, which we can't do. This is probably an issue with cmake-js, and I haven't been able to figure out how to work around this.

The latter made me give up on packaging it from source.

There are Appimages available for each release, would it be possible to work from one of those?
There's some early attempts in the above mentioned issue on the Kando repo

Finally got it to compile from source, though it looks a bit buggy for me (I'm using i3 as the wm, probably that's the issue)

Finally got it to compile from source, though it looks a bit buggy for me (I'm using i3 as the wm, probably that's the issue)

Got an idea on how I can test this package out, so I can see if it runs on Plasma?

Finally got it to compile from source, though it looks a bit buggy for me (I'm using i3 as the wm, probably that's the issue)

Got an idea on how I can test this package out, so I can see if it runs on Plasma?

nix-shell -I nixpkgs=https://github.com/TomaSajt/nixpkgs/archive/kando.tar.gz -p kando
and then run kando

nix-shell -I nixpkgs=https://github.com/TomaSajt/nixpkgs/archive/kando.tar.gz -p kando
and then run kando

Sweet, this works fine. Got Kando up and running on my install of KDE Plasma. It's just currently missing a shortcut, but I'd imagine that the reason why it doesn't have that is because of how nix-shell functions.

Finally got it to compile from source, though it looks a bit buggy for me (I'm using i3 as the wm, probably that's the issue)

On i3 you'll need a compositor for Kando to look good. Else the transparent background will be black.

Sweet, this works fine. Got Kando up and running on my install of KDE Plasma. It's just currently missing a shortcut, but I'd imagine that the reason why it doesn't have that is because of how nix-shell functions.

Are you using Wayland? If so, you'll need to configure the hotkey in KWin's global shortcut settings. See the platform-notes of Kando. On X11, it should be possible to adjust the hotkey in the settings of Kando.

Are you using Wayland? If so, you'll need to configure the hotkey in KWin's global shortcut settings.

Yeah, I'm using Wayland. It just seems like using CTRL + Win (Meta) might just be tripping up KDE or something. Will probably wait to play around further with this.

I just looked at your PR. This looks like an awful lot of fiddling around to get this working. Thanks a ton! I'll try to not change much to the build system in the future 😉

Am I off base in thinking it would be easier/less fragile to just copy the binaries from the AppImage and bring in the same dependencies?
I assume this is not preferred in the Nix philosophy? I'm interested in making an attempt at writing that build script when I have some free time (currently moving)

I think I reached a point where I can't improve the derivation anymore, and I'm satisfied with it.
If you want to help this move forward a bit faster, please leave a review on the PR stating which platform you're testing on and whether certain features of the program worked for you or not.
I'd appreciate the help.

Alright, for those wondering, if you run it through nixshell, the shortcuts won't work.
So I managed to add it to my own dotfiles by adding this flake, and then adding kando under the outputs:
kando.url = "github:TomaSajt/nixpkgs/kando";
Afterwards, I add this to my "systemPackages = with pkgs;":
inputs.kando.legacyPackages.${pkgs.system}.kando
Just tested out this package, and it works.


CI not working

Seems to be an error reading the credentials

This happens because Travis protects the secret keys for third-party PRs (so you can inject code that would steal the keys). There are some where around though, where we skip the integrations tests. I'll add that.

Sorry, you're right, forgot that credentials are only available on the upstream repository. Close the issue at your leisure.


Add ribbon endpoint section

osk actively discourages bots from connecting to /ribbon - see the following Discord messages:

https://discord.com/channels/673303546107658242/673303546564968566/828061151161221140
https://discord.com/channels/673303546107658242/673303546564968566/828061454384496650

Perfect, thank you!


how to add class controller sms

please guide me

you can use it in controller.
use abhimanyu\sms\components\Sms;


Undefined exception

I am getting undefined exception.
It seems this check needs currentDiv.className instead of  div.className .

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10381284-undefined-exception?utm_campaign=plugin&utm_content=tracker%2F637500&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F637500&utm_medium=issues&utm_source=github).

Oh, that's miscopy code...
It has to be currentDiv.className instead of div.className


feature: provide public submodules for different categories of things

Is your feature request related to a problem? Please describe.
Hey, I'm just jumping back into using griffe, and really impressed with all the work that went into the v1 release! This isn't exciting, in that it suggests more moving around objects to the public API, so feel free to punt 😅 .
Currently, griffe's public API is flat, with all classes and functions exposed on the top-level. If you know what you want, this feels quick and easy to get it (via from griffe import X). However, it can feel a bit challenging for two things:

discovery: tab completting griffe gives about 200 options, with different categories mixed in terms of order.
scoping: you can specify what you want when importing, but it's often handy to import things like "all 30 docstring models"

Describe the solution you'd like
Exposed public submodules for different categories of the API. For example, it could mirror the internal API, but only contain public objects...
import griffe.docstrings.models as ds
import griffe.models as dc

or some other categorization. I think what's most helpful here is giving a bit of support to discovery and scoping around types of activities.
Describe alternatives you've considered
People could use the internal _griffe package for discovery, and then import explicitly from griffe.

Hey @machow, happy to have you back 😊!
You make good points about discovery and scoping. I sometimes relying on "tab" to see what an object exposes (including private stuff 🙈).
But I feel like these arguments do not weigh enough in the balance to justify the trouble of having the module layout be part of the API again 😅

discovery: if you're looking for something in particular, you look at the names (that's what auto completion will give you). You'll quickly notice naming patterns and be able to orient/filter your exploration of the available objects. This gave me an idea for improving the API docs though: to ease this discovery by improving the top level docstring! (help(griffe))
scoping: you have the ultimate namespace that contains everything already: griffe 😀 Seriously, I started doing just import griffe and accessing objects from there. It's a quite nice feeling. If you access a lot of objects (and/or a lot of times), you could alias it to g or gr to make it shorter?

It's not a hard no, but it'll will take a bit more convincing I'm afraid 😄
I'd be especially interested in actual troubles you had using the v1 API, if any 🙂

You know what, I think there's room for doing something interesting.
I see the benefits of nested namespaces instead of a single global one. But I don't want to deal with deprecations because of objects moving between modules ever again. So maybe we could have namespaces that explicitly declare some members, for both discovery and scoping, but allow to access any object of the API anyway, forever, using __getattr__.
Such namespaces would effectively allow better DX without sacrificing maintenance. WDYT? I can come up with a demo in the next days :)

That's fair -- I definitely think for me it's 90% about static completion suggestions in VS Code and tab-complete in IPython, so some any kind of namespacing contraption seems okay.
It seems like what you're suggesting is sort of similar to pandas or polars accessors, where an attribute on the DataFrame gives access to more methods, e.g.
import pandas as pd
df = pd.DataFrame({"x": ["a", "b"]})

# using str accessor, which hold string related operations
df["x"].str.upper()

(only in this case it's on a module, case it sounds like there's a sort of fallback to anything exposed on griffe)

I've ran some experiments, but it's not conclusive. There is no way yet to satisfy both the IDE (VSCode in my case) and Griffe, while avoiding too much repetition or confusion on the long-term. I'll close for now :slightly_smiling_face: Please do elaborate if you think we should really do something about this!


Oopsie?

Presumably this was meant to be format_node, not format_tree, but maybe just pass along as-is?

Thanks!


bash-style completion

Would be cool to support:
file.{css,js} => [ 'file.css', 'file.js' ]

Hi Matthew :) would you mind more information about this? I am not familiar with this.

sure thing, take a look at the examples at: https://github.com/juliangruber/brace-expansion
That's a really popular module, I'd think it'd be pretty easy to add in here :-)

Looks nice but I need more people who would like it. Obviously I can't implement every little thing.


Add ogmo_version to project and level JSON

This will help down the road if new features need to check compatibility 👍

added with 15e59de4325a0aa29cd3b3e0f9354d7b9d8779b4


Don't resize the OpenGL preview window to output pixel resolution values

Description of bug / unexpected behavior

Opening a scene with the -p flag launches a window, which scales itself according to the resolution values:
https://github.com/ManimCommunity/manim/blob/b57f0f401905646669dfef6060bc805b46c28ea9/manim/renderer/opengl_renderer_window.py#L15-L18
This can create unnecessarily large windows when using higher resolutions (say, -qp, or -qk etc.) which are difficult to manage, especially on small screens like those of laptops (-qk would give you a 3840x2160 pixel window!). Not everyone has a fancy widescreen monitor y'know.
Expected behavior

Reasonably sized preview window, not dependent on the output media's resolution. Maybe a fixed size window as used in 3b1b/manim?
https://github.com/3b1b/manim/blob/master/manimlib/window.py#L17-L24
How to reproduce the issue

Use any scene, just render with something like -pqp --renderer=opengl
Code for reproducing the problem
Paste your code here.

Additional media files

Images/GIFs

Logs
Terminal output

PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR

System specifications
System Details

OS (with version, e.g Windows 10 v2004 or macOS 10.15 (Catalina)):
RAM:
Python version (python/py/python3 --version):
Installed modules (provide output from pip list):

PASTE HERE

LaTeX details

LaTeX distribution (e.g. TeX Live 2020):
Installed LaTeX packages:

FFMPEG
Output of ffmpeg -version:
PASTE HERE

Additional comments

cc @eulertour

I have opened up a pull request. #1438

Closed via #1728.