Prep for 0.0.3 release

Codecov Report

Merging #15 (d65c286) into release (0843efa) will increase coverage by 14.51%.
The diff coverage is 81.72%.

@@             Coverage Diff              @@
##           release      #15       +/-   ##
============================================
+ Coverage    57.55%   72.07%   +14.51%
============================================
  Files            8       10        +2
  Lines          622      641       +19
============================================
+ Hits           358      462      +104
+ Misses         264      179       -85

Impacted Files
Coverage Δ

src/fits/hdu_types.rs
35.55% <ø> (ø)

src/lib.rs
100.00% <ø> (ø)

src/fits/header_value/bitpix.rs
47.61% <47.61%> (ø)

src/fits/header_value/tform.rs
81.25% <80.00%> (ø)

src/fits/header_value/mod.rs
91.17% <91.17%> (ø)

src/fits/mod.rs
98.07% <95.65%> (+63.93%)
:arrow_up:

src/fits/header.rs
81.00% <100.00%> (+3.15%)
:arrow_up:


Where do you apply the registry key

Does the registry key get placed on the Domain Controller, or on each individual workstation/server you want to log application activity on?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f04afba8-26a0-64ac-1e64-9f4e7db60857
Version Independent ID: 41404a21-cc7e-eaea-86d6-107d221aa7cb
Content: Determine Allow-Deny List and Application Inventory for Software Restriction Policies
Content Source: WindowsServerDocs/identity/software-restriction-policies/determine-allow-deny-list-and-application-inventory-for-software-restriction-policies.md
Product: windows-server
Technology: security
GitHub Login: @JasonGerend
Microsoft Alias: jgerend

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


Add QueryBuilder support

I really like Jongo API - it's very good for strict requests to mongo. But request to DB may not be fixed at compile time - it may depends on runtime properties.
Pls add QueryBuilder similar to com.mongodb.QueryBuilder. You can find more description of the problem here - https://groups.google.com/forum/#!topic/jongo-user/whTqqPVVvmM
I've temporary solved this problem in a very dirty way:

Added support for DBObject to MongoCollection.find method
Constructed DBObject using com.mongodb.QueryBuilder
Changed BsonQueryFactory to be able to marshall constructed DBObject (btw is it ok that BsonQueryFactory parses query and marshalls params at the same time? Shouldn't it be two separate classes?)

@bguerout could you provide a snippet ?

Hello, thanks for your feedback.
What about implementing a custom QueryFactory ?

Yes it can be an option, but I should copy/paste 90% of code of BsonQueryFactory.

May be BsonQueryFactory should be refactored to ease extensibility

It will be nice :)

+1!

+1

+1

+1
I use Java driver's QueryBuilder for now like this: (note - this is Kotlin code, hence the unusual syntax):
//static imports for QueryBuilder.* methods such as start()
import com.mongodb.QueryBuilder
import com.mongodb.QueryBuilder.*

...

    /**
     * Find persons in time zone specifified by zoneId that have never answered a call and haven't been called since notCallSince
     */
    fun findUnansweredNotCalledSince(notCalledSince: LocalDateTime, zoneId: ZoneId): Iterable<Person> {
        val date = Date.from(ZonedDateTime.of(notCalledSince, zoneId).toInstant())

        val query = QueryBuilder.start().or(
            start("sessionResult").`is`(null).get(),
            start().and(
                start("timeZone").`is`(zoneId.id).get(),
                start("sessionResult.lastInitiated").lessThanEquals(date).get(),
                start("sessionResult.answered").`is`(false).get()
            ).get()
        )
        return collection.find(query.get().toString()).`as`(classToken);
    }

+1

Hello,
1.4.0 should include helpers to deal with new mongo java driver API
  Document document = new Document("name", "Abby").append("address", "123 Wall Street");

  collection.insertOne(document);

You can find more informations here https://github.com/bguerout/jongo/issues/254 and a working example : https://github.com/bguerout/jongo/blob/master/src/test/java/org/jongo/v3/QueryBuilderTest.java#L29
Does it fit your needs ?

+1

+1


Unable to create directory

i followed all instruction i get one of the tests fail. all other tests pass but this.

Testing use of runargs args with Python3 OK
Python3 program with customised timeout OK
Python3 program with support files OK
***************** FAILED TEST ******************
{'run_id': None, 'outcome': 15, 'cmpinfo': '', 'stdout': 'Unable to create directory /home/jobe/runs/jobe_UsogWt/Home/.cache/pylint\n', 'stderr': ''}
Valid Python3/pylint program
Jobe result: Successful run
Output:
Unable to create directory /home/jobe/runs/jobe_UsogWt/Home/.cache/pylint

Invalid Python3/pylint program OK
UTF-8 output from Python3 (will fail unless Jobe set up for UTF-8) OK
Test good C hello world OK
Test compile error C hello world OK
Test use of compileargs with C OK
Test runtime error C hello world OK
Test timelimit on C OK
Test outputlimit on C OK

Firstly, this error is relevant only if you're intending to use python3 with the pylint style checker. If not, you can safely ignore it.
If you do wish to use pyint ... I'd like to confirm that the pylint options were correctly set up during the install. What's the output from the command
cat /etc/pylintrc

?

There was a bug in pylint 2.10 relating to the cache directory. See https://github.com/pylint-dev/pylint/issues/4900. What's the output from
pylint --version
?
And you do realise that this is only relevant if you want to use pylint for style checking python, right? We're actually switching to use ruff instead, so you could also consider that option.


Change clifford to run with pytest

We've dropped our nose dependency in clifford, and moved away from unittest-compatible tests in order to use pytest fixtures. Since python 2 is also not supported, the future module is no longer a dependency.
The upshot is our tests should be more granular.

There are still some import nose errors. Have you already released the version of clifford that has nose removed?

No, that hasn't been released yet. Do these tests run against both master and the released version, or only the released version?

These tests usually only run against the latest released version.

For clifford specifically, the program will obtain all git tags from the 'blessed' remote and select the 'latest' one. The code is here:
https://github.com/numba/numba-integration-testing/blob/master/switchboard.py#L115

It sounds then like the correct action is to leave this open until clifford pushes its next tag?

@eric-wieser probably, yes.

Clifford did a 1.1.0 release, although now I expect this to fail due to a missing conda-forge:sparse dependency, which I'm not sure how to add.

@eric-wieser thanks for submitting this, I'll try to re-run this PR now.

@eric-wieser for reference, you can add a string like "-c conda-forge sparse", to install sparse from conda-forge.

I think the clifford tests are going through fine, but that is because sparse is listed as dependency in the setup.py and so we get:
Installed /home/circleci/repo/miniconda3/envs/clifford/lib/python3.8/site-packages/clifford-1.2.0-py3.8.egg
Processing dependencies for clifford==1.2.0
Searching for sparse
Reading https://pypi.org/simple/sparse/
Downloading https://files.pythonhosted.org/packages/08/73/34946ead922c072d7981be5b917f5871961a1b3bab4bc43dcd861de9ac23/sparse-0.9.1-py2.py3-none-any.whl#sha256=5d7e9bab68b20f63ba6e8c593e46864ebef3a0842fa26fb32b71e743e6c5c99e
Best match: sparse 0.9.1
Processing sparse-0.9.1-py2.py3-none-any.whl
Installing sparse-0.9.1-py2.py3-none-any.whl to /home/circleci/repo/miniconda3/envs/clifford/lib/python3.8/site-packages
Adding sparse 0.9.1 to easy-install.pth file

@eric-wieser thanks for submitting a fix for this, will merge as soon as CI goes green!

It looks like it has passed, but actually I see:
= 1 failed, 315 passed, 29 skipped, 8 xfailed, 1 xpassed, 5 warnings in 394.96s (0:06:34) =

Looks like we may have to wait for: https://github.com/conda/conda/pull/9665

I have merged a workaround for the conda run bug: https://github.com/numba/texasbbq/pull/7 @eric-wieser would it be possible to rebase this PR onto master (or merge master into it). This will hopefully show us the true state of these integration-tests.

^ That should have the effect of re-running against master

@eric-wieser yeah, I thought so too, but apparently CircleCI doesn't seem to operate like that.

I triggered it manually now.

Test failure is real, AttributeError: module 'numba' has no attribute 'numpy_support'

@eric-wieser indeed, we are in the middle of a 'refactor the world' update in Numba: https://github.com/numba/numba/pull/5197
It is very likely that this broke clifford  and lead to the failures you are seeing now. I would suggest to collect all the places where the Numba refactor broke clifford and submit these in an issue for discussion on the Numba issue tracker. This will allow us to decide if we broke a 'public'  API and we need to fix Numba --- OR --- if clifford was using a private API in the first place and the fix needs to happen there.
And thanks very much for your continued understanding, patience and persistence --- we appreciate it!

At any rate, this PR should be good to merge, right?

@eric-wieser indeed! The errors are being reported again and the clifford tests no longer fail due to a missing pytest dependency!


doubt about startNotifyFlowHandler

func (publisher *Publisher) startNotifyFlowHandler() {
	for ok := range publisher.notifyFlowChan {
		publisher.disablePublishDueToFlowMux.Lock()
		publisher.logger.Printf("pausing publishing due to flow request from server")
		if ok {
			publisher.disablePublishDueToFlow = false
		} else {
			publisher.disablePublishDueToFlow = true
		}
		publisher.disablePublishDueToFlowMux.Unlock()
		publisher.logger.Printf("resuming publishing due to flow request from server")
	}
}

but I see the following comment in amqp (channel.go#L49):
	// Listeners for active=true flow control.  When true is sent to a listener,
	// publishing should pause until false is sent to listeners.
	flows []chan bool

Maybe startNotifyFlowHandler should behave like this?
func (publisher *Publisher) startNotifyFlowHandler() {
	// Listeners for active=true flow control.  When true is sent to a listener,
	// publishing should pause until false is sent to listeners.
	for ok := range publisher.notifyFlowChan {
		publisher.disablePublishDueToFlowMux.Lock()
		if ok {
			publisher.logger.Printf("pausing publishing due to flow request from server")
			publisher.disablePublishDueToFlow = true
		} else {
			publisher.disablePublishDueToFlow = false
			publisher.logger.Printf("resuming publishing due to flow request from server")
		}
		publisher.disablePublishDueToFlowMux.Unlock()
	}
}

pls the me know if I get this wrong

I think you're right. Would you like to make the PR? If not I'll take care of it later


vkfw::PlatformError when running on wayland

Hey, I'm trying to create a window with vkfw in a Wayland WM (Sway), and it doesn't work well. When i try to run it with glfwCreateWindow it works, and switching to glfw-x11 package variant as well (glfw-wayland is the one that doesn't work). Any help is appreciated.
Log is:
 vkfw::createWindow: A platform-specific error occurred that does not match any of the more specific categories

Hi! Thanks for showing interest in vkfw!
Could you please kindly try and run a simple test:
#include <iostream>

#define VKFW_NO_STRUCT_CONSTRUCTORS
#define VKFW_NO_EXCEPTIONS
#include "vkfw/vkfw.hpp"

void try_vkfw(std::ostream &log) {
  auto [initialization_error_code, instance] = vkfw::initUnique();
  log << "vkfw_initialization: " << vkfw::to_string(initialization_error_code) << '\n';

  log << "vulkan_support: " << (vkfw::vulkanSupported() ? "yes" : "no") << '\n';

  auto [window_error_code, window_handle] = vkfw::createWindowUnique(1280, 720, "vkfw", { .resizable = true });
  log << "vkfw_window_creation: " << vkfw::to_string(window_error_code) << '\n';

  while (vkfw::check(window_handle->shouldClose().result) && !window_handle->shouldClose().value) {
    auto waiting_error_code = vkfw::waitEvents();
    if (!vkfw::check(waiting_error_code)) {
      log << "vkfw_wait_events: " << vkfw::to_string(waiting_error_code) << '\n';
      auto closing_error_code = window_handle->setShouldClose(true);
      log << "vkfw_close_window: " << vkfw::to_string(closing_error_code) << '\n';
    }
  }

  log << std::endl;
}

void try_glfw(std::ostream &log) {
  auto initialization_successful = glfwInit();
  log << "glfw_initialization: " << (initialization_successful ? "yes" : "no") << '\n';

  char const *error_buffer;

  glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE);
  log << "glfw_window_hint: " << (glfwGetError(&error_buffer) ? error_buffer : "no error") << '\n';

  auto window_handle = glfwCreateWindow(1280, 720, "glfw", nullptr, nullptr);
  log << "glfw_window_creation: " << (glfwGetError(&error_buffer) ? error_buffer : "no error") << '\n';

  while (!glfwWindowShouldClose(window_handle)) {
    if (glfwGetError(&error_buffer)) {
      log << "glfw_should_close: " << (error_buffer ? error_buffer : "no error") << '\n';

      glfwSetWindowShouldClose(window_handle, true);
      log << "glfw_close_window: " << (glfwGetError(&error_buffer) ? error_buffer : "no error") << '\n';
    }

    glfwWaitEvents();
    if (glfwGetError(&error_buffer)) {
      log << "glfw_wait_events: " << (error_buffer ? error_buffer : "no error") << '\n';

      glfwSetWindowShouldClose(window_handle, true);
      log << "glfw_close_window: " << (glfwGetError(&error_buffer) ? error_buffer : "no error") << '\n';
    }
  }

  glfwDestroyWindow(window_handle);
  log << "glfw_destroy_window: " << (glfwGetError(&error_buffer) ? error_buffer : "no error") << '\n';

  glfwTerminate();

  log << std::endl;
}

int main() {
  try_vkfw(std::cout);
  try_glfw(std::cout);

  return 0;
}

What I'm looking for is whether there are any differences in behaviour between the two windows.

Hey, sorry for my late response and thank you for answering, when i run the code the following shows up
$ g++ main.cpp  -I vkfw/include/ -lglfw
$ ./a.out
a.out: vkfw/include/vkfw/vkfw.hpp:1451: typename vkfw::ResultValueType<vk::UniqueHandle<Type, vk::DispatchLoaderStatic> >::type vkfw::createResultValueUnique(vkfw::Result, T&, const char*) [with T = vkfw::Instance; typename vkfw::ResultValueType<vk::UniqueHandle<Type, vk::DispatchLoaderStatic> >::type = vkfw::ResultValue<vk::UniqueHandle<vkfw::Instance, vk::DispatchLoaderStatic> >]: Assertion `result == Result::VKFW_ENUMERATOR(Success)' failed.

Regards.

This specific assert seems to indicate that the call glfwInit returned a non-zero value.
Let's try and detect the specifics behind what problem it's encountering using a callback.
Could you please call try_glfw function from the previous listing like so:
void logging_error_callback(int error_code, const char *description) {
  std::cout << "An error was encountered (" << error_code << "): " << description << '\n';
}

int main() {
  glfwSetErrorCallback(logging_error_callback);
  try_glfw(std::cout);

  return 0;
}

The following happens with glfw and vkfw respectively. Hope it helps
glfwSetErrorCallback(logging_error_callback);
try_glfw(std::cout);

glfw_initialization: yes
glfw_window_hint: no error
An error was encountered (65544):Wayland: Focusing a window requires user interaction
glfw_window_creation: Wayland: Focusing a window requires user interaction

glfwSetErrorCallback(logging_error_callback);
try_vkfw(std::cout);

vkfw_initialization: No error has occurred
vulkan_support: yes
An error was encountered (65544):Wayland: Focusing a window requires user interaction
a.out: vkfw/include/vkfw/vkfw.hpp:1451: typename vkfw::ResultValueType<vk::UniqueHandle<Type, vk::DispatchLoaderStatic> >::type vkfw::createResultValueUnique(vkfw::Result, T&, const char*) [with T = vkfw::Window; typename vkfw::ResultValueType<vk::UniqueHandle<Type, vk::DispatchLoaderStatic> >::type = vkfw::ResultValue<vk::UniqueHandle<vkfw::Window, vk::DispatchLoaderStatic> >]: Assertion `result == Result::VKFW_ENUMERATOR(Success)' failed.```

Good news is that it seems to be a known error plaguing a bunch of GLFW wrappers.
You can read in more details in this issue: https://github.com/glfw/glfw/issues/1121
Bad news is that there's no "clean" fix. At least not for the release GLFW version (3.3).
The problem is that Wayland offers limited window focus functionality and GLFW tries to notify about that problem.
If you don't want to deal with using not-100%-stable-fork of the libraries, your best bet is to try and detect this error so that you can ignore it. The created should be usable despite this error.

For exceptionless vkfw you can try and provide your own "assert" before including the header like so:
#define IGNORE_AN_ERROR(condition) /* does nothing */
#define VKFW_ASSERT_ON_RESULT IGNORE_AN_ERROR

The downside is that this would force you to check your errors manually (but at least you can make sure that the error createWindow is reporting is the one you expect).
I hope this helps.

Yes man this definitely helps. I want to thank you for your time, for your support and for creating vkfw :).

