pipenv shell --fancy doesn't see any of the packages installed

If I run pipenv shell --fancy then when I run my script it complains that none of the packages installed with pipenv install are available.
IfI run just pipenv shell it works and packages are recognized and script works but it messes up the shell (oh-my-zsh/prezto/fish).
pipenv, version 2018.10.13
Python 3.7.2

I'm running into the same issue. It seems like the answer to our issue is discussed here however, I haven't been able to fix it.
The way I'm interpreting those instructions, is that I need to go into my shell config file and wrap everything in an if status --is-login block. Tried that but it doesn't resolve the issue but can confirm that nothing in the if block runs when using pipenv shell --fancy.
The only difference between using fancy and not using it is the source ... line appears in the latter. Other than that, I'm stuck. Sorry, wish I could be more helpful.
PS: Beware, changes you make when --fancy fails to enter your virtual environment can affect your system-wide packages. I learned that the hard way.

I'm fine with pipenv shell also, all I want is for it to stop adding that (scripts) ┏ daniels@ and messing with the prompt.
It adds the current venv name as prefix to my prompt and it messes it if you have custom themes for oh-my-zsh, or fish, etc.

I figured out the issue but haven't got a good fix for it just yet. When using pipenv shell the $PATH variable looks good and has my virtualenv listed first. When using --fancy however, the path variable would be /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin + virtualenv + the rest...so something was adding those default folders, and it wasn't any config file of mine.
I google'd around a bit and found that /etc/shells on macos has all of those folders listed once per line, and moving the shells file to my desktop, where terminal can't find it solved the issue but ONLY for that terminal session. Restarting the terminal without /etc/shells causes other issues.

would need to see the output of pipenv --support to help more (issue template folks!) as I can't really see your paths or shell configs, but in general if you are using pyenv a lot of the time you will have that configured to run in every interactive session and it will modify your path dynamically, so pipenv shell --fancy will still wind up with pyenv ahead of the virtualenv.
hope this helps, closing this one for now as the shell situation has been beaten to death a bit.
Also, please upgrade to the latest version

Hey @techalchemy, no need to reopen the issue or anything but I ran --support and just thought I'd post it here in case you see anything obvious. My workaround at the moment is not to use the --fancy option and to avoid having the repo name show up twice, I set theme_display_virtualenv to no, so that's been working well enough for me so far :)
 ~  pipenv --support                                                                                Thu Mar 21 10:26:05 2019
<details><summary>$ pipenv --support</summary>

Pipenv version: `'2018.11.26'`

Pipenv location: `'/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pipenv'`

Python location: `'/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7'`

Python installations found:

  - `3.7.1`: `/Library/Frameworks/Python.framework/Versions/3.7/bin/python3`
  - `3.7.1`: `/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m`
  - `2.7.15`: `/Library/Frameworks/Python.framework/Versions/2.7/bin/python`
  - `2.7.15`: `/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw`
  - `2.7.10`: `/usr/bin/python`
  - `2.7.10`: `/usr/bin/pythonw`
  - `2.7.10`: `/usr/bin/python2.7`

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.7.1',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '18.2.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST '
                     '2018; root:xnu-4903.241.1~1/RELEASE_X86_64',
 'python_full_version': '3.7.1',
 'python_version': '3.7',
 'sys_platform': 'darwin'}

System environment variables:

  - `Apple_PubSub_Socket_Render`
  - `CPPFLAGS`
  - `GOPATH`
  - `HOME`
  - `JAVA_HOME`
  - `LANG`
  - `LDFLAGS`
  - `LOGNAME`
  - `OMF_CONFIG`
  - `OMF_PATH`
  - `PATH`
  - `PWD`
  - `PYTHONDONTWRITEBYTECODE`
  - `SHELL`
  - `SHLVL`
  - `SSH_AUTH_SOCK`
  - `TERM`
  - `TERM_PROGRAM`
  - `TERM_PROGRAM_VERSION`
  - `TERM_SESSION_ID`
  - `TMPDIR`
  - `USER`
  - `XPC_FLAGS`
  - `XPC_SERVICE_NAME`
  - `fish_prompt_pwd_dir_length`
  - `theme_display_virtualenv`
  - `__CF_USER_TEXT_ENCODING`
  - `PIP_DISABLE_PIP_VERSION_CHECK`
  - `PIP_SHIMS_BASE_MODULE`
  - `PIP_PYTHON_PATH`
  - `PYTHONFINDER_IGNORE_UNSUPPORTED`

Pipenv–specific environment variables:

Debug–specific environment variables:

  - `PATH`: `/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/2.6.0/bin:/usr/local/java_home:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/opt/grep/libexec/gnubin:/Users/jrevah/Library/Python/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/opt/freetds@0.91/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jrevah/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS`
  - `SHELL`: `/usr/local/bin/fish`
  - `LANG`: `en_US.UTF-8`
  - `PWD`: `/Users/jrevah`

---------------------------

</details>


added how-to use cpptoml in biicode

Hi - I just added a small explanation about using cpptoml with biicode so it's easier to use.
I also made a working block example: amalulla/parse-toml
:smile:

Thanks!


Confirmed cases number incorrect for multiple districts of Karnataka

Many districts numbers are incorrect.
Data taken from https://covid19.karnataka.gov.in/storage/pdf-files/Media-Bulletin/19-04-2020-05-00-English.pdf

This is under discussion. The issue is with Karnataka govt changing their counting logic on 14th April. Check the notes in this bulletin. This is a weird way of counting cases for districts.

Please report data discrepancies in this form https://forms.gle/7NRSrbspW2a6pbm58, thanks :)


SplashScreen sample doesn't work

The SplashScreen sample doesn't seem to work, the extended splash images are not placed in the right position and do not have the right size, on a PC/tablet the image blows up to cover the entire screen. There seem to be something wrong with the use of Viewbox (rather than Canvas as it was in W81) and there seem to be some logical errors, for example in ExtendedSplash.xaml.cs lines 82-83 the Viewbox.HeightProperty is set twice and the values used to set it don't seem correct (why X and Y? They are not the size of the SplashScreen Rect object). I've tried to modify it, but the Viewbox always acts funny. Of course it can be just me not understanding how Viewbox works, sorry for that. It works with Canvas, though.

Hi, I've proposed some modifications with Pull Request #134. Cheers.

Thanks for the fix. You should see it in the most recent update.


pip support

Cool project! Please make our life easier for using it and create a PyPi package... https://pypi.python.org/pypi :) This would be very useful, especially when PyJFuzz is used as a lib.

Yeah that's a good idea :) https://pypi.python.org/pypi/PyJFuzz/1.1.0 here's the link.


Pass tilePixelRatio and gutter to TileTexture

Fixes #13244
Fixes #13265
Pass tilePixelRatio and gutter to TileTexture from WebGLTileLayerRenderer.
Handle tilePixelRatio for ol/DataTile (e.g. tilePixelRatio option in ol/source/DataTile).
Handle gutter for ol/ImageTile (e.g. gutter option in ol/source/TileWMS).
Add rendering tests for both.

Thanks, @mike-000


DataMovment StorageResourceContainer internal hooks to protected APIs

Standardizes getting internals testing access to otherwise protected APIs. This is for container resources only. Items are being handled as part of #38938 which needed them.

API change check
API changes are not detected in this pull request.


exporting small subsite(s) with basic wp_ tables: Error: Something went wrong while trying to export the database

wp mu-migration export all site.zip --plugins --themes --uploads --blog_id=2
Exporting site meta data...
Exporting users...
Exporting tables
Error: Something went wrong while trying to export the database

The above command is an attempt to export the tiniest of subsites , yet it produces this error. Other blog_id numbers do the same thing. This is a multisite w/subdomains, php 5.6 and CentOS 5.X- or 6.X
What commonly triggers this message?

Does wp db export work if you run it separately? That's what the tool uses to export the database.

Yes it runs

Same issue here with wp db export running without error (mamp 4.2, php 7.1.8, mysql 5.6.35).

A good debugging step might be to add these lines to includes/commands/class-mu-migration-export.php:
148     if ( is_array( $tables ) && ! empty( $tables ) ) {
*           echo $filename;
*           print_r( $tables );
149     $export = \WP_CLI::launch_self(

And run the mu-migration export. This should print out the two arguments that are being passed to wp db export from inside mu-migration -- maybe there are irregularities.

It's definitely something with the the params.
Does wp db tables output anything? Alternatively, you can try what @azito122 suggest to debug (if you're open to hack the code a bit)

I've solved the problem @Chuckworld by replacing
	$export = \WP_CLI::launch_self( 				'db export', 				array( $filename ), 				array( 'tables' => implode( ',', $tables ) ), 				false, 				false, 				array() 			);
on around line 148 and replace it with
$export = \WP_CLI::runcommand('db export', array('return' => true));
However, I'm stuck with zipping the folder now. It doesn't want to zip it but the data looks all fine.

I've just merged a PR #61 that might fix this.

Thanks, PR #61 fixed the problem for me!

@adamshand Thanks for confirming.

While this does indeed appear to be fixed in the main repo while using it as a plugin, the wp cli package still has the problem.


There is no visual indication when you're focused on a single test

When you double-click on a test to run only that test, there is no indication that you are only running a single test except for the URL. As you can see from the popularity of this StackOverflow ticket, this is confusing for more people than just myself.
I propose that the page offer some indication that you're running a single test and show a link to go back to the full suite.

I might work on something. Just out of curiosity, what would people think about a module link as well?
So basically, if you run a test page with testId=..., it would generate a "Run [module name] tests" link and a "Run all tests" link. If you run a test page with module=..., it would generate a "Run all tests" link. Of course, it gets a little more complicated when multiple modules and/or testIds are specified, but I'm sure we could come to some reasonable design on this.

@platinumazure I'm not sure what you have in mind there, for the UI. That seems a separate design from the "greying out" discussed above. Anyway, would be great if you could put together a prototype.

Um, yes, that's technically true. It just seemed to be a natural
consequence of that single-test focus. I'll open a new issue or PR though
since my proposal is technically not dependent on this one.
On Jun 17, 2015 9:13 AM, "Jörn Zaefferer"<EMAIL_ADDRESS>wrote:

@platinumazure https://github.com/platinumazure I'm not sure what you
have in mind there, for the UI. That seems a separate design from the
"greying out" discussed above. Anyway, would be great if you could put
together a prototype.
—
Reply to this email directly or view it on GitHub
https://github.com/jquery/qunit/issues/528#issuecomment-112818753.

Okay, thank you. I'm definitely interested in exploring other options to address the original issue!


[Bug]: Issues with "Enhance" Feature and "Respect Provider Choice from UI" After Latest Update

Describe the bug
Description:
After updating the repository, two issues have surfaced:

Enhance Feature Not Working
When I type a prompt (e.g., to create a basic "Hello World" HTML page) and click "enhance," the prompt disappears, preventing further progress. This has occurred consistently across multiple attempts.

Model Provider Changes on Project Reload
When reopening older projects, I’ve noticed that the model provider setting does not persist. Instead, it defaults to a different model rather than the one I initially selected, which affects continuity and usability. Ideally, the model provider should remain as originally chosen for each project.

Actual Behavior:

The prompt disappears when "enhance" is clicked, and no enhanced output is generated.
Model provider settings reset to a default or different model when reopening a project.

Link to the Bolt URL that caused the error
http://localhost:5173/
Steps to reproduce

Update the repository to the latest version (current as of two hours ago).
In a virtual environment (not Docker), enter a prompt to create a simple HTML page.
Click "enhance."
Observe that the prompt disappears, and enhancement does not proceed.

To observe the model provider issue:

Open any previous project where a specific model provider was chosen.
Note that the model provider defaults to a different option rather than the one originally selected.

Expected behavior

The "enhance" feature should process the prompt as expected, generating the desired output.
Model provider settings should remain consistent when reopening a project, using the originally selected provider.

Screen Recording / Screenshot
No response
Platform
Environment Details:

Operating System: Windows 10
Browser: Chrome Canary
Node version: v20.18.0
pnpm version: 9.12.3

Additional context
Additional Information:

Previous repo version in use: November 1, 2024.
Working in a regular virtual environment with pnpm, not Docker.

Fantastic, thank you @champ2050!

I pulled a few hours ago, and enhance prompt seems to have an issie
provider in  enhancerAction() has
provider: { name: 'OpenAILike', staticModels: [] },
The below hack works, I am sure it is better to be fixed by someone who knows what to do
async function enhancerAction({ context, request }: ActionFunctionArgs) {
const { message, model, provider: originalProvider, apiKeys } = await request.json<{
message: string;
model: string;
provider: { name: string };
apiKeys?: Record<string, string>;
}>();
// Extract provider.name and reassign to provider
const provider = originalProvider.name;

I pulled a few hours ago, and enhance prompt seems to have an issie
provider in  enhancerAction() has
provider: { name: 'OpenAILike', staticModels: [] },
The below hack works, I am sure it is better to be fixed by someone who knows what to do
async function enhancerAction({ context, request }: ActionFunctionArgs) {
const { message, model, provider: originalProvider, apiKeys } = await request.json<{
message: string;
model: string;
provider: { name: string };
apiKeys?: Record<string, string>;
}>();
// Extract provider.name and reassign to provider
const provider = originalProvider.name;

@champ2050 , I tested fix by ali00209 (new_bolt6 branch). Enhance prompt works as expected

Thanks guys!


node-usb lib_usb hotplug functionality changed / depricated

Hi,
Please update node-co2-monitor not crashing when device gets un/repluged. libusb/node-usb changed.
Thank you
W

`

javascript.2
2020-10-21 14:24:11.745
error
^~~~~~~~~~~~

javascript.2
2020-10-21 14:24:11.745
error
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(

javascript.2
2020-10-21 14:24:11.745
error
../../nan/nan.h:959:46: note: declared here

javascript.2
2020-10-21 14:24:11.745
error
from ../src/transfer.cc:1:

javascript.2
2020-10-21 14:24:11.745
error
from ../src/node_usb.h:21,

javascript.2
2020-10-21 14:24:11.745
error
(8609) In file included from ../src/helpers.h:3:0,

javascript.2
2020-10-21 14:24:11.742
error
^

javascript.2
2020-10-21 14:24:11.742
error
Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv);

javascript.2
2020-10-21 14:24:11.742
error
../src/transfer.cc:126:72: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated [-Wdeprecated-declarations]

javascript.2
2020-10-21 14:24:11.742
error
(8609) ../src/transfer.cc: In function ‘void handleCompletion(Transfer*)’:

javascript.2
2020-10-21 14:24:09.257
info
(8609) CXX(target) Release/obj.target/usb_bindings/src/transfer.o

javascript.2
2020-10-21 14:24:03.233
error
^~~~~~~~~~~~

javascript.2
2020-10-21 14:24:03.233
error
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(

javascript.2
2020-10-21 14:24:03.233
error
../../nan/nan.h:959:46: note: declared here

javascript.2
2020-10-21 14:24:03.233
error
from ../src/device.cc:1:

javascript.2
2020-10-21 14:24:03.233
error
from ../src/node_usb.h:21,

javascript.2
2020-10-21 14:24:03.233
error
In file included from ../src/helpers.h:3:0,

javascript.2
2020-10-21 14:24:03.233
error
^

javascript.2
2020-10-21 14:24:03.233
error
Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv);

javascript.2
2020-10-21 14:24:03.233
error
../src/device.cc:237:64: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated [-Wdeprecated-declarations]

javascript.2
2020-10-21 14:24:03.233
error
(8609) ../src/device.cc: In static member function ‘static void Req::default_after(uv_work_t*)’:

javascript.2
2020-10-21 14:24:00.546
info
(8609) CXX(target) Release/obj.target/usb_bindings/src/device.o

javascript.2
2020-10-21 14:23:57.093
error
^~~~~~~~~~~~

javascript.2
2020-10-21 14:23:57.093
error
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(

javascript.2
2020-10-21 14:23:57.093
error
../../nan/nan.h:1001:46: note: declared here

javascript.2
2020-10-21 14:23:57.093
error
from ../src/node_usb.cc:1:

javascript.2
2020-10-21 14:23:57.093
error
from ../src/node_usb.h:21,

javascript.2
2020-10-21 14:23:57.093
error
In file included from ../src/helpers.h:3:0,

javascript.2
2020-10-21 14:23:57.093
error
^

javascript.2
2020-10-21 14:23:57.093
error
Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv);

javascript.2
2020-10-21 14:23:57.093
error
../src/node_usb.cc:151:58: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char*, int, v8::Localv8::Value*)’ is deprecated [-Wdeprecated-declarations]

javascript.2
2020-10-21 14:23:57.093
error
(8609) ../src/node_usb.cc: In function ‘void handleHotplug(std::pair<libusb_device*, libusb_hotplug_event>)’:

`

I've upgraded node-usb to the latest version, and the error could be caught when unplug the device.

I've upgraded node-usb to the latest version, and the error could be caught when unplug the device.

@huhamhire Thanks for checking. Sadly I can't confirm. What am I doing wrong?
I did an additional update to safe with your comment.
npm install git+https://github.com/tessel/node-usb.git
`

<EMAIL_ADDRESS>install /opt/iobroker/node_modules/usb
prebuild-install --verbose || node-gyp rebuild

prebuild-install info begin Prebuild-install version 5.3.3
prebuild-install info install installing from git repository, skipping download.
make: Verzeichnis „/opt/iobroker/node_modules/usb/build“ wird betreten
CC(target) Release/obj.target/libusb/libusb/libusb/core.o
CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
CC(target) Release/obj.target/libusb/libusb/libusb/io.o
CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
AR(target) Release/obj.target/usb.a
COPY Release/usb.a
CXX(target) Release/obj.target/usb_bindings/src/node_usb.o
../src/node_usb.cc: In function ‘void handleHotplug(std::pair<libusb_device*, libusb_hotplug_event>)’:
../src/node_usb.cc:151:58: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/node_usb.cc:1:
../node_modules/nan/nan.h:1001:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
CXX(target) Release/obj.target/usb_bindings/src/device.o
../src/device.cc: In static member function ‘static void Req::default_after(uv_work_t)’:
../src/device.cc:237:64: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/device.cc:1:
../node_modules/nan/nan.h:959:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
CXX(target) Release/obj.target/usb_bindings/src/transfer.o
../src/transfer.cc: In function ‘void handleCompletion(Transfer)’:
../src/transfer.cc:126:72: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/transfer.cc:1:
../node_modules/nan/nan.h:959:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/usb_bindings.node
COPY Release/usb_bindings.node
make: Verzeichnis „/opt/iobroker/node_modules/usb/build“ wird verlassen
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

<EMAIL_ADDRESS>added 2 packages from 11 contributors in 83.118s

6 packages are looking for funding
run npm fund for details
pi@ioBrokerPIB3:/opt/iobroker $ npm install git+https://github.com/huhamhire/node-co2-monitor.git
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

<EMAIL_ADDRESS>added 1 package from 1 contributor in 23.644s

6 packages are looking for funding
run npm fund for details
`
and then I did an javaadapter and script restart in iobroker and did unplug the CO2 sensor with this result:
`

host.ioBrokerPIB3
2020-10-24 23:28:57.692
error
instance system.adapter.javascript.1 terminated with code 1 (JS_CONTROLLER_STOPPED)

host.ioBrokerPIB3
2020-10-24 23:28:57.691
error
Caught by controller[0]: at Transfer.transferDone (/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/usb.js:454:10)

host.ioBrokerPIB3
2020-10-24 23:28:57.690
error
Caught by controller[0]: at InEndpoint.EventEmitter.emit (domain.js:482:12)

host.ioBrokerPIB3
2020-10-24 23:28:57.689
error
Caught by controller[0]: at InEndpoint.emit (events.js:310:20)

host.ioBrokerPIB3
2020-10-24 23:28:57.688
error
Caught by controller[0]: at Object.onceWrapper (events.js:416:28)

host.ioBrokerPIB3
2020-10-24 23:28:57.687
error
Caught by controller[0]: at InEndpoint. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-co2-monitor/co2_monitor.js:90:33)

host.ioBrokerPIB3
2020-10-24 23:28:57.685
error
Caught by controller[0]: at Interface.attachKernelDriver (/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/usb.js:330:21)

host.ioBrokerPIB3
2020-10-24 23:28:57.682
error
Caught by controller[0]: Error: LIBUSB_ERROR_BUSY

javascript.1
2020-10-24 23:28:57.059
error
(25818) Error: LIBUSB_ERROR_BUSY at Interface.attachKernelDriver (/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/usb.js:330:21) at InEndpoint. (/opt/iobroker/node_m

javascript.1
2020-10-24 23:28:57.058
error
(25818) Error: LIBUSB_ERROR_BUSY

javascript.1
2020-10-24 23:28:57.057
error
(25818) An error happened which is most likely from one of your scripts, but the originating script could not be detected.

javascript.1
2020-10-24 23:28:57.039
error
(25818) script.js.climate.CO2_Monitor_Wohnzimmer: Error: LIBUSB_TRANSFER_STALL

javascript.1
2020-10-24 23:28:37.724
info
(25818) script.js.climate.CO2_Monitor_Wohnzimmer: CO2 Monitor connected.

`
My probem is that it crashes the whole java adapter and alread had a talk with the iobroker devs who sent me to you.
The script it self is simple:
`
'use strict';
const CO2Monitor = require('node-co2-monitor');
const monitor = new CO2Monitor();
var logOn   = false; // Ausgabe der Messwerte im Log
var pfad    = "co2sensor" + ".";  // Pfad Systeminfos zur innovaphone
var idCo2   = pfad + "co2";
var idTemp  = pfad + "temperatur";
// Datenpunkte anlegen
// -----------------------------------------------------------------------------
createState(idCo2, {
name: 'CO2',
desc: 'CO2',
type: 'number',
unit: 'ppm',
role: 'value'
});
createState(idTemp, {
name: 'Temperatur',
desc: 'Temperatur',
type: 'number',
unit: '°C',
role: 'value'
});
// Connect device.
monitor.connect((err) => {
if (err) {
return console.error(err.stack);
}
log('CO2 Monitor connected.');
// Read data from CO2 monitor.
monitor.transfer();

});
// Get results.
try{
monitor.on('temp', (temperature) => {
// log(temp: ${ temperature });
setState(idTemp,parseFloat(temperature));
});
} catch (e) {
log (e);
log("CO2 Monitor: USB Fehler");
}
try{
monitor.on('co2', (co2) => {
// log(co2: ${ co2 });
setState(idCo2,parseInt(co2));
});
} catch (e) {
log (e);
log("CO2 Monitor: USB Fehler");
}
// Error handler
monitor.on('error', (err) => {
console.error(err.stack);
// Disconnect device
monitor.disconnect(() => {
log('CO2 Monitor disconnected.');
process.exit(0);
});
});
function stopCo2Monitor() {
try{
monitor._endpoint.stopPoll(function(){
log("CO2 Monitor: Polling gestoppt");
monitor._interface.release(true, (error) => {
if(error) {
monitor.emit('CO2 Monitor error', error);
}
else {
log("CO2 Monitor: Interface released");
monitor._device.close();
log("CO2 Monitor: Device geschlossen");
cb(true);
}
});
});
} catch (e) {
log(e);
// hat nicht geklappt
log("CO2 Monitor: Fehler beim Beenden des Skripts");
}
log("CO2 Monitor: Skript wurde gestoppt");
}
// Wird ausgeführt, wenn das Skript gestoppt wird:
// close connection if script stopped
onStop(function skriptStop () {
stopCo2Monitor(); // Kommunikation zum CO2 Monitor beenden
}, 100 /ms/);
`
Thanks for your help and comment!

additional info:
system raspberry pi 3b+ - Dostmann C02 sensor with temp.
Node.js v12.19.0 NPM v6.14.8
Did a npm rebuild.
But not succes...
`

host.ioBrokerPIB3
2020-10-25 00:03:18.513
info
Restart adapter system.adapter.javascript.1 because enabled

host.ioBrokerPIB3
2020-10-25 00:03:18.512
error
instance system.adapter.javascript.1 terminated with code 1 (JS_CONTROLLER_STOPPED)

host.ioBrokerPIB3
2020-10-25 00:03:18.511
error
Caught by controller[0]: at Transfer.transferDone (/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/usb.js:454:10)

host.ioBrokerPIB3
2020-10-25 00:03:18.511
error
Caught by controller[0]: at InEndpoint.EventEmitter.emit (domain.js:483:12)

host.ioBrokerPIB3
2020-10-25 00:03:18.510
error
Caught by controller[0]: at InEndpoint.emit (events.js:314:20)

host.ioBrokerPIB3
2020-10-25 00:03:18.509
error
Caught by controller[0]: at Object.onceWrapper (events.js:420:28)

host.ioBrokerPIB3
2020-10-25 00:03:18.509
error
Caught by controller[0]: at InEndpoint. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-co2-monitor/co2_monitor.js:90:33)

host.ioBrokerPIB3
2020-10-25 00:03:18.508
error
Caught by controller[0]: at Interface.attachKernelDriver (/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/usb.js:330:21)

host.ioBrokerPIB3
2020-10-25 00:03:18.506
error
Caught by controller[0]: Error: LIBUSB_ERROR_BUSY

javascript.1
2020-10-25 00:03:17.903
info
(865) Stop script script.js.climate.CO2_Monitor_Wohnzimmer

javascript.1
2020-10-25 00:03:17.859
error
at Transfer.transferDone (/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/usb.js:454:10)

javascript.1
2020-10-25 00:03:17.859
error
at InEndpoint.EventEmitter.emit (domain.js:483:12)

javascript.1
2020-10-25 00:03:17.859
error
at InEndpoint.emit (events.js:314:20)

javascript.1
2020-10-25 00:03:17.859
error
at Object.onceWrapper (events.js:420:28)

javascript.1
2020-10-25 00:03:17.859
error
at InEndpoint. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-co2-monitor/co2_monitor.js:90:33)

javascript.1
2020-10-25 00:03:17.859
error
at Interface.attachKernelDriver (/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/usb.js:330:21)

javascript.1
2020-10-25 00:03:17.859
error
(865) Error: LIBUSB_ERROR_BUSY

javascript.1
2020-10-25 00:03:17.858
error
(865) Error: LIBUSB_ERROR_BUSY

javascript.1
2020-10-25 00:03:17.857
error
(865) An error happened which is most likely from one of your scripts, but the originating script could not be detected.

javascript.1
2020-10-25 00:03:17.842
error
(865) script.js.climate.CO2_Monitor_Wohnzimmer: Error: LIBUSB_TRANSFER_STALL

`

This could be an issue caused by kernel driver on Raspberry Pi.
See https://stackoverflow.com/questions/37309311/how-to-solve-libusb-error-busy-on-raspberry-pi-debian-running-node-js
I couldn't confirm this by myself, can you try to detach kernel driver first?

@huhamhire Yes, you seem to be right. Even updated to the latest kernel and distribution the error persists.
As you provide sample code on your first page - Gettin started code... could you please insert these code fix from the url you provided into your sample code. to do this detach... my skills are to low. I tried...
Thank you

@huhamhire as I have got support from @dutchman from iobroker he even reviewed the code telling me everthing seems to be right from your side https://github.com/huhamhire/node-co2-monitor/blob/master/co2_monitor.js#L76  but it seems that anyhow something isn't handled right as it crashes the javascript adapter. Can you help me further. I used your sample code as script - how can the issue be caught there?
Thank you!

What we See in iobroker ist the undhandled issue Hauses by the backend. Bases in That i Asume the Interface is not claimrecht the proper way :
(865) An error happened which is most likely from one of your scripts, but the originating script could not be detected.
Causing the usb Library to crash weich is User by co2 Monitor
Caught by controller[0]: Error: LIBUSB_ERROR_BUSY
Caught by controller[0]: at Interface.attachKernelDriver (/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/usb.js:330:21)
host.ioBrokerPIB3	2020-10-25 00:03:18.506	error

@huhamhire Can you integrate the fix you pointed me at please? https://stackoverflow.com/questions/37309311/how-to-solve-libusb-error-busy-on-raspberry-pi-debian-running-node-js Is it possible?
As I am using node-co2-monitor and not node-usb directly as your node-co2-monitor does this handling I assume the fix must be implemented into node-co2-monitor. If I am wong (as I am not a dev) may I kindly ask you for your GETTING STARTED code example containing that fix.
Thank you very much!
Your help and advise is highly appreciated.

As far I as got this seems to be an issue on Raspberry pi with node-usb and for them to solve https://github.com/tessel/node-usb/issues/392


app.before_request & app.after_request do not run in sub app

Currently, the before_request & after_request decorators do not run when attached to a sub app, would it be possible to support this?

@iaudouard is the decorator added to the subapp and it is not triggering on requests, or is the decorator on the main app and requests to the subapp are not triggering it?

Hmm I haven't run into that use case before. I will look into it. On the one hand I don't want that decorator to trigger on all other subapps, but not sure if there is an easy way to trigger just on that specific subapp.
In the meantime you can try just adding it to the main app, while I look into the subapp specific case.

looks like we dont combine alerts or infra or middleware for subapps. https://github.com/goblet/goblet/blob/main/goblet/resource_manager.py#L193
so this is certainly a bug.
i will also make sure that middleware is added to a subapp it is only applied for that sub-app.
it should be possible since we track all subapps via self.app_list


Server doesn't check if dataset id is valid based on catalog and will serve file from config area if found

Mark in Colorado pointed out that server-java will serve an info file found in HAPI_HOME which is not listed in the catalog.  This is confusing and potentially a security problem, possibly allowing  information to leak out of the server unintentionally.

The CatalogData object keeps a list of valid dataset ids now.


Catch back button click

Can we catch it ?

current version you have to modify the source code DefaultMediaController find v.getId() == R.id.app_video_finish

Thanks
I modified it and removed ((Activity) videoView.getContext()).finish();  but still it closes video

click the left icon or press back key?

the left icon .

it shouldn't,you can debug the code

I added return ; and now it does not get closed


Merging 210 to 110 family

Keeping 210 in 110 family makes more sense, as it's part of the series. It also allowed removing the utils used by 110 notebooks only.
It also required to use torch hub in 109.

Tested 211 and 215 locally in a docker container. They work.


verify_paths re-added to tests: big error markers

Attempting to solve the walkthrough week 5 part 2

pulling a single file to a specific location
Which file?  One option would be to browse the file you want pulled, select all->copy, then create a new file in your target directory, then paste?

Which file?  One option would be to browse the file you want pulled, select all->copy, then create a new file in your target directory, then paste?

I want a new directory called "tests" in "step" (I think I must've deleted it). I want this directory to contain the verify_paths.py file, but when I copy and paste there are a ton or red/yellow squiggle error lines.

Attempting to solve the walkthrough week 5 part 2

So far...
Results :
Failed tests:   overlappingEvents(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 510), Range: [600, 1440)]> but was:<[Range: [0, 540), Range: [600, 1440)]>
notEnoughRoom(com.google.sps.FindMeetingQueryTest): expected:<[]> but was:<[Range: [0, 540), Range: [1440, 1440)]>
justEnoughRoom(com.google.sps.FindMeetingQueryTest): expected:<[Range: [510, 540)]> but was:<[Range: [0, 540), Range: [1440, 1440)]>
ignoresPeopleNotAttending(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 1440)]> but was:<[Range: [0, 540), Range: [570, 1440)]>
everyAttendeeIsConsidered(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 480), Range: [510, 540), Range: [570, 1440)]> but was:<[Range: [0, 540), Range: [570, 1440)]>
nestedEvents(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 510), Range: [600, 1440)]> but was:<[Range: [0, 540), Range: [570, 1440)]>
optionsForNoAttendees(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 1440)]> but was:
noConflicts(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 1440)]> but was:
doubleBookedPeople(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 510), Range: [570, 1440)]> but was:<[Range: [0, 540), Range: [570, 1440)]>

