METRON-705: Parallelize the build in travis to the extent that is obvious

Travis suggests here that for situations where the integration get chunky, one can parallelize them using their build matrix functionality. Also, if we can separate those out, we can also process-parallelize the unit and build.
Currently the build time is cut roughly in half to 24 minutes wall-clock.
NOTE: This is just a stopgap that requires no code changes to lower build wall-clock times.  This is not intended to replace work parallelizing the integration tests or making the build take less time.

So to test this - if you have travis set up for your git account, I think you just push it to a branch in your repo and let travis build it?

@ottobackwards Yes, that should do it.

Yep, that's how I did it.  You can see a build of it on my account here

I'm doing it now

#14 passed
Elapsed time 43 min 10 sec
Total time 1 hr 6 min 21 sec

integration tests took 43 minutes

Wow, that's interesting @ottobackwards ; seems like this is very variable.  Could you run it again and see if it's consistent?

Looking at those logs, it appears that the first phase, the build (not the actual integration tests) is 4 minutes 39 seconds in my integration-test phase build on travis vs 21 minutes 53 seconds on yours

you bet.... btw -the build on this pr isn't even going at all

@ottobackwards Yeah, we have to use the apache job queue (which has 30 parallel builds) on travis rather than the big one for all open source projects.  I suspect it gets slammed during the day.

Ok, this was just too volatile.  I also got 43 minutes for the integration test run.  It's probably worth investigating in the future, but for now I'm going to revert to just one container:

parallelize the package phase
parallelize the unit test phase
run the integration tests in serial

Also, with only 30 parallel builds available across all apache projects, asking for 2 separate containers per build might be greedy. ;)

#14.1 passed
Elapsed time 23 min 28 sec
On my second try around 5pm

I reran this 7 times on my travis account for the most recent commit and the times were on average 32 minutes 53 seconds

28m 17s
28m 13s
46m 28s
35m 53s
26m 26s
33m 0s
31m 57s

+1, I was able to run this up in Travis setup on my repo without issue and it ran right in the middle of the time range listed


create Cucumber scenario

Proposed changes
What changed
We have added a module called : integration-tests
We have created a scenario to test session endpoint
Why did it change
This test will act as a QA gateway.
Issue tracking
https://govukverify.atlassian.net/browse/OJ-994
Checklists
Environment variables or secrets
STACK_NAME=di-ipv-cri-xxx
API_GATEWAY_ID_PRIVATE=xxx
IPV_CORE_STUB_BASIC_AUTH_USER=xxx
IPV_CORE_STUB_BASIC_AUTH_PASSWORD=xxx
IPV_CORE_STUB_URL="https://di-ipv-core-stub.london.cloudapps.digital"
To run the test
gradle cucumber -P tags=@session_endpoint_pre_merge_happy

I would have stopped, at having just the basic setup on this PR without Session feature / Session test or they they should have been dummy files. to be implemented in a later PR


Add Indonesian Language

Hi, I want to add Indonesian language, @indiealistic and @racheloveyou is Indonesian native speaker
Thanks :)

I'm ready to help

Yay! This is so exciting :D

I've added a #lang-indonesian channel in discord for y'all

I've added a #lang-indonesian channel in discord for y'all

Awesome i'll invite other indonesian to

Awesome i'll invite other indonesian to
Perfect. We'll leave this PR open a few more time so your friend (or anyone) joins


[google_maps_flutter] Clean Java test, consolidate Marker example.

Do not mock internal class in Java tests (zzt)
Consolidate drag_marker.dart demo into place_marker.dart demo. Remove drag_marker.dart demo.

Fixes comments in #2838
Pre-launch Checklist

