Deployment failure when using binary modules.

I'm using sharp to process images. Is there anything I can do?
The following log is from now.sh.
06/06 09:05 PM (5m)
npm install
06/06 09:05 PM (5m)
✓ Using "yarn.lock"
06/06 09:05 PM (5m)
⧗ Installing 44 main dependencies…
06/06 09:06 PM (4m)
> Building<EMAIL_ADDRESS>remotely

><EMAIL_ADDRESS>install /tmp/ace-build-sharp-0.18.1-g4lpI/node_modules/sharp
> node-gyp rebuild
06/06 09:06 PM (4m)
ERROR: musl libc (x86_64) requires manual installation - please see http://sharp.dimens.io/en/stable/install/
gyp: Call to 'LDD_VERSION="musl libc (x86_64)
Version 1.1.16
Dynamic Program Loader
Usage: ldd [options] [--] pathname" node -e "require('./binding').download_vips()"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
06/06 09:06 PM (4m)
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/node/57/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.7.0-coreos
gyp ERR! command "/node/57/bin/node" "/node/57/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/ace-build-sharp-0.18.1-g4lpI/node_modules/sharp
06/06 09:06 PM (4m)
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
06/06 09:06 PM (4m)
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/nowuser/.npm/_logs/2017-06-06T12_06_10_912Z-debug.log
06/06 09:06 PM (4m)
> Building<EMAIL_ADDRESS>remotely

><EMAIL_ADDRESS>install /tmp/ace-build-sharp-0.18.1-WsbS7/node_modules/sharp
> node-gyp rebuild
06/06 09:06 PM (4m)
ERROR: musl libc (x86_64) requires manual installation - please see http://sharp.dimens.io/en/stable/install/
gyp: Call to 'LDD_VERSION="musl libc (x86_64)
Version 1.1.16
Dynamic Program Loader
Usage: ldd [options] [--] pathname" node -e "require('./binding').download_vips()"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
06/06 09:06 PM (4m)
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/node/57/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:125:13)
06/06 09:06 PM (4m)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.7.0-coreos
06/06 09:06 PM (4m)
gyp ERR! command "/node/57/bin/node" "/node/57/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/ace-build-sharp-0.18.1-WsbS7/node_modules/sharp
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
06/06 09:06 PM (4m)
npm ERR!     /home/nowuser/.npm/_logs/2017-06-06T12_06_16_933Z-debug.log
06/06 09:06 PM (4m)
> Building<EMAIL_ADDRESS>remotely

><EMAIL_ADDRESS>install /tmp/ace-build-sharp-0.18.1-yNVes/node_modules/sharp
> node-gyp rebuild
06/06 09:06 PM (4m)
ERROR: musl libc (x86_64) requires manual installation - please see http://sharp.dimens.io/en/stable/install/
gyp: Call to 'LDD_VERSION="musl libc (x86_64)
Version 1.1.16
Dynamic Program Loader
Usage: ldd [options] [--] pathname" node -e "require('./binding').download_vips()"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/node/57/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.7.0-coreos
gyp ERR! command "/node/57/bin/node" "/node/57/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/ace-build-sharp-0.18.1-yNVes/node_modules/sharp
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR!  In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
06/06 09:07 PM (3m)
sh: node-gyp: not found
06/06 09:07 PM (3m)
Error: Command node-gyp rebuild ended with code 127
    at ChildProcess.<anonymous> (/usr/lib/node_modules/@zeit/cace/build/lib/run.js:1:599)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:887:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
06/06 09:07 PM (3m)
npm run build
06/06 09:07 PM (3m)
><EMAIL_ADDRESS>build /home/nowuser/src
> next build
06/06 09:07 PM (3m)
> Using external babel configuration
06/06 09:07 PM (3m)
> location: "/home/nowuser/src/.babelrc"
06/06 09:08 PM (2m)
npm start
06/06 09:08 PM (2m)
><EMAIL_ADDRESS>start /home/nowuser/src
> NODE_ENV=production node next/app.js
06/06 09:08 PM (2m)
(node:250) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module '../build/Release/sharp.node'
06/06 09:08 PM (2m)
(node:250) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
06/06 09:08 PM (2m)
Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials.
06/06 09:08 PM (2m)

@TooTallNate

@Rokt33r please use<EMAIL_ADDRESS>for now. The latest version of sharp requires a version of libvips that is not yet available to out build nodes.

Once apk updates their vips to >= 8.5.5 then the latest version should work:  https://pkgs.alpinelinux.org/package/edge/testing/x86_64/vips

Thank you so much! The problem is fixed after I installed<EMAIL_ADDRESS>

And now the latest version of sharp works again. Thank you for your patience @Rokt33r!


Partially revert patroni@8c5ab4c

Still check against postgres --describe-config if a GUC does not have a validator but is a valid postgres GUC

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

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

Totals

Change from base Build<PHONE_NUMBER>0:
0.0%

Covered Lines:
14339

Relevant Lines:
14357

💛  - Coveralls


Hide my poject / execute my project

Have not read the README yet but it looks good i will try it very soon..
 Or i can execute my file as well? I mean if i have a project i created and i dont want to people be able to read the code but still able to execute it... :)
Which is it?
Thankx for your time anyway

Encrypted code can't be executed. It has to be machine-readable which can be reverse engineered and read by humans.
What you want is to obfuscate your code but you should know that there is no way that guarantees 100% unreadability.
If you are using a compiled language then you already get a level of obfuscation by compiling your code. There is plenty of open source obfuscation software that you can use to obfuscate your code.


Output Matlab color in plain text

/C and /IC (Color and Interior Color) are three number sets that represent a Matlab color. I'd like to do a custom column that converts this to plain text.

Color columns now output hex code to mirror Revu.


"Why choose us?" Section Design Improvement

Current Behavior
Alignment of text and other styling changes in the "Why choose us?" Section.
Desired Behavior
By doing some styling adjustments in this section, I can make it look even better which will overall improve the design of the website.
Screenshots / Mockups
Current Design

Expected Updated Design
You have 2 choices in the updated design. Both are same except the color of heading i.e. in current screenshot the heading: "Upskill Students".
In one option, we have heading with pink color and other contain blue. You can choose one from them.
Option1

Option2

I want to work on this improvement as a part of GSSOC-23.

Hi @akshathar-navada
The merged PR (Updated "Join Us" Section #491) is not of this issue. It belongs to this issue:
"Join Us" Section Text Alignment Improvement #484
This issue is for another section's improvement.


Create test suite for Augur State

Need to talk more with @robert-e-davidson3 on the details for how to create tests for Augur State (a.k.a. Augur Node v2).
Current tests to create include:

[x] Syncing (including derived tables if we use them)
[x] Performing a rollback (including derived tables if we use them)
[x] Process restarts after crashing in the middle of syncing
[ ] Process restarts after crashing in the middle of adding new block from blockstream
[ ] Process restarts after crashing in the middle of a rollback
[x] Blockstream adds a new block
[x] Full-text search
[x] Warp sync
[x] Getter functions

@robert-e-davidson3 Tomorrow can you take some time to turn this task into an epic since this will span multiple sprints.
I'd say rough it out into topic area issues that are all sub-8 points and we can schedule them into sprints as need they come up.

Putting this backlog as @robert-e-davidson3 is on holiday.

Getters are tested.
Blockstream adding a new block: BlockAndLogStreamerListener is tested.

Closing this big epic, remaining issue is stand-alone with @robert-e-davidson3 deciding if we're doing it and when.


Deleting multiple places command

When the user types the command "deletem 3 2". The application doesn't do anything. It neither gives an error message nor a message of command worked successfully.
Steps to reproduce the behavior:
Type the command - deletem 3 2
The command result display doesn't show any message and neither does anything change in the application.

Expected behaviour:
It showed have shown an error message as the starting index is greater than the end index. This behaviour has been defined in the User Guide.

Same issue with PR #138.


email confirmed hook

Need to add email confirmed hook

https://github.com/jpiepkow/accesspass/releases/tag/0.5.4


Implement the Azure OEM tools as systemd-sysext image

Current situation
The Azure OEM partition holds a custom Python distribution for waagent and a base Ignition definition to create a systemd service.
The custom Python causes problems because of the non-standard location and missing parts of the library.
Impact
Some Azure extensions won't run with the custom Python distribution and we also don't have an update mechanism for the OEM partition and the files created on the rootfs by Ignition.
Ideal future situation
We now want to migrate to using a systemd-sysext image stored as file on the OEM partition and updated by update-engine.
A benefit of sysext images is that they can have a strict coupling to the Flatcar VERSION_ID which enables to use dynamical linking to save space and make the OEM tool packages simpler. We can build the regular python and use a standard location.
The base Ignition configuration is not needed anymore because the sysext's OEM files already become part of the /usr hierarchy and systemd services there may be enabled through shipped symlinks.
Implementation options
Done: The installation of ebuild files into the sysext image could be done by installing to a directory and then using squashfs  (Packages installed in the /usr partition must not be installed again).
Additional information
Done: For testing one needs the helper service from https://github.com/flatcar-linux/Flatcar/issues/768 that sets up the symlink for the active sysext image.
Tasks
To quickly get first results and ship the work, the new idea now is to postpone the update support.
The following tasks are worked on or need to be worked on for this MVP:

[x] https://github.com/flatcar/Flatcar/issues/766 → PRs are prepared, testing needed as this touches many places, maybe this can be merged before the Azure OEM sysext migration @krnowak
[ ] https://github.com/flatcar/scripts/pull/858 → We need to change the Azure OEM sysext PR to use SYSEXT_LEVEL instead of VERSION_ID for the mean time, maybe don't create the active-oem-${OEMID} flag file (see below) @krnowak
[ ] … and of course, testing and debugging needed for the above PR
[ ] Find a way in bootengine to accommodate this special case of a sysext image that is not updated: Maybe we can define a magic version like initial and when this sysext image exists, the symlink gets created but we don't enter the full A/B logic by not creating the active-oem-${OEMID} flag file during image build: @pothos

Sorry for messing with project stuff, did it on wrong issue.

I suppose we can close this as done?


Cloud tests gh actions

After switching to gh actions in #61 , I am trying again to get the high level tests with the google cloud data to work.

I am not quite sure I understand these failures. I have currently restricted the test module to run for a single model (CanESM5) and only the most simple of the tests. I was able to run this test from my local machine successfully, but it seems that when I run this from within GHA, the .zmetadata file cannot be found. Is this a permission issue of sorts?
cc'ing @charlesbluca @rabernat here, since you folks know much more about GHA and cloud stuff in general

It seems there is a general problem with accessing the data. I have deactivated the consolidated option and it still says that group is not found. Wondering if I need to add some special token or similar to enable GHA to 'see' the cloud data.

I think the problem is at:
ds_raw = xr.open_zarr(cat.df["zstore"][0], **zarr_kwargs)

Xarray is getting a string for the path of the Zarr dataset in cloud, when it's expecting a mutable mapping created from that path using either gcsfs or fsspec. This should be circumvented if you do something like:
mm = fsspec.get_mapper(cat.df["zstore"][0]) # think you can pass in storage options here as well?
ds_raw = xr.open_zarr(mm, **zarr_kwargs)

Thanks a lot for looking into this @charlesbluca. Ill check out if this works now.

After checking it out on my own end, I think the issue might be that passing a gs:// path directly to Xarray's open_zarr method relies on gcloud rather than gcsfs - at least, that's my assumption since that's the main difference between my local machine and the workflow in terms of dependencies.
I'll try it out myself, but I think adding a step to set up gcloud could also resolve the issue.

It worked!

😂 glad I was able to help!
This does showcase some interesting behavior on Xarray's part though - I would've assumed it would rely on gcsfs or fsspec if they were in the environment before falling back to gcloud.

Do you think this is worth raising an issue over there?

It might be - I'll check out what's going on with the actual open_zarr function first to see if there's something I'm missing.

I doubt that I will be of much help, but let me know if there is something I can do on this end to help.

Found the answer - it has to do with the bump from 0.16.1 to 0.16.2 in Xarray.
On 0.16.1 and earlier, the path string is passed directly to Xarray's ZarrStore constructor, and eventually Zarr's open_group, where it works fine because Zarr is able to open datasets with the path string alone.
On 0.16.2 and onward, the path string is passed into xarray.open_dataset(...engine="zarr"), and before being passed on to Zarr's open_group, it is normalized - essentially treated as a path in your local file system. Thus the Zarr error saying it can't find the dataset in your local file system.
Essentially, Xarray used to unintentionally support opening Zarr datasets in the cloud with only the path string (though it wasn't necessarily documented), and now it only supports mutable mappings for those cases.

On 0.16.2 and onward, the path string is passed into xarray.open_dataset(...engine="zarr"), and before being passed on to Zarr's open_group, it is normalized - essentially treated as a path in your local file system. Thus the Zarr error saying it can't find the dataset in your local file system.

Can you open an issue please?

Done! @dcherian:

Non-HTTPS remote URLs no longer work as input for open_zarr


LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210914001225466 to main

LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210914001225466 to main with localized lcls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
26408

Relevant Lines:
57436

💛  - Coveralls


avoid attempts to access properties of undefined in _Utils_eqHelp

do non-recursive tests before the depth check.  this ensures that the
'for(key in x)' loop properly short-circuits, and avoids putting
Tuple2s containing 'undefined' on the stack.
fixes #1011; see that issue and #1031 for further discussion
listTests by @Skinney

Now that #1031 has been merged, all that's left here are the additional tests.  I've resolved the conflict in case you want to include them.


functions serve does not set default secrets

Bug report
Describe the bug
Default secrets are not set when executing functions locally.
Further complicating matters, you can't set these environment variables yourself in an env file as you receive:

Error: Invalid env name: SUPABASE_URL. Env names cannot start with SUPABASE_.

To Reproduce
Can attempt to log Deno.env.get("SUPABASE_URL") alternatively:

Execute any supabase functions serve <any function>
docker exec -it <container ID> bash
env

Expected behavior
Output for the value of SUPABASE_URL.
System information

OS: macOS
Version of supabase CLI: 1.34.5

Additional context
Add any other context about the problem here.

My mistake, looks like they are injected:
https://github.com/supabase/cli/blob/main/internal/functions/serve/serve.go#L174-L179
They were not set in my case due to my attempts to work around another issue:
https://github.com/supabase/cli/issues/806


PATCH status page returned 422: Sorry, these attributes have unsupported values"

I successfuly created resources in Uptime but I am not able to do any updates.
Please tell me what am I missing here.
Required fields are filled out. It would help me to actually see what "unsupported values" and attributes are sent in the PATCH request to let me debug it.
Related: #75
Error
│ Error: PATCH https://betteruptime.com/api/v2/status-pages/184479 returned 422: {"errors":"Sorry, these attributes have unsupported values","allowed_values":{"layout":["vertical","horizontal"]}}
│
│   with module.uptime.betteruptime_status_page.this,
│   on ../modules/better-stack-uptime/main.tf line 7, in resource "betteruptime_status_page" "this":
│    7: resource "betteruptime_status_page" "this" {
│

Code
provider "betteruptime" {
  api_token = var.api_token
}

### status page ###

resource "betteruptime_status_page" "this" {
  company_name = "Company"
  company_url  = var.domain
  contact_url  =<EMAIL_ADDRESS>  timezone     = "Europe/Prague"
  subdomain    = "company-dev"
}

resource "betteruptime_status_page_section" "monitors" {
  status_page_id = betteruptime_status_page.this.id
  name           = "App"
  position       = 0
}

### monitors ###

resource "betteruptime_monitor" "app_onboarding" {
  url          = "${var.domain}/start"
  monitor_type = "status"
}

resource "betteruptime_monitor" "app_profile" {
  url          = "${var.domain}/landsman"
  monitor_type = "status"
}

resource "betteruptime_monitor" "app_profile_wall" {
  url          = "${var.domain}/landsman/wall"
  monitor_type = "status"
}

resource "betteruptime_monitor" "app_profile_stats" {
  url          = "${var.domain}/landsman/stats"
  monitor_type = "status"
}

resource "betteruptime_monitor" "app_profile_bio" {
  url          = "${var.domain}/landsman/bio"
  monitor_type = "status"
}

### link monitors to status page ###

resource "betteruptime_status_page_resource" "app_onboarding" {
  status_page_id = betteruptime_status_page.this.id
  resource_id    = betteruptime_monitor.app_onboarding.id
  resource_type  = "Monitor"
  public_name    = "onboarding"
}

resource "betteruptime_status_page_resource" "app_profile" {
  status_page_id = betteruptime_status_page.this.id
  resource_id    = betteruptime_monitor.app_profile.id
  resource_type  = "Monitor"
  public_name    = "profile index"
}

resource "betteruptime_status_page_resource" "app_profile_wall" {
  status_page_id = betteruptime_status_page.this.id
  resource_id    = betteruptime_monitor.app_profile_wall.id
  resource_type  = "Monitor"
  public_name    = "profile wall"
}

resource "betteruptime_status_page_resource" "app_profile_stats" {
  status_page_id = betteruptime_status_page.this.id
  resource_id    = betteruptime_monitor.app_profile_stats.id
  resource_type  = "Monitor"
  public_name    = "profile stats"
}

resource "betteruptime_status_page_resource" "app_profile_bio" {
  status_page_id = betteruptime_status_page.this.id
  resource_id    = betteruptime_monitor.app_profile_bio.id
  resource_type  = "Monitor"
  public_name    = "profile bio"
}

If you set a value for betteruptime_status_page.layout then the error will go away.
If you look at your tf plan output you'll probably see that it plans to change betteruptime_status_page.layout from vertical -> null.
Same goes for some other properties:

design
theme
announcement_embed_visible

@landsman Yeah, but it works as a work around until BetterStack gets around to addressing the issue.

Hello @landsman and @MartinBjerknes, thanks for reporting it and sharing the workaround 🙌
Specifying the field as Optional and Computed will make sure the API-returned values are always respected. I've proposed a fix in https://github.com/BetterStackHQ/terraform-provider-better-uptime/pull/96 and the issue should be addressed in v0.10.0.
The shared configuration should produce no more errors after upgrading, and you can remove those properties. Apologies for the inconvenience 🙏

Just released v0.10.0 which fixes the issue with optional fields being mandatory in some cases 🙌

thanks!


General improvements to generated documentation

Keep comments in both event and elem packages at readable lengths (wrap at 80 chars).
Start func docstrings with the func name itself (following Go style conventions).
Document name mapping properly (/cc @shurcooL).

This looks incredible! Thanks for doing it.

Start func docstrings with the func name itself (following Go style conventions).

Are you looking to cover all cases, or just the vast majority? I see some entries that would still trigger golint warnings, would you want me to point them out?

Are you looking to cover all cases, or just the vast majority? I see some entries that would still trigger golint warnings, would you want me to point them out?

Correct, there are still a large number that do cause golint warnings at this point (I would estimate 20-30% but don't have a real number on hand); These will mostly be solved by updating the MDN and regenerating -- which can be done independently of this PR. I will follow-up on these :)

One minor comment. LGTM.

Since there have been no further comments and I've addressed all by shurcooL, I'm going to merge. I think this change won't be very controversial, but @neelance if you see anything here you dislike or want to discuss we can revert that portion and I'll resubmit it as a PR for further discussion.


Use posts to go back in the Flow wizard

Rationale
Issue 48203: Flow import analysis workflow: Selecting BACK button results in "Confirm Form Resubmission" page error
Related Pull Requests

https://github.com/LabKey/platform/pull/4792

Changes

Make the back buttons do a POST of the form

Should have targeted a maintenance release


add auto smart contract tool

These two project are the same category, merge to one task would be better I think.


Toolbar and Tabs out of view

When the window or popup window is small neither toolbar or tabs has how scroll it to see that elements out of window.

Any progress on this? How about grouping out-of-view toolbar items into a drop down menu?

Any progress on this? How about grouping out-of-view toolbar items into a drop down menu?

The current 1.5 master supports scrolling left/right in the toolbar if the items don't fit in the visible area.

Ah, should have updated before commenting. Thanks.

This works if the toolbar is added to the panel's "toolbar" property. It doesn't seem to work if a toolbar is added as the panel's content.

Yes, it is implemented in current master branch. Closing the issue.


Add S3.get_signed_url method

Creates a temporary link to the private S3 document. Link expires
in expires_at seconds (defaults to 30 seconds).
Can be used for documents that require authorization and should not
be shared publicly (eg service submission documents).

:+1:


Flutter Google-Maps Killing the App with No Errors!

I have been facing number of issues with Flutter. Several times a day, Flutter apps just stops responding. This also results in memory leaks, performance issues and the CPU churning. It maybe related to VS Code but happens 2-3 a day sometimes even more.
Flutter integration with Google Maps dart plugin is also broken. The app simply kills itself silently without any output messages.

Here is the error:
Error output from CocoaPods:
↳
[!] <PBXGroup UUID=97C146E51CF9000F007C117D> attempted to initialize an object with an unknown UUID. CF3B75C9A7D2FA2A4C99F110 for attribute: children. This can be the result of a merge and  the unknown UUID is being discarded.
[!] Automatically assigning platform ios with version 8.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
Error running pod install
Error launching application on iPhone Xʀ.

Could the issue with the google maps plugin maybe be related to this one?  #31152

Hi @azamsharp
if you're still experiencing this problem with latest stable, please create a new issue and provide the information required in the template.
Thank you


French translation

This small PR adds the french translation
You can ping me in the future if there are any new keys to translate ;)
Thanks for this app :)

Awesome!
Thanks I'll get back to this later today


Build failed with v4l2-sys feature

Hi,
I'm trying to include dependency using only v4l2-sys
v4l = { version = "0.5.0", features = [ "v4l2" ] }

but it fails:
fatal error: 'libv4l1.h' file not found

Yeah, I know, I can install it but why does it even need this header if I selected v4l2 feature.

Alright, now it does not complain on missing libv4l1.h
v4l = { version = "0.5.0", default-features = false, features = [ "v4l2" ] }

but it still fails:
   |
52 |         request: ioctl::_IOC_TYPE,
   |                  ^^^^^ use of undeclared type or module `ioctl`

I think here is a typo: should be vidioc instead of ioctl

Good catch! That most definitely looks like a typo indeed. I'll push out a Bugfix release (0.5.1) tonight.

0.5.1 has just been published. Furthermore, I added an explicit CI build step with the v4l2 feature to prevent breakage in the future: https://github.com/raymanfx/libv4l-rs/commit/4fec71487701511f20fdd9c825cca96e9fb7d306.


res.id lost in version^5.0.6, we can not track the conversation.

Verify latest release

[X] I verified that the issue exists in the latest chatgpt release

Verify webapp is working

[X] I verify that the ChatGPT webapp is working properly for this account.

Environment details
<EMAIL_ADDRESS>Describe the Bug
res.id lost in version^5.0.6, we can not track the conversation.
the response is :
{
  errCode: 0,
  msg: '',
  data: { text: 'Hello! How can I assist you today?' }
}

@assmdx Are you using ChatGPTAPI or ChatGPTUnofficialProxyAPI?
Can you paste the whole code you're using to initialize and call sendMessage? Your JSON example isn't in the format that this package uses, so it's likely that some wires are getting crossed somewhere.

@transitive-bullshit the  code is :
import { ChatGPTAPI } from "chatgpt"
import Keyv from "keyv"
import express from "express"
import bodyParser from "body-parser"

const chatgptApi = new ChatGPTAPI({
    apiKey: "XXXXXXXXXXXXXXXXXXXXXXXX"
})
const app = express()
app.use(bodyParser.urlencoded({extended:true}))
app.use(bodyParser.json())

const kv = new Keyv()

app.post(`/message`, async (req, res) => {
    try {
      const { message, conversationId } = req.body
      if (!message) {
        return res.json({
            errCode: 1,
            msg: "message can not be empty"
        })
      }
      let parentMessageId = ""
      if (conversationId) {
        parentMessageId = kv.get(conversationId)
      }
      let reply = null
      if (parentMessageId && conversationId) {
        reply = await chatgptApi.sendMessage(message, {
            conversationId,
            parentMessageId
        })
      } else {
        reply = await chatgptApi.sendMessage(message)
      }
      if (reply) {
        const {text, id, conversationId} = reply
        kv.set(conversationId, id)
        return res.json({
            errCode: 0,
            msg: "",
            data: {
                conversationId,
                text
            }
        })
      } else {
        console.error(e)
        return res.json({
            errCode: 1,
            msg: "server error"
        })
      }
    } catch (e) {
      console.error(e)
      return res.status(500).json({
        errCode: 1,
        msg: "server error"
      })
    }
})

app.listen(22040,  () => {
    console.log('slow chatgpt server is listen on 22040')
})

@assmdx the latest version doesn't use conversationId, because it's not used by the official API. Just use res.id as the parentMessageId.

thank you , it works.

res.id is still not work. what does res.id and res.parentMessageId means?
Whether I use the reply.parentMessageId or reply.id as the next request's parentMessageId， chatgpt can always dont know what I asked past, this is a bug.

It also doesn't work for me, It looks like the request that's getting sent to the ChatGPT API is correct (it contains the whole conversation history) but the bot always insists that it doesn't remember what was going on before. Anyone else having this kind of issue?

:d  I also have the same problem, AI can't connect to context anymore.

:d I also have the same problem

@maciej-trebacz @BigBroFinch may be due to the differences in the ChatGPT webapp's behavior versus the behavior of the Chat completions API. I'd love to try and improve support here, though.
Can you paste some example conversations (messages JSON by enabling debug mode) where you're seeing unexpected outputs? That will help me try and reproduce the issue and give better advice or make changes to the lib.
Thanks!

@maciej-trebacz @BigBroFinch may be due to the differences in the ChatGPT webapp's behavior versus the behavior of the Chat completions API. I'd love to try and improve support here, though.
Can you paste some example conversations (messages JSON by enabling debug mode) where you're seeing unexpected outputs? That will help me try and reproduce the issue and give better advice or make changes to the lib.
Thanks!

question1: When did Gauss and his wife get married？
question2: How long have they been in love？
chatgpt will reply: "I don't know who is they..."

I've got same issue.
First message debug:
sendMessage (54 tokens) {
  max_tokens: 1000,
  model: 'gpt-3.5-turbo',
  temperature: 0.8,
  top_p: 1,
  presence_penalty: 1,
  messages: [
    {
      role: 'system',
      content: 'You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible.\n' +
        'Knowledge cutoff: 2021-09-01\n' +
        'Current date: 2023-03-15'
    },
    {
      role: 'user',
      content: 'Write an example react component',
      name: undefined
    }
  ],
  stream: false
}
{
  id: 'chatcmpl-6uTDgs5Hn5rfnJaehix7MSdA6weAn',
  object: 'chat.completion',
  created:<PHONE_NUMBER>,
  model: 'gpt-3.5-turbo-0301',
  usage: { prompt_tokens: 61, completion_tokens: 115, total_tokens: 176 },
  choices: [ { message: [Object], finish_reason: 'stop', index: 0 } ]
}

Second message debug:
sendMessage (54 tokens) {
  max_tokens: 1000,
  model: 'gpt-3.5-turbo',
  temperature: 0.8,
  top_p: 1,
  presence_penalty: 1,
  messages: [
    {
      role: 'system',
      content: 'You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible.\n' +
        'Knowledge cutoff: 2021-09-01\n' +
        'Current date: 2023-03-15'
    },
    {
      role: 'user',
      content: 'Rewrite it with TypeScript',
      name: undefined
    }
  ],
  stream: false
}
{
  id: 'chatcmpl-6uTF1UAftO4iv52i8bJD3m9U4P9CH',
  object: 'chat.completion',
  created:<PHONE_NUMBER>,
  model: 'gpt-3.5-turbo-0301',
  usage: { prompt_tokens: 61, completion_tokens: 23, total_tokens: 84 },
  choices: [ { message: [Object], finish_reason: 'stop', index: 0 } ]
}

The first time he sent me a component, the second time he replied "I'm sorry, but could you please provide me with the original code or statement to be rewritten in TypeScript?"

I have the same issue

In my case, the problem was that I was initializing a new instance of the ChatGPTAPI class every time through a factory. As a result, every time I initialized it, my keyv instance, which stores message history, was reset. Initializing keyv outside of my factory and passing the instance through messageStore in the constructor of ChatGPTAPI helped me.

@maciej-trebacz @BigBroFinch may be due to the differences in the ChatGPT webapp's behavior versus the behavior of the Chat completions API. I'd love to try and improve support here, though.
Can you paste some example conversations (messages JSON by enabling debug mode) where you're seeing unexpected outputs? That will help me try and reproduce the issue and give better advice or make changes to the lib.
Thanks!

hello bro @transitive-bullshit

this is my nestjs server
and whatever i send msg width parentMessageId
and this is  debug log
sendMessage (46 tokens) {   max_tokens: 1000,   model: 'gpt-3.5-turbo',   temperature: 0.8,   top_p: 1,   presence_penalty: 1,   messages: [     {       role: 'system',       content: 'You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible.\n' +         'Knowledge cutoff: 2021-09-01\n' +         'Current date: 2023-03-17'     }   ],   stream: false } {   id: 'chatcmpl-6uwzPVrszdmNrvGsVTopp2tolRUB2',   object: 'chat.completion',   created:<PHONE_NUMBER>,   model: 'gpt-3.5-turbo-0301',   usage: { prompt_tokens: 51, completion_tokens: 33, total_tokens: 84 },   choices: [ { message: [Object], finish_reason: 'stop', index: 0 } ] }
Even if I include the parentMessageId when sending a message, the debug log only returns two messages each time
thanks

I finally resolved this issue on my end. There are two things to keep in mind, one in hindsight was kind of obvious, the other not so much:

The ChatGPTAPI needs to be instantiated globally and not on every request, because it stores the message history within the object itself (the API itself doesn't store your message history for you).
You need to supply a systemMessage parameter with a system prompt when creating a ChatGPTAPI instance in order for the conversation tracking feature to work. This requirement is not documented anywhere (at least I didn't see it anywhere, the OpenAI documentation just says that "typically" this is how people do it). When you supply a correct system message and  turn on the debug flag when you instantiate the API object your debug log should looks as follows:

...
  messages: [
    {
      role: 'system',
      content: " your system message prompt here "
    },
    { role: 'user', content: 'hey there AI, how are you today?', name: undefined },
    {
      role: 'assistant',
      content: "Thanks, I'm good, how about you?",
      name: undefined
    },
...

The day before yesterday was a normal situation, yesterday suddenly encountered this problem, see issue-1728724329, does anyone have a solution ？

Problem Solved
The problem is solved, because my code is not perfect, so there is an error above the API request, this error causes the code of Next.js to be recompiled, so ChatGPTAPI is also reinitialized, naturally it will forget the conversation, if you encounter similar problems, please troubleshoot two aspects:

Put the initialization of the API at the top of the module, instead of initializing it every time you request the interface.
Is there some bugs in the code that will cause dev to restart.

Thanks @maciej-trebacz for the reminder.

The day before yesterday was a normal situation, yesterday suddenly encountered this problem, see issue-1728724329, does anyone have a solution ？

问题解决了
问题解决了，因为我的代码不完美，所以API请求上面有一个错误，这个错误导致Next.js的代码被重新编译，所以ChatGPTAPI也被重新初始化，自然会忘记对话，如果你遇到类似问题，请从两个方面排查：

将API的初始化放在模块的顶部，而不是每次请求接口时都初始化。
代码中是否存在一些错误会导致开发重新启动。

谢谢@maciej-trebacz为了提醒。

前天还正常的情况，昨天突然遇到这个问题，查看issue-1728724329，有谁有解决办法吗？

This is very useful to me

This project is undergoing a major revamp; closing out old issues as part of the prep process.
The chatgpt package is pretty outdated at this point. I recommend that you use the openai package or the openai-fetch package instead.


use "filter" to limit the results returned by az role definition --name

Related command
Any role definition list operation that filters by name, e.g.:
az role definition list --name "Contributor"
Is your feature request related to a problem? Please describe.
The call to the resource manager API fetches all the IDs:
GET https://management.azure.com/subscriptions/<id>/providers/Microsoft.Authorization/roleDefinitions?api-version=2022-05-01-preview
HTTP/1.1

Whilst the works, it seems unnecessarily costly given a specific name has been supplied.
Describe the solution you'd like
Consider specifying the role name if supplied, using the target query parameter:
GET https://management.azure.com/subscriptions/<id>/providers/Microsoft.Authorization/roleDefinitions?api-version=2022-05-01-preview&$filter=roleName%20eq%20'Contributor'
HTTP/1.1

Describe alternatives you've considered
n/a
Additional context
https://learn.microsoft.com/en-us/rest/api/authorization/role-definitions/list?view=rest-authorization-2022-04-01&tabs=HTTP#uri-parameters

Thank you for opening this issue, we will look into it.

I guess downloading it once for all the rope types might be more efficient if you take into account caching.  Was just a curiosity i spotted when doing some testing.

@kewalaka, you have sharp eyes!
The role definition filtering is indeed performed on the client side:
https://github.com/Azure/azure-cli/blob/e8aa309e947d175f1b88fd1abed1cf717e2d4740/src/azure-cli/azure/cli/command_modules/role/custom.py#L140-L150
This is because, according to L145, --name matches both name and roleName. For example, you may retrieve Reader role definition with either command:
az role definition list --name Reader
az role definition list --name acdd72a7-3385-48ef-bd42-f606fba81ae7

And the result is the same:
[
  {
    "assignableScopes": [
      "/"
    ],
    "createdBy": null,
    "createdOn": "2015-02-02T21:55:09.880642+00:00",
    "description": "View all resources, but does not allow you to make any changes.",
    "id": "/subscriptions/xxx/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
    "name": "acdd72a7-3385-48ef-bd42-f606fba81ae7",
    "permissions": [
      {
        "actions": [
          "*/read"
        ],
        "condition": null,
        "conditionVersion": null,
        "dataActions": [],
        "notActions": [],
        "notDataActions": []
      }
    ],
    "roleName": "Reader",
    "roleType": "BuiltInRole",
    "type": "Microsoft.Authorization/roleDefinitions",
    "updatedBy": null,
    "updatedOn": "2021-11-11T20:13:47.862868+00:00"
  }
]

But I think you made a very good point. We may consider adding --role-name for a more efficient search.

I guess downloading it once for all the role types might be more efficient if you take into account caching. Was just a curiosity i spotted when doing some testing.

Most Azure CLI commands by far have no caching mechanism, as it is impossible to know when the data returned by the ARM service expires.
Take https://learn.microsoft.com/en-us/rest/api/authorization/role-definitions/list?view=rest-authorization-2022-04-01&tabs=HTTP as an example, if a new role is created, CLI will not know that. Quering ARM service again will defeat the purpose of caching.

Most Azure CLI commands by far have no caching mechanism, as it is impossible to know when the data returned by the ARM service expires.
Take https://learn.microsoft.com/en-us/rest/api/authorization/role-definitions/list?view=rest-authorization-2022-04-01&tabs=HTTP as an example, if a new role is created, CLI will not know that. Quering ARM service again will defeat the purpose of caching.

Good point!  I was taking in the context of built in roles but of course that is too limiting.

I did a quick test in https://github.com/Azure/azure-cli/pull/30587 and the number of returned role definitions reduced from 727 to 1 and making az role definition list much faster.
However, roleName eq '{role_name}' filter is not documented in any official documents:

https://learn.microsoft.com/en-us/azure/role-based-access-control/role-definitions-list
https://learn.microsoft.com/en-us/rest/api/authorization/role-definitions/list?view=rest-authorization-2022-04-01&tabs=HTTP

I'll internally discuss with RBAC team on this.


[CodeCop AA0235] CodeCop rule is not triggered

1. Describe the bug
The CodeCop Info AA0235 is not triggered.
Based on the following documentation https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop-aa0235 it should get triggered when the OnInstallAppPerCompany is used and the event subscriber [EventSubscriber(ObjectType::Codeunit, Codeunit::"Company - Initialize", 'OnCompanyInitialize', '', false, false)] is not added to the object.
2. To Reproduce
Steps to reproduce the behavior:

Create a new project (e.g. via AL: Go! command in VS Code)
Create a new file named Init.Codeunit.al
Insert the following code snippet:

codeunit 50000 "Init"
{
    Subtype = Install;

    trigger OnInstallAppPerCompany()
    begin
        CompanyInitialize();
    end;

    local procedure CompanyInitialize()
    begin

    end;
}

Enable code analysis and the code cop (e.g. via .vscode/settings.json):

{
    "al.enableCodeAnalysis": true,
    "al.codeAnalyzers": [
        "${CodeCop}"
    ],
}

(Optional - trying to modify the rule, in case it's ignored by default):
5. Add a ruleset.json file to the project with the following content:
{
    "name": "Company ruleset",
    "description": "These rules must be respected by all the AL code written within the company.",
    "rules": [
        {
            "id": "AA0235",
            "action": "Error",
            "justification": "It must be respected in all cases."
        }
    ]
}

Add the path to the rule set file in the settings.json:

{
    "al.enableCodeAnalysis": true,
    "al.codeAnalyzers": [
        "${CodeCop}"
    ],
    "al.ruleSetPath": "ruleset.json"
}

3. Expected behavior
Triggering and showing the CodeCop Info AA0235 in VS Code.
4. Actual behavior
Not triggering the CodeCop Info AA0235 VS Code.
5. Versions:

AL Language: v10.1.707468
Visual Studio Code: 1.73.1 (system setup)
Business Central: Version: DE Business Central 21.0 (Platform 21.0.46384.46844 + Application 18.0.23013.23795)
List of Visual Studio Code extensions that you have installed:

[X] AL Language

Duplicate of https://github.com/microsoft/AL/issues/7269


Get Filled Rows Count

I could not find a property of a Sheet that will provide the number of filled Rows. When I tried using the rowCount property of a sheet that had a single header row, it logged a value like 993!
From what I have read of the v4 API apparently Google does not provide this. Would you consider this as an enhancement to this library in case there is a demand for such a property.
Currently, I am adding a row and gettings. Thanks

If you do:
await this.googleSpreadsheet.loadInfo();
this.sheet = this.googleSpreadsheet.sheetsByIndex[MAIN_SPREADSHEET_INDEX];

const rows = await this.sheet.getRows({
      limit: 0,
      offset: STARTING_ROW_INDEX,
});

The variable rows will contain an array of rows that are filled, so to check the amount of rows your spreadsheet has, you just access the length of the variable rows:
console.log(rows.length):

Thanks @LuisDev99 : But would not this cause the loading of all the rows in memory? And if they are in a couple of thousands (as in my use-case), would be be a huge memory spike on the server to process the request.

Yes, but unfortunately, that is the only way I got around this problem. As you said at the beginning, there is the rowcount property but it gives the actual amount of rows of the spreadsheet, not the amount of rows that have values inside the spreadsheet.
The solution I provided works nicely for me because I'm working in a row-based approach, but definitely it is not the case for everyone because of the things you pointed out so it is good to keep that in mind.

That is correct @LuisDev99 . I will be using your suggestions for smaller sheets and thanks for that.


size mismatch for model.diffusion_model.input_blocks.1.1.transformer

cant get past this error, i have squared the  5 images to 512 px png's and run
python3 main.py --base configs/stable-diffusion/v1-finetune.yaml -t --actual_resume models/ldm/text2img-large/model.ckpt -n FireballRun --data_root object\artstyle\scene --gpus 1 --init-word TrainedFireball
Traceback (most recent call last):
File "\textual_inversion-main\main.py", line 614, in
model = load_model_from_config(config, opt.actual_resume)
File "\textual_inversion-main\main.py", line 29, in load_model_from_config
model = instantiate_from_config(config.model)
File "\textual_inversion-main\ldm\util.py", line 85, in instantiate_from_config
return get_obj_from_str(config["target"])(config.get("params", dict()), kwargs)
File "\textual_inversion-main\ldm\models\diffusion\ddpm.py", line 481, in init
self.init_from_ckpt(ckpt_path, ignore_keys)
File "\textual_inversion-main\ldm\models\diffusion\ddpm.py", line 205, in init_from_ckpt
missing, unexpected = self.load_state_dict(sd, strict=False) if not only_model else self.model.load_state_dict(
File "****\lib\site-packages\torch\nn\modules\module.py", line 1497, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for LatentDiffusion:
size mismatch for model.diffusion_model.input_blocks.1.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([320, 1280]) from checkpoint, the shape in current model is torch.Size([320, 768]).
size mismatch for model.diffusion_model.input_blocks.1.1.transformer_blocks.0.attn2.to_v.weight: copying a param with shape torch.Size([320, 1280]) from checkpoint, the shape in current model is torch.Size([320, 768]).
size mismatch for model.diffusion_model.input_blocks.2.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([320, 1280]) from checkpoint, the shape in current model is torch.Size([320, 768]).
size mismatch for model.diffusion_model.input_blocks.2.1.transformer_blocks.0.attn2.to_v.weight: copying a param with shape torch.Size([320, 1280]) from checkpoint, the shape in current model is torch.Size([320, 768]).
size mismatch for model.diffusion_model.input_blocks.4.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([640, 1280]) from checkpoint, the shape in current model is torch.Size([640, 768]).
size mismatch for model.diffusion_model.input_blocks.4.1.transformer_blocks.0.attn2.to_v.weight: copying a param with shape torch.Size([640, 1280]) from checkpoint, the shape in current model is torch.Size([640, 768]).
size mismatch for model.diffusion_model.input_blocks.5.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([640, 1280]) from checkpoint, the shape in current model is torch.Size([640, 768]).
size mismatch for model.diffusion_model.input_blocks.5.1.transformer_blocks.0.attn2.to_v.weight: copying a param with shape torch.Size([640, 1280]) from checkpoint, the shape in current model is torch.Size([640, 768]).
size mismatch for model.diffusion_model.input_blocks.7.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([1280, 1280]) from checkpoint, the shape in current model is torch.Size([1280, 768]).
size mismatch for model.diffusion_model.input_blocks.7.1.transformer_blocks.0.attn2.to_v.weight: copying a param with shape torch.Size([1280, 1280]) from checkpoint, the shape in current model is torch.Size([1280, 768]).
size mismatch for model.diffusion_model.input_blocks.8.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([1280, 1280]) from checkpoint, the shape in current model is torch.Size([1280, 768]).
size mismatch for model.diffusion_model.input_blocks.8.1.transformer_blocks.0.attn2.to_v.weight: copying a param with shape torch.Size([1280, 1280]) from checkpoint, the shape in current model is torch.Size([1280, 768]).
size mismatch for model.diffusion_model.middle_block.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([1280, 1280]) from checkpoint, the shape in current model is torch.Size([1280, 768]).
size mismatch for model.diffusion_model.middle_block.1.transformer_blocks.0.attn2.to_v.weight: copying a param with shape torch.Size([1280, 1280]) from checkpoint, the shape in current model is torch.Size([1280, 768]).
size mismatch for model.diffusion_model.output_blocks.3.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([1280, 1280]) from checkpoint, the shape in current model is torch.Size([1280, 768]).

From the other issue I'm assuming this part is resolved, so I'm marking it as closed for now.


Question: Programmatically constructed terms, THFAnnotated, and parser-enforced TPTP names

Hi all, apologies if there was a better place to post this question. I've been messing around with the tool for about a month now (specifically the thf1 language) and am quite impressed with it and its higher order reasoning capabilities. I hope to use it eventually as a backend solver for a program verifier (written in Java) that I've been working on that produces verification conditions (VCs) as sequents involving higher order terms.
Note that I'd prefer (if feasible) to convert the terms and types from my source language to LEO III programmatically (as opposed to simply generating a TPTP 'script' and feeding it in).
Question:
So after cloning and investigating LEO III's codebase, do Commons.THFAnnotated classes -- if constructed programmatically -- still require the capitalization and naming conventions that the TPTP requires? Just asking as source terms and definitions in my tool include some unicode chars as well as capitals, naturally.. Any idea if this will mess up internal algorithms if I forgo LEO's parser -- and hence the TPTP naming conventions enforced as part of the standard?
Just figured I'd ask and save myself the time before going ahead and mangling names read in from my tool's sourcefiles (though it wouldn't be the end of the world if I had to do so; just harder to read stuff in debuggers, printouts, etc :-)

Dear Dan,
yes, you should definitely obey the TPTP language conventions, otherwise
symbols might get wrongly interpreted. The implementation of some back and
forth translation table can eventually be useful in your case.
Best, C.
Christoph Benzmüller, Dr. habil., Professor
Freie Universität Berlin, Dep. of Mathematics and Computer Science, 14195
Berlin
Further Affiliations:
Université du Luxembourg, FSTC, Avenue de l'Université, L-4365
Esch-sur-Alzette, Luxembourg
Saarland University, Dep. of Computer Science, Saarbrücken
http://christoph-benzmueller.de
<EMAIL_ADDRESS>|<EMAIL_ADDRESS>|
<EMAIL_ADDRESS>On Tue, Mar 10, 2020 at 10:06 AM Dan Welch<EMAIL_ADDRESS>wrote:

Hi all, apologies if there was a better place to post this question. I've
been messing around with the tool for about a month now (specifically the
thf1 language) and am quite impressed with it and its higher order
reasoning capabilities. I hope to use it eventually as a backend solver for
a program verifier (written in Java) that I've been working on that
produces verification conditions (VCs) as sequents involving higher order
terms.
Note that I'd prefer (if feasible) to convert the terms and types from my
source language to LEO III programmatically (as opposed to simply
generating a TPTP 'script' and feeding it in).
Question:
So after cloning and investigating LEO III's codebase, do
Commons.THFAnnotated classes -- if constructed programmatically -- still
require the capitalization and naming conventions that the TPTP requires?
Just asking as source terms and definitions in my tool include some unicode
chars as well as capitals, naturally.. Any idea if this will mess up
internal algorithms if I forgo LEO's parser -- and hence the TPTP naming
conventions enforced as part of the standard?
Just figured I'd ask and save myself the time before going ahead and
mangling names read in from my tool's sourcefiles (though it wouldn't be
the end of the world if I had to do so; just harder to read stuff in
debuggers, printouts, etc :-)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/leoprover/Leo-III/issues/65?email_source=notifications&email_token=ABGB4RI7SEOET4CZGKYI6KTRGX7K5A5CNFSM4LE2FTLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IT2FSAA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGB4ROBAFFBC2SYTRGKD43RGX7K5ANCNFSM4LE2FTLA
.

Thanks! I'll definitely obey the capitalization and naming standards then in my translation.


Publish to nuget.org

Would it be possible to publish the artifacts also to nuget.org?
It seems that the GitHub NuGet registry can only be accessed by using authorization like a personal access token. Publishing to nuget.org would be awesome as this makes the access much easier and is additionally the "default" package source.

@tfonfara Thank you for pointing this out. I freely admit, I did not know you need to authenticate to get read-access to the feed.
About putting it on Nuget.org: I'll look into it. Originally, we didn't expect there to be any real interest in a non-official port/fork and thoughts to prevent noise on nuget.org. I'll need to make double-sure the copyright/license constraints are all met perfectly before putting it on NuGet.org and thus enabling a larger community, so it's a bit more work than just doing an upload.


langchain.vectorstores.Chroma support for EmbeddingFunction.call update of ChromaDB

System Info
This was working fine for my previous configuration,
langchain v0.0.225
chromadb v0.4.7
But now neither this is working, nor the latest version  of both
langchain v0.0.336
chromadb v0.4.17
Who can help?
No response
Information

[ ] The official example notebooks/scripts
[ ] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[X] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[X] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
I have the packages installed
Running these pieces of code
from langchain.document_loaders import TextLoader
from langchain.indexes import VectorstoreIndexCreator

loader = TextLoader(file_path)
index = VectorstoreIndexCreator().from_loaders([loader])  # this is where I am getting the error

OR
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.vectorstores import Chroma
from langchain.embeddings.openai import OpenAIEmbeddings

text_splitter = RecursiveCharacterTextSplitter()
splits = text_splitter.split_documents(docs)
embedding = OpenAIEmbeddings()
vectordb = Chroma.from_documents(  # this is where I am getting the error
            documents=splits,
            embedding=embedding,
        )

Here is the error
Expected EmbeddingFunction.__call__ to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs'])\nPlease see https://docs.trychroma.com/embeddings for details of the EmbeddingFunction interface.\nPlease note the recent change to the EmbeddingFunction interface: https://docs.trychroma.com/migration#migration-to-0416---november-7-2023 \n

Expected behavior
Earlier a chromadb instance would be created, and I would be able to query it with my prompts. That is the expected behaviour.

@Mshardul  What is your python version?
its working for me on python 3.9.18.

These version combinations worked for me.
!pip install langchain==0.0.316
!pip install openai==0.28.1
!pip install chromadb==0.4.15

Issue Resolution: Embedding Function Override for GPT4All/OpenAi with Chroma Update Compatibility
Hello,
I noticed your query about an issue with OpenAIEmbedding and wanted to share my solution, as I faced a similar problem with GPT4All. The root of the issue lies in the incompatibility between Langchain's embedding function implementation and the new requirements introduced by Chroma's latest update.
Problem Identified:

Langchain's embedding function lacks the __call__ method, which is now required by Chroma.
This problem is also present in OpenAI's implementation.

Relevant Documentation and Source Code:

Chroma Embedding Functions: Chroma Documentation
GPT4All in Langchain: GPT4All Source Code
OpenAI in Langchain: OpenAI Source Code

Solution Implemented:
I resolved this by creating a custom embedding function, inheriting from the existing GPT4AllEmbeddings class, and adding the __call__ method. This method is designed to output the result of the embed_document method.
Here's a snippet of the custom class implementation:
class CustomEmbeddingFunction(ExistingEmbeddingFunction):
    def __init__(self):
        super().__init__()

    def _existing_document_encoding_method(self, texts: List[str]) -> List[List[float]]:
        """
        Embed a list of documents using the EmbeddingModel.

        Args:
            texts: List of texts to embed.

        Returns:
            List of embeddings, one for each text.
        """
        embeddings = [self.client.embed(str(text)) for text in texts]
        return [list(map(float, e)) for e in embeddings]

    def __call__(self, input: List[str]) -> Embeddings:
        return self._embed_documents(input)

I hope this solution works for you as well.

+1 would be great to have a fix on that


Show Popup when the template does not have the VMGROUP_ID

Description
When the template does not have the VMGROUP_ID and needs to Update or intantiate it show the error popup
Expected behavior
A clear and concise description of what you expected to happen.
Details

Affected Component: Sunstone
Version: 5.12

Progress Status

[x] Branch created
[x] Code committed to development branch
[ ] Testing - QA
[x] Documentation
[x] Release notes - resolved issues, compatibility, known issues
[x] Code committed to upstream release/hotfix branches
[x] Documentation committed to upstream release/hotfix branches

@tinova PRs to approve:

Code: https://github.com/OpenNebula/one-ee/pull/1743
Docs: https://github.com/OpenNebula/docs/pull/2129


As an EE Airflow Operator...

We should have a guide that walks through different steps to take as the operator behind an EE cluster.
This guide should include:

How to/when do delete volumes
Signs that you need to scale up your cluster
Walkthroughs on changing liveliness probes
What to look for to monitor cluster health (number of zombie tasks, number of db connections)
... and everything else we've learned working with EE deployments

Deleting volumes:
kubectl get pvc --all-namespaces
kubectl delete pvc  --namespace
Once the PVC is deleted, restart the pod:
kubectl delete pod  -namespace  --force --grace-period=0

# Try to write your query here
query GetUser {
  users(email<EMAIL_ADDRESS>{
    uuid
  }
}

query GetAdminGroup {
  groups(entityType: "system") {
    uuid
    label
  }
}

mutation AddAdmin {
  groupAddUser(
    groupUuid: "c975c787-6d47-4db2-b2e8-b5c4e030fea6"
    userUuid: "ae7f5c3e-2ffa-487f-ba8f-6c6e0cbe5940"
  ) {
    label
    users {
      emails {
        address
      }
    }
  }
}

Reset grafana  password:

kubectl exec into the grafana pod

run:
grafana-cli admin reset-admin-password admin --config=/etc/grafana/grafana.ini --homepath=/usr/share/grafana

Looking at nodes:
kubectl describe nodes
Returns all nodes in the  cluster along with which pod is in which node

This can be closed for now - will add more to it as we go.


pip-audit >= 2.5.0 looks to give inconsistent errors about unexpected end of data

Tested with pip-audit 2.5.0, 2.5.1, 2.5.2, random runs fail with the below error message but will succeed on re-run.  Reverting to pip-audit==2.4.13 resolved the errors
[Errno 2] No such file or directory: '/tmp/pip-audit-output.txt'
⚠ pip-audit did not return any output
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/pip_audit/__main__.py", line 8, in <module>
    audit()
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/pip_audit/_cli.py", line 449, in audit
    for spec, vulns in auditor.audit(source):
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/pip_audit/_audit.py", line 67, in audit
    for dep, vulns in self._service.query_all(specs):
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/pip_audit/_service/interface.py", line 154, in query_all
    for spec in specs:
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/pip_audit/_dependency_source/requirement.py", line 113, in collect
    yield from self._collect_from_files([Path(f.name) for f in tmp_files])
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/pip_audit/_dependency_source/requirement.py", line 147, in _collect_from_files
    ve.create(ve_dir)
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/venv/__init__.py", line 71, in create
    self.post_setup(context)
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/pip_audit/_virtual_env.py", line 124, in post_setup
    run(package_install_cmd, log_stdout=True, state=self._state)
  File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/pip_audit/_subprocess.py", line 68, in run
    return stdout.decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 4140: unexpected end of data

Thanks for the report @mmaeng! This looks like an issue with pip-audit itself, rather than an issue with this GitHub Action.
Could you confirm that and, if so, file an issue here? The templates in that repository will help us triage your issue 🙂

This should be addressed upstream with 2.5.3. Thanks again @mmaeng!


There is no "Adopt" button

Hi,
Everything works great but the webpage shows only "Success" buttons (see attached). Please point me to the right direction.
Thanks,
-5ong

hi, I am not sure if this works for you.
I have just had the same problem as yours.
I stopped the "lite-server" and I tried the following command in the terminal:
truffle migrate

Then I restarted the "lite-server" with "npm run dev".
Good luck.


Fix userbar tabbing behaviour

Tabbing (navigation using Tab or Shift + Tab keys) will now close
the menu and move to the next focusable element on the page instead
of focusing on the next menu item.
The previous behaviour was a deviation from the ARIA menu practices:
https://w3c.github.io/aria-practices/#menu
Further changes/cleanup:

Consume keyboard events like arrow down to prevent the browser from interpreting them. See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets#prevent_used_key_events_from_performing_browser_functions
Refactor repeated setTimeout and .focus() calls into single
focusElement(el) function. Let's keep it DRY!

Fixes #7290

@Stormheg works great! this is a much better interaction, thanks for taking the time to work on this.
I have pushed release notes / changelog and will get this merged in.


Refactor to use FastAPI+WebSocket

Note: I can run this locally on my machine once I set matplotlib to use the non interactive backend.


Feature/phpunit 10

fix ci deprecations for checkout-action   v2 => v3
withConsecutive replacement from https://stackoverflow.com/a/75686291
please have  a closer look if my test replacements are correct.
phpstan-error is unrelated

Thanks!


Backup

Issue: #175
This PR contains functionality which allows online backup of channel db and wallet db.

Closing due to supercedeing work on static/dynamic backups


Can we have a button that copies the html of the url preview embed?

So I wanted to copy the url preview card - embed html so that i can paste in my mardown file as an embed.

Sorry for the late reply, but I think we would need a markdown plugin which can render a preview card. But feel free to implement it since I have stopped maintaining it.


[next] Diagnostics panel renders <0x0d> at the end of each line

ST 3156 x64
Win 10 x64 1709
SL 4.0 beta
pylint

Of course pylint doesn't want to cooperate on my system. Looks like the pylint plugin is in need of some attention too.... why are there so many linters for python?
Could it be that it is picking up a windows line ending here and the regex in the pylint plugin needs to be adjusted?
https://github.com/SublimeLinter/SublimeLinter-pylint/blob/master/linter.py#L34

Looks like the following regex would fix it.
    regex = (
        r'^(?P<line>\d+):(?P<col>\d+):'
        r'(?P<code>(?:(?P<error>[FE])|(?P<warning>[CIWR]))\d+): '
        r'(?P<message>.*?)(?:\r?$)'
    )

Works for me: https://github.com/SublimeLinter/SublimeLinter-pylint/commit/37c45b088b1074e2705576da475b3678e39e1b17

Why not run execute linters with the universal_newline flag instead and specify the enconding along with the Popen call instead of manually decoding everywhere (basically everywhere that util.run_shell_command is run and in util.combine_output).
This would probably need some testing, but would be the most proper way to handle the situation.

Ok, sounds like it would be cleaner. If you put that in an issue we can come back to it later.

Okay this is not Twitter, but @deathaxe what font? 😍  Need a new one for Windows 10.

@kaste looks like Fira Code (or Fira Mono) to me:
http://app.programmingfonts.org/#firacode


Update README.md

added vital information

The position of Evan is correct but the position of "food" is not correct.  You have placed it where there are some chairs, to get to food you need to go around the corner and down the hall a bit to the break room.  I suggest enlarging the map to add the break room would solve this problem.

Alright how's this look?


? Response output: Review answers in a table

User story
As a program administrator
I want to see as many answers as I can without scrolling too much
So that I can easily review all the things that matter to me
Feature

HTML formatting that facilitates a condensed response review

Additional context

During usability testing the table layout that displayed questions and answers in columns tested very well for reviewing.
Participants remarked that the format felt familiar and that they could see more answers at one time without having to scroll.
This format was less useful for copying and pasting because they couldn't select just the answers, and when pasted they didn't flow into their excel documents in a format they could use.

UI/UX attachment

Figma file
Design Doc

Scope

Output is written in HTML
All user submitted response data must be included
Metadata for response must be included in the table
Document does not need to be self contained and can leverage hosted libraries to enhance design and functionality
All labels and answers submitted for combo boxes or selects are displayed as bilingual

Prerequisite
None identified
Acceptance criteria
Effective:

[ ] Works on Chrome, Firefox, Edge, and Safari
[ ] User can see questions and answers in a vertical column view
[ ] Table contains only questions and answers, no headings

Accessible:

[ ] Markup language used to its specifications
[ ] Headings and labels are clear and descriptive
[ ] If there are tables, they marked up correctly:
Defines column and/or row header cells with a  tag.
Identifies header scope or links headers with data cells using ids in complex tables. For example, if a table has divided into sections and each section has its own headers, there is a programmatic association between those headers and the related cells.
[ ] If there are custom controls, (divs and spans rather than native HTML elements) proper ARIA properties are used
[ ] Content (such as horizontal tables) that are wider than the container should scroll horizontally, be focusable by keyboard and provide context to screen readers on focus. For example aria-labelledby pointing to the tables
[ ] Programmatic order of content matches the visual order
[ ] Text/background colour combinations have acceptable contrast. The contrast requirement at Level AA is 4.5:1 for regular sized text and 3:1 for large text (18pt+) or bold text (14pt+).
[ ] Are there any display issues when resizing only the text on the page to 200%? Examples include overlapping, obscured or cut off content.
[ ] Text spacing can be adjusted

Inclusive:

[ ] Content is available in both official languages
[ ] Sections of text that are in a language that is different from the main document language are defined
[ ] Contextual text read aloud by screen readers such as alt text are available in the both official languages

Efficient:

[ ] Easy to distinguish between questions and answers
[ ] Easy to associate answers with their questions

@Abi-Nada I belive this has been implemented


Better documentation around CfnCluster's versionReleaseSystem property

I am trying to understand how to configure my cluster to use the rapid release version any guidance would be helpful.

hi @lockenj can you review versionReleaseSystem parameter here: https://constructs.dev/packages/awscdk-resources-mongodbatlas/v/3.0.1/api/CfnClusterProps?lang=typescript#property.versionReleaseSystem
versionReleaseSystem is an optional parameter and represents the release cadence that Atlas uses for the cluster. This parameter defaults to LTS. If you set this field to CONTINUOUS, you must omit the mongoDbMajorVersion parameter. Atlas accepts:

CONTINUOUS: Atlas creates your cluster using the most recent MongoDB release. Atlas automatically updates your cluster to the latest major and rapid MongoDB releases as they become available.

LTS: Atlas creates your cluster using the latest patch release of the MongoDB version that you specify in the mongoDbMajorVersion field. Atlas automatically updates your cluster to subsequent patch releases of this MongoDB version. Atlas doesn't update your cluster to newer rapid or major MongoDB releases as they become available.

@Zuhairahmed thanks for the speedy reply. I was trying to dig through the code to find the "enum". I am no stranger to having the docs miss some of the low level details.
Is there somewhere in the source I could see possible values of properties?
I ask because I have encountered other properties in these CDK Constructs questions regarding available values.
For example: when trying to use the CfnCustomDbRole what are the possible actions? In the examples (mongodb/awscdk-resources-mongodbatlas/examples/l1-resources/custom-db-role.ts) I see action GROUP_READ, which I cannot find anywhere in the https://www.mongodb.com/docs/atlas/reference/custom-role-actions/ documentation.
Here is the example code from custom-db-role.ts:
const customDbRole = new CfnCustomDbRole(this, 'CustomDbRole', {
      projectId: atlasProps.projId,
      profile: atlasProps.profile,
      actions:[
        {
          action: "GROUP_READ",
          resources: [
            {
              collection: atlasProps.collectionName,
            },
            {
              db: atlasProps.dbName,
            }
          ]
        }
      ],
      roleName: atlasProps.roleName,
    });
    ```


Document Changes Needed for ETH Full Precision

This is a research task to document the changes we'd need to make in the code to handle full ETH precision, to be done in advance of adding that to the server code.

This is covered by #1766 now.


source control discard changes removes everything on the pc

Issue Type: Feature Request
I wasn't going to use source control but accidentally I enabled through command ctrl + shift + G. After something showed on source control panel, I was discard changes. Never used it before and I thought it would just undo source control thing. However, by discarding changes, actual project files on my folder also deleted. So, without backup or anything I lost my hole project... I don't know why that removed everything(not in trash can neither) but please fix this. Thanks for help
VS Code version: Code 1.43.1 (fe22a9645b44368865c0ba92e2fb881ff1afce94, 2020-03-18T07:01:20.184Z)
OS version: Windows_NT x64 10.0.18362

Run git rev-parse --show-toplevel to find out where your git repository root is. If that should not be a git repository, then delete the .git folder contained within it.
When discarding the changes there was a dialog warning you that files would be deleted forever.


Deferred types broken for jitclass

Here I have reproducer with three test cases to demonstrate:
from numba import deferred_type, njit
from numba.extending import as_numba_type
from numba.experimental import jitclass

test_case = 2

# works, single deferred member
if test_case == 0:
	DeferredBType = deferred_type()

	@jitclass([('b', DeferredBType)])
	class A:
		def __init__(self, b):
			self.b = b

	@jitclass
	class B:
		def __init__(self): pass
	BType = as_numba_type(B)
	DeferredBType.define(BType)

	@njit
	def test():
		b = B()
		a = A(b)

	test()

# fails, two deferred members
if test_case == 1:
	DeferredBType = deferred_type()
	DeferredCType = deferred_type()

	@jitclass([('b', DeferredBType), ('c', DeferredCType)])
	class A:
		def __init__(self, b):
			self.b = b

	@jitclass
	class B:
		def __init__(self): pass
	BType = as_numba_type(B)
	DeferredBType.define(BType)

	@jitclass
	class C:
		def __init__(self): pass
	CType = as_numba_type(C)
	DeferredCType.define(CType)

	@njit
	def test():
		b = B()
		a = A(b)

	test()

# fails, two deferred members (different error message)
if test_case == 2:
	DeferredBType = deferred_type()
	DeferredCType = deferred_type()

	@jitclass([('b', DeferredBType), ('c', DeferredCType)])
	class A:
		def __init__(self): pass

	@jitclass
	class B:
		def __init__(self): pass
	BType = as_numba_type(B)
	DeferredBType.define(BType)

	@jitclass
	class C:
		def __init__(self): pass
	CType = as_numba_type(C)
	DeferredCType.define(CType)

	@njit
	def test():
		a = A()

	test()

First test case is just a jitclass with a single deferred member. This works as expected
Second test case just adds a second deferred member. We get an error:
test.py:30: NumbaPendingDeprecationWarning: Code using Numba extension API maybe depending on 'old_style' error-capturing, which is deprecated and will be replaced by 'new_style' in a future release. See details at https://numba.readthedocs.io/en/latest/reference/deprecation.html#deprecation-of-old-style-numba-captured-errors
Exception origin:
  File "site-packages/llvmlite/binding/module.py", line 25, in parse_assembly
    raise RuntimeError("LLVM IR parsing error\n{0}".format(errmsg))

  a = A(b)
Traceback (most recent call last):
  File "test.py", line 32, in <module>
    test()
  File "site-packages/numba/core/dispatcher.py", line 468, in _compile_for_args
    error_rewrite(e, 'typing')
  File "site-packages/numba/core/dispatcher.py", line 409, in error_rewrite
    raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Internal error at <numba.core.typeinfer.CallConstraint object at 0x7eff03a58e90>.
Failed in nopython mode pipeline (step: native lowering)
LLVM IR parsing error
<string>:31:105: error: base element of getelementptr must be sized
  %".17" = getelementptr inbounds {%"deferred.139634571830160.data", %"deferred.139633764192912.data"}, {%"deferred.139634571830160.data", %"deferred.139633764192912.data"}* %".16", i32 0, i32 0
                                                                                ^

During: resolving callee type: jitclass.A#7eff04346f10<b:DeferredType#139634571830160,c:DeferredType#139633764192912>
During: typing of call at test.py (30)

Enable logging at debug level for details.

File "test.py", line 30:
def test():
    <source elided>
        b = B()
        a = A(b)
 ^

Third test case is the same as the second, except we've removed A's constructor. Same structs, but we get a different error this time:
python: /root/miniconda3/envs/buildenv/conda-bld/llvmdev_1680545119445/work/llvm/lib/IR/DataLayout.cpp:748: llvm::Align llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.
Aborted (core dumped)

The third test case has a similar error message to #8404, so maybe the same underlying cause. The second test case error is different however, and this reproducer does not use typed.Dict to trigger it.
Tested on Python 3.11.5, Numba 0.58.1

Many thanks for the report and detailed reproducer - I can reproduce this with Numba main.

From discussion in the triage meeting - this is an issue that is likely to be resolved by switching the internals of jitclasses to use StructRefs, but this is a long-term ambition / project.


Default config file contents could be confusing

Hello,
as many already did, I found this package very useful: Atom is the tool I was waiting for, and installed it on many workstations, and the ability to synchronize packages was very attractive. However, when I first installed it, I thought it was not working, just because it wrote the string "# keymap file" in many places. At first, I uninstalled it. Then I started lurking, and didn't see anyone complaining about malfunctioning or swapped files, so I opened the dev tools in Atom and noticed that it was just the same string being issued as a default for all files that generated errors or simply weren't found. So I tried to modify the library code in order to change the default contents, depending on the file name. I saw that it worked and decided to propose to you to evaluate the possibility to include such a feature in the master branch.
It hasn't got to be my code: it's my first attempt at coffeescript, and it might be broken or just ugly. However some users could be less confused when they examine the Gist after an upload if the default file contents are differentiated.
Thank you for your work,
F.

Isn't it better to skip missing files?

It probably would be, but what I did was sort of a quick fix which would get the things done (I actually was using my fixed version, which also would overwrite the configuration files in the instances that were updated with wrong file contents); also, another downside of skipping the empty files, which could be an option anyway, is that if you consider an instance the "master" one as I do, the absence of configuration for some files could lead to differences in the "slave" instances for which those files could be present.
F.

@almostearthling the build is failing. try to update with latest upstream master

Ok, I'll collect the changes I made and start from a fresh repo.
F.

Continuing on #62.
F.


Updated git command

Testing Plan:
GIFs or Screenshots:

Thanks for working on this @hashirsarwar!  Posted a comment above.
Next time, you can just force-push a revised version to the existing PR, rather than making a new one.  That is a better experience for reviewers.
Check out our GitHub guide and commit guidelines for more details.

Thanks @timabbott :) Is there some problem with the indentation of git commands?

Yes, see my comment above.  I went ahead and cleaned this up and merged it as 35561c7fa883a742ebba1198ed2d6f216bd269d9.
You would benefit from spending some time going through our Git guide to learn how to organize and communicate your changes clearly.
Thanks for fixing this @hashirsarwar!

My pleasure. And yes, I've gone through the Git guide now. I'll keep them in mind while contributing in future.


Add same product name example

Current dependencies on/for this PR:

main

PR #153

PR #157

PR #158

PR #159

PR #160

PR #165

PR #185   (this PR)

PR #186


Error with ToStream using a custom CosmosSerializer

Describe the bug
When using a custom serializer, calling a query method results in an error in the ToStream override, I think because Microsoft.Azure.Cosmos.SqlQuerySpec is internal and not accessible.
To Reproduce
Code is available here:
https://stackoverflow.com/questions/57100837/error-with-getitemqueryiterator-when-using-a-custom-cosmosserializer
Expected behavior
I would think that either the SqlQuerySpec should be available for serialization in this matter, or the call should be routed differently so as to not go through custom serialization.
Environment summary
SDK Version: 3.0
OS Version (e.g. Windows, Linux, MacOSX) Windows
Additional context
Add any other context about the problem here (for example, complete stack traces or logs).
Error message:
System.NotSupportedException: 'The collection type 'Microsoft.Azure.Documents.SqlParameterCollection' on 'Microsoft.Azure.Documents.SqlQuerySpec.Parameters' is not supported.'

The easiest fix is for it to use the default serializer for the query text generation. Is there any scenario where a user would need to do custom serialization of the query text?

How do I choose when the client uses the default versus a custom serializer?

There isn't a way exposed to users. It's set in the response factory in the SDK internally. I'm working on a PR now to change it.

We are planning on doing a release early next week as long as we don't hit any major issues. Also we didn't hit this issue with our test because our test have access to internal types so we can unit test different scenarios.

Microsoft.Azure.Cosmos 3.5.1 appears to have a similar issue:
The following is encountered when performing a query with parameters:
Microsoft.Azure.Cosmos.CosmosException: 'Response status code does not indicate success: 400 Substatus: 0 Reason: (Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: 400 Substatus: 0 Reason: (Microsoft.Azure.Documents.DocumentClientException: Gateway Failed to Retrieve Query Plan: Unexpected character encountered while parsing value: }. Path 'parameters[0].value', line 1, position 132
Sample serializer using newtonsoft
`    public class NewtonsoftCosmosSerializer : CosmosSerializer
{
public override T FromStream(Stream stream)
{
using (StreamReader reader = new StreamReader(stream))
using (JsonTextReader jsonReader = new JsonTextReader(reader))
{
JsonSerializer ser = JsonSerializer.CreateDefault();
return ser.Deserialize(jsonReader);
}
}
    public override Stream ToStream<T>(T input)
    {
        MemoryStream stream = new MemoryStream();
        StreamWriter writer = new StreamWriter(stream);
        JsonTextWriter jsonWriter = new JsonTextWriter(writer);
        JsonSerializer ser = JsonSerializer.CreateDefault();
        ser.Serialize(jsonWriter, input);
        jsonWriter.Flush();

        return stream;
    }
}`

Query with the template string returns properly.
Query with Parameters fails with the above exception
            QueryDefinition query = new QueryDefinition("select * from auth a where LOWER(a.email) = @Email and a.tenant= @tenant")                 .WithParameter("@Email", email)                 .WithParameter("@Tenant", tenant);


invalid memory address or nil pointer dereference

I've been trying to run this as a Kubernetes service for a while now and it keeps failing with the following exception. This happens with both v1.1.0 and v1.1.1.
The node running the container has elasticloadbalancing:DescribeLoadBalancers so I don't think it's permissions related. I was able to run that command manually on the same node with Python.
I0519 01:14:48.143918       1 service_listener.go:26] Route53 Update Service
I0519 01:14:48.145060       1 service_listener.go:64] Connected to kubernetes @ https://<IP_ADDRESS>:443
I0519 01:14:48.145168       1 service_listener.go:93] Starting Service Polling every 30s
I0519 01:14:48.243432       1 service_listener.go:100] Found 1 DNS services in all namespaces with selector "dns=route53"
I0519 01:14:48.243521       1 service_listener.go:115] Creating DNS for nginx service: XXXXX-XXXX.us-XXX.elb.amazonaws.com -> XXXX.YYYY.com
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x708590]

goroutine 1 [running]:
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata.(*EC2Metadata).GetMetadata(0x0, 0x14800c0, 0x19, 0x0, 0x0, 0x0, 0x0)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go:18 +0x1b0
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds.requestCredList(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go:133 +0x74
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds.(*EC2RoleProvider).Retrieve(0xc820212cc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go:89 +0x8b
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/credentials.(*ChainProvider).Retrieve(0xc820212cf0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go:75 +0x122
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/credentials.(*Credentials).Get(0xc82020ecc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go:185 +0x121
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/private/signer/v4.(*signer).sign(0xc820225118, 0x0, 0x0)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4.go:182 +0x3c5
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/private/signer/v4.Sign(0xc82000db80)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4.go:155 +0x1fa
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/request.(*HandlerList).Run(0xc82000dca8, 0xc82000db80)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go:115 +0x9f
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/request.(*Request).Sign(0xc82000db80, 0x0, 0x0)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/request/request.go:212 +0xce
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/request.(*Request).Send(0xc82000db80, 0x0, 0x0)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/aws/request/request.go:222 +0x54
github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/service/elb.(*ELB).DescribeLoadBalancers(0xc820024270, 0xc8202e9170, 0xc8202e5400, 0x0, 0x0)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/aws/aws-sdk-go/service/elb/api.go:608 +0x4f
main.hostedZoneId(0xc820024270, 0xc8202ddb80, 0x47, 0x0, 0x0, 0x0, 0x0)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/service_listener.go:178 +0x1ab
main.main()
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/service_listener.go:121 +0x1f68

goroutine 5 [chan receive]:
github.com/wearemolecule/route53-kubernetes/vendor/github.com/golang/glog.(*loggingT).flushDaemon(0x1b2f360)
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/golang/glog/glog.go:879 +0x67
created by github.com/wearemolecule/route53-kubernetes/vendor/github.com/golang/glog.init.1
        /Users/iterion/Development/go/src/github.com/wearemolecule/route53-kubernetes/vendor/github.com/golang/glog/glog.go:410 +0x297

goroutine 17 [IO wait]:
net.runtime_pollWait(0x7f0c43192a28, 0x72, 0xc82000a130)
        /usr/local/Cellar/go/1.5/libexec/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc82020b870, 0x72, 0x0, 0x0)
        /usr/local/Cellar/go/1.5/libexec/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc82020b870, 0x0, 0x0)
        /usr/local/Cellar/go/1.5/libexec/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).Read(0xc82020b810, 0xc8201e4c00, 0x400, 0x400, 0x0, 0x7f0c43186050, 0xc82000a130)
        /usr/local/Cellar/go/1.5/libexec/src/net/fd_unix.go:232 +0x23a
net.(*conn).Read(0xc8200242a0, 0xc8201e4c00, 0x400, 0x400, 0x0, 0x0, 0x0)
        /usr/local/Cellar/go/1.5/libexec/src/net/net.go:172 +0xe4
crypto/tls.(*block).readFromUntil(0xc820213650, 0x7f0c43192ae8, 0xc8200242a0, 0x5, 0x0, 0x0)
        /usr/local/Cellar/go/1.5/libexec/src/crypto/tls/conn.go:455 +0xcc
crypto/tls.(*Conn).readRecord(0xc82000d8c0, 0x15fe417, 0x0, 0x0)
        /usr/local/Cellar/go/1.5/libexec/src/crypto/tls/conn.go:540 +0x2d1
crypto/tls.(*Conn).Read(0xc82000d8c0, 0xc8201d7000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        /usr/local/Cellar/go/1.5/libexec/src/crypto/tls/conn.go:901 +0x167
net/http.noteEOFReader.Read(0x7f0c43192fd8, 0xc82000d8c0, 0xc8201f1918, 0xc8201d7000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        /usr/local/Cellar/go/1.5/libexec/src/net/http/transport.go:1370 +0x67
net/http.(*noteEOFReader).Read(0xc8202e6d20, 0xc8201d7000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        <autogenerated>:126 +0xd0
bufio.(*Reader).fill(0xc8202e2720)
        /usr/local/Cellar/go/1.5/libexec/src/bufio/bufio.go:97 +0x1e9
bufio.(*Reader).Peek(0xc8202e2720, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
        /usr/local/Cellar/go/1.5/libexec/src/bufio/bufio.go:132 +0xcc
net/http.(*persistConn).readLoop(0xc8201f18c0)
        /usr/local/Cellar/go/1.5/libexec/src/net/http/transport.go:876 +0xf7
created by net/http.(*Transport).dialConn
        /usr/local/Cellar/go/1.5/libexec/src/net/http/transport.go:685 +0xc78

goroutine 18 [select]:
net/http.(*persistConn).writeLoop(0xc8201f18c0)
        /usr/local/Cellar/go/1.5/libexec/src/net/http/transport.go:1009 +0x40c
created by net/http.(*Transport).dialConn
        /usr/local/Cellar/go/1.5/libexec/src/net/http/transport.go:686 +0xc9d

As it seems to be related to the AWS SDK, I tried updating the dependencies and rebuilding, but that fails because of https://github.com/kubernetes/kubernetes/issues/25823. Updating to latest Kubernetes errors when building on:
./service_listener.go:55: undefined: "route53-kubernetes/vendor/k8s.io/kubernetes/pkg/client/unversioned".Config

It seems like the actual panic is happening in the aws lib: github.com/aws/aws-sdk-go/aws/ec2metadata.(*EC2Metadata).GetMetadata.
It seems like a weird place for a kernel panic, but I might be looking at the wrong version on github: "https://github.com/aws/aws-sdk-go/blob/master/aws/ec2metadata/api.go#L18"
I'll try to investigate further, but it does seem as if it could be an issue finding credentials. You could try mounting a secret that has some AWS creds that you know will work:
I do the following snippet in my rc:
          volumeMounts:
            - name: ssl-cert
              mountPath: /opt/certs
              readOnly: true
            - name: aws-creds
              mountPath: /opt/creds
              readOnly: true
          env:
            - name: "CA_FILE_PATH"
              value: "/opt/certs/ca.pem"
            - name: "CERT_FILE_PATH"
              value: "/opt/certs/cert.pem"
            - name: "KEY_FILE_PATH"
              value: "/opt/certs/key.pem"
            - name: "AWS_SHARED_CREDENTIALS_FILE"
              value: "/opt/creds/credentials"

Where aws-creds is an ini file that looks like this:
[default]
aws_access_key_id = [key]
aws_secret_access_key = [secret]

That does work. Thanks.
It would still be nice if there was an option to use the EC2 instance role and k8s token so no credentials would have to be directly shared with the pod.

Agree, it seems as if there is some bug preventing the pod from getting out to the AWS metadata service. When I get a chance I'll try to investigate that and report back here. Thanks for reporting the issue!

Thanks. Let me know if you need any help testing.
Also, on the same topic, it'd be nice if the k8s service token can be used automatically. This actually used to work in v1.1.0 but in v1.1.1 it requires the certificate paths to be in the environment.

@iterion I also have run into this issue. I haven't been able to build my fork of this project yet due to transitive dependency issues, but I suspect this has to do with when the EC2RoleProvider is invoked when you do not specify a credentials file.
The solution has to do with providing a session to the role as described here: https://github.com/aws/aws-sdk-go/issues/430#issuecomment-155984351 . If I can get it building I'll PR, but if you get a chance @iterion, might be worth a shot.

I believe this has been resolved by #9. If anybody still sees this issue as of v1.1.3 please let us know.


Match validation requires ngModel to be on the element

When plugin used with ui bootstrap typeahead
occures warning: Match validation requires ngModel to be on the element.
Check example (ui.bootstrap#0.13.4, validation.match#1.5.2)

The angular UI loves to gobble up all of the common directive names.  Since angular-ui bootstrap in it's whole is so massive (in terms of the attribute names they consume)... they should prefix all of their attributes, but they don't.
I can
A: Make that warning go away and just silently ignore elements which contain match and have no ngModel.
B: prefix [all] the attributes to not collide. (In this case I would need a nice prefix that is both meaningful and not a burden)
C: Add another directive, and only read the attributes when that directive is present (similar to what angular-ui bootstrap is doing, which means it runs into the same issues if someone else creates directives with the same name as the attributes used by the match directive)

I suppose to bump version to 1.5.3 with silent ignore for now, and add prefix in later release.
You can use vd- prefix, for example.
Also, you are right about the possible conflicts, but match is really common attribute.

Removed the warning and published the release (npm and bower).  You should be good now.
Did a full minor version update (1.6.0 -> 1.7.0) since I also cleaned up a few things since it has been so long since this project had some TLC.

Bravo!


Ordrer v3: disable solo (WIP)

Signed-off-by: Yoav Tock<EMAIL_ADDRESS>Change-Id: I00846aa130d5b9fb486ace5f84898a0b0affddf5

Improvement (improvement to code, performance, etc)

Description

Disable the solo consenter in the orderer main
fix unit tests that fail
fix integration tests that fail

Related issues
Issue: #3514
Epic: #3511

@tock-ibm Is there a need to disable the Solo option? Last time the team discussed this topic the conclusion was that we would keep the Solo option as a simple baseline option that works across all Fabric releases for simple trials, since it hasn't required any support or maintenance in many years. But if there is a valid reason to remove it I'm fine with that...

@tock-ibm Is there a need to disable the Solo option? Last time the team discussed this topic the conclusion was that we would keep the Solo option as a simple baseline option that works across all Fabric releases for simple trials, since it hasn't required any support or maintenance in many years. But if there is a valid reason to remove it I'm fine with that...

The main reason is that solo does not support working with the channel participation API, nor without a system channel. So going forward, when we remove support for a system channel completely, solo will require some treatment. It is certainly doable to provide support for that, but I think it is easier and cleaner to just replace it with single node etcdraft everywhere.