Feel free to close the issue if that's it for this question.
P. S. New issues (or even PRs if you find something vkfw is missing) are always welcome.


Failed to Initialize Gradle Language Server

Extension Name: vscode-gradle
Extension Version: v3.8.0
OS Version: Windows 10.0.19043 Build 19043
VSCode version: 1.60.2
Describe the bug
Upon opening a Gradle project, the Gradle Language Server throws errors and fails to start properly. The status bar indicates it's stuck in "Initializing Gradle Language Server". Upon opening a *.java file or the Tasks panel, the Language Server tries again to start up and succeeds.
To Reproduce
Open any folder with a build.gradle at the root (including this repository itself).
Expected behavior
No error should be thrown. Status bar should not be stuck with "Initializing Gradle Language Server" spinner.
Output from "Gradle Tasks"
[debug] [gradle-server] Starting server
[debug] [gradle-server] Gradle Server cmd: c:\Users\shaun_000\.vscode\extensions\vscjava.vscode-gradle-3.8.0\lib\gradle-server.bat 49258
[info] [gradle-server] Server started, listening on 49258
[info] Gradle client connected to server

Output from "Gradle Language Server"
Oct 05, 2021 9:53:28 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError
SEVERE: Internal error: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:67)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
	... 11 more
Caused by: java.lang.NullPointerException: Cannot read the array length because "<local3>" is null
	at com.microsoft.gradle.resolver.GradleLibraryResolver.searchInFolder(GradleLibraryResolver.java:161)
	at com.microsoft.gradle.resolver.GradleLibraryResolver.findCoreAPIWithDist(GradleLibraryResolver.java:152)
	at com.microsoft.gradle.resolver.GradleLibraryResolver.findCoreAPIWithWrapper(GradleLibraryResolver.java:140)
	at com.microsoft.gradle.resolver.GradleLibraryResolver.resolveGradleAPI(GradleLibraryResolver.java:89)
	at com.microsoft.gradle.GradleServices.applySetting(GradleServices.java:160)
	at com.microsoft.gradle.GradleLanguageServer.initialize(GradleLanguageServer.java:90)
	... 16 more

[Error - 9:53:29 PM] Server initialization failed.
  Message: Internal error.
  Code: -32603
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:67)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
	... 11 more
Caused by: java.lang.NullPointerException: Cannot read the array length because "<local3>" is null
	at com.microsoft.gradle.resolver.GradleLibraryResolver.searchInFolder(GradleLibraryResolver.java:161)
	at com.microsoft.gradle.resolver.GradleLibraryResolver.findCoreAPIWithDist(GradleLibraryResolver.java:152)
	at com.microsoft.gradle.resolver.GradleLibraryResolver.findCoreAPIWithWrapper(GradleLibraryResolver.java:140)
	at com.microsoft.gradle.resolver.GradleLibraryResolver.resolveGradleAPI(GradleLibraryResolver.java:89)
	at com.microsoft.gradle.GradleServices.applySetting(GradleServices.java:160)
	at com.microsoft.gradle.GradleLanguageServer.initialize(GradleLanguageServer.java:90)
	... 16 more

[Error - 9:53:29 PM] Starting client failed
  Message: Internal error.
  Code: -32603
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:67)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
	... 11 more
Caused by: java.lang.NullPointerException: Cannot read the array length because "<local3>" is null
	at com.microsoft.gradle.resolver.GradleLibraryResolver.searchInFolder(GradleLibraryResolver.java:161)
	at com.microsoft.gradle.resolver.GradleLibraryResolver.findCoreAPIWithDist(GradleLibraryResolver.java:152)
	at com.microsoft.gradle.resolver.GradleLibraryResolver.findCoreAPIWithWrapper(GradleLibraryResolver.java:140)
	at com.microsoft.gradle.resolver.GradleLibraryResolver.resolveGradleAPI(GradleLibraryResolver.java:89)
	at com.microsoft.gradle.GradleServices.applySetting(GradleServices.java:160)
	at com.microsoft.gradle.GradleLanguageServer.initialize(GradleLanguageServer.java:90)
	... 16 more

Does the bug still exist if you disable all other extensions?
Yes
Additional context
The below issue is unrelated, but was including in case that wasn't the case. Thanks to @CsCherrYY for confirming it's unrelated to the above.
~After waiting for a couple minutes after opening the vscode-gradle repository folder, the following errors popped up. I haven't seen these before so I suspect they may be related to the vscode-gradle repository itself rather than this issue (which applies to all gradle projects) but including them just in case:~

Images of the unrelated issue
![image](https://user-images.githubusercontent.com/7451023/136144151-8c1112c5-e64c-4f35-9151-c08e52633a05.png)

You will see this pop up since your Gradle build is not meet your Java runtime requirement, see https://docs.gradle.org/current/userguide/compatibility.html for details.
As it suggested, you can specific java.import.gradle.java.home to a lower JDK version (e.g. Java 11) and reload window to see if this works.

Yeah, it happens on one of my ubuntu machines with java 8. So, I do not think java version is an issue in my case. Nevertheless I tried to set the path and it didn't seem to help resolve the issue.

@Drakmyth Thanks for the clarifying, I think this issue is related to the library resolver in the language server, we use the resolver to parse the gradle distribution you are using to provide some auto completion candidates for you. Are you using a gradle wrapper in your project?
@yagnasrinath Could you please provide the log? I'd like to check if it comes from the root cause as above.

The only log I see is:
Exception in thread "main" java.lang.NoSuchMethodError: java.util.List.of(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
	at com.microsoft.gradle.GradleServices.<clinit>(GradleServices.java:86)
	at com.microsoft.gradle.GradleLanguageServer.<init>(GradleLanguageServer.java:76)
	at com.microsoft.gradle.GradleLanguageServer.main(GradleLanguageServer.java:54)
[Info  - 8:15:03 PM] Connection to server got closed. Server will restart.
Exception in thread "main" java.lang.NoSuchMethodError: java.util.List.of(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
	at com.microsoft.gradle.GradleServices.<clinit>(GradleServices.java:86)
	at com.microsoft.gradle.GradleLanguageServer.<init>(GradleLanguageServer.java:76)
	at com.microsoft.gradle.GradleLanguageServer.main(GradleLanguageServer.java:54)
[Info  - 8:15:03 PM] Connection to server got closed. Server will restart.
Exception in thread "main" java.lang.NoSuchMethodError: java.util.List.of(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
	at com.microsoft.gradle.GradleServices.<clinit>(GradleServices.java:86)
	at com.microsoft.gradle.GradleLanguageServer.<init>(GradleLanguageServer.java:76)
	at com.microsoft.gradle.GradleLanguageServer.main(GradleLanguageServer.java:54)
[Info  - 8:15:03 PM] Connection to server got closed. Server will restart.
Exception in thread "main" java.lang.NoSuchMethodError: java.util.List.of(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
	at com.microsoft.gradle.GradleServices.<clinit>(GradleServices.java:86)
	at com.microsoft.gradle.GradleLanguageServer.<init>(GradleLanguageServer.java:76)
	at com.microsoft.gradle.GradleLanguageServer.main(GradleLanguageServer.java:54)
[Info  - 8:15:04 PM] Connection to server got closed. Server will restart.
Exception in thread "main" java.lang.NoSuchMethodError: java.util.List.of(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
	at com.microsoft.gradle.GradleServices.<clinit>(GradleServices.java:86)
	at com.microsoft.gradle.GradleLanguageServer.<init>(GradleLanguageServer.java:76)
	at com.microsoft.gradle.GradleLanguageServer.main(GradleLanguageServer.java:54)
[Error - 8:15:04 PM] Connection to server got closed. Server will not be restarted.

I am not sure how to enable debug logging. Let me know if there is a way to enable debug logging. I also have gradle wrapper in my project. And gradle language server in my case never successfully initializes though.

@yagnasrinath Your issue might be related to https://github.com/microsoft/vscode-gradle/issues/1024#issuecomment-930692759 and there is a fix in #1029.

I installed the v3.8.0 extension from the link you provided. The error no longer occurs and everything seems to be working normally!


Fix SimPSFToolkit import with sims module

There's an import problem causing the code to fail. The sims module is missing, this PR fixes it.

Hi @tobias-liaudat, thanks for identifying this bug.  I would like to reproduce it can you let me know what settings one needs to do to replicate this failure?

@jeipollack if you do a clean installation in a new conda environment and then try to train the model. I used the branch refactor_configs_run. The command I used is the default one for the training:
python wf_psf/run.py -c config/configs.yaml -r $WORK/repos/refactored_wavediff/wf-psf -o $WORK/outputs/refactor_wf


fix: replace Future.delayed with timer

possible fix for error: AnimationController methods should not be used after calling dispose.
this error is cause by using Future.delayed

Updated the code.


Jacksonmowry/add form submit wrapper

Description

Converts the back end to now use server actions for facilitating requests from the front end.
Adds a server action to specifically handle form submission.
Adds a submit button to the review screen.
Updates the zod schema to more closely match the database schema.
Since we are now enabling server actions the jest tests are failing due to how files marked 'use server' are compiled. It appears that this has been mitigated in later versions of Next.js, so we may need to consider updating.
https://github.com/vercel/next.js/issues/53065
The front end form is missing a few fields from the original PDF,  https://github.com/orgs/hack4impact-utk/projects/4?pane=issue&itemId=55912479
Relevant issue(s)

Closes #97 #100
Questions

To help reduce the size of our main page.tsx file, should the conversion functions I added be moved to a separate file?
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have assigned reviewers to this PR

Alright, refactor is done!


invalidating cached data

hi @mgonto ,
I found some notes which I think will help me. I found it from here - https://github.com/mgonto/restangular/issues/594
I have a question regarding your code below. In my own code, I have cache set to true which will cache always. Looking at your code below, you are using $cacheFactory. Am I right that the code below will also cache my GET requests?
 var cache = $cacheFactory('http');
    Restangular.setDefaultHttpFields({cache: cache});
    Restangular.setResponseInterceptor(function(response, operation) {
      if (operation === 'put' || operation === 'post' || operation === 'delete') {
        cache.removeAll();
      }
      return response;
    });
  };

I got it working :)

@c0debreaker I am try to do exactly same thing, Can you help me out how did you get it working ?


[QUESTION] Allow browser to connect on HTTP website

Hello,
Currently, I am testing an application that has a sign-in form and after successful authorization, sign-in should redirect the user to a custom URL that contains a code, for now, that URL is localhost. After redirect on GUI less, I see that redirect link on chromium, and second, after redirect, I get this kind of error:
chrome-error://chromewebdata/
Basically, it says that chrome could not connect to that specific URL. is there an option to allow Playwright to connect on redirected localhost URL? Without any proxy or some kind of other things that are being used. So far I haven't found any helpful information about this topic when the user gets redirected to an HTTP page instead of HTTPS.
I hope that there is an solution for my issue,
Best regards,
Sanady

I get this kind of error:
chrome-error://chromewebdata/
Basically, it says that chrome could not connect to that specific URL.

What does the error say? It seems that requested URL is not reachable. Can you try loading that url directly and check if you get the same error?

We need more information to act on this report. Please file a new one and link to this issue when you get back to it!

Hello yury-s, the issue was that the firm sign-in page contains a redirect URL within the sign-in URL. When the user inserts the correct credentials, he gets redirected to the HTTP URL within the sign-in URL. But Playwright somehow cannot connect on the redirected unsafe URL, but I don't even need to connect only what I wanted is to redirect the URL with the code, even though that is impossible due to the error that Playwright show. Is it possible to connect on an unsafe URL with all the browsers?
I saw a solution with the connectOverCDP  method, but even that method hasn't helped me. Is there any other solution?


loggerd: fix concurrency issues in sync encoders

The frame_id of the last camera may not be sent to update_max_atomic for comparison

merged to  #22130

I don't understand completely. You can describe in which situation the last camera does not update the field? And is the 2 frame margin not covering this already?

if (cam_info.trigger_rotate && (s.max_waiting > 1)) {
  if (!ready) {
    LOGE("%s encoder ready", cam_info.filename);
    ++s.encoders_ready;
    ready = true;
  }
  // this is not atomic, if ++s.encoders_ready == max_waiting,
  // the main thread may set s.encoders_synced to true at this time, which will cause the following if check to fail.
  //  we can easily reproduce this problem in unit testing
  if (!s.encoders_synced) {
    update_max_atomic(s.latest_frame_id, extra.frame_id);

Does changing the order of setting ready and updating the frame id to solve the problem?

yes, it's can be fixed like this https://github.com/commaai/openpilot/pull/22131/commits/5e66cd85071cf9ac08965e84cdab837f4683f00e
But I think only std::mutex can really guarantee consistency. and there is no need to check whether it is synchronized in the main thread, so I put it in a function with std::mutex.

Just like to prevent locks as much as possible, so if we can do it without locks I'm much more happy with that. That commit is what I had in mind.

I will try, but I feel there will be other synchronization issues without mutex

can't pass the test,  must be protected by a mutex to ensure consistency


Could not create string from entitlements data

hi I am new Electron I have problem  could not create string from entitlements data when build electron with mac os

I'm running into the same issue. A few months ago it worked fine.
Relevant log:
Notarizing chat.wip.menubar found at /Users/marc/Sites/wip-menubar/release/mac/WIP.app
  ⨯ Command failed: codesign --sign REMOVEDREMOVEDREMOVEDREMOVED --force --timestamp --entitlements /var/folders/pt/removedremoved/T/tmp-entitlements-6db4-0.plist /Users/marc/Sites/wip-menubar/release/mas/WIP.app
Could not create string from entitlements data
  stackTrace=
                                                                                Error: Command failed: codesign --sign REMOVEDREMOVEDREMOVEDREMOVED --force --timestamp --entitlements /var/folders/pt/removedremoved/T/tmp-entitlements-6db4-0.plist /Users/marc/Sites/wip-menubar/release/mas/WIP.app
                                                                                Could not create string from entitlements data

                                                                                at ChildProcess.exithandler (child_process.js:295:12)
                                                                                at ChildProcess.emit (events.js:210:5)
                                                                                at maybeClose (internal/child_process.js:1021:16)
                                                                                at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

Here's what my entitlements file looks like:

Note that it's not a plain text file. Opening up the file in a plain text editor shows some weird encoding characters.

Running with verbose flag it shows this:
/var/folders/pt/9yhw_43s1l37hj41w2tbnrx00000gn/T/tmp-entitlements-72e6-0.plist: unrecognized blob type (accepting blindly)
/var/folders/pt/9yhw_43s1l37hj41w2tbnrx00000gn/T/tmp-entitlements-72e6-0.plist: invalid length in entitlement blob

After running plutil -convert xml1 on the plist file, code signing seems to work.
So it appears that the plist file is being created in a binary format, while the codesign command expects the XML format. I'm not sure where that's going wrong though?

👍 Upgrading all dev dependencies and restarting my Mac resolved the issue.

I'm getting this too, except running plutil doesn't do anything (already valid) and opening the file in xcode all looks fine?

I'm getting this in Github Actions

Actually I am not using electron-osx-sign, but I got this error with electron-builder. I upgraded to the newest version of electron-builder and it was resolved.

Sounds like this is a combination of a badly formatted plist and some dependency updates.  Closing out to clear up the open issues, if this is still impacting someone please raise a new issue


If content is not clickable . How can we close drawer while clicking content. I want both content not clickable and close drawer when content is clicked :D

please help,i have the same issue

@yarolegovich yeah, need the same behaviour implemented if possible. Would greately appreciate it.
To clarify, when the drawer is opened we don't want the content to fetch the clicks, we just want the click to close the drawer back. Like a normal navigation drawer behaviour.
Is that possible?

add these lines to
newRoot.setOnTouchListener(new View.OnTouchListener() {             @Override             public boolean onTouch(View view, MotionEvent motionEvent) {                 if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {                     newRoot.closeMenu();                 }                 return true;             }         });
https://github.com/surindersinghbindra/KampFire/blob/master/app/src/main/java/com/yarolegovich/slidingrootnav/SlidingRootNavBuilder.java
line number 191 and make
.withContentClickableWhenMenuOpened(false)

Use this instead. The previous fix disabled the sliding gesture from the left side of the screen to open menu.
newRoot.setOnTouchListener(
new View.OnTouchListener() {
@Override public boolean onTouch(View view, MotionEvent motionEvent) {
if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
newRoot.closeMenu();
return true;
}
return false;
}
});

Close side drawer when pressing out side
Added below line in MainActivity :
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
var slidingRootNav: SlidingRootNav = = SlidingRootNavBuilder(this)
.withToolbarMenuToggle(toolbar)
.withMenuOpened(false)
.withContentClickableWhenMenuOpened(false)
.withSavedState(savedInstanceState)
.withMenuLayout(R.layout.menu_left_drawer)
.inject()
}
override fun dispatchTouchEvent(ev: MotionEvent): Boolean {
slidingRootNav!!.closeMenu() //
return super.dispatchTouchEvent(ev)
}


SQLAlchemy Prep: Surge on Query Updates

User Story - Business Need
A pre-requisite to #1225 (SQLAlchemy Upgrade) is to update all the queries. We'd like a team surge on this as there will be many folders and files to update within the API codebase.

[ ] Ticket is understood, and QA has been contacted (if the ticket has a QA label).

User Story(ies)
As a platform
I want to keep my packages up to date
So that we avoid vulnerabilities and can use the latest functionality
Additional Info and Resources

sqlalchemy 2.0 query syntax
migration from 1.4 to 2.0 ORM usage table

Starter files to jump into:

Location
Query count

app/celery/nightly_tasks.py
1

app/celery/scheduled_tasks.py
1

app/dao/init.py
1

app/dao/provider_rates_dao.py
1

Current workload:
Private Zenhub Image
1436 has cleared around 60 of those queries.
Engineering Checklist

[ ] Jump on a call and divvy up folders/files

Acceptance Criteria

[ ] regex search for \.query(\.|\() returns nothing

that would be things matching .query. or .query(
Skipped tests will have the queries removed

[ ] All select queries use read-only where appropriate

QA Considerations

[ ] regression passes on this branch in Dev
[ ] regression passes on this branch in Perf (push it up prior to it being merged to master)

Hey team! Please add your planning poker estimate with Zenhub @cris-oddball @edDocMe360 @EvanParish @k-macmillan @kalbfled @ldraney @nikolai-efimov

Team meeting times have been planned for Monday and Tuesday 1:30 to 3:30 Eastern.

We're all on the same page for updating:

How we will address the queries
How to see the new query is the same
How to test changes
Branch management

We are tracking progress with a document.
Most of the first few hours was just getting everyone setup and on the same page. Should be able to cruise now.

All queries have been updated. We are working through addressing unit test failures then we will deploy and run the regression.

Reviewed all PR comments and came to team consensus on each. Team is updating the PR based on the comments.

Friday and today we addressed the remaining comments.

All tests pass
Deployed
All regression tests pass

Will deploy to perf, regression test, then deploy to staging.

Perf deployed, passes regression. Staging deployed, passed regression. Going to let it sit.

Put this in QA testing for now. It is not merged. Giving it some time in staging to see if anything goes sideways.

Dug through all logs over the last 24 hours in staging.
The delete_notifications_older_than_retention_by_type method appears to have a warning.
/app/app/dao/notifications_dao.py:568: SAWarning: Coercing Subquery object into a
select() for use in IN(); please pass a select() construct explicitly

The only other part to check are the stats query results. Would like to work with @cris-oddball, @EvanParish, and @mjones-oddball  when they get back to validate the stats.

In Staging I sent the following tests. Will check BQ tomorrow to confirm aggregation is correct in stats and billing.

Another bug appears to exist between a Twilio notification being added to the DB and a lookup on that notification. Requires further investigation.

Cris and I confirmed stats and billing data looked good

Updated with master (python 3.10/alpine upgrade).
Wrote a new method for the delivery status and wrote 44 tests (2 methods with 27 and 17 parameterizations) for the new method.

PR approved and merged; master sent up to Perf. Just going to let it bake there over the weekend after running a regression.

Regression passes, expected data in BQ, no errors seen in logs over the weekend. Given the testing this went through in staging, calling it good and closing ticket.


First-class treatment of identifier transformations

Related to #3155
This is the set-namespace transformer code:
https://github.com/GoogleContainerTools/kpt-functions-catalog/blob/master/functions/go/set-namespace/transformer/namespace.go
A previous version tried to update only namespace values matching the name of the Namespace resource:
https://github.com/GoogleContainerTools/kpt-functions-catalog/pull/844
The problem with that was that it didn't work after kpt pkg update in the case that the upstream introduced a new resource with the original namespace name rather than the transformed namespace name. The desired behavior would be to remap all instances of the original namespace to the new desired namespace.
More generally, name changes are hard to do with just string munging. ensure-name-substring is an example of that:
https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/functions/go/ensure-name-substring
We should do a deep dive into how kustomize manages name changes.
We need to explicitly model the object graph, including references to external dependencies, in order to support renaming and eventually other graph transformations.
Terraform, Pulumi, and other tools perform automatic naming and maintain aliases from declarative package-local names (kind of like formal parameters) to the actual resource names, which often contain unpredictable generated suffixes, similar to generated Pod names. In the case of Terraform, the resource names are generated from the module and resource structures, which is problematic when they get refactored.
Rather than (or in addition to) comments, we could annotate resources with the necessary metadata to maintain the mappings to their abstract names and namespaces. We've also discussed using the filenames, but in this case we want to be able to set the namespace of all resources that were in the same Namespace as the abstract Namespace ("example") in the blueprint, so we need that information. If there were references to those objects, we'd need to update those as well.
We were stripping the internal annotations in the package orchestrator, but either way we'd need to pass the annotations through the pipeline in order for them to be available to functions. We should just filter them in the UI rather than in porch.
There are non-KRM identifiers that may need similar transforms, also, such as Config Connector project ids.
cc @yuwenma @justinsb

Here's the design proposal. I'd like to keep that as a google doc for easy commenting and discussion. And I'll convert that to a PR in https://github.com/GoogleContainerTools/kpt/tree/main/docs/design-docs

Thanks! I'm reviewing it. The analysis of kustomize's behavior definitely will be helpful to include in a design doc.

From slack: when copying multiple blueprints into a new deployable package for my application, I get this nice error about duplicate ConfigMap resource names. I blindly use the name "setters" for my setters.yaml config in multiple packages. I don't like the idea of giving them unique names manually, because say someone kpt pkg get's my package twice with different names. The Kptfile nicely has that (unique) name, but the setters.yaml doesn't.


RecursionError when writing SRT from TTML input

I've been testing ttconv and have come across a strange issue when reading TTML and writing to SRT. When I write as TTML, everything works fine.
The input file is around eighty minutes in duration and has around 13000 <p> elements. Cutting this file to eg 100 allows the process to complete with no issue.
$ python src/main/python/ttconv/tt.py convert -i /mnt/c/work/tmp/test.ttml -o test.srt
Input file is /mnt/c/work/tmp/test.ttml
Output file is test.srt
Reading: |██████████████████████████████████████████████████| 100% Complete
Writing: |██------------------------------------------------|   5% CompleteTraceback (most recent call last):
  File "src/main/python/ttconv/tt.py", line 382, in <module>
    main(sys.argv[1:])
  File "src/main/python/ttconv/tt.py", line 378, in main
    args.func(args)
  File "src/main/python/ttconv/tt.py", line 346, in convert
    srt_document = srt_writer.from_model(model, writer_config, progress_callback_write)
  File "/home/user/ttconv/src/main/python/ttconv/srt/writer.py", line 189, in from_model
    isds = ISD.generate_isd_sequence(doc, _isd_progress, is_multithreaded=isd_config.multi_thread if isd_config is not None else True)
  File "/home/user/ttconv/src/main/python/ttconv/isd.py", line 292, in generate_isd_sequence
    int(len(sig_times)/multiprocessing.cpu_count()))
  File "/home/user/.pyenv/versions/3.7.7/lib/python3.7/multiprocessing/pool.py", line 325, in <genexpr>
    return (item for chunk in result for item in chunk)
  File "/home/user/.pyenv/versions/3.7.7/lib/python3.7/multiprocessing/pool.py", line 748, in next
    raise value
  File "/home/user/.pyenv/versions/3.7.7/lib/python3.7/multiprocessing/pool.py", line 431, in _handle_tasks
    put(task)
  File "/home/user/.pyenv/versions/3.7.7/lib/python3.7/multiprocessing/connection.py", line 206, in send
    self._send_bytes(_ForkingPickler.dumps(obj))
  File "/home/user/.pyenv/versions/3.7.7/lib/python3.7/multiprocessing/reduction.py", line 51, in dumps
    cls(buf, protocol).dump(obj)
RecursionError: maximum recursion depth exceeded while pickling an object

@davemevans Can you try with multithreading disabled?
{ "isd" : { "multi_thread": false } }

... or even better, can you share the test file privately?

I replicated the error by setting doc_size = 13000 in the following test:
https://github.com/sandflow/ttconv/blob/feeffe55371b654b43018afeba590ce1ab835895/src/test/python/test_isd_multithreading.py#L43
It looks like this a consequence of using multithreading, which in turns requires the pickle module, which requires sys.setrecursionlimit(limit) to be set higher since the ISD trees are self-referential, e.g. each node references the root.
Potential short-term solutions:

increase sys.setrecursionlimit(limit) (more memory + platform limitations)
disable multithreading (slower)

Potential long-term solutions:

serialize ISDs to TTML documents before sending to each thread
custom pickling of ISDs

@davemevans See https://github.com/sandflow/ttconv/pull/246 . Performance has been significantly improved for many common use cases. Hopefully yours falls into that category (let me know). This should allow ttconv to be run without multithreading until the pickling issue is fixed.

Turning multithreading off, and applying #246, allows the test case to pass - thanks!
I haven't tested without #246 - it takes 8m30 to process the doc above on my laptop already 😄

@davemevans Thanks for the review.

Solved by #248
Additional potential improvements at #250


Movement broken

Hi,
1.2.0 just broke movement. Not sure why. All config is default.

will look into

fixed in newest thunderstore release


Error - property 'javaLauncher' doesn't have a configured value

I am using the following build.gradle to generate java files from wsdl.
plugins {
    id "java"
    id("com.github.bjornvester.wsdl2java") version "2.0"
}

group 'io.services.mytest'
version '0.0.0-SNAPSHOT'

dependencies {
    implementation 'com.sun.xml.ws:jaxws-ri:4.0.1'
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
test {
    useJUnitPlatform()
}

wsdl2java {
    packageName.set("io.services.api")
    markGenerated.set(true)
}

However, when I execute ./gradlew wsdl2java, I am getting the following error.
* What went wrong:
A problem was found with the configuration of task ':xpansiv-ema-api:wsdl2java' (type 'Wsdl2JavaTask').
  - In plugin 'com.github.bjornvester.wsdl2java' type 'com.github.bjornvester.wsdl2java.Wsdl2JavaTask' property 'javaLauncher' doesn't have a configured value.

    Reason: This property isn't marked as optional and no value has been configured.

    Possible solutions:
      1. Assign a value to 'javaLauncher'.
      2. Mark property 'javaLauncher' as optional.

    Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#value_not_set for more details about this problem.

What am I missing here?

NVM, fixed after updating to 2.0.1


Make the FastAPI server available

Correct the use of generator in response function

close this pr as we have already change fastapi to stream response, will merge soon


Failed assertion: line 25 pos 14: 'url != null': is not true.

======== Exception caught by widgets library =======================================================
The following assertion was thrown building:
'package:flutter/src/painting/_network_image_io.dart': Failed assertion: line 25 pos 14: 'url != null': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      new NetworkImage (package:flutter/src/painting/_network_image_io.dart:25:14)
#3      new Image.network (package:flutter/src/widgets/image.dart:406:68)
#4      _listViewCategory.<anonymous closure>.<anonymous closure> (file:///C:/Users/Administrator/Desktop/mjaaz%201/lib/view/Pages/Home-page/components/HomeBody.dart:187:32)
#5      new ListView.separated.<anonymous closure> (package:flutter/src/widgets/scroll_view.dart:1277:34)
#6      SliverChildBuilderDelegate.build (package:flutter/src/widgets/sliver.dart:455:22)
...
====================================================================================================

======== Exception caught by image resource service ================================================
Handshake error in client (OS Error:
	CERTIFICATE_VERIFY_FAILED: certificate has expired(handshake.cc:354))
====================================================================================================

@TahaTesser

Hi @z7b
Can you please provide a minimal complete reproducible code sample and flutter run --verbose logs running the minimal code sample? (please avoid screenshot of the logs, copy/paste complete logs in the comment)
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


is_unique form validation not working on update.I fails the validation by comparing with same user email

is_unique form validation not working on update.I fails the validation by comparing with same user email.is_unique is also pick the email of same id in which i updated.on update of user data , i did not change the email it will return me error of unique email on update

$this->form_validation->set_rules('email', 'Email', 'required|valid_email|is_unique['.$tableName.'.email.'.$id.']');

Please post on our forums instead. This is a bug tracker.


LLD Playwright tests: batch fixes (10 october 2023)

📝 Description
this splits out part of the work started at https://github.com/LedgerHQ/ledger-live/pull/4918 into atomic commits and with all the safe fixes that hopefully could be committed in. 🤞
❓ Context

Impacted projects: LLD tests
Linked resource(s): LIVE-9613

✅ Checklist

[x] Test coverage
[x] Atomic delivery
[x] No breaking changes

📸 Demo

🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

/generate-screenshots

/generate-screenshots

/generate-screenshots

only delegate case is failing. known issue as in develop. let's merge this in


Add Cache Implementation

@dustinhiatt-wf
@alexandercampbell-wf
@Workiva/linking-pp
This PR adds a thread-safe, bounded, in-memory cache with a pluggable eviction policy. Two policies are currently implemented: least-recently-used and least-recently-added.

Raven
Number of Findings: 0

+1

+1

@dustinhiatt-wf, I assume you have write access to this repo? Would you be able to merge this when ready please?

RM +1
Verified dependencies manually


LINK-1709: Rename develop branch to main

Description :sparkles:
develop branch was renamed to main. Need to change pipelines to use main instead of develop as well.
Closes :no_good_woman:
LINK-1709

Codecov Report

Merging #267 (3e0e38f) into main (8b87c81) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #267   +/-   ##
=======================================
  Coverage   99.74%   99.74%
=======================================
  Files         573      573
  Lines        9506     9506
  Branches     2076     2076
=======================================
  Hits         9482     9482
  Misses         22       22
  Partials        2        2

:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!


Update day 1 IDR entry to point at the recorded video

also update the thumbnail to use a smaller size

Cannot build this repo on ci.
2020-05-22 20:49:26,386 [      scc.gh] DEBUG github.__len__
2020-05-22 20:49:28,072 [    scc.repo] ERROR Failed to find openmicroscopy/www.openmicroscopy.org
Traceback (most recent call last):
  File "/home/hudson/virtualenv/lib/python2.6/site-packages/scc/main.py", line 84, in entry_point
    (UpdateSubmodules.NAME, UpdateSubmodules),
  File "/home/hudson/virtualenv/lib/python2.6/site-packages/yaclifw/framework.py", line 188, in main
    ns.func(ns)
  File "/home/hudson/virtualenv/lib/python2.6/site-packages/scc/git.py", line 3211, in __call__
    self.init_main_repo

but the site is fine. Re-treid several times, but random errors repeat.

The problem above with the build sorted itself out (hard to say how).
But now, the Day 1 page of the programme on snoopy is not happy https://snoopycrimecop.github.io/www.openmicroscopy.org/events/ome-community-meeting-2020/day1/
Whereas the Day 2 is still going strong. I suspect that might be connected to this PR ?

I built this PR locally, and also there, the DAy1 page is bust, no content, jsut header with no css.

I excluded this PR by adding
--exclude and re-run the build. Now, on snoopy, the Day 1 is back in shape.
Leaving this PR as excluded, untill this is clarified.

Thanks for the feedback @pwalczysko. Updated and deployed at https://snoopycrimecop.github.io/www.openmicroscopy.org/events/ome-community-meeting-2020/day1/

Looks good.
Also just deployed https://github.com/ome/www.openmicroscopy.org/pull/378 there too.

Thanks all, merged as per email.


Registry push new images fail; pull & push old images work

Hello,
I have a private registry set up and have recently added token authentication. Since then, I am able to pull images just fine. I can also push images if no changes have been made. However, for some reason I cannot push new images. I see the token authentication working correctly, but the docker daemon returns unauthorized: access to the requested resource is not authorized.
This works (pulling image):
docker pull docker.djsdomain.com/nginxlb
logs:
time="2015-09-30T00:34:23.342064871Z" level=warning msg="error authorizing context: authorization token required" environment=comm http.request.host=docker.djsdomain.com http.request.id=1ab7ae41-f091-4931-9f14-e721b10aca11 http.request.method=GET http.request.remoteaddr=<IP_ADDRESS> http.request.uri="/v2/" http.request.useragent="docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64" instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 service=registry version=v2.1.1
<IP_ADDRESS> - - [30/Sep/2015:00:34:23 +0000] "GET /v2/ HTTP/1.0" 401 114 "" "docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64"
time="2015-09-30T00:34:24.404675555Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=400.545µs service=registry version=v2.1.1
time="2015-09-30T00:34:24.904817573Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=463.742µs service=registry version=v2.1.1
time="2015-09-30T00:34:25.228066514Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=383.052µs service=registry version=v2.1.1
time="2015-09-30T00:34:26.376398271Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=382.799µs service=registry version=v2.1.1
time="2015-09-30T00:34:26.378139972Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=330.828µs service=registry version=v2.1.1
time="2015-09-30T00:34:26.398979059Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=260.41µs service=registry version=v2.1.1
time="2015-09-30T00:34:26.540102392Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=311.222µs service=registry version=v2.1.1
time="2015-09-30T00:34:26.872992716Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=409.681µs service=registry version=v2.1.1
time="2015-09-30T00:34:26.885936308Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=286.13µs service=registry version=v2.1.1
time="2015-09-30T00:34:26.900131507Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=234.084µs service=registry version=v2.1.1
time="2015-09-30T00:34:27.053922649Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 redis.connect.duration=377.838µs service=registry version=v2.1.1
time="2015-09-30T00:34:27.489012757Z" level=info msg="response completed" environment=comm http.request.host=docker.djsdomain.com http.request.id=cb95bf14-fd36-462c-bac3-588daa60ab8c http.request.method=GET http.request.remoteaddr=<IP_ADDRESS> http.request.uri="/v2/nginxlb/manifests/latest" http.request.useragent="docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=3.89709066s http.response.status=200 http.response.written=55457 instance.id=bcc70f6e-be34-4535-a6b8-33db5ca1e317 service=registry version=v2.1.1
<IP_ADDRESS> - - [30/Sep/2015:00:34:23 +0000] "GET /v2/nginxlb/manifests/latest HTTP/1.0" 200 55457 "" "docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64"

This doesnt (pushing new image):
docker pull docker.djsdomain.com/gleaner
logs:
time="2015-09-30T00:46:06.153478919Z" level=warning msg="error authorizing context: authorization token required" environment=comm http.request.host=docker.djsdomain.com http.request.id=1ab9dc70-57c5-4a83-a96b-b31e8cddfb26 http.request.method=GET http.request.remoteaddr=<IP_ADDRESS> http.request.uri="/v2/" http.request.useragent="docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64" instance.id=fb3f5c85-1b1f-440f-a8cf-980693b3890b service=registry version=v2.1.1
<IP_ADDRESS> - - [30/Sep/2015:00:46:06 +0000] "GET /v2/ HTTP/1.0" 401 114 "" "docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64"
time="2015-09-30T00:46:06.449904999Z" level=info msg="redis: connect redis:6379" environment=comm instance.id=fb3f5c85-1b1f-440f-a8cf-980693b3890b redis.connect.duration=237.219µs service=registry version=v2.1.1
time="2015-09-30T00:46:06.789613017Z" level=error msg="response completed with error" auth.user.name=djenriquez environment=comm err.code="BLOB_UNKNOWN" err.detail=sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4 err.message="blob unknown to registry" http.request.host=docker.djsdomain.com http.request.id=6eaafbdb-723a-4fe9-9ffd-437c4b9a7596 http.request.method=HEAD http.request.remoteaddr=<IP_ADDRESS> http.request.uri="/v2/gleaner/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4" http.request.useragent="docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=342.124672ms http.response.status=404 http.response.written=157 instance.id=fb3f5c85-1b1f-440f-a8cf-980693b3890b service=registry vars.digest="sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4" vars.name=gleaner version=v2.1.1
<IP_ADDRESS> - - [30/Sep/2015:00:46:06 +0000] "HEAD /v2/gleaner/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4 HTTP/1.0" 404 157 "" "docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64"
time="2015-09-30T00:46:07.633475737Z" level=info msg="response completed" environment=comm http.request.host=docker.djsdomain.com http.request.id=8ae72b2e-7c65-42c9-9744-1ab7960a6202 http.request.method=POST http.request.remoteaddr=<IP_ADDRESS> http.request.uri="/v2/gleaner/blobs/uploads/" http.request.useragent="docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64" http.response.duration=726.028114ms http.response.status=202 http.response.written=0 instance.id=fb3f5c85-1b1f-440f-a8cf-980693b3890b service=registry version=v2.1.1
<IP_ADDRESS> - - [30/Sep/2015:00:46:06 +0000] "POST /v2/gleaner/blobs/uploads/ HTTP/1.0" 202 0 "" "docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64"
time="2015-09-30T00:46:07.673610623Z" level=warning msg="error authorizing context: authorization token required" environment=comm http.request.host=docker.djsdomain.com http.request.id=10736a0a-4476-4dfd-a916-05274a71fe3d http.request.method=PATCH http.request.remoteaddr=<IP_ADDRESS> http.request.uri="/v2/gleaner/blobs/uploads/b292f28a-bb0c-4c3e-a302-763e8d227abd?_state=lQoJCURMDOHJ5B9hFH4z4NVvYhJQD9y3aoPnvCHrHQR7Ik5hbWUiOiJnbGVhbmVyIiwiVVVJRCI6ImIyOTJmMjhhLWJiMGMtNGMzZS1hMzAyLTc2M2U4ZDIyN2FiZCIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNS0wOS0zMFQwMDo0NjowNi45MDk0MTY2NTRaIn0%3D" http.request.useragent="docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64" instance.id=fb3f5c85-1b1f-440f-a8cf-980693b3890b service=registry vars.name=gleaner vars.uuid=b292f28a-bb0c-4c3e-a302-763e8d227abd version=v2.1.1
<IP_ADDRESS> - - [30/Sep/2015:00:46:07 +0000] "PATCH /v2/gleaner/blobs/uploads/b292f28a-bb0c-4c3e-a302-763e8d227abd?_state=lQoJCURMDOHJ5B9hFH4z4NVvYhJQD9y3aoPnvCHrHQR7Ik5hbWUiOiJnbGVhbmVyIiwiVVVJRCI6ImIyOTJmMjhhLWJiMGMtNGMzZS1hMzAyLTc2M2U4ZDIyN2FiZCIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNS0wOS0zMFQwMDo0NjowNi45MDk0MTY2NTRaIn0%3D HTTP/1.0" 401 221 "" "docker/1.8.1 go/go1.4.2 git-commit/d12ea79 kernel/4.0.9-boot2docker os/linux arch/amd64"

returns:
bash-3.2$ docker push docker.djsdomain.com/gleaner
The push refers to a repository [docker.djsdomain.com/gleaner] (len: 1)
c2dce7213213: Pushing [==================================================>]     32 B/32 B
unauthorized: access to the requested resource is not authorized

Now, oddly enough, if the image already exists in S3 and no changes are made, it goes through the Image already exists and completes. Its only when there are changes where it fails.
Here are the logs from the authentication server, incase they're helpful:
I0930 00:47:27.582009       1 server.go:220] Auth request: {djenriquez:***@<IP_ADDRESS>:37572 {djenriquez pull,push repository gleaner}}
I0930 00:47:27.586096       1 server.go:103] Authn static djenriquez -> true, %!s(<nil>)
I0930 00:47:27.586165       1 acl.go:37] {djenriquez pull,push repository gleaner} matched {"Match":{"account":"djenriquez"},"Actions":["*"]}
I0930 00:47:27.586436       1 server.go:122] Authz static ACL {djenriquez pull,push repository gleaner} -> [pull push], %!s(<nil>)
I0930 00:47:27.595800       1 server.go:184] New token for {djenriquez:***@<IP_ADDRESS>:37572 {djenriquez pull,push repository gleaner}}: {"iss":"djsdomain ACME server","sub":"djenriquez","aud":"Docker Registry","exp":1443574947,"nbf":1443574046,"iat":1443574047,"jti":"6833611524882594851","access":[{"type":"repository","name":"gleaner","actions":["pull","push"]}]}
I0930 00:47:27.595879       1 server.go:250] {"token":"<Removing token for security -DJ>"}