Attempting to solve the walkthrough week 5 part 2

So far...
Results :
Failed tests: overlappingEvents(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 510), Range: [600, 1440)]> but was:<[Range: [0, 540), Range: [600, 1440)]>
notEnoughRoom(com.google.sps.FindMeetingQueryTest): expected:<[]> but was:<[Range: [0, 540), Range: [1440, 1440)]>
justEnoughRoom(com.google.sps.FindMeetingQueryTest): expected:<[Range: [510, 540)]> but was:<[Range: [0, 540), Range: [1440, 1440)]>
ignoresPeopleNotAttending(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 1440)]> but was:<[Range: [0, 540), Range: [570, 1440)]>
everyAttendeeIsConsidered(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 480), Range: [510, 540), Range: [570, 1440)]> but was:<[Range: [0, 540), Range: [570, 1440)]>
nestedEvents(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 510), Range: [600, 1440)]> but was:<[Range: [0, 540), Range: [570, 1440)]>
optionsForNoAttendees(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 1440)]> but was:
noConflicts(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 1440)]> but was:
doubleBookedPeople(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 510), Range: [570, 1440)]> but was:<[Range: [0, 540), Range: [570, 1440)]>

UPDATE:
Results :
Failed tests:   overlappingEvents(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 510), Range: [600, 1440)]> but was:<[Range: [0, 510), Range: [570, 540), Range: [600, 1440)]>
notEnoughRoom(com.google.sps.FindMeetingQueryTest): expected:<[]> but was:<[Range: [0, 0), Range: [510, 540), Range: [1440, 1440)]>
justEnoughRoom(com.google.sps.FindMeetingQueryTest): expected:<[Range: [510, 540)]> but was:<[Range: [0, 0), Range: [510, 540), Range: [1440, 1440)]>
ignoresPeopleNotAttending(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 1440)]> but was:<[Range: [0, 540), Range: [570, 1440)]>
nestedEvents(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 510), Range: [600, 1440)]> but was:<[Range: [0, 510), Range: [600, 540), Range: [570, 1440)]>
optionsForNoAttendees(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 1440)]> but was:
noConflicts(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 1440)]> but was:
doubleBookedPeople(com.google.sps.FindMeetingQueryTest): expected:<[Range: [0, 510), Range: [570, 1440)]> but was:<[Range: [0, 510), Range: [570, 540), Range: [570, 1440)]>
Tests run: 21, Failures: 8, Errors: 0, Skipped: 0


Spanish language

Add spanish translation to the module.
Also I want to comment one thing that I couldn't do properly.
In tab.html the first line uses a composition of two texts that in english sounds good but not at all in Spanish. It's the title in this image:

In english it's Hidden Quests but in spanish it should be like Quests Hidden, the adjective comes after the noun.
My proposal is to change this line in tab.html from

{{localize (lookup questTypes tab)}} {{localize 'ForienQuestLog.Quests'}}

to

{{localize (lookup questTypes tab)}}

If you don't want to give up the word Quests, then the ForienQuestLog.QuestTypes could be changed to contain the word there and will do the job too.

Please create PR again, but to translations branch, not master.
I am aware of header issue, it will be changed to format instead of localize in v0.4.0, as I'm not going to make more changes to v0.3.*

Sorry, I didn't saw the info about the translation branch 😅
And perfect about the header issue, if you need some help with the module I can lend a hand sometimes ;)

Sorry, I didn't saw the info about the translation branch 😅
There was none 😅 I need to add that.


Add log coordinates in the data log file

Resolved in https://github.com/Lunar-Eclipse255/maelstrom/releases/v0.2.0

The functions maelstrom::logging::set_robot_coords() and maelstrom::logging::coords_logging() used for coords logging currently freeze the program

Fixed in  v0.4.2


Should be able to call 'bundle install' via ruby instead of command line

Like "GemInstaller.install" for example.  I shouldn't have to shell out and check the return code when I want to install from ruby - e.g. at the beginning of a ruby script which kicks off my Continuous Integration build.

This doesn't work anymore because CLI's constructor expects some arguments now. Is there any stable API for this? I don't want to use bundler/inline because I still want my dependencies to be in a Gemfile.

The only current stable API for installing is using the CLI tool, so system %w[bundle install] is probably your best bet.


Advancments not working

Short explination: once all selections are done in the initial screen the automation is not working (as in its not taking you though the creation steps, its just remaining on the screen
but dose not work on the player side
after  testing it dose not work on eather player or GM side
worked on GM side but not player prior to update
https://github.com/user-attachments/assets/fce7bdcf-ba0c-48ba-9fa9-350dfda3e1c8

This is because the background Acolyte being used has no advancements. If AS finds no advancements then it can't complete.
@todo: make it more robust if possible.


3rd Party Install

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX El Capitan

Versions. Please run ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.11-webpack.8
node: 6.4.0
os: darwin x64

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
Brand new install running ng new with scss as default

The log given by the failure. Normally this include a stack trace and some
more information.
jQuery required for bootstrap, not found

Mention any other details that might be useful.

I figured this out, I guess
I'm using "bootstrap": "^4.0.0-alpha.4", but I guess it's not using jQuery 3 so I reverted it to "jquery": "^2.2.4", and it went away.

you should be able to say import * as $ from jquery;

@deebloo Thanks for responding. I get a "String literal expected." error with that.

"jquery"

So. Import * as $ from "jquery";

Oh haha duh. Thanks, but I still get a "Cannot find module 'jquery'." It's definitely in node_modules and the path is correct.

Do you have the typings installed?

Yeah, hopefully the correct one. I can see it in my typings folder. jquery.d.ts

I'm trying to get materialize-clockpicker in to my angular 2 app. I'm using the webpack 8 version of the cli. I'm trying to follow the steps on the angular cli github for installing 3rd party libraries. I'm uncertain on this line:
"Simply install your library via npm install lib-name --save and import it in your code"
What does it mean to import it into my code? What needs to go where? I've put the scripts in the angular-cli.json, but I get the error:
ERROR in multi scripts
Module not found: Error: Can't resolve '/Users/smrtsmrf/DevMtn/devmtn_scheduling/node_modules/materialize-clockpicker/dist/js/materialize-clockpicker.js' in '/Users/smrtsmrf/DevMtn/devmtn_scheduling/node_modules/angular-cli/addon/ng2/models'
@ multi scripts
So I must be missing a step, but I don't know what I'm missing.

Did you run this? npm i angular2-materialize --save
And then link to that location in the .json?

@keithmichelson What do you mean by "link to that location in the .json"?
Also, the materialize-clockpicker doesn't say it needs angular2-materialize... ??
I tried adding the path to the js files ("../node_modules/materialize-clockpicker/dist/js/materialize.clockpicker.js") to the scripts property in angular-cli.json, but it threw error I posted above.

Sorry, I wasn't sure what version or materialize you are using but you need to do an npm install of whatever one and make sure you have the correct path in angular-cli.json
npm i materialize-clockpicker --save

There are some instructions for using bootstrap in https://github.com/angular/angular-cli#global-library-installation.

@smrtsmrf was your issue ever resolved because the same thing is happening to me?

@bunts94 Unfortunately I never did find a proper solution. What I did was install the package, then copy the needed js/css files from the node_modules folder and put them into my app explicitly. It works, but I feel it defeats the purpose.

I am experiencing the same issue. Couldn't resolve jquery-mousewheel from script set in angular-cli.json. The malihu scrollbar was resoved but not the mousewheel. Mousewheel resolved finally after I closed down my command prompt and reserved the app .(close and reopen command prompt, run ng serve). I changed nothing else.
"scripts": [
        "../node_modules/malihu-custom-scrollbar-plugin/jquery.mousewheel.js",
        "../node_modules/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js"
      ],

Seems like sometimes the compiler doesn't pickup new files/changes sometimes.
angular-cli: 1.0.0-beta.16 node: 4.6.0 os: win32 x 64


Document behaviour and recovery strategy when the query prompt exceeds model token limits

What is the default and expected behaviour when a query leads to an LLM call that exceeds the token limit of the LLM? Currently I am observing that dspy keeps attempting (with backoff) multiple times, and eventually fails with an error message (but the error message does not seem related to long prompt length).
Can the user configure the behaviour in such cases with a parameter? A reasonable option is to allow the user to specify a function that takes various query components along with a budget as input, and returns clipped query components which are then passed to the LLM (particularly useful for RAG scenarios where LLM is expected to benefit even with clipped content).

Thank you @LakshyAAAgrawal !  When a query leads to an LLM call that exceeds the token limit of the LLM, the right behavior is to fail and raise an exception, which you can catch and do something differently.
A retry loop means the error is misrecognized as a timeout of some kind. This is a bug essentially; it's not the right behavior.


Make windows config location more sensible

Contrary to my initial idea this does not remove platform specific code, mostly because after dealing with fallbacks and supporting the old windows location it's not worth it.
This changes the configuration file location from (in fallback order):

%HOME%\alacritty.yml
%USERPROFILE%\alacritty.yml
GetUserProfileDirectory()\alacritty.yml

To:

%APPDATA%\Roaming\alacritty\alacritty.yml

If a configuration file is found in the old location a warning is emitted pointing to the new location.
Fixes https://github.com/jwilm/alacritty/issues/1660

Using dirs instead of xdg is possible, but ensuring they have identical behaviour is difficult.
They follow the same usual case if XDG_CONFIG_HOME is set. However, the way it's written now it also searches XDG_CONFIG_DIRS which dirs has no equivalent for.
I think it's probably not worth the effort.


libCURL

libCURL
Profile Uploads
Pack Downloads (MULTI curl interface, generic and gameplay specific max dl speeds in preferences, supports multiple downloads, packlist downloaded from a url in preferences(Only allows downloads from lua from this packlist), in JSON format as follows:
{{"name"="packname", "size"=0, "url"="https:etc"}, {"name"="packname2", "size"=10000, "url"="https:etc"}}
, downloads http/s urls passed as arguments to the program, deleted sm filetransfers)
Fix DifferentialReload for smzips(Flushes)
Refactor a bit ScreenTextEntry(Now works with nested screens of textentry since its not always using the globals)
Todo:
Make sure libcurl is properly found on mac/linux

Non-exhaustive list of things to fix:

don't use raw pointers, use std::unique_ptr as private members of the classes
move #if !defined(WITHOUT_NETWORKING) to top of header file
remove commented out code
make DownloadManager *DLMAN = NULL; a std::shared_ptr. i know that this isn't how stepmania operates with other singletons.
use nullptr instead of NULL
use uniform initialization instead of most of the code that's current in the constructor for setting primitive values (see RageSoundReader_MP3.h for an example)
formatting is all over the place, lots of spurious newlines
UpdateAndIsFinished is massive, can you refactor this?
don't return a pointer to a vector from GetPackList, i don't see the point of doing this instead of just returning it by value
don't use RString


Handle emoji not loading gracefully in PMs list

When status emoji fail to load, the vertical alignment in the left sidebar PMs section goes awry. Instead, everything should be aligned as normal even when the emoji are missing.

(Note that the reason you see an emoji in the screenshot above is that custom emoji did load in this case.)

@zulipbot claim

@zulipbot abandon

@zulipbot claim

@zulipbot claim

@zulipbot claim

@alya can you assign me this issue as PR #23677 for my another issue is under integration review. Thanks!

@Ujjawal3 Are you still interested in working on this issue?

@alya yes I would like to work on this. I have made PR #23677 for another issue. Please assign this issue to me. Thanks !

@zulipbot abandon


Added examples for the DiskEncryptionSet property

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Can one of the admins verify this patch?

Automation for azure-sdk-for-python

Automation for azure-sdk-for-go

@hari-bodicherla  Could you resolve the conflict?

@hyonholee .. resolved the merge conflicts

@hyonholee is PR to this branch compute-2019-07 need public review? or your team internal review?


Add debugging notes to Windows Installation README

Tagging commit: https://github.com/MIT-CAVE/cave_cli/commit/a7c9069ce2ec29e00a00c83f9810d1081888745c

@brianzheng205 lets try to be a bit more explicit.
EG:
Notes:
- You should be using Ubuntu 22.04
- If you are using VS Code, you can easily open WSL based folders with the code command. For example while in your project directory: code .

@connor-makowski updated!

Looks good. Merging back into 2.2.0 since its just docs. Then will merge into main. See: https://github.com/MIT-CAVE/cave_cli/pull/128

Closing this with #128.


CSS

CSS
User Story
As a UWA Coding Bootcamp student
I want the prework to be structured on a webpage
so that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
Then I see a dark blue header and footer, and four boxes with a shadow

closed css


Ferdi v5.5.0 AppImage crashes on startup

Describe the bug
Every time I start Ferdi it tries to start by opening the window but immediately crashes and disappears
To Reproduce
Just try and run the AppImage
Expected behavior
Ferdi should run. like normal
Desktop:

OS: Manjaro Linux, Kernel 5.5.16-1
Ferdi Version 5.5.0 AppImage

Reporting same crash on Manjaro 20 (up to date at time of writing) with kernel 5.5.19-1 with pre-built and built from sources AUR packages, I guess some dependency is messing up.

Log when launching `ferdi` in terminal
❯ ferdi
(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false".  It will change to be "true" in Electron 9.  For more information please check https://github.com/electron/electron/issues/18397
[1]    41872 segmentation fault (core dumped)  ferdi

If I can assist in any way, please tell me how (:

Issue seems to be resolved at time of writing this comment, note I didn't rebooted since my first comment.
Maybe it is related to the display of the "What's new" page ?

Same issue, also Manjaro. Also seems to have resolved itself. Occasionally crashes on first launch, launching the second/third time works. Since upgrading to 5.5 the autostart option has no effect/is not working, possibly related.
@MattMattV Does "Launch ferdi at start" work for you?

Mine doesn't "fix itself" I can't use Ferdi since I updated, this is what I get when running it from the terminal:
$ ./Ferdi-5.5.0_6198d990b5154094abf05bee4a7cff50.AppImage
Gtk-Message: 13:47:39.891: Failed to load module "appmenu-gtk-module"
(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false".  It will change to be "true" in Electron 9.  For more information please check https://github.com/electron/electron/issues/18397
Segmentation fault (core dumped)

For me, this seems to be related to the AppImage itself as the Ferdi binary from the AUR is working like a charm!

For me, this seems to be related to the AppImage itself as the Ferdi binary from the AUR is working like a charm!

You're right, ferdi-bin from AUR works fine. Cheers

Apparently it isn't related to the AppImage as after I rebooted Ferdi (AUR ferdi-bin) started crashing once again, and becomes completely unusable

Installing the ferdi package (not the binary but the 5.5.0-2 package) from the AUR seems to have fixed it for now, let's see if it is consistent

It isn't, after a reboot it started crashing again

I am also seeing this error. I just downloaded Ferdi for the first time and can't even launch it.

I am also seeing this error. I just downloaded Ferdi for the first time and can't even launch it.

Same here,
OS: Manjaro KDE Linux, Kernel 5.10.18-1
Ferdi Version 5.5.0 AppImage
And AUR failed to build.

There is a 5.6.0 release available, please try that one to see if the issue is fixed. Alternatively, the nightly versions are also stable to use.

./Ferdi-5.6.0.AppImage
I need to wait a long time for a response.
Then the ferdi window appears slowly until it crashes with a segfault.

@MartinX3 - can you please try with the latest nightlies? http://github.com/getferdi/nightlies/releases

@vraravam sadly the same issue :(
This time without segfault, it just closes again.
If there is a way to generate logs, I would be happy to provide them.

It took ages until it did create the Ferdi folder, then it took ages until it created more stuff in the Ferdi folder and open itself.
The application is now open.
"An error occured while doing a auth request to the ferdi server."
Clicked on "use ferdi without account".
Nothing changed, but the terminal says now (but why a migration, I removed the data and used 5.6.2 before)

Starting local server on port 45569
Ferdi Migration:  🧙  Running database migration wizard
info: serving app on http://localhost:45569
Ferdi Migration:  🔮  Migrating table from 5.4.0-beta.2 to 5.6.2

Clicking again on "use ferdi without account".
Now "Welcome to ferdi"
Added whatsapp.
Closed ferdi.
Started again the AppImage
Ages of loading time. Maybe it runs in a timeout for something like the ferdi server repsonse?
Then the window opens and takes ages
Then I see a loading animation "making Ferdi usable" which takes again its time.
Now switching to account
I'm logged in and see all my services


emacsPackages.treesit-grammars.with-all-grammars fails to build

Describe the bug
Since commit https://github.com/NixOS/nixpkgs/pull/337867 emacsPackages.treesit-grammars.with-all-grammars doesn't build anymore. I failed to see that before merging the PR and nixpkgs-review was crashing.
Steps To Reproduce
Steps to reproduce the behavior:

Evaluate nix-build -A emacsPackages.treesit-grammars.with-all-grammars in the master branch

these 2 derivations will be built:
  /nix/store/s8f26pdxj1wygsn9nkklcc76yzdxlzfx-tree-sitter-wing-grammar-0.23.0.drv
  /nix/store/xz0gygngjwyrb38r2iy6jz2plvr7zh29-emacs-treesit-grammars.drv
building '/nix/store/s8f26pdxj1wygsn9nkklcc76yzdxlzfx-tree-sitter-wing-grammar-0.23.0.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/qqpfam7c2r7psqlrz1n6acqfp50ga4m3-wing-ae30eb6
source root is wing-ae30eb6
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
/nix/store/91d27rjqlhkzx7mhzxrir1jcr40nyc7p-stdenv-linux/setup: line 1707: cd: libs/tree-sitter-wing: No such file or directory
error: builder for '/nix/store/s8f26pdxj1wygsn9nkklcc76yzdxlzfx-tree-sitter-wing-grammar-0.23.0.drv' failed with exit code 1;
       last 7 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/qqpfam7c2r7psqlrz1n6acqfp50ga4m3-wing-ae30eb6
       > source root is wing-ae30eb6
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > /nix/store/91d27rjqlhkzx7mhzxrir1jcr40nyc7p-stdenv-linux/setup: line 1707: cd: libs/tree-sitter-wing: No such file or directory
       For full logs, run 'nix log /nix/store/s8f26pdxj1wygsn9nkklcc76yzdxlzfx-tree-sitter-wing-grammar-0.23.0.drv'.
error: 1 dependencies of derivation '/nix/store/xz0gygngjwyrb38r2iy6jz2plvr7zh29-emacs-treesit-grammars.drv' failed to build

Expected behavior
The build to be successful.
Notify maintainers
/CC @ribru17
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.6-200.fc40.x86_64, Fedora Linux, 40 (Workstation Edition), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixpkgs"`
 - channels(temp): `"home-manager, nixpxkgs"`
 - channels(cassou): `"home-manager-22.11.tar.gz, nixpkgs"`
 - nixpkgs: `/home/cassou/Documents/projects/nix-system/nixpkgs`

Add a :+1: reaction to issues you find important.

Apologies and thanks for the report!! See #342349


Update and rename docker/README.md to 码头工人/README.md

Update and rename docker/README.md to 码头工人/README.md -- docker end

IMPORTANT!:
The rest will be flagged as not allowed.
accepted = ["MIT", "MSC", "BSD"]
This will indicate which licenses are not accepted.
The rest will be accepted, except for the unknown licenses or dependencies without licenses.
unaccepted = ["LGPL"]
Note that only one of the previous options can be enabled at once.
If both of them are informed, only accepted will be considered.
[dependencies]
This will allow users to flag some dependencies so that Licensebat will not check for their license.
ignored=["ignored_dep1", "ignored_dep2"]
[behavior]
False by default, if true, it will only run the checks when one of the dependency files or the .licrc file has been modified.
run_only_on_dependency_modification = true
False by default, if true, it will never block the build.
do_not_block_pr = false


Add configuration of externalTrafficPolicy in helm ingressgateway

When istio-ingressgateway is type LoadBalancer, one can configure externalTrafficPolicy to one of Cluster or Local. Expose this variable as service.externalTrafficPolicy.
Signed-off-by: Don Bowman<EMAIL_ADDRESS>

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: linsun
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

install/OWNERS [linsun]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/ok-to-test


New Service: Speakeasy

Describe the solution you'd like
Evaluate Mandiant's Speakeasy project to determine if it would be an effective Assemblyline service.
Additional context
Discord: https://discord.com/channels/908084610158714900/908717441771794472/1099054847287898184
https://github.com/mandiant/speakeasy Looks like it might make a good service.  I just used it to reverse some shellcode and it worked pretty well.

We have a working version on this, working on sharing it out.


Feature Request: Catchup bug on reset

Use Case:
Outline the use case and/or provide a user story.

As a player, I want to start off at a slower speed

Description:
Describe the feature you'd like to see added.

I've found a small issue with the way the player resets on gameover. If the player died in the catchup trigger area, the 'Player in catchup area' remains set to true and doesn't revert to false on game restart. With this the game starts at the max possible speed (catchupSpeed=8f)

Brief video of issue:
https://github.com/LiamMcKenzie/ScaredKrow/assets/90590089/01aea363-1963-4023-b5d7-148b6cd7a3c8

Closing issue as resolved in:

#32


FE-1186 FE-1192 Station Health in Stations List

Why?

Align the threshold for Reward score error status to be the same as the QoD error.
Station List card improvements for health metrics

How?

Integrated the new metrics object in the API response in the Device object
Added the respective qodScore, polReason and metricsTimestamp in the UIDevice object in order to use them aftewards for UI purposes
Redesigned the device card and integrated the new alert chips
Removed CellDeviceListAdapter as it was duplicate to DevicesAdapter which we now use in the cell's details
Created some extension functions in Views.kt in order to reuse them for station-health and alerts related UI components

Testing
Ensure that everything looks OK in all different cases based on the specs and the acceptance tests.

Good catches @pantelisss , I implemented the optimizations.

@PavlosTze I've noticed also that in devices with NO_LOCATION_DATA the address is not visible and shows "No Location" text.

@pantelisss The whole metrics object should be set to null in order for the "grey" state to appear. Setting just the pol_reason to null when the rest of the data are there means that everything is OK and there is no PoL-related error.

@pantelisss The whole metrics object should be set to null in order for the "grey" state to appear. Setting just the pol_reason to null when the rest of the data are there means that everything is OK and there is no PoL-related error.

Sorry, my bad 😞
All good!


some err when I run python setup.py install

Hi Michael
I git clone this code and run the setup.py to install the package: python setup.py install.
But there is an error here. I try to install amuse-fresco with pip as well. But it also shows this error.
I don't know how to deal with it. Could you help me?
the error message:
Installed /Users/yihuan/Software/miniforge3/lib/python3.9/site-packages/aggdraw-1.3.18.post0-py3.9-macosx-11.0-arm64.egg
Searching for amuse-fresco
Reading https://pypi.org/simple/amuse-fresco/
Downloading https://files.pythonhosted.org/packages/8f/cf/73a4fce557630d87a64a59db711ce5be05a4b63e5f6c5e180a88eac1913b/amuse-fresco-2023.3.0.tar.gz#sha256=9df75976fc931b8315fc425b1eaf53f1f80c67ee71745dc702420b20322d0bfc
Best match: amuse-fresco 2023.3.0
Processing amuse-fresco-2023.3.0.tar.gz
Writing /var/folders/9w/f6hrq1ts03l3rldq00x8lpb40000gn/T/easy_install-ocdfbdb4/amuse-fresco-2023.3.0/setup.cfg
Running amuse-fresco-2023.3.0/setup.py -q bdist_egg --dist-dir /var/folders/9w/f6hrq1ts03l3rldq00x8lpb40000gn/T/easy_install-ocdfbdb4/amuse-fresco-2023.3.0/egg-dist-tmp-py5h7ra7
.....
assert isinstance(value, dict), "version_keyword expects a dict or True"
AssertionError: version_keyword expects a dict or True

Hi,
I also have this problem when trying to install the upstream dependency amuse-fresco with pip in any environment, totally independently of CrunchSnaps.  Please open an issue there.
Mike


update example to use new suffix

@Meir017 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Add the ability load specific weights with the tf.keras.Model.load_weights method

System information

TensorFlow version (you are using): 2.4.1
Are you willing to contribute it (~Yes~/No): At the moment I'm a bit short on time, I might have time to do this in the future. This feature request is a way to check if there is enough support to implement it.

Describe the feature and the current behaviour/state.
Currently the tf.keras.Model.load_weights method loads all the weights that are in a checkpoint. In my project, I want the user to have the ability to load only certain layers (weights) that are in a checkpoint. The user should be able to do this by supplying CLI arguments.
Currently, I achieve this behaviour by overloading the tf.keras.Model.load_weights method. I first store the old model state in this overloaded method before I call the super().load_weights method. After the weights are restored, I then overwrite the weights the user didn't want to load based on the old mode state.
Giving Tensorflow users the ability to supply an ignore_list, for example, in the CheckpointOptions object would ease this process.
Will this change the current api? How?
It would add a extra parameter to the CheckpointOptions object and some additional code to the tf.keras.Model.load_weights method in order to filter based on parameter names.
Who will benefit with this feature?
I think it will ease the loading process for people that are using transfer learning. It would stop them from relying on workarounds as the one explained above. I am not sure how much work it is to implement such an addition, and if the work outweighs the benefits. I, therefore, opened this issue to see if other people also think this is helpful.

Thanks for the report! Team talked today, and we don't plan on adding functionality like that right now.
The main tool for transfer learning would be to nest models and/or layers and set trainable=True/False as desired. See https://keras.io/guides/transfer_learning.
Beyond that, if you need more custom loading of weights, using layer.set_weights on the layers you want is the way to go. We want to move away from any whitelists/blacklists based on names, which can be brittle.


Ran out of memory trying to allocate XX.XX MB

Hello, I was really happy to discover your port and I am really looking forward to use it a lot in future as it is very promising. However, I am facing an error and I am not sure how to resolve it. I am running it on new MacBook Pro with Intel and AMD Radeon pro 450 on it (2017 version). I also set the CL_GPUOFFSET to 1, because Intel graphics is the first one. This is the logs:
W tensorflow/core/common_runtime/bfc_allocator.cc:274] *****_**********__************************************************************************xxxxxxxxxx
W tensorflow/core/common_runtime/bfc_allocator.cc:275] Ran out of memory trying to allocate 9.00MiB.  See logs for memory state.
W tensorflow/core/framework/op_kernel.cc:973] Resource exhausted: OOM when allocating tensor with shape[512,512,3,3]
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (256): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (512): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (1024): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (2048): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (4096): 	Total Chunks: 1, Chunks in use: 0 6.8KiB allocated for chunks. 6.8KiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (8192): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (16384): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (32768): 	Total Chunks: 1, Chunks in use: 0 54.2KiB allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (65536): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (131072): 	Total Chunks: 1, Chunks in use: 0 144.0KiB allocated for chunks. 144.0KiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (262144): 	Total Chunks: 1, Chunks in use: 0 288.0KiB allocated for chunks. 288.0KiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (524288): 	Total Chunks: 1, Chunks in use: 0 576.0KiB allocated for chunks. 576.0KiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (1048576): 	Total Chunks: 1, Chunks in use: 0 1.12MiB allocated for chunks. 1.12MiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (2097152): 	Total Chunks: 2, Chunks in use: 0 4.50MiB allocated for chunks. 2.25MiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (4194304): 	Total Chunks: 1, Chunks in use: 0 4.50MiB allocated for chunks. 4.50MiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (8388608): 	Total Chunks: 1, Chunks in use: 0 9.00MiB allocated for chunks. 9.00MiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (16777216): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (33554432): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (67108864): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (134217728): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (268435456): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:660] Bin for 64.00MiB was 64.00MiB, Chunk State:
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x80 of size 1280
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x580 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x680 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x780 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x880 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x980 of size 512
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xb80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xc80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xd80 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1180 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1280 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1380 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1b80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1c80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1d80 of size 16384
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x5d80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x5e80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x5f80 of size 4096
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x6f80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7080 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7180 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7280 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7380 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7480 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7580 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7680 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7780 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7880 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7980 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7a80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7b80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7c80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7d80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x7e80 of size 512
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x8080 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x8180 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x8280 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x8680 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x8780 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x8880 of size 3328
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x9580 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x9680 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x9780 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x9880 of size 16384
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xd880 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xd980 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xda80 of size 4096
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xea80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xeb80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xec80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xed80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xee80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xef80 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xf080 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xf180 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xf280 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xf380 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xf480 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x11080 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x11180 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x11280 of size 512
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x11480 of size 512
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x11680 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x11a80 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x11e80 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x12280 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x12a80 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x13280 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x13a80 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x14280 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x14a80 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x15280 of size 16384
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x19280 of size 16384
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1d280 of size 4096
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1e280 of size 6912
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x2d680 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x51780 of size 147456
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x75780 of size 512
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xbd980 of size 294912
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x105980 of size 512
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x195b80 of size 589824
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x225b80 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x225f80 of size 2359296
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x585f80 of size 1179648
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x6a5f80 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x6a6380 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x6a6780 of size 2359296
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xb26780 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0xb26f80 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1426f80 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x21a6f80 of size 2359296
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x2626f80 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x2f26f80 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x3826f80 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x3827780 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x3827f80 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x3828780 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x3828f80 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x3829780 of size 16384
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x382d780 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x412d780 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x4a2d780 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x532d780 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x652d780 of size 86845696
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0xf580 of size 6912
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1fd80 of size 55552
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x2d780 of size 147456
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x75980 of size 294912
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x105b80 of size 589824
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x465f80 of size 1179648
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x8e6780 of size 2359296
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1d26f80 of size 4718592
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x23e6f80 of size 2359296
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x5c2d780 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:693]      Summary of in-use Chunks by size:
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 50 Chunks of size 256 totalling 12.5KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 6 Chunks of size 512 totalling 3.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 8 Chunks of size 1024 totalling 8.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 1280 totalling 1.2KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 13 Chunks of size 2048 totalling 26.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 3328 totalling 3.2KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 3 Chunks of size 4096 totalling 12.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 6912 totalling 6.8KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 5 Chunks of size 16384 totalling 80.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 147456 totalling 144.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 294912 totalling 288.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 589824 totalling 576.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 1179648 totalling 1.12MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 3 Chunks of size 2359296 totalling 6.75MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 8 Chunks of size 9437184 totalling 72.00MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 86845696 totalling 82.82MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:700] Sum Total of in-use chunks: 163.83MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:702] Stats:
Limit:                   192937984
InUse:                   171789312
MaxInUse:                192937984
NumAllocs:                     141
MaxAllocSize:            134031616

W tensorflow/core/common_runtime/bfc_allocator.cc:274] *****_**********__*********************************___************************************xxxxxxxxxx
W tensorflow/core/common_runtime/bfc_allocator.cc:275] Ran out of memory trying to allocate 64.00MiB.  See logs for memory state.
W tensorflow/core/framework/op_kernel.cc:973] Resource exhausted: OOM when allocating tensor with shape[4096,4096]

Limit: 192MB
InUse: 171MB
Ran out of memory trying to allocate 64.00MiB
171+64 > 192
For some reason, it limits the memory to 192MB.... have you found a way to increase that?


Finalize-VM.ps1 removes required directory $env:SystemRoot\Temp

Description
I've noticed the following error messages while building the windows2019 image:
Clean up various directories
    vhd: Removing C:\Recovery
    vhd: Removing C:\Windows\logs
    vhd: Removing C:\Windows\winsxs\manifestcache
    vhd: Removing C:\Windows\Temp
    vhd: Removing C:\Users\packer\AppData\Local\Temp
    vhd: Finalize-VM.ps1 - completed
==> vhd: . : The term 'c:/Windows/Temp/packer-ps-env-vars-61ea9b1c-521e-256d-aac7-b07dd321060d.ps1' is not recognized as the
==> vhd: name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
==> vhd: included, verify that the path is correct and try again.
==> vhd: At line:1 char:138
==> vhd: + ... ontinue'};. c:/Windows/Temp/packer-ps-env-vars-61ea9b1c-521e-256d-aac ...
==> vhd: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> vhd:     + CategoryInfo          : ObjectNotFound: (c:/Windows/Temp...07dd321060d.ps1:String) [], CommandNotFoundException
==> vhd:     + FullyQualifiedErrorId : CommandNotFoundException