[/] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[/] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[/] I read and followed the [relevant style guides] and ran [the auto-formatter]. (Note that unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[/] I signed the [CLA].
[/] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[N/A] I listed at least one issue that this PR fixes in the description above.
[N/A] I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy].
[N/A] I updated CHANGELOG.md to add a description of the change.
[/] I updated/added relevant documentation (doc comments with ///).
[/] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test exempt.
[/] All existing and new tests are passing.

@ditman Hope things are going well! Any chance to sneak that review in?

Yes! I got swamped with a cross_file issue. I'll get this reviewed by EOD Friday!

(This should land as soon as checks pass)

Actually, needs this to properly land: https://github.com/flutter/plugins/pull/4432 (I updated with master a few minutes too early!)

Thanks @ditman for all your work getting these 4 PRs landed!


Authorizing API Gateway Using Cognito User Pool Groups :: No 'Access-Control-Allow-Origin'

Describe the bug
I'm not sure if this is a bug or a mis understanding on how it works, however, I have setup Api Rest Serverless Express via Amplify. I have added endpoints and restricted access for Authorized, Guests & User Groups. I'm currently trying to hit one of my endpoints using a Cognito Access JWT Token. When I don't provide an Authorization Header in the request the API category seems to create the Authorization Header with a Signature dynamically and I'm able to hit the endpoint which is using IAM Authorization it seems to me. When adding authorization header with Bearer token (cognito access jwt token) I get a 403 No Access Control. I'm not understanding the flow here. On initial setup of the lambda using Amplify CLI I set it up to access other categories in the app such graphql api... When I look at the API Gateway the authorizer is setup as IAM Authorization. Shouldn't my groups authorization automatically be configured when using the CLI? What is the proper workflow to allow cognito groups hit my rest endpoints?
CLI Version  4.38.8

Hi @lr001dev. The JS library docs have a custom authorization code sample here that might be helpful:
https://docs.amplify.aws/lib/restapi/authz/q/platform/js#cognito-user-pools-authorization
For additional information on setup with the CLI:
https://docs.amplify.aws/cli/restapi

@jhockett Thank you for the reply. Just to verify, the documentation you pointed to me too at the first link I've seen before. Are you saying in order to get create this functionality I also need to create a "custom authorizer"? And if so, to further confirm, this is NOT an automated step that Amplify CLI will execute when setting up Authorization using Cognito Groups with REST API, correct or incorrect?

@jhockett Just getting an update on the above... Also can you let me know if using IAM Authorization on the API Gateway checks Cognito user groups if we are limiting certain methods based on those groups?

@lr001dev Currently the Amplify CLI only supports API Gateway authorization with IAM and not Cognito User Pools directly. Having said that we do have Cognito Group support with API Gateway. In that setup we assing an IAM role a Cognito User pool group and associate the corresponding CRUD IAM policies for accessing the API (based on the selections you. made in the add/update api flow). We do not use JWT tokens at the moment for authorization of groups.


updated codecov action

Try to get rid of the old nodes warnings...

Ok, we need to add the codecov token for OptimalControl, as a repo secret.
https://docs.codecov.com/docs/adding-the-codecov-token
When I log into codecov I don't find OptimalControl, any ideas ?

I would also suggest a separate workflow for coverage (ie not in the CI one), so that it is run on only one platform (linux).
The number of uploads per 30 day is limited, and there is no point in running the coverage on different systems.

The upload still fails, i'll close the PR


Inconsistent "qrKey" from iOS

The backend sometimes considers the original QR code contents as the "qrKey" (including a secret, as read and sent verbatim by the iOS app, which doesn't do E2EE), and sometimes the derived non-secret channel ID.
The "right" qrKey (non-secret) has length 64.
The "incorrect" qrKey has length 14.

Since #428, all qrKeys handled by the backend should be non-secret and have length 64.


Minor clarification DescriptorTablePointer::limit comment

limit in gdtr contain size - 1

The CI failures are unrelated to this PR. I created a fix in #507. I'll restart auto-merge once #507 (or an alternative) is merged. I apologize for the delays.

#507 was merged. I rebased this PR onto master to fix CI.


DSCP option for IP protocols LDP/BGP

Currently plain IP traffic is marked with tos 0x0. I would like to mark outgoing traffic with CS6 or different DSCP values. Tried to manipulate via iptables but doesn't work.
Looking for an option like:
{
....
"ldp": [
{
"instance-id": 1,
"lsr-id": "<IP_ADDRESS>",
"hold-time": 180,
"dscp": "cs6"                                  <<<<< this
}
],
"bgp": [
{
"local-ipv4-address": "<IP_ADDRESS>",
"peer-ipv4-address": "<IP_ADDRESS>",
"id": "<IP_ADDRESS>",
"local-as": 65535,
"peer-as": 65530,
"dscp": "cs6"                                <<<<< and this
}
]
}

Fixed in dev branch, targeted for 0.8.24:
Related Changes:

c9ae05ad79fa1efd1ff2acd0a95e40fd77dc8a92
5cf925dba20eb6c375af966540fd60a57b8d68e4


Do we need extra functionality to include fuel cells and micro-CHPs?

In https://github.com/quintel/etmoses/pull/518 we discuss importing of gas-consuming space heating and hot water technologies into ETMoses. Micro-CHPs and fuel cells are among those but with an extra twist: whenever they make heat, they also produce electricity.
Does this pose a problem for ETMoses? If so, we need to allocate time next year to include these technologies.
NOTE: We can look at them from two sides:

as heating technologies that have electricity as a by-product (which I suggest we do as I think it may simplify things)
as dispatchable electricity producers with heat as a by-product

Does this pose a problem for ETMoses?

Maybe, yes. Since we only have the one carrier at the moment, load is always simple consumption or production without any side-effects. We also know how much production is available at the beginning of the calculation (we know how much a solar PV produces, or how much is stored in a battery), but this feature would require production to change mid-calculation depending on the gas-load of the cell of CHP.
I'm not 100% sure what the effect of that would be, but I'll try to include it in my planning for gas technologies.

If so, we need to allocate time next year to include these technologies.

Are these techs wanted in Moses now, and if so, how do you think they should behave if we can't support electricity as a by-product in the short-term? Is the plan to include them only if we can implement the by-product, or would it be acceptable to only model the gas part?

Are these techs wanted in Moses now

(Very) nice to have I would say but people will understand that these technologies are more complex because they produce two carriers.

Is the plan to include them only if we can implement the by-product

I think so yes. Without the electricity production these technologies are just very inefficient heating devices...

Closing this for now.


Fixed StyleBoxFlat border size with aa on

The different Rect used to draw rings were wrongly calculated when anti-aliasing was enabled. Also getting rid of some overlapping glitches when using transparent colors for the filling or borders.
No anti-aliasing:

With anti-aliasing, 3.1.1:

With anti-aliasing, 3.2 beta 3:

With anti-aliasing, now fixed:

Fixes #34104

Thanks!

Any possibility of cherrypicking for 3.1?

I think it makes sense to have this in 3.1, as it makes antialiased StyleBoxFlats look closer to their non-antialiased counterparts.

It would require PR #26609 to be picked for 3.1 as well though, as the new fixes are dependent on the changes made then.


ActivityCompat.requestPermissions cannot be called twice

I got this when I first time install and run the app
2018-11-08 11:07:17.412 8340-8340/com.sample.multitrack106 W/Activity: Can request only one set of permissions at a time
2018-11-08 11:07:17.416 8340-8340/com.sample.multitrack106 D/mkdir: can't make folder
2018-11-08 11:07:17.417 8340-8340/com.sample.multitrack106 D/mkdir: can't make folder
2018-11-08 11:07:17.419 8340-8340/com.sample.multitrack106 W/System.err: java.io.FileNotFoundException: /storage/emulated/0/ZeuseesFaceTracking/models/det1.bin (Permission denied)
It seems that ActivityCompat.requestPermissions cannot be called twice. Should they be combined into one single call?

In addition to, the app work properly when l launch it the third times (first time for allow camera permission, the second time for all external storage). It's wired. BTW, I use the AS 3.2.1. The gradle version I used is different from the provided one (I updated it through AS) so I get a bit trouble when I build the project.


Circular load warning

I get a circular require warning when I include json_expressions in my tests. This seems legitimate:

requiring json_expressions/minitest requires json_expressions (line 3)
requiring json_expressions requires json_expressions/matcher (line 1)
requiring json_expressions/matcher requires json_expressions (line 1)

Output:
$ rake test
/home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:
warning: loading in progress, circular require considered harmful -
/home/ian/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/json_expressions-0.9.0/lib/json_expressions.rb
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:4:in  `<main>'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:4:in  `select'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:15:in  `block in <main>'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in  `require'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in  `require'
from /home/ian/workspace/epimorphics/ds-api-ruby/spec/data_services_api/aspect_spec.rb:1:in  `<top (required)>'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in  `require'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in  `require'
from /home/ian/workspace/epimorphics/ds-api-ruby/spec/minitest_helper.rb:7:in  `<top (required)>'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in  `require'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in  `rescue in require'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in  `require'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/json_expressions-0.9.0/lib/json_expressions/minitest.rb:3:in  `<top (required)>'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in  `require'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in  `require'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/json_expressions-0.9.0/lib/json_expressions.rb:1:in  `<top (required)>'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in  `require'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in  `require'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/json_expressions-0.9.0/lib/json_expressions/matcher.rb:1:in  `<top (required)>'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in  `require'
from /home/ian/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in  `require'
Run options: --seed 61437

It's just a warning, so it doesn't stop the test running. But it looks untidy!

I'm going back through some old tickets. This is still an issue for us, but I'm going to close the ticket since there hasn't been any activity since filing.


Psql selection

Not super happy with some bits of this (mostly how it does the retired/already seen marking), but I think it should work for Stargazing.

Looks fine to merge.
In benchmarking mood and am wondering what sort of performance hit this might add to selection routes.

Yeah loading the workflow and doing the has_finished? and finished? methods will add some overhead. I think it could be avoided with some changes to the subject selector, but I'm not exactly sure.


could not find the monitored key in the returned metrics

I tried to implement the the training, and I get the following warning after each epoch, and the validation epochs are skipped after these warnings:
/home/username/anaconda3/envs/sgmse3/lib/python3.8/site-packages/pytorch_lightning/callbacks/model_checkpoint.py:378: UserWarning: ModelCheckpoint(monitor='pesq') could not find the monitored key in the returned metrics: ['train_loss', 'train_loss_step', 'train_loss_epoch', 'epoch', 'step']. HINT: Did you call log('pesq', value) in the LightningModule?
warning_cache.warn(m)
/home/username/anaconda3/envs/sgmse3/lib/python3.8/site-packages/pytorch_lightning/callbacks/model_checkpoint.py:378: UserWarning: ModelCheckpoint(monitor='si_sdr') could not find the monitored key in the returned metrics: ['train_loss', 'train_loss_step', 'train_loss_epoch', 'epoch', 'step']. HINT: Did you call log('si_sdr', value) in the LightningModule?
warning_cache.warn(m)
I've seen someone else implement this code before, and I know these warnings weren't there, there were validation epochs, and that the wandb showed metrics such as si_sdr. However, now they don't. I tried this after freshly downloading the code here, and I'm unsure what's wrong. I'm also worried that without the metrics, it will not train properly.

Hi, thanks for your interest! I'm not sure what could be causing this, as we do log those metrics in the validation step: https://github.com/sp-uhh/sgmse/blob/main/sgmse/model.py#L131
My first suspect would be the PyTorch Lightning or PyTorch versions, which might have changed some behavior. Did you install the exact versions from our requirements.txt here https://github.com/sp-uhh/sgmse/blob/main/requirements.txt ?
If so, the next thing to check could be (with a debugger) whether the checks here https://github.com/sp-uhh/sgmse/blob/main/sgmse/model.py#L127 succeed in your case or not, and if not, investigate why.
Finally, it could be that the method for logging errors if you don't have working dependencies for estoi or pesq. This might happen in a different thread so it wouldn't kill the training process, but still not log the metrics.


any interesting upgrading to API v1.2?

Hi there. I noticed that the fitbit API has a version 1.2 now. Is anyone currently working on this? If not, I might give it a go. :)

Maybe adding from_date and end_date to get_activity_intraday_time_series(...) type of functions? It would be nice to be able to get custom chunks of time?

Hi there. I noticed that the fitbit API has a version 1.2 now. Is anyone currently working on this? If not, I might give it a go. :)

Please do that.


Syslog: optionally disable legacy (clog) logging

This should be all for https://github.com/opnsense/core/issues/4068, while there also ditched sshlockout_pf for a simpler script.
See issue for background on this change.

Really nice, thank you! Businesses needs this for compliance. \o/

@fichtner I think it's safe to merge, any objections?

Ps: plist?


rubikFROOK / first pull request

Hey! this is my first commit, because I want my little project to be on brew
this program solves 3x3 rubik based on scrambles
for more information, https://github.com/NewBieCoderXD/rubikFROOK-3x3-solver/tree/v1.0.1

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

thank you so much :)

Sorry, but can you tell me why this is closed please?

Okay, I am so sorry I wasted your time.

@NewBieCoderXD No worries, thanks for apologising, better luck next time ❤


[NuGet Symbol Server] Symbols revalidate APIs design.

Symbols need to have a way of revalidating. Task to capture the design work related with the revalidate scenario in Gallery.

Sprint 139 notes:
Sprint task order 6


test-metrics repo has moved.

@feanil @dsjen @clintonb
3 of 3

Coverage remained the same at 100.0% when pulling 1ac7cd074d6b24ce30684f98d82612bd72e88041 on benp/move-test-metrics into 48baac758770aaf597e4bf4084f3f2ef5beadb21 on master.

:+1:

:+1:

:+1:

:+1:


Make public sandbox more explicit

Genevieve and I were on a call with athenahealth last week, including members of their development team, and they did not realize there is a public sandbox available. They thought they could only access the API via the Swagger UI. Since qpp-submissions-docs is the main portal for developer documentation, I want to update the copy around the interactive API reference to make it more explicit that you can access the API endpoints via the command line directly.

LGTM!


TypeError: Cannot read properties of undefined (reading 'additional_kwargs')

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain.js documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain.js rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
const { ChatMistralAI } = require( "@langchain/mistralai" );
var lc_core = require(  "@langchain/core/messages" );

if (req.body.stream) {

      const model = new ChatMistralAI({apiKey: MistralClientModule.apiKey,modelName: req.body.model, });
      console.log('lc_core: ', lc_core)
      const response = await model.stream(new lc_core.ChatMessage(req.body.messages.content, false));

      return response;
}

Error Message and Stack Trace (if applicable)
lc_core: {
BaseMessage: [class BaseMessage extends Serializable],
BaseMessageChunk: [class BaseMessageChunk extends BaseMessage],
HumanMessage: [class HumanMessage extends BaseMessage],
HumanMessageChunk: [class HumanMessageChunk extends BaseMessageChunk],
AIMessage: [class AIMessage extends BaseMessage],
AIMessageChunk: [class AIMessageChunk extends BaseMessageChunk],
SystemMessage: [class SystemMessage extends BaseMessage],
SystemMessageChunk: [class SystemMessageChunk extends BaseMessageChunk],
FunctionMessage: [class FunctionMessage extends BaseMessage],
FunctionMessageChunk: [class FunctionMessageChunk extends BaseMessageChunk],
ToolMessage: [class ToolMessage extends BaseMessage],
ToolMessageChunk: [class ToolMessageChunk extends BaseMessageChunk],
ChatMessage: [class ChatMessage extends BaseMessage],
isBaseMessage: [Function: isBaseMessage],
isBaseMessageChunk: [Function: isBaseMessageChunk],
coerceMessageLikeToMessage: [Function: coerceMessageLikeToMessage],
ChatMessageChunk: [class ChatMessageChunk extends BaseMessageChunk],
getBufferString: [Function: getBufferString],
mapStoredMessageToChatMessage: [Function: mapStoredMessageToChatMessage],
mapStoredMessagesToChatMessages: [Function: mapStoredMessagesToChatMessages],
mapChatMessagesToStoredMessages: [Function: mapChatMessagesToStoredMessages]
}
TypeError: Cannot read properties of undefined (reading 'additional_kwargs')
at new BaseMessage (/usr/src/app/function/node_modules/@langchain/core/dist/messages/index.cjs:57:21)
at new ChatMessage (/usr/src/app/function/node_modules/@langchain/core/dist/messages/index.cjs:441:9)
at mistralai_api (/usr/src/app/function/handler.js:68:53)

Description
Trying to use @langchain/mistralai as a wrapper over the @mistralai/mistralai nodejs client.
Worth mentioning, the @mistralai/mistralai client is working fine....
I have tried to align the versions of @langchain/core using the caret notation in package.json;
I've tried to use ChatMessage, HumanMessage and BaseMessage as well.
Always the same error. Thank you
System Info

nodejs version 18
package.json

{
  "name": "mistral-gagnant",
  "version": "1.1.0",

   "dependencies": {
    "axios": "latest",
    "qs":"latest",
    "util": "latest",
    "cookie": "latest",
    "btoa": "latest",
    "lodash": "latest",
    "@kubernetes/client-node": "latest",
    "@mistralai/mistralai": "latest",
    "@langchain/mistralai": "latest",
    "@langchain/core": "latest"
  },
  "devDependencies": {
    "cheerio": "latest"
  }
}

I have tried to use the code snippet from https://www.npmjs.com/package/@langchain/mistralai#streaming; it is quite different from the code samples above


Canceling an audio sets dialogue volume to 0 and doesn't get restored

When canceling an audio from the quest window, it is canceled but afterwards i thought the addon broke until i realized the dialogue volume in the options was set to 0.
I had a quick glance at the code and saw that the function that is canceling the audio sets the dialogue volume to 0 to "cancel" the audio and after waiting for the rest of the audio to finish silently, it was supposed to be active again.
However, for some reason it was not set back to the value it was before or it the original value was not saved correctly. It happened to both me and my boyfriend.
I seems a bit odd to cancel an audio this way, as other similar quest reader addons (like Dialogue UI from Peterodox) don't seem to have this problem.  I wish i could look into it myself but i am too unfamiliar with lua to be of any help with that.
I don't know how other addons handle this problem but if you hadn't already, it could be a good idea to take some inspiration from other addons.
If all else fails, you could introduce a default dialog volume value that you can set in the settings so you always have a value to restore the value to.
I hope this is helpful.

Thanks for the feedback! There are a couple of other addons that do something similar to I, however they rotate the sound channels properly so it doesn't seem like anything is being muted.
I rolled back my stop button until I can properly implement this feature without it breaking audio. I haven't looked into Dialogue UI yet though, so I'm curious if they found a better way!


Implement default provider alert

Closes #91

Codecov Report

Merging #113 (77de4c4) into master (c7d554e) will decrease coverage by 0.53%.
The diff coverage is 81.81%.

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
- Coverage   89.60%   89.07%   -0.54%
==========================================
  Files          31       33       +2
  Lines        1174     1208      +34
==========================================
+ Hits         1052     1076      +24
- Misses         91      100       +9
- Partials       31       32       +1

Impacted Files
Coverage Δ

alerting/provider/custom/custom.go
70.58% <0.00%> (-1.42%)
:arrow_down:

alerting/provider/discord/discord.go
96.96% <50.00%> (-3.04%)
:arrow_down:

alerting/provider/mattermost/mattermost.go
97.67% <50.00%> (-2.33%)
:arrow_down:

alerting/provider/slack/slack.go
96.96% <50.00%> (-3.04%)
:arrow_down:

config/config.go
85.60% <60.00%> (-1.01%)
:arrow_down:

alerting/provider/messagebird/messagebird.go
94.73% <66.66%> (-5.27%)
:arrow_down:

alerting/provider/pagerduty/pagerduty.go
96.15% <66.66%> (-3.85%)
:arrow_down:

alerting/provider/telegram/telegram.go
95.65% <66.66%> (-4.35%)
:arrow_down:

alerting/provider/twilio/twilio.go
94.73% <66.66%> (-5.27%)
:arrow_down:

alerting/provider/provider.go
100.00% <100.00%> (ø)

... and 5 more

Continue to review full report at Codecov.

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

Released in v2.6.0


fix: support encoding/decoding of larger contract bytecodes

Big thanks to @jasmcaus who experienced a problem, analyzed the issue and solved it with this PR!
We extended this PR to solve more specs discrepancies that we found while analyzing the initial problem/solution @jasmcaus presented.
closes #1785.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hi @jasmcaus, thank you for your contribution!
I believe you found a minor discrepancy in the specs.
Please, allow us to review some things and get back to you.

Thanks @jasmcaus and @nedsalk :)


[Doc] Review, fix mistakes and extend Tracing documentation

Current Tracing documentation, both for MP and SE, contains inconsistencies and clear mistakes - they have to be fixed.
The documentation has also to be extended with better examples.

Migration from Helidon 2.x to Helidon 3.x in the scope of Jaeger should also be mentioned, as it is a subject for misconceptions.

As part of this JIRA, can you please add information regarding tracing configuration format supported.


Added boilerplate code

Added the boilerplate code in TypeScript along with instructions to run the extension in VSCode

LGTM! Nice work. :tada:

Great work @deutranium. do we need .vscode/ folder though? is it being used in the extension?

Hey @kbhutani0001 !
It is usually a good idea to have it in the development process to have consistent debug configuration, task configuration and settings across multiple contributors. We can remove it for the final release but imo better to keep it for now.


Search not working

I have using searchable_dropdown lib, every thing working but searching option not working properly.I am sharing code with some screenshots, lease check help me.
Container(
padding: EdgeInsets.all(10.0),
child: SearchableDropdown.single(
items: _dropdownMenuItemsCamp,
value: selectCamp,
displayClearIcon: false,
isCaseSensitiveSearch: true,
hint: "Select Compaign Type *",
label: Text(
"Select Compaign Type *",
style: TextStyle(color: Colors.black54),
),
searchHint: "Select Compaign Type *",
onChanged: (value) {
setState(() {
selectCamp = value;
});
campType = selectCamp.generalID;
},
underline: Container(
height: 1.0,
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
color: Colors.black38, width: 1.0))),
),
searchFn: (String keyword, items) {
List ret = List();
if (keyword != null &&
items != null &&
keyword.isNotEmpty) {
keyword.split(" ").forEach((k) {
int i = 0;
items.forEach((item) {
if (k.isNotEmpty &&
(item.value
.toString()
.toLowerCase()
.contains(k.toLowerCase()))) {
ret.add(i);
}
i++;
});
});
}
if (keyword.isEmpty) {
ret = Iterable.generate(items.length).toList();
}
return (ret);
},
isExpanded: true,
),
)

Hello @abhihasabe ,
Can you please share with us your definition of the _dropdownMenuItemsCamp list?
In particular, the toString() method of the objects in this list must return a String containing what your want to match (for example "Maharashtra").

I am having the same issues, I am using Single Object, but when I write anything the list doesn't filter at all.
SearchableDropdown.single(
items: _businessList.map((bus) {
return (DropdownMenuItem(
child: Text(bus.name), value: bus));
}).toList(),
value: _selectedBusiness,
hint: "Select a business",
searchHint: "Select a business",
onChanged: (value) {
setState(() {
_selectedBusiness = value;
});
},
dialogBox: false,
isExpanded: true,
menuConstraints: BoxConstraints.tight(Size.fromHeight(350)),
),

Never mind, I added the toString() method to my object and now it works like a charm.

Hello Icuis,
Please check given code  , and for more reference i am sharing git link
please check,
_dropdownMenuItemsCamp = buildDropdownCampagin(campTypeList);
List<DropdownMenuItem> buildDropdownCampagin(
List campTypeList) {
List<DropdownMenuItem> items = List();
for (DataList project in campTypeList) {
items.add(
DropdownMenuItem(
value: project,
child: Text(project.generalName),
),
);
}
return items;
}
Git Link: https://github.com/abhihasabe/MultiselectWithSearchFlutter.git
Thanks & Regards,
Abhijeet Hasabe
7263942833
On Sat, Apr 11, 2020 at 3:35 PM lcuis<EMAIL_ADDRESS>wrote:

Hello @abhihasabe https://github.com/abhihasabe ,
Can you please share with us your definition of the _dropdownMenuItemsCamp
list?
In particular, the toString() method of the objects in this list must
return a String containing what your want to match (for example
"Maharashtra").
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/icemanbsi/searchable_dropdown/issues/38#issuecomment-612383888,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEYMQWEGNKF6CZ5HCKOP2QLRMA6HVANCNFSM4MF2VHZA
.

Hello @abhihasabe ,
Thanks for sharing your code.
I'll take the example of the CurrentRoleBelongTo class.
For the search to work the way you are using it with this class, you would need to define the toString() function as follows in lib/model/CurrentRoleBelongTo.dart:
...
class CurrentRoleBelongTo {
...
String toString(){
return(generalName);
}
...
}

You also need to add a toString() method the other classes for which you want to use the search the same way:

SourceDataList
DataList
TractorDataList
DataListByState
BranchDataList
employeeDataList

Hello lcuis,
Thank you for support, given code working properly.
On Sun, Apr 12, 2020 at 1:51 PM lcuis<EMAIL_ADDRESS>wrote:

Hello @abhihasabe https://github.com/abhihasabe ,
Thanks for sharing your code.
I'll take the example of the CurrentRoleBelongTo class.
For the search to work the way you are using it with this class, you would
need to define the toString() function as follows in
lib/model/CurrentRoleBelongTo.dart:
...class CurrentRoleBelongTo {
...String toString(){return(generalName);
}
...
}
You also need to add a toString() method the other classes for which you
want to use the search the same way:

SourceDataList
DataList
TractorDataList
DataListByState
BranchDataList
employeeDataList

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/icemanbsi/searchable_dropdown/issues/38#issuecomment-612580979,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEYMQWDDVS2A2TLAAIPV3NLRMF22NANCNFSM4MF2VHZA
.

Thanks for the confirmation @abhihasabe !
Closing this issue. Feel free to reopen if needed.


Assist Microphone: Adjust volume input

I am using a avusio microphone connect via USB to a RPi 4. The voice assistant worked only if I was speaking very close to the microphone. The sound files received through the debug options were very quiet. Any tweakings through the configuration of the addon didn't work. But then I adjusted the input volume via ha audio volume input --index ... --volume XX and it works very smooth now. Do I miss a configuration from the addon? I don't want to log every time into the HA shell to adjust the input volume of the mic.

Try using the official Assist Microphone add-on: https://github.com/home-assistant/addons/tree/master/assist_microphone
Increase the "volume multiplier" setting to bump the microphone volume up.


refactor layouts to be part of graph

and delete old nodegraph/ app

I love this very much. ❤ ❤ ❤
P.S. I made a couple notes about syntax for "set this deep object value" which has been an annoyer in JS for years. ECMA was working on it, we should have a look-see.

Thank you! I agree, it is better now.
Addressed comments, submitting.


Does java-diff-utils support patch file with multiple files?

Describe the bug
When using diff command to compare two directories:
diff -u Origin/ Update/ > multiPatch.txt

we get multiPatch.txt:
diff -u Origin/Test1.java Update/Test1.java
--- Origin/Test1.java	2020-06-11 10:48:40.000000000 +0800
+++ Update/Test1.java	2020-06-11 10:48:40.000000000 +0800
@@ -1,7 +1,15 @@
-package checkstyle_demo.PatchSuppression.multiFile.Origin;
+package checkstyle_demo.PatchSuppression.multiFile.Update;

 public class Test1 {
     public void test1() {

     }
+
+    public void test2() {
+
+    }
+
+    public void test3() {
+
+    }
 }
diff -u Origin/Test2.java Update/Test2.java
--- Origin/Test2.java	2020-06-11 10:48:40.000000000 +0800
+++ Update/Test2.java	2020-06-11 10:48:41.000000000 +0800
@@ -1,7 +1,9 @@
-package checkstyle_demo.PatchSuppression.multiFile.Origin;
+package checkstyle_demo.PatchSuppression.multiFile.Update;

 public class Test2 {
     public void test1() {
         System.out.println();
+        System.out.println();
+        System.out.println();
     }
 }

To Reproduce
Steps to reproduce the behavior:

Example data
simple programm snippet
See error

This need more than one file in every directories.
Origin dir:
cat Origin/test1.java
package checkstyle_demo.PatchSuppression.multiFile.Origin;

public class Test1 {
    public void test1() {

    }
}

cat Origin/test2.java
package checkstyle_demo.PatchSuppression.multiFile.Origin;

public class Test2 {
    public void test1() {
        System.out.println();
    }
}

Update dir:
Update/test1.java
package checkstyle_demo.PatchSuppression.multiFile.Update;

public class Test1 {
    public void test1() {

    }

    public void test2() {

    }

    public void test3() {

    }
}

Update/test2.java
package checkstyle_demo.PatchSuppression.multiFile.Update;

public class Test2 {
    public void test1() {
        System.out.println();
        System.out.println();
        System.out.println();
    }
}

run diff command
diff -u Origin/ Update/ > multiPatch.txt

cat multiPatch.txt
diff -u Origin/Test1.java Update/Test1.java
--- Origin/Test1.java	2020-06-11 10:48:40.000000000 +0800
+++ Update/Test1.java	2020-06-11 10:48:40.000000000 +0800
@@ -1,7 +1,15 @@
-package checkstyle_demo.PatchSuppression.multiFile.Origin;
+package checkstyle_demo.PatchSuppression.multiFile.Update;

 public class Test1 {
     public void test1() {

     }
+
+    public void test2() {
+
+    }
+
+    public void test3() {
+
+    }
 }
diff -u Origin/Test2.java Update/Test2.java
--- Origin/Test2.java	2020-06-11 10:48:40.000000000 +0800
+++ Update/Test2.java	2020-06-11 10:48:41.000000000 +0800
@@ -1,7 +1,9 @@
-package checkstyle_demo.PatchSuppression.multiFile.Origin;
+package checkstyle_demo.PatchSuppression.multiFile.Update;

 public class Test2 {
     public void test1() {
         System.out.println();
+        System.out.println();
+        System.out.println();
     }
 }

Expected behavior
And I want to know does java-diff-utils support patch file with multiple files? as far as I know, UnifiedDiffUtils.parseUnifiedDiff function can parse patch file with only one file.
System

Java version 1.8
Version

<groupId>io.github.java-diff-utils</groupId>
<artifactId>java-diff-utils</artifactId>
<version>4.5</version>

The new implementation is useable but not complete. It's in the unified diff package. This one supports multifile patches.

To be honest, it worked for my needs. So I am happy to improve it with new features and pull requests are welcome as well.

@wumpz Thanks


Perfmgr fields

Extends PerformanceManager with some convenience methods and uses those to implement perf stats based fields.

Please review again. I think I have fixed the outstanding issues.


PyGhidra's open_program should be able to take a bytes or file like object

Sometimes I am unpacking and mass analysing binaries. It would be great to be able to pass a bytes or even better a file like object. This would make it easier with libraries like CART and when I use temporary files.
It is easy to create a temp directory, write and open with tempfile, but it would be nice to have a convenient method.

Bumping this issue as well. It looks like analyzeHeadless can take the -recursive flag to load a cart file into a project, but I don't believe there is an easy way to directly load a CaRT file via pyhidra.

Thanks.  Will be switching gears soon to address some PyGhidra things.


Add 'Get the Add-on' buttons to static so they are served via CDN Bug 1227209

I think these should live in olympia since they will be used to direct users to AMO.
I am not sure if this is the right directory or filename, please let me know.
r?

I believe this is the right place, thanks @jasonthomas !
r+


Add more warning's to nats subscription factory

Description
Please include a summary of the change and specify which issue is being addressed. Additionally, provide relevant motivation and context.
Fixes #1899
Type of change
Please delete options that are not relevant.

[ ] Documentation (typos, code examples, or any documentation updates)
[ ] Bug fix (a non-breaking change that resolves an issue)
[ ] New feature (a non-breaking change that adds functionality)
[ ] Breaking change (a fix or feature that would disrupt existing functionality)
[ ] This change requires a documentation update

Checklist

[ ] My code adheres to the style guidelines of this project (scripts/lint.sh shows no errors)
[ ] I have conducted a self-review of my own code
[ ] I have made the necessary changes to the documentation
[ ] My changes do not generate any new warnings
[ ] I have added tests to validate the effectiveness of my fix or the functionality of my new feature
[ ] Both new and existing unit tests pass successfully on my local environment by running scripts/test-cov.sh
[ ] I have ensured that static analysis tests are passing by running scripts/static-analysis.sh
[ ] I have included code examples to illustrate the modifications

@kumaranvpl can you proofread and polish warnings text, please?


Full "exposure" of the camera API

From @GoogleCodeExporter on May 31, 2015 11:27
I'd like to see the camera API be fully available. I'm particularly interested
in the exposure compensation and zoom parameters and the takePicture method,
with the raw data parameter...

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 25 Jul 2010 at 1:59
Copied from original issue: damonkohler/android-scripting#378

From @GoogleCodeExporter on May 31, 2015 11:27
Yes. And would be great if can choose the size.

Original comment by<EMAIL_ADDRESS>on 31 Aug 2011 at 7:01

From @GoogleCodeExporter on May 31, 2015 11:27
Also, it would be nice to be able to take a picture from the front camera for
phones that have one.  Thanks!

Original comment by<EMAIL_ADDRESS>on 1 Jan 2011 at 9:10


Add macos ARM builds to test matrix

I will probably wait until I get my new ARM mac, then switch locally and also add arm to CI, then rely on GH Actions for the Intel builds...
I don't expect any issues, but for completeness.
See available GH Action images here

Fixed via https://github.com/andrewdavidmackenzie/libproc-rs/pull/134


Adopt well-known request x-headers from neofs-api

Adopt changes from https://github.com/nspcc-dev/neofs-api/issues/117
SDK client should be able to set custom values for all object related requests.
Default values for get, head, search, range and range hash operations are 0/1 where 1 is a lookup depth, and 0 is an epoch number.
Default values for put and delete operations are 0/0.

I suggest leaving the defaults to zero in the client to keep the default behavior.

I suggest leaving the defaults to zero in the client to keep the default behavior.

Let's keep pkg/client default well-known request x-header values with 0/0 and come back to it before next release.

Let's keep pkg/client default well-known request x-header values with 0/0 and come back to it before next release.

Default values for client gonna be 0\0. The user can set up custom values via x-headers. Later CLI can support some global arguments to set these well-known x-header values.


/usr/bin/nerdctl _NERDCTL_INTERNAL_LOGGING process consumes lots of file description

What is the problem you're trying to solve
reduce the number of file descriptors used by _NERDCTL_INTERNAL_LOGGING
Describe the solution you'd like
add a cmd to forbid delpoy process  _NERDCTL_INTERNAL_LOGGING
Additional context
hello, there is a question about process _NERDCTL_INTERNAL_LOGGING
from my searching, the process is used to pull logs from containers.
but the process will consume lots of fd.
if I deploy 700 containers in a machine, the process will consume 23w+ fd, contanerd-shim consume 38w+ fd
compared with ctr, deploy 700 containers in a machine, will comsume 49w+ fd
if we dont want to use [nerdctl logs] cmd，cannot we deploy the process _NERDCTL_INTERNAL_LOGGING

HI @Somiacao
When investigating the issue, I cannot reproduce the many fds in my environment.
root@kay201:/proc/247842# ps aux|grep LOG
root      247842  0.0  0.1<PHONE_NUMBER>4 ?        Sl   Aug07   2:53 /root/oss/nerdctl/_output/nerdctl _NERDCTL_INTERNAL_LOGGING /var/lib/nerdctl/1935db59
root      383947  0.0  0.1<PHONE_NUMBER>0 ?        Sl   Aug22   0:11 /usr/local/bin/nerdctl _NERDCTL_INTERNAL_LOGGING /var/lib/nerdctl/1935db59
root@kay201:/proc/247842# ls /proc/383947/fd | wc -l
9

Would you please tell us the steps of reproduce the issue.

if we dont want to use [nerdctl logs] cmd，cannot we deploy the process _NERDCTL_INTERNAL_LOGGING

not possible as /proc/self/exec _NERDCTL_INTERNAL_LOGGING is used to read and write logs

Would you please tell us the steps of reproduce the issue.
after confirmed the file descriptors used by _NERDCTL_INTERNAL_LOGGING is ok, but _NERDCTL_INTERNAL_LOGGING will consume some of memory and cpu, especially one machine deploy 700+ containers


Intro to Git added

Added a simple introduction to git aimed at hackathon starters.
May need a review as I'm not a "Git Expert".

I might look at moving this a workshop section at some point.
Would be pretty good to have our own version of localhost workshops. Been a big issue at covhack trying to find new content every week or so.


chore: Improve node check

Show node status with architecture type.

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


fix: allow larger directories to be compressed, test in plugin-source

What does this PR do?
fixes archiver not finalizing larger directories in MdapiDeploy
What issues does this PR fix or reference?
@W-11209280@
Functionality Before
 ➜  sfdx force:mdapi:deploy -d src-converted -w 10
Functionality After
 ➜  ../../oss/plugin-source/bin/run force:mdapi:deploy -d src-converted -w 4
Deploy ID: 0AfJ000002FANRlKAP
*** Deploying with SOAP ***

I tested manually with 2000 apex classes and it failed without these changes but passed with them.


could not find recipe mod_dav for cookbook apache2

Cookbook version
3.0.0
Chef-client version
14.11.21
Platform Details
Centos 7
Scenario:
Added the recipe[subversion::server] to my existing cookbook to install SVN server and populated all subversion attributes with custom values (as per guidelines).
Expected Result:
Successful installation.
Actual Result:
Starting Chef Client, version 14.11.21
resolving cookbooks for run list: ["my recipe", "subversion::server"]
Synchronizing Cookbooks:

my-cookbook (0.1.0)
java (3.2.1)
windows (5.3.0)
homebrew (5.0.8)
subversion (3.0.0)
apache2 (7.0.0)
Installing Cookbook Gems:
Compiling Cookbooks...

================================================================================
Recipe Compile Error
Chef::Exceptions::RecipeNotFound
could not find recipe mod_dav for cookbook apache2
Cookbook Trace:
/var/chef/cache/cookbooks/subversion/recipes/server.rb:22:in `from_file'
Relevant File Content:
/var/chef/cache/cookbooks/subversion/recipes/server.rb:

Found the resolution for the problem.
Turns out the apache2 cookbook v. 7.0.0 has all its recipes (except for the default one) removed.
Downgrading to 6.0.0. fixed the problem but brought another one: undefined method web_app' for cookbook: subversion, recipe: server :Chef::Recipe server.rb:33:in from_file'
According to this https://github.com/sous-chefs/apache2/blob/3e25e2b55a14f32d421e4db2cd7e0bf8dc8fc263/CHANGELOG.md#v6---behaviour-changes web_app was removed from 6.0.0.
Further downgrading to version 5.2.1 finally got me to the happy ending.
Wish the specifics of which version of the apache2 cookbook should be used were documented for the subversion cookbook.
Leaving the issue open with the hope for the repo owner(s) to update their documentation according.


[Bug]: /node_modules/puppeteer-core/lib/cjs/puppeteer/util/disposable.js | Symbol.dispose ??= Symbol('dispose');  | SyntaxError: Unexpected token '??='

Minimal, reproducible example
"puppeteer": "^22.2.0",

Error string
SyntaxError: Unexpected token '??='
Bug behavior

[X] Flaky
[ ] PDF

Background
I encountered an issue when attempting to start my project on an AWS server after installing the Puppeteer package. Despite changing the Node.js version and performing a clean installation by deleting the node_modules directory and reinstalling dependencies, the problem persists. The error message is related to a syntax error originating from the Puppeteer package.
Expectation
i expected the code to run irrespective of all node version
Reality
I encountered an issue when attempting to start my project on an AWS server after installing the Puppeteer package. Despite changing the Node.js version and performing a clean installation by deleting the node_modules directory and reinstalling dependencies, the problem persists. The error message is related to a syntax error originating from the Puppeteer package.
Puppeteer configuration file (if used)
No response
Puppeteer version
22.6.1
Node version
18.17.0
Package manager
npm
Package manager version
9.6.7
Operating system
Windows

i expected the code to run irrespective of all node version

This statement is not correct Puppeteer follows the latest [maintenance LTS](https://github.com/nodejs/Release#release-schedule) version of Node. from Usage.
Currently the minimum supported version is 18 which supports that syntax.
Please contact AWS support as they may be using different binaries for their runners.
Tested with:
import { launch } from "puppeteer";

(async () => {
  const browser = await launch({
    headless: true,
  });

  const page = await browser.newPage();

  await page.close();
  await browser.close();
})();

Result, script runs without issue.

me too,

version:
"puppeteer": "^23.10.2",

我也是，
版本：
“木偶师”：“^23.10.2”，

I think the experience is too bad，I hope it can be resolved as soon as possible，and I wonder why！My English expression is quite poor. If it's a bit impolite, I'm sorry.Because I very like it，and I really want to experience its functions.


clearer-routes

Main thing here is the script to print out routes.
I've cleaned up the surrounding code a little, but that's not so important.

Both bcrypt and bcryptjs libraries exist and I think they have the same API for the hash and compare functions and are interchangable


Intellisense not working for VSC 1.19

VSCode Version:Version 1.19.1 (1.19.1)
OS Version:Mac OS Sierra 10.12.6 (16G1036)

Steps to Reproduce:

When I download a new version 1.19 VSC, I found the Intellisense is not working any more.(e.g. functions in lodash can not be loaded.)
While for the same code base, Intellisense in V1.16 VSC is working. Could you pls help?

Reproduces without extensions: Yes

Use the command palette. You must be in a js or ts  file for it to show up


EACCESS: permission denied - When using Docker

I've been troubleshooting for a few hours, and have not been able to figure this problem out.
I'm trying to utilize Docker to run the bot, and keep getting permissions errors. I'm not sure what else to try, and was hoping that someone here might be able to help? If so, I would be hugely grateful.
Here is some context:
My Satisfactory server was installed via the wolveix/satisfactory-server container, and is located at /srv/satisfactory/server_files/config
I have a Discord bot programmed and ready to go; I have not yet gotten to the point where it has had a chance to connect, but I assume it will work once this error is resolved.
Here are my config files, as well as a printout of the error I am receiving when I try to stand up the container:
.env.local
SATISFACTORY_BOT_DB_PATH=./db.json
SATISFACTORY_BOT_DISABLE_UNREACHABLE_FOUND_MESSAGES=false
SATISFACTORY_BOT_DISCORD_CHANNEL_NAME=
SATISFACTORY_BOT_DISCORD_SERVER_NAME=
SATISFACTORY_BOT_DISCORD_TOKEN=--------token_redacted----------
SATISFACTORY_BOT_IGNORE_POLL_STATE_WHEN_MESSAGING=false
SATISFACTORY_BOT_LOG_LOCATION=/srv/satisfactory/server_files/config/gamefiles/FactoryGame/Saved/Logs/FactoryGame.log
SATISFACTORY_BOT_LOG_USE_WATCH_FILE=false
SATISFACTORY_BOT_POLL_INTERVAL_MINUTES=1
SATISFACTORY_BOT_PURGE_DISCORD_CHANNEL_AFTER_DAYS=7
SATISFACTORY_BOT_PURGE_DISCORD_CHANNEL_AFTER_LINES=
SATISFACTORY_BOT_PURGE_DISCORD_CHANNEL_HOUR=2
SATISFACTORY_BOT_PURGE_DISCORD_CHANNEL_NAME=
SATISFACTORY_BOT_PURGE_DISCORD_CHANNEL_ON_STARTUP=false
SATISFACTORY_BOT_PURGE_DISCORD_CHANNEL_SERVER_NAME=
SATISFACTORY_BOT_SERVER_IP=<IP_ADDRESS>
SATISFACTORY_BOT_SERVER_MAX_PLAYERS=4
SATISFACTORY_BOT_SERVER_QUERY_PORT=15777
SATISFACTORY_BOT_SERVER_QUERY_TIMEOUT_MS=10000

compose.yaml
services:
  server:
    build:
      context: .
    environment:
      NODE_ENV: production
      SATISFACTORY_BOT_DB_PATH: /usr/src/app/db/db.json
      SATISFACTORY_BOT_LOG_LOCATION: /srv/satisfactory/server_files/config/gamefiles/FactoryGame/Saved/Logs/FactoryGame.log
    env_file:
      - ./.env
      - ./.env.local
    volumes:
       - ./docker-volumes/db/:/usr/src/app/db/
       - /srv/satisfactory/server_files/config/gamefiles/FactoryGame/Saved/Logs/FactoryGame.log:/home/steam/SatisfactoryDedicatedServer/Fac>
    restart: unless-stopped

Result of docker compose up
[+] Running 1/2
 ✔ Network satisfactory-discord-bot_default     Created                                                                                0.1s
 ⠋ Container satisfactory-discord-bot-server-1  Created                                                                                0.1s
Attaching to server-1
server-1  | Poll interval: 60000 milliseconds
server-1  | New DB written: /usr/src/app/db/db.json
server-1  | Logging out
server-1  | node:fs:2342
server-1  |     return binding.writeFileUtf8(
server-1  |                    ^
server-1  |
server-1  | Error: EACCES: permission denied, open '/usr/src/app/db/db.json'
server-1  |     at Object.writeFileSync (node:fs:2342:20)
server-1  |     at initialise (/usr/src/app/bin/server.js:337:8)
server-1  |     at Object.<anonymous> (/usr/src/app/bin/server.js:352:1)
server-1  |     at Module._compile (node:internal/modules/cjs/loader:1369:14)
server-1  |     at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
server-1  |     at Module.load (node:internal/modules/cjs/loader:1206:32)
server-1  |     at Module._load (node:internal/modules/cjs/loader:1022:12)
server-1  |     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
server-1  |     at node:internal/main/run_main_module:28:49 {
server-1  |   errno: -13,
server-1  |   code: 'EACCES',
server-1  |   syscall: 'open',
server-1  |   path: '/usr/src/app/db/db.json'
server-1  | }
server-1  |
server-1  | Node.js v20.12.1
server-1 exited with code 0

That makes a lot of sense; I was able to get the container to properly start up using that info.
Essentially, I was trying to start the container using a UID/GID of 1003, whereas the container itself was using UID/GID 1000. I couldn't figure out how to set the UID/GID within compose.yaml (it looks like this is a deprecated function?), so I just had to chmod 777 the \db directory db.json resides in.
The container now starts successfully, and the bot connections seem to be working properly, however, the bot is now just reporting "The server is unreachable". I'm going to begin troubleshooting, and will report back if I am successful or hit a wall and need some more assistance.

Unfortunately, I think I've hit a wall.
I'm getting the following when I stand up the bot's container, and the "Updating" section just repeats itself every ~60 seconds or so:
[+] Running 1/0
 ✔ Container satisfactory-discord-bot-server-1  Created                                                                                0.0s
Attaching to server-1
server-1  | Poll interval: 60000 milliseconds
server-1  | Found: /usr/src/app/db/db.json
server-1  | Updating...
server-1  | Error: Connection timed out
server-1  |     at Timeout.<anonymous> (/usr/src/app/node_modules/@djwoodz/satisfactory-dedicated-server-query-port-probe/index.js:20:12)
server-1  |     at listOnTimeout (node:internal/timers:573:17)
server-1  |     at process.processTimers (node:internal/timers:514:7)
server-1  | Waiting for log file to exist: /srv/satisfactory/server_files/config/gamefiles/FactoryGame/Saved/Logs/FactoryGame.log
server-1  | Updating...
server-1  | Error: Connection timed out
server-1  |     at Timeout.<anonymous> (/usr/src/app/node_modules/@djwoodz/satisfactory-dedicated-server-query-port-probe/index.js:20:12)
server-1  |     at listOnTimeout (node:internal/timers:573:17)
server-1  |     at process.processTimers (node:internal/timers:514:7)

If I jump into the bot's container using docker exec -it satisfactory-discord-bot-server /bin/sh, and then run tail -f /home/steam/SatisfactoryDedicatedServer/FactoryGame/Saved/Logs/FactoryGame.log, I see the log updating in realtime; it shows the server running, shows users connecting and disconnecting, but the bot doesn't seem to reflect that, and just continues to cycle through Error: Connection timed out messages.
This seems to imply that the bot's container is able to access the game's log, but that there's some small piece somewhere preventing  the information from properly flowing?
Any help would be appreciated.

Hi @generalrap,
There are two parts to the bot. One part reads the dedicated server's log (via the file system) and the other checks the status using the dedicated server's query port (via the network). I suspect you are seeing that error because <IP_ADDRESS> does not resolve to the host's network. You have a few options.
By default Docker creates a bridge network. You could configure the containers to communicate over the default or a user-defined bridge network (using the service name):

https://docs.docker.com/compose/compose-file/compose-file-v3/#network-configuration-reference
https://docs.docker.com/network/
https://docs.docker.com/network/drivers/bridge/
https://docs.docker.com/network/network-tutorial-standalone/

Alternatively, if the wolveix/satisfactory-server container is running on the same host and you would like to access it via <IP_ADDRESS>, you could use Docker's host network driver. You may find these resources helpful for that:

https://docs.docker.com/compose/compose-file/compose-file-v3/#network-configuration-reference
https://docs.docker.com/network/
https://docs.docker.com/network/drivers/host/
https://docs.docker.com/network/network-tutorial-host/

Haha, the network; of course. I never trust Docker loopback addresses, and should have suspected that.
I was able to get it to connect rather easily; I just changed SATISFACTORY_BOT_SERVER_IP= to the host machine's own address.
The bot is now connected, and correctly sees whether or not the server is up or down, but does not react to player login/disconnect events.

What do you think the missing piece might be?

My apologies for missing that off my previous response.
It appears you changed the SATISFACTORY_BOT_LOG_LOCATION environment variable in the compose.yaml file. I think that is causing your issue.
The SATISFACTORY_BOT_LOG_LOCATION value in the compose.yaml must match the path of the file as it is mapped inside the container (the target path under volumes).
As it only exists inside the container, the path used can be practically anything, so long as it matches the value in SATISFACTORY_BOT_LOG_LOCATION. So you could try updating the SATISFACTORY_BOT_LOG_LOCATION to match the target, like this:
services:
  server:
    build:
      context: .
    environment:
      NODE_ENV: production
      SATISFACTORY_BOT_DB_PATH: /usr/src/app/db/db.json
      SATISFACTORY_BOT_LOG_LOCATION: /home/steam/SatisfactoryDedicatedServer/FactoryGame/Saved/Logs/FactoryGame.log
    env_file:
      - ./.env
      - ./.env.local
    volumes:
       - ./docker-volumes/db/:/usr/src/app/db/
       - /srv/satisfactory/server_files/config/gamefiles/FactoryGame/Saved/Logs/FactoryGame.log:/home/steam/SatisfactoryDedicatedServer/FactoryGame/Saved/Logs/FactoryGame.log:ro
    restart: unless-stopped

Alternatively, you could try changing the target path (under volumes) if you prefer:
services:
  server:
    build:
      context: .
    environment:
      NODE_ENV: production
      SATISFACTORY_BOT_DB_PATH: /usr/src/app/db/db.json
      SATISFACTORY_BOT_LOG_LOCATION: /srv/satisfactory/server_files/config/gamefiles/FactoryGame/Saved/Logs/FactoryGame.log
    env_file:
      - ./.env
      - ./.env.local
    volumes:
       - ./docker-volumes/db/:/usr/src/app/db/
       - /srv/satisfactory/server_files/config/gamefiles/FactoryGame/Saved/Logs/FactoryGame.log:/srv/satisfactory/server_files/config/gamefiles/FactoryGame/Saved/Logs/FactoryGame.log:ro
    restart: unless-stopped

That was it!
Everything is fully operational now.

I can't thank you enough for your help; this bot is awesome, and your assistance in setting it up has been huge.

Marvellous. You are welcome.


Unexpected and undesirable Search functionality looking for "beanproperty"...

My first experience arriving at the home page is already undesirable and immediately diminished my migration confidence. It happened as a result of this thread:
Here's what happened:

Entering "beanproperty" in the search box did not cause anything to happen
Entering "bean property" in the search box caused a 404
Entering "bean" in the search box dropped me into a random location in the documentation
Attempting to find a place to submit an issue ticket was non-trivial

Given how simple these steps were to take, and given how unpredictable the results were, it leaves a terrible first impression.
I don't have the time (and for most others, the motivation) to try and figure these out as it would cause me to lose my current focus (evaluating a project migration LOE [Level Of Effort]) for which I came to this site in the first place.

4, seconded

Thanks for reporting!
The BeanProperty incompatibility described in https://github.com/lampepfl/dotty/issues/11972 is currently missing for the incompatibility table, that is why the search result is irrelevant. I will add the BeanProperty incompatibility and make sure the search result is accurate.
Concerning 4, that's really unfortunate, I'll make the link more visible.

I just tried out all 4 of my items above. None of them seemed to be resolved.
After reading through the commit, I attempted to also search for "bean-property", and it returns a 404.

The search index was not yet up-to-date. It should be better now.

Tysvm! Items 1-3 are now resolved.
I don't see anything regarding item 4, though.
After clicking about a bit, I figured out how to get to "Share Your Feedback" through the "Contribute" link. Given how little it takes for someone to abandon offering correction feedback, is there any way that can be moved somewhere into either the header or footer so it appears at all times? I think the goal would be to take advantage of their impulsive moment following their having an actual issue by encouraging them to immediately submit their issue. Hidden by even one click, the falloff is very large for those who would make the extra effort to share their frustrating issue(s).


Toggle/Change Windows Cert search context between CERT_SYSTEM_STORE_USER and CERT_SYSTEM_STORE_LOCAL_MACHINE for "MY"

Since the MY path for CERT_SYSTEM_STORE_LOCAL_MACHINE\MY cert store is not inherited into CERT_SYSTEM_STORE_USER\MY, it would be useful to be able to toggle the search path between Local Machine and User certs.
So some flag that allows us to choose our Context between USER and LOCAL_MACHINE for Windows CNG Store.

This kind of thing would ideally be part of a URI rather than a separate flag. A quick glance at https://learn.microsoft.com/en-us/powershell/module/pki/get-certificate?view=windowsserver2022-ps seems to suggest PowerShell supports a pathname of the form cert:\LocalMachine\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF
GnuTLS also has a system: URI which works with the Windows certificate store.

Yeah that would work for me.  My workaround is to copy a cert to another store in LocalMachine... and it get's inherited and I can use the --system-store-name (but works in the CurrentUser path due to inheritance).  Trying to take advantage of existing certs  placed in LocalMachine\My


multilingual support?

Hi.
Do you have any plan to add multilingual support to passcore?

Please read instructions on how to do this:
https://github.com/unosquare/passcore#customization-and-configuration
From: infectormp<EMAIL_ADDRESS>Sent: Tuesday, February 23, 2016 11:36 AM
To: unosquare/passcore<EMAIL_ADDRESS>Subject: [passcore] multilingual support? (#10)
Hi.
Do you have any plan to add multilingual support to passcore?
—
Reply to this email directly or view it on GitHubhttps://github.com/unosquare/passcore/issues/10.


Maximum recursion depth exceeded in comparison

The bug
Occasionally I'm getting "maximum recursion depth exceeded" when attempting to generate results.
Traceback (most recent call last):
  File "/home/seanl/project/holodeck/holodeck/repro.py", line 20, in <module>
    main()
  File "/home/seanl/project/holodeck/holodeck/repro.py", line 12, in main
    llm
  File "/home/seanl/project/holodeck/venv/lib/python3.11/site-packages/guidance/models/_model.py", line 204, in __add__
    return lm.run_stateless(value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seanl/project/holodeck/venv/lib/python3.11/site-packages/guidance/models/_model.py", line 303, in run_stateless
    for new_bytes, is_generated, new_bytes_log_prob, capture_groups, capture_group_log_probs, new_token_count in gen_obj:
  File "/home/seanl/project/holodeck/venv/lib/python3.11/site-packages/guidance/models/_local.py", line 357, in __call__
    parse_tree = parser.parse_tree()
                 ^^^^^^^^^^^^^^^^^^^
  File "/home/seanl/project/holodeck/venv/lib/python3.11/site-packages/guidance/_parser.py", line 395, in parse_tree
    self._compute_parse_tree(0, root_item, reversed_state_sets)
  File "/home/seanl/project/holodeck/venv/lib/python3.11/site-packages/guidance/_parser.py", line 410, in _compute_parse_tree
    self._compute_parse_tree(pos, child, reversed_state_sets)
  File "/home/seanl/project/holodeck/venv/lib/python3.11/site-packages/guidance/_parser.py", line 410, in _compute_parse_tree
    self._compute_parse_tree(pos, child, reversed_state_sets)
  File "/home/seanl/project/holodeck/venv/lib/python3.11/site-packages/guidance/_parser.py", line 410, in _compute_parse_tree
    self._compute_parse_tree(pos, child, reversed_state_sets)
  [Previous line repeated 988 more times]
  File "/home/seanl/project/holodeck/venv/lib/python3.11/site-packages/guidance/_parser.py", line 401, in _compute_parse_tree
    assert self._compute_children(pos, item, reversed_state_sets)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seanl/project/holodeck/venv/lib/python3.11/site-packages/guidance/_parser.py", line 443, in _compute_children
    if self._compute_children(inner_item.start, item, reversed_state_sets, values_pos + 1):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seanl/project/holodeck/venv/lib/python3.11/site-packages/guidance/_parser.py", line 424, in _compute_children
    return state_set_pos == item.start # note that ".start" mean end because items are reversed
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded in comparison

To Reproduce
Give a full working code snippet that can be pasted into a notebook cell or python file. Make sure to include the LLM load step so we know which model you are using. I've seen this with multiple models now, and it happens with Transformers and with LlamaCpp and LlamaCppChat.
from guidance import models, gen

def main():
    llm = models.LlamaCpp(
        "/home/seanl/SD/text-generation-webui/models/augmental-13b.Q5_K_M.gguf",
        n_gpu_layers=-1,
    )

    while True:
        lm = (
            llm
            + "Pick a number between 1 and 10: "
            + gen(name="guess", stop="\n", temperature=0.8)
        )
        print(lm["guess"])

if __name__ == "__main__":
    main()

System info (please complete the following information):

OS (e.g. Ubuntu, Windows 11, Mac OS, etc.): Pop_OS (Ubuntu derivative)
Guidance Version (guidance.__version__): 0.1.1

Have the same problem. Also on ver: 0.1.1, Ubuntu, Using LLamaCPP
>> Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/root/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
    cli.main()
  File "/root/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
    run()
  File "/root/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
    runpy.run_path(target, run_name="__main__")
  File "/root/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "/root/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/root/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code
    exec(code, run_globals)
  File "/app/libs/guidance_alx/guide_lcpp.py", line 183, in <module>
    out = GD.run(prompt, max_tokens=250, temperature=0.30, top_p=1.0, );print(f"\n\n") #stop=[".","!","?","\n"]
  File "/app/libs/guidance_alx/guide_lcpp.py", line 90, in run
    self.lm = self.model + prompt
  File "/usr/local/lib/python3.10/dist-packages/guidance/models/_model.py", line 204, in __add__
    return lm.run_stateless(value)
  File "/usr/local/lib/python3.10/dist-packages/guidance/models/_model.py", line 303, in run_stateless
    for new_bytes, is_generated, new_bytes_log_prob, capture_groups, capture_group_log_probs, new_token_count in gen_obj:
  File "/usr/local/lib/python3.10/dist-packages/guidance/models/_local.py", line 357, in __call__
    parse_tree = parser.parse_tree()
  File "/usr/local/lib/python3.10/dist-packages/guidance/_parser.py", line 395, in parse_tree
    self._compute_parse_tree(0, root_item, reversed_state_sets)
  File "/usr/local/lib/python3.10/dist-packages/guidance/_parser.py", line 410, in _compute_parse_tree
    self._compute_parse_tree(pos, child, reversed_state_sets)
  File "/usr/local/lib/python3.10/dist-packages/guidance/_parser.py", line 410, in _compute_parse_tree
    self._compute_parse_tree(pos, child, reversed_state_sets)
  File "/usr/local/lib/python3.10/dist-packages/guidance/_parser.py", line 410, in _compute_parse_tree
    self._compute_parse_tree(pos, child, reversed_state_sets)
  [Previous line repeated 977 more times]
  File "/usr/local/lib/python3.10/dist-packages/guidance/_parser.py", line 401, in _compute_parse_tree
    assert self._compute_children(pos, item, reversed_state_sets)
  File "/usr/local/lib/python3.10/dist-packages/guidance/_parser.py", line 417, in _compute_children
    item.children = [None for _ in range(len(item.values))]
  File "/usr/local/lib/python3.10/dist-packages/guidance/_parser.py", line 417, in <listcomp>
    item.children = [None for _ in range(len(item.values))]
  File "_pydevd_bundle/pydevd_cython.pyx", line 1457, in _pydevd_bundle.pydevd_cython.SafeCallWrapper.__call__
RecursionError: maximum recursion depth exceeded while calling a Python object

I've found a temporary solution.
In my case it always shows an error when generation is little over max_tokens set (or default gen value). For example, max_tokens=400 and it fires on 415 total tokens generated.
So it somehow doesn't stop on max token reached and fire this RecursionError in parser.
Temp solution: always set bigger (or max possible) max_tokens value for gen() function and assign proper stop criteria in order to stop generation

I  ran into the same problem using guidance==0.1.1 and openai==1.3.1.
Here is the code
from guidance import models, user, assistant, gen, system

gpt = models.OpenAI("gpt-3.5-turbo")
with system():
    lm = gpt + "You are a recruiter writing a job offer for a car maker company"

    lm += "Here are the informations you have about the job opening.\n\
    - Job title : Mechanic\n\
    - Location: Seattle\n"

with user():
    lm += "Can tou write the job offer section that details the tasks the employee wil have to handle?"

    - Job title : Mechanic
    - Location: Seattle
<|im_end|><|im_start|>user
Can tou write the job offer section that details the tasks the employee wil have to handle?<|im_end|>
Traceback (most recent call last):
  File "/home/hcombaluzier/Documents/Project_group/CRIT/redaction-automatique-offre/test.py", line 29, in <module>
    lm += gen("desc_ent", max_tokens=400)
  File "/home/hcombaluzier/miniconda3/envs/crit/lib/python3.10/site-packages/guidance/models/_model.py", line 204, in __add__
    return lm.run_stateless(value)
  File "/home/hcombaluzier/miniconda3/envs/crit/lib/python3.10/site-packages/guidance/models/_model.py", line 303, in run_stateless
    for new_bytes, is_generated, new_bytes_log_prob, capture_groups, capture_group_log_probs, new_token_count in gen_obj:
  File "/home/hcombaluzier/miniconda3/envs/crit/lib/python3.10/site-packages/guidance/models/_local.py", line 357, in __call__
    parse_tree = parser.parse_tree()
  File "/home/hcombaluzier/miniconda3/envs/crit/lib/python3.10/site-packages/guidance/_parser.py", line 395, in parse_tree
    self._compute_parse_tree(0, root_item, reversed_state_sets)
  File "/home/hcombaluzier/miniconda3/envs/crit/lib/python3.10/site-packages/guidance/_parser.py", line 410, in _compute_parse_tree
    self._compute_parse_tree(pos, child, reversed_state_sets)
  File "/home/hcombaluzier/miniconda3/envs/crit/lib/python3.10/site-packages/guidance/_parser.py", line 410, in _compute_parse_tree
    self._compute_parse_tree(pos, child, reversed_state_sets)
  File "/home/hcombaluzier/miniconda3/envs/crit/lib/python3.10/site-packages/guidance/_parser.py", line 410, in _compute_parse_tree
    self._compute_parse_tree(pos, child, reversed_state_sets)
  [Previous line repeated 989 more times]
  File "/home/hcombaluzier/miniconda3/envs/crit/lib/python3.10/site-packages/guidance/_parser.py", line 401, in _compute_parse_tree
    assert self._compute_children(pos, item, reversed_state_sets)
  File "/home/hcombaluzier/miniconda3/envs/crit/lib/python3.10/site-packages/guidance/_parser.py", line 439, in _compute_children
    for inner_item in reversed_state_sets[state_set_pos]:
  File "/home/hcombaluzier/miniconda3/envs/crit/lib/python3.10/site-packages/ordered_set/__init__.py", line 310, in __iter__
    return iter(self.items)
RecursionError: maximum recursion depth exceeded while calling a Python object

I also have some (relatated?) issues with truncated ouptuts since i updated to 0.1.1 (Sorry but i was unable to reproduce this within a minimal english example).
Here the generated output is stopped in the middle of a phrase. When using the direct openai api with the same prompt I get a complete output.
<|im_start|>user\n\nVoici les informations relatives à l'offre\n- Intitulé de l'offre: Agent de fabrication\n- Lieu: Batilly\n- Durée de contrat: 1 semaine à 18 mois\n- Horaires: 35 heures ou 2x8\n- Modalité de salaire: horaire\n- Salaire: 13€\n- entreprise: Renault\n- Expérience souhaitée: 0-1 an\n- Etude: BEP/CAP\nLa section description de l'entreprise contient une description générique de Renaultrédigée d'un point de vue externe. \n Il ne faut pas écrire nous ni notre.\nRédige la section.\n<|im_end|><|im_start|>assistant\nNous recherchons actuellement un agent de fabrication pour notre entreprise située à Batilly. En tant qu'agent de fabrication, vous serez responsable de la production et de l'assemblage de nos produits automobiles. \n\nVotre mission consistera à effectuer différentes tâches telles que l'assemblage de pièces, le contrôle qualité, la maintenance de premier niveau et le respect des normes de sécurité. Vous travaillerez en équipe et serez<|im_end|
Thank you for your help

I was able to run my example installing guidance from source, tracking errors and making some modifications to the source code.

The first modification I had to make was to add a regex to the gen function, if not the zero_or_more function adds some grammar components that leads to the maximum recursion issue

The second problem I encountered was dealing with max_tokens.

I do not understand why the attribute max_token is forced to 100 in the guidance/guidance/models/_openai.py (l.87)
The max_token argument is also not well forwarded to the run_stateless function, max_tokens keeps the default value = 1000 (guidance/guidance/models/_model.py (l.279))

In my experiences, all those values should equals to NUMBER_OF_TOKENS when calling gen(names, max_tokens=NUMBER_OF_TOKENS)
When using a high number of tokens I had to also modify the value of the max_calls attribute that is set in guidance/guidance/models/_remote.py (l.90)
Here is the functional version of my code
gpt = models.OpenAI("gpt-3.5-turbo")
with system():
    lm = gpt + "You are a recruiter writing a job offer for a car maker company"

    lm += "Here are the informations you have about the job opening.\n\
    - Job title : Mechanic\n\
    - Location: Seattle\n"

with user():
    lm += "Can tou write the job offer section that details the tasks the employee wil have to handle?"

print(lm)
with assistant():
    lm += gen("desc_ent", max_tokens=400, regex="(.)*") #the regex does not constrained the ouput
print(lm)

Note that I had to set max_calls=100 and set the default values in _openai.py and _model.py to 400
I am not sure this is the proper way to use guidance.
I do not understand everything about how the streaming mode works and I won't be able to make a valid fix myself but it would be great if someone maintaining the repo could take a look at this.
Thanks

The second problem I encountered was dealing with max_tokens.
* I do not understand why the attribute max_token is forced to 100 in the `guidance/guidance/models/_openai.py `(l.87)

Could this be the cause of #451 ?

Thanks for highlighting this! I just converted a couple functions from recursive to iterative formulations, and that fixed the issue as I was able to reproduce it. Please let us know if you run into more recursion errors.


Visual way to group components

Add a new menu for a group of components equivalent to the wheel menu that we have for a single component.

The menu only appears when a group of components is selected.
It will tell the user how many components have been selected to give them visual clue what the buttons will do
Initially it will have 2 icons
The group icon (to be supplied) is equivalent to pressing CTRL-G
The palette icon opens the color picker and colors all selected component with the chosen color.

Refinement notes:

The component visibility should be updated only after drag release (to avoid blinking).
We should have commited selection set published in selection composable (and use it also for extending nodes).

Added new group icon to repo


Create distributed training example for TF 2.0

Should follow the example in https://github.com/kubeflow/tf-operator/tree/master/examples/distribution_strategy.
/assign @zabbasi

@richardsliu  TF 2.0  currently has allpha release.  version of tensorflow in tensorflow/tensorflow:latest is 1.13.0rc1.

Now TF 2.0 is released, we should have an example for it.

Is there any update? If no one is interested in it, I will have a look.

@zabbasi Are you still working on it?

/area docs
/priority p2
/kind feature

@gaocegege I will take this up.

@richardsliu I tested TF 2.0 & 2.1, can I take it?

@jazzsir Of course. Thanks for your contribution.

/assign


Not compatible with vue 3.0 project

I tried to add this into a vue3 project and got this error in browser:
runtime-core.esm-bundler.js?5c40:5475 Uncaught TypeError: selfHook.call is not a function
at callSyncHook (runtime-core.esm-bundler.js?5c40:5475)
at applyOptions (runtime-core.esm-bundler.js?5c40:5267)
at finishComponentSetup (runtime-core.esm-bundler.js?5c40:6050)
at setupStatefulComponent (runtime-core.esm-bundler.js?5c40:5986)
at setupComponent (runtime-core.esm-bundler.js?5c40:5926)
at mountComponent (runtime-core.esm-bundler.js?5c40:4207)
at processComponent (runtime-core.esm-bundler.js?5c40:4183)
at patch (runtime-core.esm-bundler.js?5c40:3788)
at mountChildren (runtime-core.esm-bundler.js?5c40:3996)
at mountElement (runtime-core.esm-bundler.js?5c40:3900)

I think that Vue 3 is not compatible with KaiOS


AutoTorch should not place torches while underwater- they just break right away

It should check for airspace first.

Fixed in 1.8.7
https://minecraft.curseforge.com/projects/cyclic/files/2345006


Remove image from caches

Hey i'd like to first say this was a lifesaver for an app I am working on. I was plagued with outofmemory issue until I used your library. I would like to request a feature for removing a single image from the cache. The reason for this is in my application I use a listview to display some images. Now the user can change the image by clicking on it. However in my implementation I name the images in a particular way ie. the image in position one will be labeled home_position1.jpg. now when I want to change that image to another one I rename the image with that naming convention and reload the image. however since it is the same name the cache still displays the old image. I know there is the clearCache option but then that blows away the other images when they didn't change and they will be recached. I would think a remove single item from the cache would solve this problem. something like:
in BaseDiscCache:
    public void removeItem(String imageUri) {
        String fileName = fileNameGenerator.generate(key);
     File deleteMe = new File(cacheDir, fileName);
                deleteMe..delete()
    }

and in BaseMemoryCache
    public void removeItem(String imageUri) {
        ImageSize targetSize = getImageSizeScaleTo(imageView);
        String memoryCacheKey = MemoryCacheUtil.generateKey(uri, targetSize);
        softMap.remove(memoryCacheKey);
    }

The solution proposed by you doesn't work for removing image from disc cache:
File imageFile = imageLoader.getDiscCache().get(imageUri)
if (imageFile.exists()) {
imageFile.delete();
}
Can you please suggest me another solution.

Hi, I'm using the below codes for clearing cache memory but it doesn't works for me:
MemoryCacheUtils.removeFromCache(
ConstantVariables.sellDetails_stringURL,
imageLoader.getMemoryCache());
DiskCacheUtils.removeFromCache(
ConstantVariables.sellDetails_stringURL,
imageLoader.getDiskCache());
Also I've used the following code to clear the disc cache:
File imageFile = imageLoader.getDiscCache().get(imageUri)
if (imageFile.exists()) {
imageFile.delete();
}
but doesn't works for me...
Can you please give me suggestion?

public void DeleteCachedImage(String imageUrl){
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this.context).build();
(this.imgLoader = ImageLoader.getInstance()).init(config);
final ImageLoader imgLoader = this.imgLoader;
ImageLoader.getInstance().getDiskCache().get(imageUrl).delete();
}
This should help you .


WARNING: Unknown codec ac-<IP_ADDRESS>

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm requesting a feature unrelated to a specific site
[X] I've looked through the README
[X] I've verified that I'm running yt-dlp version 2022.09.01 (update instructions) or later (specify commit)
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
Hotstar Support of codec ac-<IP_ADDRESS>
I think the below warning may be for the ac3 tracks I am after.
WARNING: Unknown codec ac-<IP_ADDRESS>
Provide verbose output that clearly demonstrates the problem

[x] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[x] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
No response

dv-dash-audio_1663821654739_hi_ec-3-0                m4a audio only         | ~662.82MiB  769k dash  | audio only          ec-3       769k 48k [hi] DASH audio, m4a_dash
How do I get this track?
"ba" does not capture this track.
Perhaps the largest filesize of the audio track would do the trick?
-- but then choosing language I'm fumbling with putting in the same command.
Is there a proper way not to use the old "--id" format?
I've tried and failed with:
yt-dlp  --cookies-from-browser Brave https://www.hotstar.com/in/movies/babli-bouncer/1260115905  --id dv-dash-audio_ec3_1663688931654_hi_ec-3


Deck.NET with dev build of Bridge

Create an instance of Deck.NET that uses the latest build of Bridge from the master branch.
To be located at https://dev.deck.net.
See Also

https://forums.bridge.net/forum/general/feature-requests/3838-add-latest-deck-net

https://dev.deck.net
Announcement Post
https://forums.bridge.net/forum/general/announcements/3905-new-deck-net-dev-instance


How to update GeneratorSettings from UseSwaggerUi3() in Asp.NetCore to something that is not marked as deprecated?

How can I update the GeneratorSettings from UseSwaggerUi3() in Asp.NetCore to something that is not marked as deprecated? I am using the following code (Which is deprecated and therefore ignored...)
app.UseSwaggerUi3(
	settings =>
	{
		settings.GeneratorSettings.DefaultPropertyNameHandling = PropertyNameHandling.CamelCase;
		settings.GeneratorSettings.OperationProcessors.TryGet<ApiVersionProcessor>().IncludedVersions = new[] { "1.0" };
		settings.GeneratorSettings.Title = "My Api";
		settings.GeneratorSettings.Description = "REST interface for my Api.";
	});

See https://github.com/RSuter/NSwag/wiki/AspNetCore-Middleware

Ok, so far I have the following piece of code:
services.AddSwaggerDocument(document =>
{
	document.DocumentName = "My Api";
	document.PostProcess = d =>
	{
		d.Info.Title = "My Api";
		d.Info.Description = "REST interface for my Api.";
	};
	document.OperationProcessors.Add(new ApiVersionProcessor { IncludedVersions = new[] { "1.0" } });
});

in the public void ConfigureServices(IServiceCollection services) method. I did not find the DefaultPropertyNameHandling. Is there a way to set this, too?

Thank you for your reply. I now used this code:
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1).AddJsonOptions(
options =>
{
	options.SerializerSettings.ContractResolver = new DefaultContractResolver
	{
		NamingStrategy = new CamelCaseNamingStrategy()
	};
});

where DefaultContractResolver and CamelCaseNamingStrategy come from the Newtonsoft.Json.Serialization namespace.

ApiVersionProcessor has been deprecated, see #1701
Good to know, I am now using d.Info.Version = "1.0.0"; for that one.


Feature/generate 4mw bitfield

What? and Why?

What does this pull request change/fix? Why was it necessary?
Generates default values for qids 130 -132, at the request of the business.

Checklist

[x] CHANGELOG.md updated? (if required)

Codecov Report

Merging #100 into master will increase coverage by 0.14%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
+ Coverage   87.25%   87.39%   +0.14%
==========================================
  Files          17       17
  Lines        1342     1357      +15
==========================================
+ Hits         1171     1186      +15
  Misses        171      171

Impacted Files
Coverage Δ

transform/transformers/MWSSTransformer.py
69.44% <100%> (+0.87%)
:arrow_up:

tests/test_mwss_transform.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

 Ops issue: INC0060311

@Dave-Haynes needs rebasing


Never translate code into VSCode display language

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

VS Code Version: 1.60.0
OS Version: Windows 10 20H2

Steps to Reproduce:

Install a non-English extension and switch VSCode display language into that language.
Open "settings".
Type "inlay" in the search box.

As you can see, some keywords are translated into VSCode display language, which is not a correct syntax.

@danyeh I added comments in the package.nls.json about how these strings are used. I believe the localizations also need to be updated

https://github.com/microsoft/vscode-loc/blob/main/i18n/vscode-language-pack-zh-hans/translations/extensions/typescript-language-features.i18n.json
Incorrect translation is located here.

Now that the comment is added, it will go through the pipeline and should be fixed in the next 1 or 2 versions of the Language Pack.

Closing this since there is no more action besides waiting.


 Kill an Entity by Dropping a Netherite Anvil on Them

Anvil special is not possible


V1.3 Example compiling fails

Describe the bug
As the title says...
Steps to Reproduce
Just load ...\Arduino\libraries\ESP32_PWM-main\examples\ISR_Changing_PWM example and try to compile.
Screenshots
In file included from C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp:417:0,
from C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.h:44,
from D:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM-main\examples\ISR_Changing_PWM\ISR_Changing_PWM.ino:40:
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM_ISR.hpp:97:4: warning: #warning Using default CHANGING_PWM_END_OF_CYCLE == true [-Wcpp]
#warning Using default CHANGING_PWM_END_OF_CYCLE == true
^
In file included from C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.h:44:0,
from D:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM-main\examples\ISR_Changing_PWM\ISR_Changing_PWM.ino:40:
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp: In member function 'bool ESP32TimerInterrupt::setFrequency(const float&, esp32_timer_callback)':
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp:317:100: error: 'timer_isr_callback_add' was not declared in this scope
timer_isr_callback_add(_timerGroup, _timerIndex, _callback, (void *) (uint32_t) _timerNo, 0);
^
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp: In member function 'void ESP32TimerInterrupt::detachInterrupt()':
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp:359:66: error: 'TIMER_INTR_T0' was not declared in this scope
timer_group_intr_disable(_timerGroup, (_timerIndex == 0) ? TIMER_INTR_T0 : TIMER_INTR_T1);
^
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp:359:82: error: 'TIMER_INTR_T1' was not declared in this scope
timer_group_intr_disable(_timerGroup, (_timerIndex == 0) ? TIMER_INTR_T0 : TIMER_INTR_T1);
^
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp: In member function 'void ESP32TimerInterrupt::disableTimer()':
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp:368:66: error: 'TIMER_INTR_T0' was not declared in this scope
timer_group_intr_disable(_timerGroup, (_timerIndex == 0) ? TIMER_INTR_T0 : TIMER_INTR_T1);
^
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp:368:82: error: 'TIMER_INTR_T1' was not declared in this scope
timer_group_intr_disable(_timerGroup, (_timerIndex == 0) ? TIMER_INTR_T0 : TIMER_INTR_T1);
^
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp: In member function 'void ESP32TimerInterrupt::reattachInterrupt()':
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp:378:65: error: 'TIMER_INTR_T0' was not declared in this scope
timer_group_intr_enable(_timerGroup, (_timerIndex == 0) ? TIMER_INTR_T0 : TIMER_INTR_T1);
^
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp:378:81: error: 'TIMER_INTR_T1' was not declared in this scope
timer_group_intr_enable(_timerGroup, (_timerIndex == 0) ? TIMER_INTR_T0 : TIMER_INTR_T1);
^
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp: In member function 'void ESP32TimerInterrupt::enableTimer()':
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp:388:65: error: 'TIMER_INTR_T0' was not declared in this scope
timer_group_intr_enable(_timerGroup, (_timerIndex == 0) ? TIMER_INTR_T0 : TIMER_INTR_T1);
^
C:\Users\Renato\Documents\Arduino\libraries\ESP32_PWM\src/ESP32_PWM.hpp:388:81: error: 'TIMER_INTR_T1' was not declared in this scope
timer_group_intr_enable(_timerGroup, (_timerIndex == 0) ? TIMER_INTR_T0 : TIMER_INTR_T1);
^
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
Information

Arduino IDE version 1.8.13
board DOIT ESP32 DEVKIT V1.
OS: Windows 7

Thanks for your interest in the library and your effort to post the issue.
There must be some issue with your installation and I'm not interested in helping you out. Just post on some forum to ask for basic help in installation / test.
The example is compiled and running OK for both ESP32_DEV and DOIT ESP32 DEVKIT V1
Good Luck,

My installation is ok, works perfectly for mine and others code.
What is not ok is you and your attitude... and your code of course.
 It is any can’t be solved by software !

From: Khoi Hoang
Sent: Monday, February 21, 2022 4:47 PM
To: khoih-prog/ESP32_PWM
Cc: renatoa ; Author
Subject: Re: [khoih-prog/ESP32_PWM] V1.3 Example compiling fails (Issue #4)
Thanks for your interest in the library and your effort to post the issue.
There must be some issue with your installation and I'm not interested in helping you out. Just post on some forum to ask for basic help in installation / test.
The example is compiled and running OK for both ESP32_DEV and DOIT ESP32 DEVKIT V1
Good Luck,
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>


Playback inaccuracies

Gave it a spin with some tricky songs, and unfortunately I noticed some bugs that also appear in several other player libs. Note that it might be the songs that are at fault, with certain libs (xmplay/bassmod, openmpt/modplug, milkytracker/milkyplay) taking steps to cover it up. I don't know enough about the file format to judge.
.
binary_world.xm goes bad 39sec in, and OpenMPT has slight issues too
http://modarchive.org/module.php?138953
http://clyp.it/hhp3pfex
.
around 51sec, the lead echo in colond.xm is played at a
slightly different pitch than the main lead, resulting in phasing
http://modarchive.org/module.php?174415
http://clyp.it/gfuaa1do
.
as jt_strng.xm hits the higher notes at 35sec, they go off-pitch.
libxm gets a fair bit of static as well but I suppose that's intended
http://modarchive.org/module.php?46508
http://clyp.it/nh15rq5h
.
synthetic_attack.xm plays correctly but segfaults at the end: (fixed in ac0bbdb, the module file is unsane. Opening then resaving the module in MilkyTracker fixes it.)
http://modarchive.org/module.php?142503
#0  xm_row (ctx=0x7f8d92832010, output=, numsamples=128) at /libxm-master/src/play.c:847
#1  xm_tick (ctx=0x7f8d92832010, output=, numsamples=128) at /libxm-master/src/play.c:948
#2  xm_sample (ctx=0x7f8d92832010, output=, numsamples=128) at /libxm-master/src/play.c:1293
#3  xm_generate_samples (ctx=0x7f8d92832010, output=, numsamples=128) at /libxm-master/src/play.c:1340
.
zalza-tequila_groove.xm throws assertion failures, (fixed in f24bcab)
and some static at the 49sec and 58sec marks:
http://modarchive.org/module.php?66518
xm_sample(): final sample value is<PHONE_NUMBER>78638606450688.000000, this is a bug
xm_sample(): final sample value is<PHONE_NUMBER>60244306673664.000000, this is a bug
xm_sample(): final sample value is<PHONE_NUMBER>48683478564864.000000, this is a bug
.
All tests done with master as of writing.
Also, what are those (*) in the effects table?

jt_strng.xm playback has been fixed as of 013d8140a8374684eca6be064754d769a8bcaf87. Thanks @rasky

colond.xm phasing has been fixed as of https://www.youtube.com/watch?v=dyJtOakIyV0. Thanks @rasky again!


board: nucleo_f411re: Configure USB and use as networking default

Configure USB on nucleo_f411re.
Enable USB in board dts file.
Configure Ethernet over USB as default networking interface.
Signed-off-by: Johannes Hutter<EMAIL_ADDRESS>

I actually use it with a custom connector

Ok, then i'm affraid this will be too much specific for upstream.
Proposing to reject

@JoeHut , ok to close?

As this patch was for a customer board cfg, going to close

Sorry, I was on vacation. Makes sense it got closed.


chore(main): release 1.2.1

:robot: I have created a release beep boop
1.2.1 (2024-08-28)
Bug Fixes

remove double warning (647717d)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.2.1
:sunflower: