Styling the labels for a check box collection

I have a simple HABTM relationship between categories and fonts.  A category can have many fonts.  Anyway, in my form I want to display a list of all the fonts with a checkbox next to each of them so I can select the fonts for a category.
The catch is that I want to add the font class to the LABEL for each option so that it is applied.  In this case, the class is an attribute called class_name inside of the font model.
I have this:
= f.association :fonts

and have tried lots of things, including:
= f.association :fonts, :collection => Font.all.map { |o| [o.name, o.id, { :class => "#{o.class_name}" }] }, :as => :check_boxes

without luck.  How can I accomplish this?

So, I have scratched something to help handling such cases in SimpleForm, as you can see in e9bb32838bb7e09ff49d7226ee98acf28d4450d3. SimpleForm collection helpers are able to receive a block in the new 2.0.rc version, which means you should be able to do something like that with current master:
f.input :font_ids, :as => :check_boxes do
  f.collection_check_boxes :font_ids, Font.all, :id, :name do |b|
    b.check_box + b.label(:class => b.object.class_name)
  end
end

b is a special builder instance that gives you specific helpers to generate check box / radio button and label. Please check the docs/tests for more examples on that. Also make sure to use f.input with *_ids attribute instead of f.association, because the latter treats blocks as simple_fields_for calls.

Thanks man but I get this:
undefined method `check_box' for "font_ids_10":String
referring to this line
10: 				= b.check_box + b.label(:class => b.object.class_name)
Joshua Lippiner
Noctivity Inc.
<EMAIL_ADDRESS>.:<PHONE_NUMBER> tele
.:<PHONE_NUMBER> fax
On Feb 13, 2012, at 9:22 PM, Carlos Antonio da Silva wrote:

So, I have scratched something to help handling such cases in SimpleForm, as you can see in e9bb32838bb7e09ff49d7226ee98acf28d4450d3. SimpleForm collection helpers are able to receive a block in the new 2.0.rc version, which means you should be able to do something like that with current master:
f.input :font_ids, :as => :check_boxes do
 f.collection_check_boxes :font_ids, Font.all, :id, :name do |b|
   b.check_box + b.label(:class => b.object.class_name)
 end
end

b is a special builder instance that gives you specific helpers to generate check box / radio button and label. Please check the docs/tests for more examples on that. Also make sure to use f.input with *_ids attribute instead of f.association, because the latter treats blocks as simple_fields_for calls.

Reply to this email directly or view it on GitHub:
https://github.com/plataformatec/simple_form/issues/452#issuecomment-3953873

Are you sure b is the right builder inside f.collection_check_box block?
I've just created an example app with article + categories as example, using master, and it worked. Here is the usage:
    <%= f.input :category_ids, :as => :check_boxes do %>
      <%= f.collection_check_boxes :category_ids, Category.order(:name), :id, :name do |b|
        b.label { b.check_box + b.text }
      end %>
    <% end %>

And the ouput

   Category ids

      <input id="article_category_ids_4" name="article[category_ids][]" type="checkbox" value="4" />agile

      <input id="article_category_ids_2" name="article[category_ids][]" type="checkbox" value="2" />design

      <input id="article_category_ids_1" name="article[category_ids][]" type="checkbox" value="1" />development

      <input id="article_category_ids_5" name="article[category_ids][]" type="checkbox" value="5" />events

      <input id="article_category_ids_3" name="article[category_ids][]" type="checkbox" value="3" />project management

  <input name="article[category_ids][]" type="hidden" value="" />

Well something is up and most likely it's the version im on.
I'm running...
gem 'simple_form', '~> 2.0rc'
and when inspect "b" I get a string literal, like this - "font_ids_21" and not an object, which I believe I should be seeing.
Any thoughts?  Also, Im running HAML but that shouldn't make a difference.
J
On Feb 13, 2012, at 10:11 PM, Carlos Antonio da Silva wrote:

Are you sure b is the right builder inside f.collection_check_box block?
I've just created an example app with article + categories as example, using master, and it worked. Here is the usage:
   <%= f.input :category_ids, :as => :check_boxes do %>
     <%= f.collection_check_boxes :category_ids, Category.order(:name), :id, :name do |b|
       b.label { b.check_box + b.text }
     end %>
   <% end %>

And the ouput

  Category ids

     <input id="article_category_ids_4" name="article[category_ids][]" type="checkbox" value="4" />agile

     <input id="article_category_ids_2" name="article[category_ids][]" type="checkbox" value="2" />design

     <input id="article_category_ids_1" name="article[category_ids][]" type="checkbox" value="1" />development

     <input id="article_category_ids_5" name="article[category_ids][]" type="checkbox" value="5" />events

     <input id="article_category_ids_3" name="article[category_ids][]" type="checkbox" value="3" />project management

 <input name="article[category_ids][]" type="hidden" value="" />

Reply to this email directly or view it on GitHub:
https://github.com/plataformatec/simple_form/issues/452#issuecomment-3954313

Ah, you have to bundle from master to test it, I did that change yesterday. I think I didn't mention that, sorry :D

Ahh - not sure I've done that before :)  So I cant use bundler for this?
Best,
J
Joshua Lippiner
Noctivity Inc.
<EMAIL_ADDRESS>.:<PHONE_NUMBER> tele
.:<PHONE_NUMBER> fax
On Feb 14, 2012, at 4:26 AM, Carlos Antonio da Silva wrote:

Ah, you have to bundle from master to test it, I did that change yesterday. I think I didn't mention that, sorry :D

Reply to this email directly or view it on GitHub:
https://github.com/plataformatec/simple_form/issues/452#issuecomment-3957561

Yeah, you just need to give the :git option to gem in your Gemfile, instead of a specific version. Like this:
gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'

More info.

ahh - ill give that a try in a bit.  I see what you are saying now :)
Joshua Lippiner
Noctivity Inc.
<EMAIL_ADDRESS>.:<PHONE_NUMBER> tele
.:<PHONE_NUMBER> fax
On Feb 14, 2012, at 9:50 AM, Carlos Antonio da Silva wrote:

Yeah, you just need to give the :git option to gem in your Gemfile, instead of a specific version. Like this:
gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'
More info.

Reply to this email directly or view it on GitHub:
https://github.com/plataformatec/simple_form/issues/452#issuecomment-3962089

It works!  Thanks!
Joshua Lippiner
Noctivity Inc.
<EMAIL_ADDRESS>.:<PHONE_NUMBER> tele
.:<PHONE_NUMBER> fax
On Feb 13, 2012, at 9:22 PM, Carlos Antonio da Silva wrote:

So, I have scratched something to help handling such cases in SimpleForm, as you can see in e9bb32838bb7e09ff49d7226ee98acf28d4450d3. SimpleForm collection helpers are able to receive a block in the new 2.0.rc version, which means you should be able to do something like that with current master:
f.input :font_ids, :as => :check_boxes do
 f.collection_check_boxes :font_ids, Font.all, :id, :name do |b|
   b.check_box + b.label(:class => b.object.class_name)
 end
end

b is a special builder instance that gives you specific helpers to generate check box / radio button and label. Please check the docs/tests for more examples on that. Also make sure to use f.input with *_ids attribute instead of f.association, because the latter treats blocks as simple_fields_for calls.

Reply to this email directly or view it on GitHub:
https://github.com/plataformatec/simple_form/issues/452#issuecomment-3953873

Awesome, thanks.

Anyone know why I get this output:

 Health potion option ids

        <input type="checkbox" value="2" name="order[health_potion_option_ids][]" id="order_option_ids_2">Add more caffeine

I am doing this, as stated above but I am getting double labels:
<%= f.input :category_ids, :as => :check_boxes do %>
  <%= f.collection_check_boxes :category_ids, Category.order(:name), :id, :name do |b|
    b.label { b.check_box + b.text }
  end %>
<% end %>
```

using simple_form (3.1.0)
rails 4.2

@digitalecho please try sending your question to the mailing list, there are more people there that might help.

same issue as @digitalecho here, did you figure it out?

I'm having the same issue, labels get doubled trying to manually render labels

@aaronmcadam could you provide a sample app showing the issue? Please feel free to open a new issue with the app then, thanks.

Hi @carlosantoniodasilva, thanks for replying. I've created a new issue. It looks like the issue happens when using haml.


Steps to cancel are not valid

The instructions for cancelling is not uptodate. The labels have changed text, for example "All billing subscription" does not exist anymore

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

ID: e76ce485-5a06-add0-76a3-b823fb6c3c7a
Version Independent ID: af78deae-d409-6261-a817-b504965d1988
Content: Cancel your Azure subscription - Microsoft Cost Management
Content Source: articles/cost-management-billing/manage/cancel-azure-subscription.md
Service: cost-management-billing
Sub-service: billing
GitHub Login: @bandersmsft
Microsoft Alias: banders

Thanks @shorinji, I have assigned the issue to the content author to investigate further and update the document as appropriate.

https://github.com/MicrosoftDocs/azure-docs-pr/pull/231480


Add method to remove from redis

I added a new method to remove data from redis. My use case is when I try to connect to a team that has bad credentials, I'd like to remove that team so I don't try to connect again the next time my bot restarts. I think my test case could use some help though. I wasn't familiar with some of the concepts in there so I'd like to open this as a starting point in the conversation.

I added a comment on the PR on the main botkit repo, but thought I would comment here too since the other one was closed.
I'd think if we want to support delete for one storage mechanism, we'd want to support it for all "official" storage modules, so it's probably a larger conversation than just this repo.


Mention Spawning AI’s ai.txt file

tl;dr: independent body suggests adding new file to site root directory to ask organizations that use AI for text and data mining (TDM) to NOT use site data for training purposes.
From their FAQ:

An ai.txt file is a simple text file placed in the root directory (or .well-known/) of your website that communicates with data miners. It provides instructions on whether the text and media files hosted on your domain can be used to train commercial AI models.

An example file I created:
# Spawning AI
# Prevent datasets from using the following file types

User-Agent: *
Disallow: /
Disallow: *

PS: Thanks for this project 💖

Resources:

ai.txt: A new way for websites to set permissions for AI
About Spawning AI

Just updated the readme and added an ai.txt to the repository. Cheers!


chore(deps): upgrade configuration

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-configuration-k8s-25-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2334

Questions ?
Please refer to the Backport tool documentation


Delta LM model checkpoint

I have explored the possibility of using the DeltaLM model in performing multilingual abstractive summarization. The paper has demonstrated a SOTA performance in this task. Would you mind letting me know if the trained checkpoint for such a task is available? I appreciate your attention to this matter.

Hi, thanks for the interest in our work. Unfortunately, we don't have any plan to release the checkpoints finetuned on the downstream tasks. Yet, both the pretrained DeltaLM and the dataset in our paper are public available, so it should be not difficult to reproduce the results in the paper.

Hey @shumingma I have one small query though, Can you pls tell me where I can find name of all languages(100+ as per paper) ?
As I want to finetune deltaLM for translation of below languages..
German
Russian Spanish
Chinese
French
Finnish
Swedish
Polish
Dutch
Portuguese
Slovak
Hungarian
Indonesian
Italian
Danish
Romanian
Serbian
Norwegian
Czech
Slovenian
Looking forward to your response..
Thanks

Hi @yugaljain1999, DeltaLM supports the same languages as InfoXLM. You can find those languages in the appendix of InfoXLM paper.

@shumingma Okay got that. Just one more query, I am struggling to write proper inference script for DeltaLM model inference.
So can you pls refer  what command we should use to test inference one to one of DeltaLM on input as plain text and output as translation? Like you mentioned for evaluation on test set.
It would be really appreciable.
Thanks


fix: reduce deprecated api and node warnings

Fix the warning on node.js 20
You did not run Node.js with the `--conditions react-server` flag. Any "react-server" override will only work with ESM imports.

And deprecated API on node.js 18
(node:14372) DeprecationWarning: Obsolete loader hook(s) supplied and will be ignored: getSource, transformSource

I understand the Node 18 warning, but how the Node 20 warning happens? Are we not use ESM imports?

I understand the Node 18 warning, but how the Node 20 warning happens? Are we not use ESM imports?

This is complex. i read the nodejs source code. Reason is conditions will not pass to the esm module in worker thread. BUT, cjs will. So in the first time, require(react) is in correct condition(used in webpack source code). Second time when you import react-server-webpack, it’s not react-server condition actually

https://github.com/dai-shi/waku/actions/runs/7012521326/job/19077187950?pr=183
Do you know why CI timeouts sometimes?

dai-shi/waku/actions/runs/7012521326/job/19077187950?pr=183 Do you know why CI timeouts sometimes?

There might be some flaky. or in some cases, CI is slower than usual cause the build is overdue. Let me debug it

could you run that again with debug log?
I will go to dinner now. do this later

Will rebase this later


Add Rust language build support

There is now a Rust docker container that builds RISC-V Rust projects.

We can close this as completed?


Using HPA with solr-operator

Is your feature request related to a problem? Please describe.
Perhaps some documentation on how to best use Horizontal Pod Autoscaler with solr-operator.
Curious, if anyone has tried this in production and what sort of results they have seen. HPA does work with StatefulSets and is able to scale down healthy nodes, but does SolrCloud handle this gracefully?
Describe the solution you'd like
Some documentation based upon end user experience with auto-scaling solrcloud on k8s with solr-operator. Some example HPA configs if that is a good option

My first thought regarding HPA.
The biggest issue with scaling down nodes is that we would need to use the Solr Collections APIs to remove and replicas from the Solr nodes that are being removed. Not sure how we would integrate with the stateful set scaling.
It would be awesome to get the operator to work well with autoscaling though, seems like one of the biggest feature requests from almost everyone I've talked to.

That makes sense. Perhaps we do a built in scaling solution within the solr-operator then? I don't think we have to feel forced to use HPA. Other projects like CoreDNS use their own built in kube-dns autoscaler and don't rely upon HPA for scaling.

Integrating Operator with AutoScaling framework I think is the way forward. We probably don't want some outside process to add and remove PODs at will? There are three levels of scaling at play here (at least):
Level 1: Nodes (One per host/VM)
Level 2: Pods (One per Solr node)
Level 3: Shards/Replicas/Cores (several per Pod)
Now, AutoScaling assumes a stable number of Nodes and Pods, and will create/remove/move cores around in the Solr cluster depending on CPU, disk, load. In the future, try to balance things out.
So what if AutoScaling could provide an API where it publishes its "external" wishes. I.e. if AutoScaling sees too full disks or too high latency, and cannot compute a plan inside the current Solr cluster to fix it, it could publish something like this:
{ "tooFewNodes": true, "tooManyNodes": false, "avgCpuPct": 80, "memoryPressurePct": 75, "diskFillRatePct": 40 }

With such feedback, the Operator could make decisions on adding Pods (or asking external system to add more VMs), or to reconfigure Pod size depending on memory, disk or CPU pressure in the cluster. No need to start more Pods if all you need is some more disk.

Thanks for the overview! I think we can close this and focus on the points discussed. The K8s HPA is probably out of scope for this problem


ionic 2: Space between ion-items in dynamic generated ion-list

How to remove space between list-items, in dynamic generated list as following:
	<ion-list *ngFor="let a of [{name: 'AAA'},{name: 'BBB'}]">
		<ion-item>
			{{a.name}}
		</ion-item>
	</ion-list>

Hello! Thanks for opening an issue with us! As this seems like more of a support question i will urge that you ask this question on our forum. Thanks for using Ionic!


Add a sub-page on how to enable the usage of the Manage API Snapshots app

Issue description
I think it would be beneficial for users to be able to know which business role template or business catalog ID they need in order to access the Manage API Snapshots app. Maybe a page similar to Enable Usage of the ABAP Test Cockpit Configurator App?
Feedback Type (Optional)
clarity
Page Title on SAP Help Portal (prefilled)
Manage API Snapshots
Page URL on SAP Help Portal (prefilled)
https://help.sap.com/docs/btp/sap-business-technology-platform/manage-api-snapshots

Thank you for your feedback! We’ll look into it and come back to you if we have any questions.

Hi everyone,
I've added the subpage. Thank you for the suggestion!
Best regards,
Yasmina


use app.baseURL to allow installing application in subfolder

Describe the feature
When setting https://nuxt.com/docs/api/configuration/nuxt-config#baseurl it is not possible to configure nuxt-auth working.
If trying to configure origin or basePath for nuxt-auth, they just introduce bunch of new problems.
Easiest would be that nuxt-auth respects the nuxtjs app.baseURL property for the auth paths as well as redirect urls.
this configuration should work out of the box:
export default defineNuxtConfig({
  app: {
    baseURL: '/myapplication/',
  },
  modules: [
    '@sidebase/nuxt-auth'
  ]
})

Additional information
No response

Hi @kvanska 👋
I understand the confusion. We are currently using basePATH and origin to compose the NEXTAUTH_URL. We therefore pass the values to AuthJS behind the scenes and do not handle it ourselves.
The basePath therefore does not refer to the file structure, but the structure of the application once it is started.
If you have an idea of how we could handle this (To make it make sense in a Nuxt way and a AuthJS way) feel free to open a PR and I will get around to reviewing it! We always love when our community members help us improve nuxt-auth.
I hope my explanation made sense 😊, if you have any other questions for concerns feel free to reach out!

I will be closing this issue as there has not been any progress here. Please reopen it if the issue still consists!


Use scf variable names to allow for easier kubecf upgrade experience.

@viovanov may have a solution to convert this via the operator.

We also need to consider Stratos secrets and configurations compatability when upgrading to V3

Closing for now since scf migration to kubecf will go through backup/restore cli. Will watch if variable names need to be changed but we can open a new issue if necessary.


TS Proposal : "Interface incorrectly extends interface" - sub-interface method overload OR override ?

TypeScript Version :  2.6.2
The problem
Initial scenario
I encountered the issue yesterday days as I was trying to add some features to one of my interface inheritance chain. The context of this example is just imagined : It is longer than needed to demonstrate the issue, but I wanted a full example to clearly show it needs to be addressed.
So, let's imagine a testing app that should instrument devices : the following is a potential model of the situation :
interface Stream
{
}
interface InputStream
{
}
interface OutputStream
{
}
// interface inheraitance is a great feature
interface IOStream extends InputStream, OutputStream
{
}

interface InterfaceLike
{
}
interface DeviceInterfaceLike extends InterfaceLike
{
    init();
}
interface InputDeviceInterfaceLike extends DeviceInterfaceLike
{
    input(); // this should word just like the `touch` command
             //     like if there's and error with the device, it will trigger exception
    input(stream: InputStream);
}

interface ScreenDeviceInterfaceLike extends InputDeviceInterfaceLike
{
    input(stream: InputStream, coordinates: {x: number, y: number});
}
interface TouchScreenDeviceInterfaceLike extends InputDeviceInterfaceLike
{
    input(stream: IOStream, coordinates: {x: number, y: number});
}

Expected behavior :
It should just overload that method in the sub-interfaces.
Actual behavior :
error TS2430: Interface 'ScreenDeviceInterfaceLike' incorrectly extends interface 'InputDeviceInterfaceLike'.
  Types of property 'input' are incompatible.
    Type '(stream: InputStream, coordinates: { x: number; y: number; }) => any' is not assignable to type '{ (): any; (stream: InputStream): any; }'.
core.ts(73,11): error TS2430: Interface 'TouchScreenDeviceInterfaceLike' incorrectly extends interface 'InputDeviceInterfaceLike'.
  Types of property 'input' are incompatible.
    Type '(stream: IOStream, coordinates: { x: number; y: number; }) => any' is not assignable to type '{ (): any; (stream: InputStream): any; }'.
18:38:26 - Compilation complete. Watching for file changes.

It requires me to fully copy paste all method signatures in each interface.
interface ScreenDeviceInterfaceLike extends InputDeviceInterfaceLike
{
    input(); // this should word just like the `touch` command
             //     like if there's and error with the device, it will trigger exception
    input(stream: InputStream);
    input(stream: InputStream, coordinates: {x: number, y: number});
}
interface TouchScreenDeviceInterfaceLike extends InputDeviceInterfaceLike
{
    input(); // this should word just like the `touch` command
             //     like if there's and error with the device, it will trigger exception
    input(stream: InputStream);
    input(stream: IOStream, coordinates: {x: number, y: number});
}

When you're can have up to (why not) 15 overloads distributed through inheritance chain... It becomes, (yes, you said it) bulky.

Now it is, that the compiler cannot yet figure out when to override the method signatures inherited from parents and when to overload them.
The Proposal
My first thought was to introduce a new keyword just like @ts-nocheck and like.
@override
interface InputDeviceInterfaceLike extends DeviceInterfaceLike
{
    @override // to override all definitions from parents
    init(istream: InputStream);
}

OR
interface InputDeviceInterfaceLike extends DeviceInterfaceLike
{
    @override
    {
        init(); // to override only this (these) definitions : forget all previous definition but this (these)
    }
    init(istream: InputStream);
}

Then, the TouchScreenDeviceInterfaceLike interface would become :
interface TouchScreenDeviceInterfaceLike extends InputDeviceInterfaceLike
{
    @override   // it is now clear that the only way to instrument a touchscreen is to provide a `IOStream` and coordinates (`{x: number, y: number}`)
    input(stream: IOStream, coordinates: {x: number, y: number});
}

Furthermore, @overload
While the previous @override is useful when the default behavior is oveloading, we can still define the default behavior to suppress all parent definition WHEN A METHOD IS REDEFINED in subinterface, except when @overload is used. i.e
interface InputDeviceInterfaceLike extends DeviceInterfaceLike
{
    // to override all definitions from parents
    init(istream: InputStream);
}

OR
interface InputDeviceInterfaceLike extends DeviceInterfaceLike
{
    @overload // to overload signatures from parents
    init(istream: InputStream);
}

And TouchScreenDeviceInterfaceLike interface can become :
interface TouchScreenDeviceInterfaceLike extends InputDeviceInterfaceLike
{
    @overload                           // to overload signatures from parents
    {
        init(istream: InputStream);     //      except this signature... So that it remains only the empty parameter and the below
    }
    input(stream: IOStream, coordinates: {x: number, y: number});
}

By thinking rigorously, I think the first step would be allow inheriting type to overload methods by default.
= = = = = = UPDATE = = = = = =
I now think it worth to add that by no mean, all through an interface inheritance chain should a method be completely wiped off (deleted, removed)... Not even by @Override! As this may (will) break the core concept of OOP inheritance.
The mechanism is to ensure that only some methods mood (signatures) are handled (accepted) at a given inheritance node.
In other words, if @Override suppresses all signatures, at least one method signature MUST be required.

This issue is also applicable for enums that are overridden.
interface BaseType
{
    allowedSounds: 'BARK' | 'MOO';
}
interface DerivedType extends BaseType
{
    allowedSounds: 'BARK' | 'MOO' | 'CAW';
}

This currently results in the following error:
Interface 'DerivedType' incorrectly extends interface 'BaseType'.
  Types of property 'allowedSounds' are incompatible.
    Type '"BARK" | "MOO" | "CAW"' is not assignable to type '"BARK" | "MOO"'.
      Type '"CAW"' is not assignable to type '"BARK" | "MOO"'.

But from a language point of view, it is a totally legit expectation to be able to override enums in DerivedTypes.

But from a language point of view, it is a totally legit expectation to be able to override enums in DerivedTypes.

This is a correct error. DerivedType is not a BaseType because a piece of code looking at a DerivedType through a BaseType reference does not expect to see the value CAW.

@RyanCavanaugh Actually on second thought, I agree with you. I myself was feeling conflicted about it, but wrote that out anyway.

I now think worth to add that by no mean, all through an interface inheritance chain should a method be completely wiped off (deleted, removed)... Not even by @Override!
The mechanism is to ensure that only some methods mood (signatures) are handled (accepted) at a given inheritance node.

As I think over it... I realize that this will conflict with some end-user decorator named Override. While any, keyof and some other strings are being reserved as TypeScript keyword... I suggest and alternative.
@!Override or just !Override(why not)
This is non conflicting as it is current a syntax error.

I've got some react props along the lines of:
IValidationTextAreaProps extends IAutoSizeTextAreaProps extends HTMLProperties<HTMLTextArea>
It's really annoying having to use three different names for the onChange listener.
HTMLTextarea has onChange as (event) => boolean
AutoSizeTextAreaProps has onValueChange as (newVal) => void
and I'm having to come up with yet another contrived name for ValidationTextAreaProps.
Obviously there should be some indicator that you're accepting responsibility for the override, but it's not like this isn't possible in js or something.

Maybe we can just using an custom type to resolve it:
type ProtoExntends<T, U> = U & {
  [P in Exclude<keyof T, keyof U>]: T[P];
};

And for the example usage:
interface Parent {
  aaa: number;
  bbb: number;
  // .
  input(stream: {}): void;
  allowedSounds: 'BARK' | 'MOO';
}
interface ChildExtends {
  aaa: string;
  ccc: string;
  // .
  input(stream: {}, coordinates: {x: number; y: number}): void;
  allowedSounds: 'BARK' | 'MOO' | 'CAW';
}
type Child = ProtoExntends<Parent, ChildExtends>;

It looks everything works well as the screenshots shows:


IllegalAccessError is thrown when Jest tries to access internal deepCopy method com.google.gson.JsonObject class

I am using Jest client to work with Elasticsearch from inside Spark application. While it runs as expected when executing Spark in local mode, it fails in cluster mode with the following exception:

Exception in thread "main" java.lang.IllegalAccessError: tried to access method com.google.gson.JsonObject.deepCopy()Lcom/google/gson/JsonObject; from class com.google.gson.GsonUtils
at com.google.gson.GsonUtils.deepCopy(GsonUtils.java:8)
at io.searchbox.core.SearchResult.extractHit(SearchResult.java:114)
at io.searchbox.core.SearchResult.getHits(SearchResult.java:82)
at io.searchbox.core.SearchResult.getHits(SearchResult.java:63)
at io.searchbox.core.SearchResult.getHits(SearchResult.java:59)

There was a commit cdd62a816a01b0d9d11262792e685396ab208e74 made on Dec 26, 2015 that introduced GsonUtils class that simply calls package level deepCopy method of com.google.gson.JsonObject class by simply defining GsonUtils in com.google.gson package. It seems like a not very good practice to access internal methods. It may cause problems when using multiple classloaders (just like with Spark example above).

See the discussion that lead me to create that utils class here: https://github.com/google/gson/issues/760

Do you think it's a good idea to still call non public methods through defining gson package in Jest? Isn't it better to use some other way to clone objects that does not cause any exceptions?

See the discussion that lead me to create that utils class here: google/gson#760
I am confused. You prefer to allow exceptions to one additional dependency?

As you mentioned the issue occurs only under certain environments ("when using multiple classloaders (just like with Spark example above)") which I would guess is not the prominent use case for this library. This decreases the severity of the exception in the big picture. On the other hand you are suggesting to introduce a new dependency which will come with it's own baggage of possible bugs and maintenance needs, which makes it a "load" (or debt if you will) on the whole project.
Considering the above pro/con comparison it makes more sense (at least maintenance-wise) to not take this suggested fix into the project.
And to answer your question, no I don't think the existing utils class is a good solution, it is simply a workaround. I'd be more than happy to replace it with a similarly light weight solution.

Makes sense. I have found another solution to this problem. Please, see pl https://github.com/searchbox-io/Jest/pull/353


Support comma separated "proxyListener" parameter in ConnectionFactoryProvider

Hi, this is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before or even folks who haven't contributed to open source before.
If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!
If you have contributed before, consider leaving this one for someone new, and looking through our general ideal-for-contribution issues. Thanks!
Background
R2DBC's ConnectionFactories is the gateway to obtain a ConnectionFactory from a ConnectionFactoryOptions object. ConnectionFactoryOptions is a configuration object that holds the connection configuration in order to obtain a ConnectionFactory from the appropriate driver.
In r2dbc-proxy, io.r2dbc.proxy.ProxyConnectionFactoryProvider is the class that receives ConnectionFactoryOptions and produce ConnectionFactory.
Problem
ConnectionFactoryOptions can be constructed by parsing a connection URL string or by programmatically.
For example with this URL:
r2dbc:proxy:postgresql://user@pass:localhost:5432/test-db?proxyListener=com.example.ListenerA,com.example.ListenerB

The parser will generate an Option object where key is proxyListener and value is String of  com.example.ListenerA,com.example.ListenerB.
Current implementation of io.r2dbc.proxy.ProxyConnectionFactoryProvider is NOT supporting comma separated list of class names when it handles proxyListener parameter.
Solution
io.r2dbc.proxy.ProxyConnectionFactoryProvider should accept comma separated String value for proxyListener parameter.
When proxyListener option value is a String, treat it as a comma separated list of listener class names.  Iterate over each of those listener class names. They need to be instantiated and registered as proxy listeners.
Steps to fix

[x] Claim this issue with a comment below and ask any clarifying questions you need.
[ ]  Set up a repository locally following the Contributing Guidelines.
[ ]  Try to fix the issue following the steps above.
[ ]  Commit your changes and start a pull request.

Deliverables

[ ]  Changed io.r2dbc.proxy.ProxyConnectionFactoryProvider
[ ]  Changed unit test io.r2dbc.proxy.ProxyConnectionFactoryProviderTest
[ ]  Changed README.md - description of connection discovery options

related PR: https://github.com/r2dbc/r2dbc-spi/pull/48
related issue: https://github.com/r2dbc/r2dbc-spi/issues/37

I can take it

Great! Thank you. Please let us know if you have any questions.

@ttddyy @mp911de  what is expected behavior in case a user specifies two identical listeners: proxyListener=com.example.ListenerA,com.example.ListenerA.
Do we need to deduplicate it or handle it as a valid case?
In current implementation if a user sets a collection of listeners and it contains duplicates, they will be added to CompositeProxyExecutionListener and because listeners stores in ArrayList, the listener's logic will be executed as many times as there were duplicates.

Hi @viartemev
Thanks for grabbing this issue.
I think it is ok to handle it as a valid configuration, and registers duplicates listeners.
I don't have a concrete usecase for registering same listeners, but rather than framework performs de-dupe, it is better to behave as what user specified.


keep getting "Cannot GET /picker-popup.html?"

Hey guys, thanks for the awesome project.
I try it by the instructions , but i keep getting this error, "Cannot GET /picker-popup.html?",
so why my project keep to fetch template /picker-popup.html while your demo not?

Hi, just a sole gal here :-)
It seems you are using files from src folder. In that case you have to change templateUrl property in picker.js file on line 23 to your actual location. It is preferred to use files from release folder which work out of the box on any setup.


🧪 Mad Science Project Idea: Simple Twitter with Attestations

What is an Mad Science Project Idea?
A Mad Science Project Idea is an idea for a project within the Optimism ecosystem that may not have clear value but is generally cool as heck. Mad Science Project Ideas make great hackathon projects and tend to be a great way to explore Optimism, OP Mainnet, and the OP Stack.

Summary
This project involves creating a simple Twitter clone but with a twist - we'll be using attestations and the AttestationStation smart contract. In this clone, usual Twitter interactions, such as liking, following, and tweeting, will be implemented as attestations. This project aims to demonstrate the functionality of attestations through a popular social media platform's model.
Possible Features

Implement the ability for users to 'like' tweets, represented as an attestation. This shows how a simple interaction on the platform can be modeled.
Include the feature for users to retweet. This attestation captures the process of content sharing within the network.
Implement 'following' other users as an attestation, this shows how relationships and interests can be represented.
The ability to 'tweet' or post messages. Each tweet is an attestation, representing a content contribution by a user to the network.

Impact

This project is fun and educational. It provides a hands-on exploration of attestations.
By implementing a Twitter-like platform using attestations, we demonstrate the power and versatility of attestations in a practical and relatable context.
This project provides a solid foundation for further contributions. Other developers could build on it, either by adding more features or scaling it up.

Hello @smartcontracts,
I'm Chimpy Dev, and I must say, this proposal aligns perfectly with my interests and skills! Building a Twitter on-chain app sounds like an exciting challenge that I'm eager to take on.
I'm excited about the possibilities of this project and can't wait to get started. Looking forward to discussing the next steps and making this Twitter on-chain app a reality!
Best regards


Option 'token' is deprecated. Use 'apiKey' instead.

While using token as described in the configuration example -> https://github.com/reportportal/examples-js/blob/main/example-webdriverio/examples-webdriverio-mocha/wdio.conf.js
Everything is working but receiving annoying warn message to use apiKey instead, whenever I set apiKey instead of token I receive an error:
ReportPortalRequiredOptionError:
ReportPortal client error:
Validation failed. Please, check the specified parameters:
Property 'apiKey' must not be empty.
    at getApiKey (path/node_modules/@reportportal/client-javascript/lib/commons/config.js:25:13)
    at getClientConfig (path/node_modules/@reportportal/client-javascript/lib/commons/config.js:40:20)
    at new RPClient (path/node_modules/@reportportal/client-javascript/lib/report-portal-client.js:34:19)
    at new Reporter (path/node_modules/@reportportal/agent-js-webdriverio/src/reporter.ts:57:19)
    at BaseReporter._loadReporter (file://path/node_modules/@wdio/runner/build/reporter.js:161:20)
    at Array.map (<anonymous>)
    at BaseReporter.initReporters (file://path/node_modules/@wdio/runner/build/reporter.js:23:68)
    at Runner.run (file://path/node_modules/@wdio/runner/build/index.js:70:30)

wdio.config
const rpConfig = {
  apiKey: 'my_token',
  endpoint: 'url/api/v1',
  project: 'xxx',
  launch: `Launch name`,
  mode: 'DEFAULT',
  debug: false,
  attributes: [{ key: 'Platform', value: process.env.ENV }],
  attachPicturesToLogs: true,
  reportSeleniumCommands: false,
  seleniumCommandsLogLevel: 'info',
};

Having the same issue.

Hi guys!
Thanks for pointing that.
Fix is on the way!
So until the release please use the token option as a workaround.

@MadSandwich, could you clarify the problem?
With version 23.2, ReportPortal (RP) transitioned from using tokens to API keys. Previously, tokens had a one-to-one relationship with each account. Now, API keys can support many-to-one relationships (multiple keys linked to a single account).
For older versions, you can still enter the API key into the token field. However, the newer versions of the JavaScript (JS) agents require an API key field in the configuration instead of a token field.
It's likely you can continue using the token field for now, but you'll be prompted to switch to an API key eventually.
For compatibility with the latest version of RP, we suggest updating to the newest version of the RP JavaScript libraries.
Please let me know if my understanding of your issue is incorrect.

Fixed in version 5.1.0.


We should cleanup YOLayout methods.

Lots of methods I'm not sure if we need them or what they really do?
We could nuke:
- (CGRect)setFrame:(CGRect)frame view:(id)view needsLayout:(BOOL)needsLayout;
What do these really do? I forget:
- (CGRect)setFrameInRect:(CGRect)inRect view:(id)view;
- (CGRect)setX:(CGFloat)x frame:(CGRect)frame view:(id)view; (Why not user setOrigin?)
- (CGRect)setY:(CGFloat)y frame:(CGRect)frame view:(id)view; (Why not user setOrigin?)
And some deprecated ones.
We should do some examples/documentation for:
- (CGRect)setFrame:(CGRect)frame inRect:(CGRect)inRect view:(id)view options:(YOLayoutOptions)options;
Cause that can be useful sometimes but it's hard to grok.

Totally agree here.
I also wonder if we could rename setFrame:inRect:view: to something that doesn't show up at the top of the autocomplete. I think most of the time you want setFrame:view:options: or setFrame:view:sizeToFit, not any of the others.


Cannot add Prism.Validation to my Prism Xamarin project

Hi,
I have a Prism Xamrin poroject targeting Android, iOS and UWP.
I'm trying to add a reference to this package in the portable project, and I get the following error:

install-package : Could not install package 'System.ComponentModel.Annotations 4.3.0'. You are trying to install this package into a project that
targets '.NETPortable,Version=v4.5,Profile=Profile259', but the package does not contain any assembly references or content files that are compatible
with that framework. For more information, contact the package author.

I tried following the first instruction from here:

Use in your PCL Profile Profile7 (Set in your .csproj<TargetFrameworkProfile>Profile7</TargetFrameworkProfile>)

But haven't found the TargetFrameworkProfile property in the portable project's csproj file.

Desn't matter, but what might matter is I'm on VS 2017 RC .NET Framework 4.6.2.
When you're creating a new Prism project in VS 2015 targeting Droid, iOS and UWP, does it work?

The quoted instructions are related to the Prism.Validation <IP_ADDRESS>. I'm sorry that I didn't explain that better in the Readme.md. I updated it with the last commit.

When you're creating a new Prism project in VS 2015 targeting Droid, iOS and UWP, does it work?

I haven't used or tested the Prism.Validation for Xamarin Forms. But you are able to convert your Xamarin.Forms App project from PCL to .NetStandard with this guide https://oren.codes/2016/07/09/using-xamarin-forms-with-net-standard/.
By setting "imports": "portable45-net45+win8+wp8+wpa81" in the project.json you are able to reference the required PCL dependencies like Prism.Core.
Since .NetStandard provides System.ComponentModel.Annotations you should be able to install Prism.Validation into your XF project.
I hope this helps!
Unfortunately I can't create any XF Projects since my last Xamarin update broke my Visual Studio. I'll fix that soon.

The problem is that Prism won't support .NET standard until version 2.0 is released :broken_heart:

@weitzhandler Using the latest version of Prism and Prism.Validation fixes this issue (as they are targeting .NETStandard)


Any plan to support the persistent watch?

All content will disappear after neovim exits. Could we save the content and load them after we reopen the neovim?

I'll have to think about this one, I may want to do some other refactoring work that I've been planning before this as right now it's not very easy to add this


[bug] @eth-bot gives EIP file name error problem for new submission

this is a wrapper issue due to it being posted in EIPs instead of EIP-Bot
https://github.com/ethereum/EIPs/issues/4398

this has been addressed here: https://github.com/ethereum/EIP-Bot/commit/787c496bc177841ab61e901780765879cc58d19a


WorldBoundaryShape3D is not infinite

Tested versions

Reproducible in: 4.2.1 (stable)

System information
Windows 11, AMD Ryzen 9 6900HS, AMD Radeon RX 6700S
Issue description
The WorldBoundaryShape3D does not extend forever (or close to forever). It only extends out to about 10,000 meters (units?) and the WorldBoundaryShape3D doesn't have an option to extend past that. The Godot docs state that the WorldBoundaryShape3D, "can for example be used for endless flat floors." When the world boundary only extends out to 10,000 meters, it is far from endless. The only alternative is a collision shape set to a very large size. Expected behavior would be the world boundary shape extending out to a much more significant distance, such as 100,000 or even larger.
Steps to reproduce
Create a collision shape with WorldBoundaryShape3D and attempt to collide at large distances (or past 10,000 meters)
The minimal reproduction product raycasts until the raycast fails to collide with the WorldBoundaryShape3D. Check output to see position of successful raycasts and the exit message when a raycast fails to hit.
Minimal reproduction project (MRP)
infinite plane raycast test.zip

WorldBoundaryShape3D is a Plane so it is infinite but what is not infinite is the setup of the GodotWorldBoundaryShape3D for the server internal physics solver calculation.
For reasons that at least I do not understand some of the values are set very low, e.g. the physics AABB is set to -1e4 to 1e4 (which is -10000 to 10000) and so if something does not hit the AABB the shape gets ignored in the physics solver.


Proper Markdown message building

Building markdown messages consists of a few convenience functions that simply concatenate strings in a very inefficient manner.
This can be improved (readability, performance etc.), maybe Blaze has some interesting ideas?

It might be possible to make message shortening smarter if it can work on an AST - shortening only the displayed content without touching the markup if possible.
This way we would actually shorten the displayed content and not mangle the markup which leads to broken/no markup.
Not considering markup within the message yet, which would require parsing markdown and also make the shortening logic more complicated.
The content size can still not be calculated accurately, e.g. when images are embedded.


Could you also share your simulation files?

Hello, it is really nice work, and extremely inspired my work. I want to reproduce this research, but unfortunately, I do not have a panda robot. So, can you also share your files used in simulation? That will exactly help me a lot.

Hi, I'm afraid I don't really have any simulation for this.


Pandas UDF Failure

Describe the bug
When trying to create a PANDAS UDF to run the latest GPT3.5Turbo API via Azure openAI completion function it gives an error regarding missing key.
To Reproduce
Code snippets
#!pip install openai

from pyspark.sql import SparkSession
import openai
from pyspark.sql.functions import pandas_udf
from pyspark.sql.types import StringType
import pandas as pd
import os

# Bootstrap Spark Session
spark = SparkSession.builder.getOrCreate()

service_name = "oai-eus-ww-int-hqfin"
deployment_name = "GPT35Model"

os.environ["OPENAI_API_KEY"] = ""

# Setup for OpenAI API for GPT3.5Turbo
openai.api_type = "azure"
openai.api_base = ""
openai.api_version = "2023-03-15-preview"
openai.api_key = os.environ.get("OPENAI_API_KEY")

# Create a Spark DataFrame with a prompt column
data = [
    ("Python code for Hello World"),
    ("What is GZCL?"),
    ("Who is Sandman?")
]
df = spark.createDataFrame(pd.DataFrame(data, columns=["prompt"]))

# Define the pandas UDF function
@pandas_udf(returnType=StringType())
def generate_text(input: pd.Series) -> pd.Series:
    results = []
    prompt = ""
    for n in input:
        message = prompt + n

        responseGPT = openai.ChatCompletion.create(
            engine="GPT35Model",
            messages=[{
                "role": "user",
                "content": message
            }],
            temperature=0.1,
            max_tokens=800,
            top_p=0.95,
            frequency_penalty=0,
            presence_penalty=0,
            stop=None
        )

        results.append(responseGPT["choices"][0]["message"]["content"])

    return pd.Series(results)

df = df.withColumn("results", generate_text("prompt")).cache()
display(df)

OS
linux
Python version
Python v3.10
Library version
openai-python v0.27.6

Noticed similar failure with regular "udf" as well. No such issues when running it like a regular function.
Possible workaround:
Set OpenAI related environment variables before openai import statement as shown below:
import os
os.environ["OPENAI_API_KEY"]=<api-key-value>
os.environ["OPENAI_API_TYPE"]="azure"
os.environ["OPENAI_API_BASE"]="https://<your-resource-name>.openai.azure.com/"
os.environ["OPENAI_API_VERSION"]="2023-05-15"

import openai

rest of the code....

I had similar issues (running it as a regular function works, inside a udf not). Unfortunately, the work-around suggested by @sreedhar-guda did not work for me. However, I think I figured out the issue/origin:
udf uses workers with their own environment variables. That means, you have to broadcast "global" variables to their environment. You can do this using spark....
from pyspark.sql import SparkSession
import openai
from pyspark.sql.functions import pandas_udf
from pyspark.sql.types import StringType
import pandas as pd
import os

# Bootstrap Spark Session
spark = SparkSession.builder.getOrCreate()

service_name = "oai-eus-ww-int-hqfin"
deployment_name = "GPT35Model"

os.environ["OPENAI_API_KEY"] = ""

# Setup for OpenAI API for GPT3.5Turbo
openai.api_type = "azure"
openai.api_base = ""
openai.api_version = "2023-03-15-preview"
openai.api_key = os.environ.get("OPENAI_API_KEY")

# Create a Spark DataFrame with a prompt column
data = [
    ("Python code for Hello World"),
    ("What is GZCL?"),
    ("Who is Sandman?")
]
df = spark.createDataFrame(pd.DataFrame(data, columns=["prompt"]))

# Define broadcast-variables.
broadcast_

broadcast_

# Define the pandas UDF function
@pandas_udf(returnType=StringType())
def generate_text(input: pd.Series) -> pd.Series:

    results = []
    prompt = ""
    for n in input:
        message = prompt + n

        responseGPT = openai.ChatCompletion.create(
            engine="GPT35Model",
            messages=[{
                "role": "user",
                "content": message
            }],
            temperature=0.1,
            max_tokens=800,
            top_p=0.95,
            frequency_penalty=0,
            presence_penalty=0,
            stop=None
        )

        results.append(responseGPT["choices"][0]["message"]["content"])

    return pd.Series(results)

df = df.withColumn("results", generate_text("prompt")).cache()
display(df)

We recently rewrote the library entirely; if the problem persists in v1, please open a new issue (ideally with a replit that can reproduce the problem).


ImportError: dlopen: cannot load any more object with static TLS

Hi,
When I check if the autohic installed via conda is working, an error occurs:
(autohic) [cuixb@yls AutoHiC-main]$ python ./autohic.py -h
Traceback (most recent call last):
  File "/raid8/cuixb/tools/biosoft/AutoHiC-main/./autohic.py", line 20, in <module>
    from src.common.error_pd import infer_error
  File "/raid8/cuixb/tools/biosoft/AutoHiC-main/src/common/error_pd.py", line 11, in <module>
    import cv2
  File "/home/cuixb/tools/biosoft/conda3/envs/autohic/lib/python3.9/site-packages/cv2/__init__.py", line 181, in <module>
    bootstrap()
  File "/home/cuixb/tools/biosoft/conda3/envs/autohic/lib/python3.9/site-packages/cv2/__init__.py", line 153, in bootstrap
    native_module = importlib.import_module("cv2")
  File "/home/cuixb/tools/biosoft/conda3/envs/autohic/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: dlopen: cannot load any more object with static TLS

How can I solve this? Thanks a lot.

so sorry to tell you, i have not encountered this error. you can refer to pytorch/pytorch#2575 and scikit-learn/scikit-learn#14485. in my opinion, you can use docker to solve it. maybe you should reinstall AutoHiC.

maybe you can ref


nixos/gitea: add settings option

Motivation for this change
https://github.com/NixOS/nixpkgs/pull/57671
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

ping @kolaente is this what you'd like to see?

ping @pvgoran

@GrahamcOfBorg test gitea.mysql gitea.postgres gitea.sqlite3

This is a straightforward improvement, I like it. I didn't review the code (only looked at it briefly) and didn't test it, though.
It lacks documentation, though. :) I mean, the description is just a link to another (draft) PR, and that PR is about a specific setting.

I wasn't able to reproduce this error locally. Does anyone have any ideas on that?

@GrahamcOfBorg test gitea.mysql
@GrahamcOfBorg test gitea.postgres
@GrahamcOfBorg test gitea.sqlite3

I guess the failure was a glitch in the matrix :man_shrugging:


Added JavaScript Tutorial for Beginners by Clever Programmer

What does this PR do?
Add resource
Description
Added JavaScript tutorial for beginners by Clever Programmer.
Why is this valuable (or not)?
This tutorial is really great for students who want to learn JavaScript.
How do we know it's really free?
This course is available on YouTube for free.
For book lists, is it a book? For course lists, is it a course? etc.
It is a course on JavaScript for beginners.
Checklist:

[x] Read our contributing guidelines
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Please review it .

For youtube, we prefer "playlist" links and the name of the producer/creator.

@eshellman Is there any slack or community channel so as to verify contribution before opening a pull request ?


Basic setup fails on a clean system

Using either the clean system or running the example docker command fails as a bunch of repos can't be cloned:

have you really did a clean install? maybe you forgot a folder.. and do you really run your system as root?
rm -rf ~/.local/share/nvim ~/.config/nvim ~/.cache/nvim

have you really did a clean install? maybe you forgot a folder.. and do you really run your system as root?
rm -rf ~/.local/share/nvim ~/.config/nvim ~/.cache/nvim

Yeah, the above run is a clean docker run, meaning there's nothing in the root system....supposedly. The default root setup in alpine edge should not be having nvim folder in ~/.local/share ;-)

tested with
FROM alpine:edge
RUN apk add --no-cache neovim git bash
RUN
CMD ["/bin/bash"]

after running i cloned starter
git clone https://github.com/LazyVim/starter ~/.config/nvim
and started nvim. the whole installation went perfectly

tested with
FROM alpine:edge
RUN apk add --no-cache neovim git bash
RUN
CMD ["/bin/bash"]

after running i cloned starter git clone https://github.com/LazyVim/starter ~/.config/nvim and started nvim. the whole installation went perfectly

I just did absolutely the same thing and it failed with the above error.

you could try again... i even add a little more to my comment and here is a video https://asciinema.org/a/zYvFVP5bIPaowVKPiMe6yIMet
good luck

@alourie that's just not possible. Can you give me the exact docker/podman command you use that fails for you?

https://asciinema.org/a/1WvclBADVrdnLQlyamXIzpNJg
Just repeated the steps from @luxus

Updated the container to include gcc/g++, it only affects the compiler warnings, all the rest pertains

Please try with the exact command from the README:
docker run -w /root -it --rm alpine:edge sh -uelic '
  apk add git lazygit neovim ripgrep alpine-sdk --update
  git clone https://github.com/LazyVim/starter ~/.config/nvim
  cd ~/.config/nvim
  nvim
'

Is there anything special about your system/network I should know?
It seems that everything gets cloned/installed, but after that lazy doesn't seem to be able to detect it is installed.
After the installation fails, can you press <cr> on one of the failed entries and show me what it says?

I just pushed some changes to lazy.nvim that will no longer show those weird stack traces with nvim_set_option, but that probably doesn't fix whatever is happening here.
Can you run the exact podman command I posted and see what :mess shows now? A screencast would be very useful too.

@folke I have no idea what's going on: https://asciinema.org/a/IvfY87myVelZ3TBfjVsOzQbgL
I have no strange networking setup, all normal.

And are the plugins effectively cloned? And those dirs are not empty?

And are the plugins effectively cloned? And those dirs are not empty?

Yes, all cloned properly.
As a test, I've tried the same on a VM with PopOS running, and it worked fine, without any issue. So what would be different on a basic Arch install to cause it to fail???.....

I really don't understand as well. You're also the only person that reported this issue.
Did you do any custom configuration for podman on your system?
Maybe try updating podman?
But you say that the exact same thing happens when not running in a container right?

The problem you seem to have is that the internal lazy state doesn't think it is installed, which is superweird. It looks as if the spawned git process does not trigger the exit callback in libuv for some super weird reason. Or at least it doesn't return OK

I really don't understand as well. You're also the only person that reported this issue.
Did you do any custom configuration for podman on your system?
Maybe try updating podman?
But you say that the exact same thing happens when not running in a container right?

Now I think I've mischaracterized it ...I haven't tried running it natively on my system (for obvious reasons), all is in the containers.  However, I tried multiple containers (alpine, ubuntu) with the same result, yes.
I'll try updating podman, however I don't think I have any custom configuration...

I was wrong about what failed.
It must be this part of the code that fails: https://github.com/folke/lazy.nvim/blob/666ed7bf73eb5895253c1155bd29270b066cbdac/lua/lazy/core/plugin.lua#L297
No idea why that would fail though

I'll try to follow that ....doesn't maybe root path is not properly detected, but why?

It is correctlt detected, since that same path is used to for the directory where the git clone happens and those files are there.
It looks as if the vim.loop.fs_scandir fails or does not return a type for the items.
Now that I think about it, another user did have something similar at some point and that was due to apparmor.
But of course aparrmor doesn't do anything in containers....

related: https://github.com/libuv/libuv/discussions/3555
This might be a luv issue

Can you disable selinux and try again? $ setenforce 0, you can obviously put it back after testing.
It seems that selinux is active for containers

FWIW, I don't use selinux nor have it enabled. I'll see if I need to do it inside the container.

Could you try and run:
$ sudo podman run -it alpine ping <IP_ADDRESS>

and
$ sudo podman run -it alpine wget https://github.com/containers/libpod

Yeah, there's no issue with "internet" in the container, as can be seen from the screen recordings above. I also don't run podman as sudo (and just to make sure, I did run it with sudo to test, still the same issue)

Internet is definately wworking for him. It's the Util.ls that fails for some reason after installing everything.

Utils.ls() is indeed incorrectly fetching some directories without the type. And it goes downhill from there.

Most likely a bug in luv then, since type should always be available. Although one other user had similar issues, but that was with AppArmor.
Util.ls also seems to work for listing lazyvim.plugins, but seems to fail for listing the directories in the lazy data directory.

Phew.
I experimented a bit with the directories structure, and I have no idea why it doesn't work by default. However, if I mount a local directory for /root in the container, it works fine. :facepalm:

Was the type file for those directories? I totally forgot I added smoething that returns file if it is nil. Think I'll just remove that and show an error instead.

I just added a work-around for the luv issue. Would be great if you could test one more time with podman. I think it should work now even when type is nil

I just added a work-around for the luv issue. Would be great if you could test one more time with podman. I think it should work now even when type is nil

It's alive!
Yeah, it works now. Tested in alpine and ubuntu containers.

Was the type file for those directories? I totally forgot I added smoething that returns file if it is nil. Think I'll just remove that and show an error instead.

yes, the type was nil. For some unclear reason, as the docs for uv say it should be (string, string) or nil or fail. So go figure.

good to know it works now. It's not ideal, since the fix is to to extra fs_stat calls when type is nil, but at least it will work now in those situations. Hpefully it will evenyually be fixed in libuv


[Feature Request] The Tennis Channel

Hello, I have been playing with and using EPlusTV for a little bit now and it's great! Awesome work! I use both the ESPN and Fox Sports integrations, then feed everything into Xteve and Plex, but wanted to request adding support for The Tennis Channel.
Currently, they offer a TVE stream at tennischannel.com/watchnow after authenticating with your TV provider, which I have, but would love to get it into the lineup with my other sports channels. Based on some testing, I do not think they encrypt their streams, as I have at times been able to find .m3u8 streams via Chrome's console and play them back using VLC, but of course I could be wrong. Also, to clarify, I am not asking for integration with their standalone service "TennisTV", just accessing the main channel "The Tennis Channel" that I have thru my DIRECTV STREAM account and can access at the URL above. I would be happy to provide access to my account if needed for development.
Let me know if you think this might be possible. Again, great work on this project! Thanks so much!

+1 on this and Tennis Channel Plus

TVE is a little outside of the scope of what I'm building.. you'd be better off using the TVE functionality built into Channels DVR since that'd work out of the box. I'm open to adding in support for Tennis Channel Plus if I had credentials though.

I just spent some time playing with this. It's kinda lame, they don't have an Android TV app, so I can't reverse engineer how it works :disappointed:


add the basic locale functionality

As I saw, the locale is able to use but is being ignored. This change wold be enough for me, but in the future I would add the offset of the week (in Russia a week begins from Monday) and a possibility to set "in place" custom localisation.
I am waiting for a feedback, because I like this component, but I need to use it with the different languages.
Thank you

Also, as I see (before my changes),
There are hardcoded names of week, but there is an option firstWeekdaySunday: bool (and it is false by default). By another words - the user can tune this setting, but the names of weekdays will not be changed, and this PR has fixed it

Hi @VVildVVolf thanks alot for your PR. actually this is still hardcoded to en or ru only... can we use moment locales instead of that?

we can try to find you the current locale and use it by default, but there are some problems with "clear" , "today" and so on. BUT I can open "ILocale" as interface and as input.
P.S. yes, not they are hardcoded, but now it is easy to add all another locales, which would be required:)

actually I wanted to refactor this thing from moment to date-fns a while ago but still didn't find time :( are you interested in maintaining this repository? I can add you as a collaborator.

Yes, I am. Do I need to change anything in this PR?

I have just fixed the days, but now the English case is "Su, Ma ..." instead of your original one...

what about a release? Just because some bugs are fixed, and after that I will include it to another my project:)