I can't explain the error (the log message order does not fit), however, it looks like line 37 of the Finalize-VM.ps1  script is wrong. The directory $env:SystemRoot\Temp gets removed a couple of lines above at line 21.
https://github.com/actions/virtual-environments/blob/05fc7efd600bc4b6832e123637e87187ef01f4e0/images/win/scripts/Installers/Finalize-VM.ps1#L37
If I remove line 14, the error is gone. Out-Null will not suppress Write-Error. I guess your pipeline can not remove the directory, that's why the message does not appear. Remove-Item use -ErrorAction SilentlyContinue.
Virtual environments affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[X] Windows Server 2016
[X] Windows Server 2019
[X] Windows Server 2022

Image version and build link
-
Is it regression?
No response
Expected behavior
No response
Actual behavior
No response
Repro steps

Run Finalize-VM.ps1

Hey, @HofmeisterAn
What commit and branch do you use? Could you check that "skip_clean": true is set in the packer  https://github.com/actions/virtual-environments/blob/129a56046f637d39f8835c202520cb2c5532d6b9/images/win/windows2019.json#L311 config?

We're using 05fc7efd600bc4b6832e123637e87187ef01f4e0. skip_clean was not set. I added it and queued a new build. Sorry, it seems like I missed the parameter somehow.

The error message doesn't appear anymore if skip_clean is true.

You should build an image against main branch always to have the latest updates and fixes, we don't backport any changes.


The index exceeds the dataset itself

Hi ! noahzn:
I'm bothering you again! I run train.py in pycharm .The program reported an error:FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Mr-Sun\Desktop\lite_mono\Lite-Mono\kitti_data\2011_09_26/2011_09_26_drive_0002_sync\image_03/data\0000000077.png'
but kitti_data\2011_09_26/2011_09_26_drive_0002_sync\image_03/data just  76 images .
sometimes ,the program reported an error:FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Mr-Sun\Desktop\lite_mono\Lite-Mono\kitti_data\2011_09_26/2011_09_26_drive_0001_sync\image_02/data\0000000108.png'
but kitti_data\2011_09_26/2011_09_26_drive_0001_sync\image_02/data just 107 images .
The errors is all the same , so I think this is a common question, have you ever been in this situation? Do you know the reason for the error?