And also my registry config:
version: 0.1
log:
  level: info
  formatter: text
  fields:
    service: registry
    environment: comm
storage:
  cache:
    blobdescriptor: redis
  s3:
    region: us-east-1
    bucket: docker.djsdomain.com
auth:
  token:
    realm: "https://dockerauth.djsdomain.com/auth"
    service: "Docker Registry"
    issuer: "djsdomain ACME server"
    rootcertbundle: /etc/docker/ssl/star_djsdomain_com.pem
http:
  addr: :5000
  secret: <my secret>
redis:
  addr: redis:6379

Any ideas why I can't push new images??

The issuer in your registry configuration and the auth server do not match (first character case is different).

Sorry @RichardScothern, that was me changing the actual values from whats really in my configuration. They do match though. I'll update the config to prevent confusion.

anyone else have any clues?

Can you inspect your token in the JWT debugger?
http://jwt.io/

Awesome tool, yes it returns:
{
  "iss": "djsdomain ACME server",
  "sub": "djenriquez",
  "aud": "Docker Registry",
  "exp":<PHONE_NUMBER>,
  "nbf":<PHONE_NUMBER>,
  "iat":<PHONE_NUMBER>,
  "jti": "4281520966297959696",
  "access": [
    {
      "type": "repository",
      "name": "gleaner",
      "actions": [
        "pull",
        "push"
      ]
    }
  ]
}