Add a console harness

Added a ConsoleHarness class that can be used to explore API responses
other typos and little golfing

Task linked: CU-2v74kh5 We should see from which site version the order came (refurb +meal box)

Task linked: CU-2rxxew2 shipment records not syncing to Andlor


Autocomplete sometimes places undesired quotes

Tested versions
v4.2.1.stable.official [b09f793f5]
System information
Godot v4.2.1.stable - Linux Mint 21.2 (Victoria) - X11 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1080 (nvidia; 535.129.03) - AMD Ryzen 9 3900X 12-Core Processor (24 Threads)
Issue description
Autocomplete includes unnecessary quotes when using event from func _input(event) and load(). #81833 partially fixed autocomplete quotes reported in #48436 (as demonstrated in video below), but it still happens in this scenario with _input and load() (load() example not shown).
Steps to reproduce
Ignore line 9, was just experimenting.
https://github.com/godotengine/godot/assets/84479813/cf0beb45-83f0-4136-8573-e65959abbc88
Minimal reproduction project (MRP)
bugPOC.zip
### Tasks
- [ ] https://github.com/godotengine/godot/pull/87508

Tested on Godot v4.3.dev (13a0d6e9b) - Windows 10.0.22621 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3060 Ti (NVIDIA; <IP_ADDRESS>01) - 12th Gen Intel(R) Core(TM) i7-12700F (20 Threads)
Open the mrp and I did not reproduce this issue, seems like maybe there's other conditions for this bug to appear

Tested versions
v4.2.1.stable.official [b09f793]
System information
Godot v4.2.1.stable - Linux Mint 21.2 (Victoria) - X11 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1080 (nvidia; 535.129.03) - AMD Ryzen 9 3900X 12-Core Processor (24 Threads)
Issue description
Autocomplete includes unnecessary quotes when using event from func _input(event). #81833 partially fixed autocomplete quotes reported in #48436 (as demonstrated in video below), but it still happens in this scenario with _input. It also happens with load().
Steps to reproduce
Ignore line 9, was just experimenting.
2023-12-16.19-41-00.webm
Minimal reproduction project (MRP)
bugPOC.zip

It seemes that because the InputEvent completion is hard code to return as constant with quotes.

The added quotes are correct, the issue is that it doesn't handle the existing quotes, otherwise the result when not typing anything before requesting would be is_acrion_pressed(my_action)

The added quotes are correct, it seems it doesn't handle the existing quotes correctly, or adds them twice, otherwise the result when not typing anything before requesting would be is_acrion_pressed(my_action)

I guess is because the CompletionItem Input.is_action_pressed return is totally different to InputEvent.is_action_pressed.
Input.is_action_pressed responds the completion item kind is 2 -> lsp::CompletionItemKind::Method

InputEvent.is_action_pressed responds the completion item kind is 21 -> lsp::CompletionItemKind::Constant

And I find something interesting in GodotScript LSP server.
While typing InputEvent.is_action_pressed. In the method _find_call_arguments：

And because the base is nil, so it is not considered as a method.

Here is where LSP server guess type. It don't work to InputEvent.

It seems that there has a hard code to force fix the issue of InputEvent not identified. It force return the input action options as CODE_COMPLETION_KIND_CONSTANT aka CompletionItemKind::Constant -> 21.

And this is the case of Input.is_action_presss：
The LSP server has identified the type of Input correctly. And return the CODE_COMPLETION_KING_FUNCTION aka ComplectionItemKind::Method ->2.

Questions

Why InputEvent so especial then it's type cannot be identified by  _guess_expression_type ?
Which is right kind of CompletionItem to return ? It seems that as a parameter and action string, it should return as Constant kind. But Input.is_action_pressed returns Method kind.
Why hard code the options of CompletionItem of  InputEvent.*action*. Is that means i can fix it in the hard code part too? That sounds not good.

I can't replicate this on latest master, with or without this suggestion

Can't replicate this without the LSP so can't test it properly unfortunately

It's probably not the complete solution, but I have some ideas, if I can set up LSP I can test them out when I find the time

Just want to make it known that this bug also happens with load(). This issue also may affect many other functions.

Just want to make it known that this bug also happens with load().

I have make my try to fix it.
You can donwload Godot Editor from artifact of my action build to have a test.
https://github.com/kaluluosi/godot/actions/runs/7628380270
windows edtior download

As discussed in my issue submitted to the VS Code plugin, I've consistently experienced this issue with the dollar-sign get_node() shortcut, as seen here:

I wouldn't be able to test the current PR until later today at the soonest, but it would be great if it could cover this scenario as well.

As discussed in my issue submitted to the VS Code plugin, I've consistently experienced this issue with the dollar-sign get_node() shortcut, as seen here:

I wouldn't be able to test the current PR until later today at the soonest, but it would be great if it could cover this scenario as well.

In my PR version it is fine.
You can download my PR version Godot Editor artifact. Here is the link to access the artifact: link goes here.
Scroll down to the bottom to check out the build artifacts, find the Godot Editor download, and give it a try.

Perhaps I'm just not seeing the download link correctly, but it looks like the artifacts are expired and can't be downloaded anymore:

Also, in your video, I'm noting that none of the names you have it autocomplete have spaces in them. From what I've seen this seems to be a problem when there are spaces in the name, and as a result the language server inserts quotes around its suggestion. Here's a video demonstrating this:
https://github.com/godotengine/godot/assets/9957987/36f95937-d4ef-44e9-baa4-d4f5d58f1dbf

Hmm... it looks like the artifact build has expired, so you'll have to check out my branch and build it yourself.

I just tested the branch you linked, and it looks like it still has the same problem as shown in the video above.
https://github.com/godotengine/godot/assets/9957987/91d8759d-80f0-4d64-8b90-9a700b8f9750

I just tested the branch you linked, and it looks like it still has the same problem as shown in the video above.
godot.language.server.bug.-.double.quotes.on.fix.branch.mp4

The suggestion of quote seems not provided by Godot LSP. Godot LSP not remember what you typed before. The quote one look like the VSCode's record.

I just tested the branch you linked, and it looks like it still has the same problem as shown in the video above.
godot.language.server.bug.-.double.quotes.on.fix.branch.mp4

The suggestion of quote seems not provided by Godot LSP. Godot LSP not remember what you typed before. The quote one look like the VSCode's record.

Should a new issue be opened on the Godot VS Code extension repository then?

Should a new issue be opened on the Godot VS Code extension repository then?

I've got one open here: https://github.com/godotengine/godot-vscode-plugin/issues/644

Having this issue when using the load function in GDScript.

Not sure if this is the right issue to ask this, but... I wish there was a setting for Godot's LSP to never add any extra parentheses, quotes or any other symbol when accepting auto-completion suggestion of a word.
If I selected a word, I want to add just the word. Reasons from https://github.com/godotengine/godot-vscode-plugin/issues/152#issuecomment-2429981538:

Yes, this has been bothering me for quite a while.
Other languages in VSCode don't add any sort of parentheses on auto-completion, and this is what I expected for GDScript too. It's one of those things where doing too much automatically will be more trouble than help, and there's many reasons why:

I don't always want a ( after accepting function suggestion. Often I want to pass its callback, so you shouldn't assume I want the parentheses and make me have to delete it, even if calling happens more often.
Since it adds just a (, it makes the parentheses unbalanced.
It's more trouble to delete the extra unbalanced (. For example, accepting a suggestion for function bar in this code: pass_callback(bar(|) (where | is the cursor), pressing backspace I want to delete the extra ( only, but it deletes both (). This is why is better to not assume and "try to help" too much adding parentheses.
When I accept an auto-complete suggestion for a function, on other languages I type ( manually and automatically get the function signature popup without having to do CtrlShiftSpace. On GDScript, this doesn't happen, because it auto-fills the ( without triggering the parameter hints. So I still have to manually press MORE keys anyway (and add the closing ) afterwards).
Being inconsistent with the behavior in other languages in VSCode is also a reason by itself.

So, please add at least an option to just not add any parentheses automatically.

Sounds like a different issue to me.


Remove PreprovisioningNetworkDataName

We had initially introduced preprovisioningNetworkDataName field in InstanceSpec for users to have flexibility of setting it in OpenStackDataPlaneNodeSet CR for the individual nodes. We have had the implementation to fallback to using preprovisioningNetworkDataName for provisioning networkData if the later is not provided and the former is set.
However, we've noticed that this does not work when using coreos IPA ramdisk image as ProvisioningImage Builder expects the preprovisioningNetworkDataName to be in nmstate format, however for us during provisioning cloud-init expects it to be in openstack network_data.json format.
Therefore we would not replicate the metal3 behavior of falling back to preprovisioningNetworkDataName if networkData is not provided. We instead will keep both network data for preprovisionig and provisoning separate. If networkData is not provided per BMH node, we would use the default networkData we generate using IPAM.
This also removes networkData/userData from the BaremetalSet spec as there is no way user can provide this data for a set of BMHs.
Depends-On: https://github.com/openstack-k8s-operators/openstack-operator/pull/1116
jira: https://issues.redhat.com/browse/OSPRH-10442

Putting this on hold to see if we want to update https://github.com/openstack-k8s-operators/openstack-baremetal-operator/pull/211 instead.

recheck

Putting this on hold to see if we want to update #211 instead.

@rabi Does #211 incidentally solve the same problem that you describe in this PR's description?

Putting this on hold to see if we want to update #211 instead.

@rabi Does #211 incidentally solve the same problem that you describe in this PR's description?

No it does not in it's current state. It needs to be reworked like this. The reason I mentioned that here is  because it was started earlier and we discussed some of these things there too and it led to further investigation.

/test openstack-baremetal-operator-build-deploy

Putting this on hold to see if we want to update #211 instead.

@rabi Does #211 incidentally solve the same problem that you describe in this PR's description?

No it does not in its current state. It needs to be reworked like this. The reason I mentioned that here is because it was started earlier and we discussed some of these things there too and it led to further investigation.

@abays I've not seen any updates to the other PR. As we want this fix in 18.0.2 ASAP, I think we should merge and backport this.

/lgtm

/cherrypick 18.0.0-proposed


⚠ Bofrost.at has degraded performance

In 982e059, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2747 ms

Resolved: Bofrost.at performance has improved in 793539f.


Omit device name prefix on SHDR keys

Not sure I found the right line but I think I'm close.  I believe MTConnect.NET adapter(s) should not be sending the device name prefix on the key.  It's a good option in some cases, but since Fanuc Driver spawns adapters dynamically, each machine will always get its own adapter, so the adapter/device mapping is best controlled through the agent.cfg file.

https://github.com/Ladder99/fanuc-driver/blob/ece59d34c40fbca649e0f5ee6330397aa82e6840/fanuc/transports/SHDR.cs#L202

Has this been addressed by passing in a YAML NULL ?
https://github.com/Ladder99/fanuc-driver/blob/d538eefe789b73757ca6127cba582e8f369bf049/examples/windows/config.machines.yml#L317


block_builder: using borrows instead of refcount

The main code base didn't need the reference counting, and could be implemented with slices only. So this PR removes the Arc<T>s in favor of borrowing. The idea is that the types are a bit more straight forward (less wrappers), and we save a bit in atomic counting (not that important, most likely negligible).

@bobbinth the comments have been addressed, @plafer has approved it already, but I'm not sure if you're against merging it. Let me know if it is okay to merge this PR.

One important note: I made some big assumptions with this PR, that I think it is worth writing down:

I assume we don't want to include the same tx into multiple batches, as that would mean one of the batches is invalid (because they conflict with one another, and will have conflicting account hashes).
I also assume we don't want to use the same tx for different purposes on two different subsystems, meaning that a single copy is sufficient, as the tx flows from one subsystem to another.

With the above in mind, it makes sense to use ownership when necessary, and exploiting Rust's affine type system to prevent the above.

I assume we don't want to include the same tx into multiple batches, as that would mean one of the batches is invalid (because they conflict with one another, and will have conflicting account hashes).

Correct - the same transaction should not be in two different batches.

I also assume we don't want to use the same tx for different purposes on two different subsystems, meaning that a single copy is sufficient, as the tx flows from one subsystem to another.

I think this is correct as well, but I'm less certain here than with the previous assumption (mostly because I haven't thought about it too much).


Redirect article are not properly assign to the right article

The redirect articles after searching produce an error message
Tested on: IE11, Mozilla Firefox, Google Chrome
Steps to Reproduce:

Search for "YouTube Channel" in the search area
Click on the redirect link to YouTube page

Expected: Produce the actual Wikipedia Page
Actual: Produce an error

Unable to reproduce. Marking as resolved.
Tested on:

OSX Yosemite, Chrome 41.0, 1366x768 resolution


Transition Select to be processed by the query planner.

Currently, select isn't being processed by the query planner. When the query planner is processing the query it will generate a relation tree and that relation tree will be converted into operators that are able to be iterated over and executed.

I want this to prototype an execution pipeline.


Below my username add a link to my CoderMerlin Digital Portfolio

Make sure to add a link to your Portfolio indented below your github username listing on the README.md, then use the CoderMerlin server to change it.

i got you


Broken link for creating a model in WKS

The link for step #4 is broken. This does not work:
https://github.ibm.com/IBMCode/howtos/tree/master/extracting-personal-data-from-unstructured-text-using-watson-knowledge-studio

The link will be available once the PR for the how-to is merged with master branch. Meanwhile, may I ask you to refer to the branch from where it will be merged please? branch code to be merged is "https://github.ibm.com/muralidhar-chavan/howtos/tree/gdpr-wks/extracting-personal-data-from-unstructured-text-using-watson-knowledge-studio".

Hi @scottdangelo
I assume you are unable to continue validating this pattern because the reference to how-to is broken. I have created a PR for adding content of the how-to to this pattern. @stevemart suggested that the PR be open so that you can continue validating this pattern. Can you continue validating this pattern using the open PR https://github.com/IBM/gdpr-fingerprint-pii/pull/4 please? If there's any concern please let me know. Thanks


Call floatingPanelDidEndRemove when dismiss with tap on backdrop view

By #205 added dismissing by backdrop view. But floatingPanelDidEndRemove is not called from it.
reproduce

build sample app and run debug it.
set a break point to SampleListViewController#floatingPanelDidEndRemove
tap Show Panel Modal on sample app

When, floatingPanelDidEndRemove is not called

Thanks for your fix!

Thanks!


Use llvm-hs ffi

Instead of going through the filesystem by pretty-printing the llvm ast and calling clang on that, we should really just use the ffi. The original reason for not doing this was because the ffi is hard to link to the correct version of llvm, but since we're invested in using nix for everything, this should be manageable.

This has been done since bc4d616d213077f5be1b47abe2a030d87168dbe3


Remove 'test' and junk rows from DATA_SOURCES table

The DATA_SOURCES table currently contains several junk columns which carry no relevant information and have values such as junk or for, and often have null RECORD_TYPE or SOURCE_URL values (although some legitimate rows also have nulls in these as well).
Recommend removing these values and/or creating an automated script that can routinely prune these, or prevent their entry.

It appears this has been successfully done! We good!


Adding Server URL updates to smartapi yaml

@GitHubbit
I think there's an issue with lines 23-24, where there's two descriptions. This will probably cause a YAML parsing error (you can check w/ the SmartAPI editor).


Build docker images on Docker Hub

I couldn't find the docker images built from this project on Docker Hub. Do you host them elsewhere already or are you still planning to have them available somewhere?

Hi! Sorry for delay.
No problem, I'll build and publish image on Ducker Hub soon


add missing feathers-hooks dependency

feathers-hooks is used here: https://github.com/feathersjs/feathers-hooks-common/blob/8c1ab2fa228a2e2e42c311f48c99488900064296/src/services/combine.js
this change fixes an error when using feathers-hooks-common in a standalone module without feathers-hooks as a dependency.

Thanks for the catch!


Parse PostgreSQL INSERT ON CONFLICT and UPDATE SET DEFAULT

Allows parsing, for example:
INSERT INTO "scenario_data" ("data")
  VALUES (?)
  ON CONFLICT ("sha_256")
    DO UPDATE SET "sha_256" = DEFAULT;

Nice!

:tada: This PR is included in version 1.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


SSL | Intern error

Checklist

Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?

Yes

Are you sure you're not using someone else's docker image?

Yes

Have you searched for similar issues (both open and closed)?

Yes

Describe the bug

Nginx Proxy Manager Version

Nginx Proxy Manager Version v2.10.2
To Reproduce

Expected behavior

ERROR form Docker Nginx Proxy Manager
[5/5/2023] [10:17:33 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/temp/letsencrypt_5.conf
[5/5/2023] [10:17:33 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[5/5/2023] [10:17:33 PM] [Express  ] › ⚠  warning   Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-5" --agree-tos --authenticator webroot --email<EMAIL_ADDRESS>--preferred-challenges "dns,http" --domains "portainer.the-dodo.de"
Saving debug log to /tmp/letsencrypt-log/letsencrypt.log
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.
[5/5/2023] [10:29:06 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf
[5/5/2023] [10:29:06 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf.err
[5/5/2023] [10:29:06 PM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/1.conf.err"
}
[5/5/2023] [10:29:06 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[5/5/2023] [10:29:11 PM] [SSL      ] › ℹ  info      Requesting Let'sEncrypt certificates for Cert #6: portainer.the-dodo.de
[5/5/2023] [10:29:11 PM] [SSL      ] › ℹ  info      Command: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-6" --agree-tos --authenticator webroot --email<EMAIL_ADDRESS>--preferred-challenges "dns,http" --domains "portainer.the-dodo.de"
[5/5/2023] [10:29:12 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/temp/letsencrypt_6.conf
[5/5/2023] [10:29:12 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[5/5/2023] [10:29:12 PM] [Express  ] › ⚠  warning   Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-6" --agree-tos --authenticator webroot --email<EMAIL_ADDRESS>--preferred-challenges "dns,http" --domains "portainer.the-dodo.de"
Saving debug log to /tmp/letsencrypt-log/letsencrypt.log
An unexpected error occurred:
Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/failed-validation-limit/
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.

In /tmp/letsencrypt-log/letsencrypt.log is nothing
Operating System
Ubuntu 20

Git exactly the same error, here. Looking at letsencrypt.log says that let's encrypt cannot access the challenge. Very strange.
@TheDoDoo : I think you see nothing in "/tmp/letsencrypt-log/letsencrypt.log" because the file is in the docker path : /var/lib/docker/overlay2/[yourcontainerID]/merged/var/log/letsencrypt/letsencrypt.log.
Looke duplicate with #2881 with a interesting workaround (not working for me).
I guess it's done until a patch...

Ive been having the same issue for a couple months now also, not sure what the problem is. Cant generate any certs only difference is im using unraid.

Can't add custom certificate either, same error.
[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/1.conf"
}
[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf.err
[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/1.conf.err"
}

then the hostfile disappear, server offline.

This may also be the same issue described in #2873

Can't add custom certificate either, same error.
[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/1.conf"
}
[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf.err
[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/1.conf.err"
}

then the hostfile disappear, server offline.

I am getting the exact same error

anyone solve this issue?
 Duplicate relation "access_list" in a relation expression. You should use "a.[b, c]" instead of "[a.b, a.c]". This will cause an error in objection 2.0 [6/20/2023] [9:52:40 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/4.conf [6/20/2023] [9:52:40 PM] [Nginx    ] › ⬤  debug     Could not delete file: {   "errno": -2,   "syscall": "unlink",   "code": "ENOENT",   "path": "/data/nginx/proxy_host/4.conf" } [6/20/2023] [9:52:40 PM] [Nginx    ] › ℹ  info      Reloading Nginx [6/20/2023] [9:52:55 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/4.conf [6/20/2023] [9:52:55 PM] [Nginx    ] › ℹ  info      Reloading Nginx [6/20/2023] [9:54:50 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/5.conf [6/20/2023] [9:54:50 PM] [Nginx    ] › ⬤  debug     Could not delete file: {   "errno": -2,   "syscall": "unlink",   "code": "ENOENT",   "path": "/data/nginx/proxy_host/5.conf" }
etc....

Has anyone solved this issue?
Duplicate relation "access_list" in a relation expression. You should use "a.[b, c]" instead of "[a.b, a.c]". This will cause an error in objection 2.0
[6/20/2023] [9:52:40 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/4.conf
[6/20/2023] [9:52:40 PM] [Nginx    ] › ⬤  debug     Could not delete file: {
"errno": -2,
"syscall": "unlink",
"code": "ENOENT",
"path": "/data/nginx/proxy_host/4.conf"
}
[6/20/2023] [9:52:40 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[6/20/2023] [9:52:55 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/4.conf
[6/20/2023] [9:52:55 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[6/20/2023] [9:54:50 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/5.conf
[6/20/2023] [9:54:50 PM] [Nginx    ] › ⬤  debug     Could not delete file: {
"errno": -2,
"syscall": "unlink",
"code": "ENOENT",
"path": "/data/nginx/proxy_host/5.conf"
}

I have the exact same problem... Don't know why this was closed since many have the same problem.

@aj1322001
If you understand this enough to articulate the issue clearly, would you be willing to create a new issue mentioning this?

I'm having exactly this issue after a clean install.
I also had this issue after upgrading from an earlier version.

Hello,
Same here ..

Hi,
same problem here :-(

Is anyone not having this issue?
I have done a clean install on version 2.9.22 and 2.10.3 and both have this issue.
Its working without SSL.

Hello @GitTworn
I think is a problem with Ubuntu/Debian, but i dont Knox why.
I think this, because i try on Fedora, Centos, Alpine is work. On fresh installé Ubuntu 18.04 to 22.04 and Debian Buster not work, same problem.
So, on alpine, i have a error, with a file not deleting, but i have my ssl certificat.
If you use docker-compose, set network to host.
Just for try.

Having the same issue since i reinstalled my server today and redeployed my dockers.

What is your os ?

For the past 2-3 days I've been having so many issues (after fresh install). Finally after setting up SSL and scrolling up in logs, I saw the same issue. Not sure what's causing this but yep, it's causing too many error after setting SSL and then adding host(s), it no longer load nginx proxy manager dashboard and throws 500 and all I see in logs is a bunch of  Could not delete file (ssl) and Could not delete file (for all the host(s) I've added).

Same issue here with a custom SSL certificate.

I have same problem, on Ubuntu host and Alpine.
But in Alpine, it's work.
I dont now if really this the problem.

I got this error for the first time after an upgrade, however, when downgrading the error persisted, even after a fresh install of an earlier working version. So I suspect in the meantime, docker got updated and it might be a docker related issue.

YMMV, but i found my unraid setup was using the docker image jlesage/nginx-proxy-manager. i switched to the one in the quick setup guide, and used the correct port numbers and volumes, and it started working again. i did need to set up all my hosts again in the new instance though.
https://nginxproxymanager.com/guide/#quick-setup

Looks similar to what I've been getting - see https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2881 for the workaround that does the trick for me (although it's a bit of a pain and I see from https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2892#issuecomment-1567538341 that it doesn't seem to work for everyone) - might be worth a shot?

Why is this issue close since it still persist?

What closes this? I am also encountering this problem and for every site I have it says ERR_EMPTY_RESPONSE when I visit it.

YMMV, but i found my unraid setup was using the docker image jlesage/nginx-proxy-manager. i switched to the one in the quick setup guide, and used the correct port numbers and volumes that differed from the old image and it started working again. i did need to set up all my hosts again in the new instance though.
https://nginxproxymanager.com/guide/#quick-setup

This helped me aswell. It's annoying to setup everything again, but at least it works just right out of the box. Just installed jc21/nginx-proxy-manager as it is described in the official setup-guide and now it works.

If you do `sudo docker logs
you will find the issue,
In my case the issue was that, I requested SSL certificate too many times & that's why it was throwing "Internal Error"
Waiting for couple of days & trying again resolved my issue.
Refrence: https://community.letsencrypt.org/t/error-429-too-many-requests/98580/2

In my case it was firewall on dataprovider side, where I allowed access to port 80 only from my ip address.

I had the same issue with Nginx Proxy Manager.
nginxproxymanager.com/guide/#quick-setup
I followed the Docker Compose quick-setup instructions from the nginxproxymanager website, and everything started up.
I went to the admin panel to add a new proxy and got an internal error.
The same logs appeared in the Docker container: "Could not delete file," and the file "/tmp/letsencrypt-log/letsencrypt.log" had errors "X-Frame-Options: DENY."
I spent a long time trying to figure out the problem, and eventually, everything was resolved as follows:
Your configuration file /etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf shows that the directory for storing ACME Challenge files is set to /data/letsencrypt-acme-challenge.
Check the existence and permissions of the directory:
ls -la /data/letsencrypt-acme-challenge/.well-known/acme-challenge/
If the directory does not exist, create it and set the correct permissions:
mkdir -p /data/letsencrypt-acme-challenge/.well-known/acme-challenge/
chmod -R 755 /data/letsencrypt-acme-challenge/.well-known/acme-challenge/
Create a test file and check its accessibility:
echo "test" > /data/letsencrypt-acme-challenge/.well-known/acme-challenge/test
curl -I http://mydomain/.well-known/acme-challenge/test
In my case, the folder "/data/letsencrypt-acme-challenge/.well-known/acme-challenge/" did not exist.
I created it, checked the permissions, went into the Nginx Proxy Manager admin panel, and had no problem generating a certificate and adding a new proxy.


3.1.1 Load ontology

option to allow admin to load and update ontologies

I'm not quite sure where this is.  I assume we are talking about "Choose Resource Template", but I could be completely off-base here.  If it is "Choose Resource Template", I can't find the storage.  I was kind of thinking we were referencing the rdf files located in /profile-edit/source/server along with vocabList.json-- but this doesn't seem to be the case.  Thanks for any pointers.

Yes, confusing! I rewrote the /profile-edit/source/server php files in nodejs, we need to deprecate the php functions in favor of node.js.
Choose Resource Template is powered by getTemplateRefs and updateTemplateRefs,which I rewrote in recto  https://github.com/lcnetdev/recto/blob/master/server.js:107.  This updates a file templateRefs/templateRefs. Fixing this is 3.1.2.
This issue, there's a file profile-edit/source/server/vocabList.json which has specific ontology files which are stored in /profile-edit/source/server.  We need a UI (storing the list in this file is prob. ok) to specify an ontology uri and you can click one of them to update it with the current version (and maybe caching it) but everything is uri based not file based. The code is profile-edit/source/assets/js/modules/profile/services/vocab.service.js. It doesn't work very well.