Training model named:
lite-mono
Models and tensorboard events files are saved to:
./tmp
Training is using:
cuda
Using split:
eigen_zhou
There are 133 training items and 30 validation items
Training
epoch   0 | lr 0.000100 |lr_p 0.000100 | batch      0 | examples/s:   2.0 | loss: 0.15695 | time elapsed: 00h00m04s | time left: 00h00m00s
epoch   0 | lr 0.000100 |lr_p 0.000100 | batch      5 | examples/s:  25.6 | loss: 0.14992 | time elapsed: 00h00m08s | time left: 01h38m10s
epoch   0 | lr 0.000100 |lr_p 0.000100 | batch     10 | examples/s:  21.3 | loss: 0.15792 | time elapsed: 00h00m12s | time left: 01h11m14s
Traceback (most recent call last):
File "C:\Users\Mr-Sun\Desktop\lite_mono\Lite-Mono\train.py", line 12, in
trainer.train()
File "C:\Users\Mr-Sun\Desktop\lite_mono\Lite-Mono\trainer.py", line 223, in train
self.run_epoch()
File "C:\Users\Mr-Sun\Desktop\lite_mono\Lite-Mono\trainer.py", line 238, in run_epoch
for batch_idx, inputs in enumerate(self.train_loader):
File "D:\CODE\ANACONDA\envs\facenet\lib\site-packages\torch\utils\data\dataloader.py", line 634, in next
data = self._next_data()
File "D:\CODE\ANACONDA\envs\facenet\lib\site-packages\torch\utils\data\dataloader.py", line 1346, in _next_data
return self._process_data(data)
File "D:\CODE\ANACONDA\envs\facenet\lib\site-packages\torch\utils\data\dataloader.py", line 1372, in _process_data
data.reraise()
File "D:\CODE\ANACONDA\envs\facenet\lib\site-packages\torch_utils.py", line 644, in reraise
raise exception
FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "D:\CODE\ANACONDA\envs\facenet\lib\site-packages\torch\utils\data_utils\worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "D:\CODE\ANACONDA\envs\facenet\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\CODE\ANACONDA\envs\facenet\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\Mr-Sun\Desktop\lite_mono\Lite-Mono\datasets\mono_dataset.py", line 153, in getitem
inputs[("color", i, -1)] = self.get_color(folder, frame_index + i, side, do_flip)
File "C:\Users\Mr-Sun\Desktop\lite_mono\Lite-Mono\datasets\kitti_dataset.py", line 39, in get_color
color = self.loader(self.get_image_path(folder, frame_index, side))
File "C:\Users\Mr-Sun\Desktop\lite_mono\Lite-Mono\datasets\mono_dataset.py", line 15, in pil_loader
with open(path, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Mr-Sun\Desktop\lite_mono\Lite-Mono\kitti_data\2011_09_26/2011_09_26_drive_0001_sync\image_02/data\0000000108.png'
When the above error message is reported, we can see that the program is still running for a while, but a similar error will be reported later

Hi,
why do you only have 133 training items and 30 validation items? If you use a subset of KITTI please ensure that your training lists only contain these files. Besides, I notice you are using .png file to train. The default training uses .jpg files and you need to convert .png to .jpg.

The error you have encountered is due to missing data. It is not related to the code.


/ra

command /ra is not working with no error messages.

Yeah, my bad.   The Ctrl-click functionality introduced that bug.   I have it fixed, and will release 0.9.2 this afternoon (with any other bug fixes that cane get identified and fixed before than).


Weather Website

Project title
Fully functional weather website that resembles the UI/UX of Apple's weather app
Project Description
The clone fetches weather data using a public API and displays forecasts and conditions.

A weather website with a clean UI design similar to Apple's weather app.
Real-time weather data fetching using API.

UI/UX Features:

A responsive layout with Apple-like design elements, icons, and transitions.
Search functionality to find weather in any city.
Detailed weather information like temperature, wind speed, humidity, and forecasts.

Stack:
[ ] Html
[ ] CSS
[ ] JavaScript
[ ]APIs

I would like to work on this task.
Please assign it to me @shloka-gupta

I would like to work on this task. Please assign it to me @shloka-gupta

yes you can continue working on it


Expose a pg_query_deparse function without protobuf

Hello 👋,
Would it be possible to expose a pg_query_deparse which would directly work on the result of pg_query_parse (so skipping the protobuf layer)?
My goal would be to have the deparsing capability of libpg_query exposed to the JavaScript world through libpg-query-node.
I'm not a C programmer, so I'm not sure about the possibility/difficulty of the task. 😅

@jgoux Can you share more about the use case?
Generally the idea is that you'd parse, modify the parse tree, and then deparse - and protobuf is the way the parsetree gets passed back and forth.

@lfittl libpg-query-node seems to rely on pg_query_parse.
Reading the tests of libpg_query it doesn't seem possible to pass the result of pg_query_parse to pg_query_deparse_protobuf right?
So I'm wondering why is there a pg_query_parse + pg_query_parse_protobuf but not a pg_query_deparse + pg_query_deparse_protobuf?
Does it mean that libpg-query-node should rely on pg_query_parse_protobuf instead?
My use case is really just to be able to pass what I obtain from query.parseQuery(sql)/parseQuerySync from libpg-query-node to a deparser function. 😄

I guess what I want is the equivalent of pg_query_parse for pg_query_deparse, working with json instead of protobuf to pass the parsetree: https://github.com/pganalyze/libpg_query/blob/1ada550d901ed4edbfb6bce2163d21f4b948ab2d/src/pg_query_parse.c#L101

I guess what I want is the equivalent of pg_query_parse for pg_query_deparse, working with json instead of protobuf to pass the parsetree:
https://github.com/pganalyze/libpg_query/blob/1ada550d901ed4edbfb6bce2163d21f4b948ab2d/src/pg_query_parse.c#L101

Ah, thanks for clarifying!
There is currently no support for reading in the JSON format (to turn it into C structs again, which are used by the deparser) - that was part of the motivation for the Protobuf work, since its a bit more straightforward to read than JSON.
Its not impossible to add this, but its a lot more work than just exposing a function, as what would be needed is essentially pg_query_json_to_nodes, similar to the pg_query_protobuf_to_nodes function: https://github.com/pganalyze/libpg_query/blob/15-latest/src/pg_query_readfuncs_protobuf.c#L154
Note that matters are complicated a bit by the fact that we currently don't have a JSON parser bundled in the C library.
This may be something we can add in a future version, as Postgres 16 had major rework of how the out/read/copy funcs code works, and it may get easier to add extra formats with that work in place.
But for now this is not a priority on our end, though a PR would of course be welcome.

Just so I'm sure I'm understanding how the protobuf work impacts the consumption of libpg_query.
Is it an implementation detail?
For example, if I would like to expose pg_query_parse_protobuf and pg_query_deparse_protobuf to the JavaScript/TypeScript world, would I have to deal with protobuf in my own code, or would it be possible to use it like:
import { parse, deparse } from "libpg-query";

const tree = parse("SELECT 1;");

// tree here would be a normal JS object
console.log(tree.stmts[0].stmt.SelectStmt);

// we pass the normal JS object
const query = deparse(tree);

// output "select 1"
console.log(query)

You would have to have a step that turns the Protobuf into Javascript objects (e.g. using a library like protobufjs, and then does the same in reverse before passing things back to libpg_query.
For reference, the protobuf definition can be found here: https://github.com/pganalyze/libpg_query/blob/15-latest/protobuf/pg_query.proto#L17
And you can e.g. look at the Ruby library for how it does that: parse, deparse (note how the Ruby object "tree" gets passed to the auto-generated Protobuf message PgQuery::ParseResult which can decode/encode the Ruby tree into a Protobuf message)

Excellent, exactly what I was looking for, thanks for the pointer @lfittl! 😄


Adopt @link for jsdoc comments

Fixes #1015
Converts the jsdoc comments to use @link syntax for links. This makes these links work inside editors like VS Code

Thanks for providing the PR!


Uses published daily snapshot dependencies

Signed-off-by: Drew Baugher<EMAIL_ADDRESS>CheckList:

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

That is interesting.... link checker fails because of link at bottom of rfc
https://github.com/opensearch-project/index-management/blob/main/docs/rfc.md
But why didn't it fail for previous PRs...


Failed to run services

2023-10-03 00:36:22 ERROR    Failed to start 500 Server Error for http+docker://localhost/v1.42/containers/4bfddf496e65aeafd1c042e6900f107874c96c220908af2ccdc56c6458d3c89f/start: Internal Server Error ("failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: nvml error: driver/library version mismatch: unknown")
2023-10-03 00:36:23 ERROR    Failed to start 500 Server Error for http+docker://localhost/v1.42/containers/20e9304c1b1a8b85401b7d825d123f1d0dd1b08ed01478df8928cc5e609e5042/start: Internal Server Error ("failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: nvml error: driver/library version mismatch: unknown")

Seems related to the drivers, not the daemon. It means that the drivers are not correctly installed on OS.

Understood! The fact an user discovers through the logs is not ideal, best if we do this check ad first thing on startup


Support pep 604 optional & union types

Fixes #202.

@jstasiak, can we expect this to be merged and released anytime soon? We would really appreciate that. Thanks!
Also, please let me know if you are looking for help maintaining this. We are relying heavily on this so, I would be available.

Thanks @jstasiak 🥳

Thank you for this patch @davidparsson. Let me get back to you regarding the maintenance help question, there's one thing I need to resolve.

Thanks @jstasiak.
Any idea of when this might be included in a release?

Oops, sorry @davidparsson, I should've mentioned this – it's already been released to PyPI in 0.20.1 in July – I've forgotten to push the release commit and a tag though, did that just now.

That's splendid! Thanks again!