My setup is docker client --> AWS ELB (TLS termination) --> NGINX --> Registry (says need token) --> docker client --> https docker_auth --> docker client /w token --> Registry

Any thoughts?

I just grabbed a token used with the hub:
{
  "access": [
    {
      "type": "repository",
      "name": "library/hello-world",
      "actions": [
        "pull"
      ]
    }
  ],
  "aud": "registry.docker.io",
  "exp":<PHONE_NUMBER>,
  "iat":<PHONE_NUMBER>,
  "iss": "auth.docker.io",
  "jti": "nDdCUSzhexGScImCkimg",
  "nbf":<PHONE_NUMBER>,
  "sub": "richardscothern"
}

Your access section looks fine.  The verification of the remaining fields is detailed here
All I can recommend is

Strip away everything between your docker daemon and registry and retest.
Add some debugging to the registry to see what is going on.

@RichardScothern, I pulled the TLS termination off of the ELB and set it up to happen on the registry.
The ELB now just does a pure TCP passthrough, and this seems to have fixed the issue.
Apparently, somewhere down the line is a problem when performing pre-registry TLS termination and using an authentication server. If you need to use an authentication server, TLS termination must happen at the docker registry and not before it.
I think we can close this issue, unless you wish to investigate why pre-registry TLS termination does not work with token authentication.

Token auth and TLS are orthogonal concepts in the registry.   TLS is only required for basic auth where passwords are not encrypted.
I recommend adding back pieces of your stack until things break (starting with nginx).  There is a guide here