text:
Find dependencies

Hello,
after reading quite a bit about javaparser and also trying a few things out, I am still not sure if the following is possible:
ClassA {
}
ClassB{
ClassA.foo();
}
Basically I want to know if ClassB is using ClassA or any other class for that matter.
What I could do is check for the String classA.name inside classB, but I wouldnt need javaparser for that anyway(regex & BufferedReader are sufficient) + it is really inaccurate in some scenarios.
Can I check for class usage in other classes using the actual objects to be 100% sure of usage?
Thanks for any clarification

I would really, really, really suggest not using regex for something like this.
What you want to do is resolve all the value and method references in class B and figure out if they refer to symbols in ClassA. Once you have the symbol and method declaration you can easily see to which class they refer.
What you want to do is to use the class JavaParserFacade and its solve* methods

Thanks for the super fast response! I'll read into the JavaParserFacade

As a follow-up question: Is there any way to make JavaParserTypeSolver work with the base directory of a project rather than the src directory (Is there any point from your side to not make it work with the baseDir)? All I have access on is the base directory and the current file that I am analyzing.

well, I do not think this would make sense to change JSS with this feature. You can probably calculate the root directory of the source code by looking for Java files.
Out of curiosity: for which reason are you using JSS?

I am developing a plugin for SonarQube which calculates metrics including couplings, LCOM and others. Using JP/JSS for precision as I'd like to get as close as possible to 100% correctness

That sounds as a really interesting project! I would love to get updates and learning more about it

Unfortunately, I'll have to bother you again. I've come across an issue with static methods.
Let's say in class foo is a static method called bar. So you dont have to use the new operator to access that method in another class.
public class test{
   foo.bar();
}

The return type of bar is easy accessible with MethodCallExpr and to my understanding (and trying out a lot of things) NameExpr should be used to find the origin of foo, however I'm getting an exception
Exception in thread "main" UnsolvedSymbolException{context='Solving Bar', name='Bar', typeSolver=null}

//tempFile points to src directory of the package in which foo and test are in
CombinedTypeSolver combinedTypeSolver = new CombinedTypeSolver();
combinedTypeSolver.add(new ReflectionTypeSolver());
combinedTypeSolver.add(new JavaParserTypeSolver(tempFile));

List<NameExpr> nameExprs = Navigator.findAllNodesOfGivenClass(cu, NameExpr.class);

	for (NameExpr ne : nameExprs) {
	System.out.println( JavaParserFacade.get(combinedTypeSolver).getType(ne).asReferenceType().getQualifiedName());
		}

I've solved pretty much all things I've wanted to, except for these static calls. Is this a bug, or should I be using something else than NameExpr?

No problem, we are happy to help and questions help us improving JSS. However if this is a different issue it would make things easier for us if you could open separate tickets. Feel free to open as many as you need.
Could you please provide the complext example you are using?
In this case I do not see where foo would be coming from.

Thanks! I felt that this was still kind of around the same issue, so I did not open a new one.
Imagine you have 2 classes Test and Foo which are in the same package.

public class Test {
  Foo foo = Foo.bar();
}

public class Foo{
        static Foo foo = new Foo();

	public static Foo getInstance() {
		return foo;
	}
}

How would you go about resolving, where the method call Foo.bar() is coming from (as in which class)? In this case it's just coincidence that MethodCallExpr would return Foo and thus the result, but there are a lot of cases, for instance in method calls where you do something like
foo(Foo.method());

//or something like this, just like you use for example in your Navigator.
//How do you resolve Navigator and Expression?
Navigator.findAllNodesOfGivenClass( node, Expression.class)

I'm trying to resolve Foo rather than the method call, but haven't found a way to deal with these static method calls yet, as NameExpr doesnt work for me.
I hope it's somewhat understandable

After doing a temporary solution with Expression and String I have found a solution.
Simply use MethodCallExpr and the corresponding JavaParserFacade method.
//something like this depending on what you want to do
if (JavaParserFacade.get(combinedTypeSolver).solve(md).getCorrespondingDeclaration().isStatic()) {
JavaParserFacade.get(combinedTypeSolver).solve(md)
						.getCorrespondingDeclaration().getClassName()
}

My fault was getting the Arguments of MethodCallExpr and then using the getType().asReferenceType().getQualifiedName() chain of JavaParserFacade which is not able to solve these static methods

authors: ftomassetti serdaoezuen

repo: javaparser/javasymbolsolver


text:
Tuple prepend() & append()

New PR following reverted #1452.
See also #1505

Current coverage is 97.00%

Merging #1509 into master will decrease coverage by <.01%

@@             master      #1509   diff @@
==========================================
  Files            87         87
  Lines         10387      10387
  Methods           0          0
  Messages          0          0
  Branches       1797       1797
==========================================
- Hits          10077      10076     -1
  Misses          182        182
- Partials        128        129     +1

Powered by Codecov. Last update 6627538...ee28dbb

Hi @ronanM, thank you for the new PR. Mmhh, but I don't see the changes. This PR states 0 changed files. Am I missing s.th.?
Thanks for your help!

I'm a bit confused, all my code disappear after merging master into tuple-prepend-append branch.

Thanks - I'm also no git expert. ✨It's a kind of magic✨ :-)

Thanks for bearing up with me. Nice change!

source: gharchive/pull-request

authors: codecov-io danieldietrich ronanM

repo: javaslang/javaslang

license_type: permissive

license_source: github-api


text:
Issue #126: Addition to Euler Problem 1 and implementation of Problem 2

Fleshed out the solution of Problem 1 a bit and added a solution for Problem 2 including pattern matching and memoization.
Suggested future steps in development of these examples:

Move whole package to reflect the fact that the tests show examples of using more of Javaslang that just collections.
Make memoization part of the api, e.g. as a static method on Function* and CheckedFunction* interfaces.

Coverage remained the same at 99.82% when pulling e5303c47697422913cf409ab1c4561538257c558 on jorander:126_Euiler_1_and_2 into e729bf2291584b89794a2a9203f8199f85ba4226 on javaslang:master.

@jorander Wow! Thanks.
You may move the package, e.g. to javaslang.euler. This would be great.
The memoization idea is very cool! I will add it to the (Checked)Function Generator:
static <T1, R> Function1<T1, R> memoize(Function1<T1, R> f) {
    final Map<T1, R> cache = new ConcurrentHashMap<>();
    return input -> cache.computeIfAbsent(input, f::apply);
}

static <T1, T2, R> Function2<T1, T2, R> memoize(Function2<T1, T2, R> f) {
    final Map<Tuple2<T1, T2>, R> cache = new ConcurrentHashMap<>();
    return (t1, t2) -> cache.computeIfAbsent(Tuple.of(t1, t2), f.tupled()::apply);
}

// ...

@jorander memoize is now part of (Checked)Functions!

Functions now have a new memoized() method and updated the Euler test. For better integration now Function1 extends java.util.function.Function.

ConcurrentHashMap is, by default, optimized for large number of writer (default concurrency level = 16). This is rarely a good default. I would suggest using the alternate constructor that allow to specify the concurrency level (and use something like 1 or 2). This should provide better performances for the common single-threaded use-case.

Thanks for the hint, jb!

@jbgi I double-checked the source of ConcurrentHashMap. The concurrency level is used for calculating the initial capacity only. The constant DEFAULT_CONCURRENCY_LEVEL is

Unused but defined for compatibility with previous versions of this class.

Using the default constructor should be fine.

oups my bad, I still had the old ConcurrentHashMap implementation in mind.

I've learned about the old - didn't know that.

authors: coveralls danieldietrich jbgi jorander


text:
🛑 Ofelia Nieto, 57 is down

In c6da0e3, Ofelia Nieto, 57 (http://159.65.204.200:7022/) was down:

HTTP code: 502
Response time: 18709 ms

Resolved: Ofelia Nieto, 57 is back up in 3fb248f after 14 minutes.

source: gharchive/issue

repo: javisu/monitor

license: MIT


text:
🛑 Rodriguez Marin, 88 is down

In 21e5f16, Rodriguez Marin, 88 (http://159.65.204.200:7057/) was down:

HTTP code: 502
Response time: 18502 ms

Resolved: Rodriguez Marin, 88 is back up in 009837c after 10 minutes.


text:
🛑 Valderrebollo, 30 is down

In ebbfb9b, Valderrebollo, 30 (http://159.65.204.200:7050/) was down:

HTTP code: 502
Response time: 18808 ms

Resolved: Valderrebollo, 30 is back up in 1fd524a.


text:
🛑 Brescia, 4 is down

In cf64ced, Brescia, 4 (http://159.65.204.200:7051/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Brescia, 4 is back up in 5ba2eab.


text:
🛑 Colodra, 5 SALA 1 is down

In 02012f6, Colodra, 5 SALA 1 (http://159.65.204.200:7042/) was down:

HTTP code: 502
Response time: 18604 ms

Resolved: Colodra, 5 SALA 1 is back up in 90af0b5.


text:
🛑 Gran Habitat, 4 is down

In 2317ee8, Gran Habitat, 4 (http://159.65.204.200:7020/) was down:

HTTP code: 502
Response time: 18789 ms

Resolved: Gran Habitat, 4 is back up in 42a522b.


text:
🛑 Rodriguez Marin, 88 is down

In 727d60b, Rodriguez Marin, 88 (http://159.65.204.200:7057/) was down:

HTTP code: 502
Response time: 18623 ms

Resolved: Rodriguez Marin, 88 is back up in 5a8f9d4 after 563 days, 4 hours, 41 minutes.


text:
Add timeout for requests.

Adds timeout support.
Important for production-ready apps.

The solution by that link doesn't cancel the actual HTTP request sent. It just raises an error. That's where 'cancellable-fetch' lib comes into play.
And 'promise-timeout' lib I've added actually uses Promise.race approach you mentioned. The only diff is it clears timeout if the request is successful or any other error happens.
In React native a non-cleared timeout can trigger warnings which look not really elegant... But for sure this can be easily implemented manually but why?
'uuid' lib was needed for identifying the HTTP request to cancel although here I agree it can be just replaced by a simple counter.

What you mention makes total sense. However, that would mean we should move away from the original implementation of the fetch API spec, included in ReactNative.
cancellable-fetch is a reimplementation. I'm not that convinced.
I'm personally not interested in turning this into a fully-featured http library, there are great solutions out there making a great job at this.
Let's keep the scope for now on being an abstraction of the fetch API. I'm reading that aborting http requests is already in the plans. Let's implement it when it's available for RN. Or is it already?

authors: avshenuk javorosas

repo: javorosas/react-native-rest-client

license: mit

license_source: bigquery


text:
关于new Watch(this)的问题

请问一下，这个是直接把watch.js文件copy下来放在项目中，在页面中import进来，实例化是哪里进行的？

直接把watch.js文件copy下来放在项目中
在页面中引入，在生命周期内实例化就可以了

好像没有起作用呢~

抱歉，大神，我没有注意到，这里要把监听的数据放进去是吧？

watch.setData 会调用原生的setData并且执行你在watch注入的回调

@jayZOU 你好 想问一下 setter 方法里的 depDataNote 意义是什么

'b.c.d': function (val, oldVal) {
      console.log('new: %s, old: %s', val, oldVal);
}

第一个参数是oldVal 第二个才是 val 吧

你好 想问一下 setter 方法里的 depDataNote 意义是什么

@Akiq2016 当时是想着保存每次reduce遍历路径之后的结果，当时有点迷糊了，没想到result就是结果了

repo: jayZOU/watch


text:
🛑 UpMob-API NL is down

In 3b8de9a, UpMob-API NL ($UPMOB_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: UpMob-API NL is back up in d3ad1cd.

repo: jayantkatia/status


text:
hello，some advice for swig-webpack-plugin

ur works is so awesome.it's a very useful plugin for me. n thank you very much.(^__^)
but when i want to put my html (not templateContent) to a new directory ,i havent find a way to do this.
n filename is not useful for it.
so i changed ur code @index.js line-64 , function emitHtml  last arguments add src or path before path.basename(template),so u need to add an option on the plugin.
n that will resolve my question.
u think it works?
my english is so bad.ahahah
nice to talk to u.
have a good day.
looking forward to ur reply.

hi @ciwyaitd , thanks for your input.
you are right, it would be nice to be able to overwrite the path-value from webpack-config with a custom path.
I'm open for pull requests. :)

authors: ciwyaitd jaylinski

repo: jaylinski/swig-webpack-plugin


text:
Improvements regarding use of Hamcrest matchers

(http://code.google.com/p/awaitility/issues/detail?id=15)

Nice!

authors: jankronquist kalgon

repo: jayway/awaitility


text:
update docs folder link

resolve https://github.com/jazzband/django-auditlog/issues/463

Thanks @Arhell

authors: Arhell hramezani

repo: jazzband/django-auditlog


text:
Add URLvalidator to validate in admin widget

This is the same method that was introduced for CVE-2019-12308: AdminURLFieldWidgetXSS.
Fixes issue #182

Tests are failing for some reason, can not merge the PR before they all pass due to project configuration.

Yes, I see that, but as far as I can see, these tests fail regardless of this PR.

Thanks, LGTM!

Released in 1.4.7 @kalzun

authors: aleksihakli kalzun

repo: jazzband/django-embed-video


text:
is it possible to use grainy form using django widget tweak

I have a model with 9 fields, I have created 3 forms (ModelForms) to use with the wizard
but I would like to have control of each field, is it possible to do it with formstools?
I put an example of what I want to do is possible in each step.

{{ wizard.management_form }}
{% if wizard.steps == 1 %}
{% render_field wizard.form.field_1 class+="css_class_1 css_class_1"  %}
{% render_field wizard.form.field_2 class+="css_class_1 css_class_2"  %}
{% render_field wizard.form.field_3 class+="css_class_1 css_class_3"  %}
{% endif %}
{% if wizard.steps == 2 %}
{% render_field wizard.form.field_4 class+="css_class_1 css_class_4"  %}
{% render_field wizard.form.field_5 class+="css_class_1 css_class_5"  %}
{% render_field wizard.form.field_6 class+="css_class_1 css_class_6"  %}
{% endif %}
{% if wizard.steps == 3 %}
{% render_field wizard.form.field_7 class+="css_class_1 css_class_7"  %}
{% render_field wizard.form.field_8 class+="css_class_1 css_class_8"  %}
{% render_field wizard.form.field_9 class+="css_class_1 css_class_9"  %}
{% endif %}

i am using only 1 template is possible??
Cheers

I have turned out like this
{% if wizard.steps.step1 == 1 %}
{% render_field wizard.form.field_1 class+="css_class_1 css_class_1" %}
{% endif %}

repo: jazzband/django-formtools


text:
Option to use finders instead of staticfiles_storage when compiling files

In using django-pipeline in local development, we have PIPELINE_ENABLED = False but still want the pipeline to compile files (such as from ES6 to JavaScript). Currently pipeline looks for the files to compile in staticfiles_storage rather than referencing staticfiles finders.
In effect then for local development, our team would need to run the 'collectstatic' command to generate our static files in staticfiles_storage before using any templates that use pipeline. And the command would need to be run again after any changes to the source static files to copy the updated files to staticfiles_storage.
It appears that the PIPELINE_COLLECTOR_ENABLED option, when set to True, effectively does this. But it takes place on every load of a template, resulting in page loads in local development that take a minute or more.
I see the change was made to use staticfiles_storage instead of finders for compiling files here: https://github.com/jazzband/django-pipeline/commit/bd6b9d8966a5e00701d3a803c4977f20df7a282d#diff-54b8c27056913aafe149e01ff0aa5e46L35
Would it be possible to implement an option to use finders instead of staticfiles_storage when compiling files? Is there a reason django-pipeline goes this route? Thanks!

Hello @mlschmitt23 Thanks for the report. I put it in the list of improvement to do and I let you know if I can do it. If you already did something, I would be really happy to get a PR from you :)

repo: jazzband/django-pipeline


text:
create jbang script ux issues

cannot select location of the script
defaults to agent where it should default to empty or hello
the generated script is not opened so tricky to find in larger projects

Now it's some hard because JBang scripts were created by CLI, and lots of work for IDEA.

Start the process
Wait for files notification
Reload from disk
Scan the directory to get file list

My suggestion is to put some JBang templates under fileTemplates/internal directory and bundle into  jbang.jar file, then plugin include this jar file, then just call following API, that's all.
 public static PsiFile createFileFromTemplate(@Nullable String name,
                                               @NotNull FileTemplate template,
                                               @NotNull PsiDirectory dir,
                                               @Nullable String defaultTemplateProperty,
                                               boolean openFile)

We can use CLI to generate the scripts during project creation,  and that's good.  For opened project,  we should choose fileTemplates to create JBang scripts.

Not seeing that as a lot of work for the plug-in. It just need to run async via invoke later and we can add better output to jbang if necessary.
What is worse will be if jbang idea now starts having its own set of templates and have to be maintained. That is a lot more work imo.

Refresh the dest directory synchronously and open all new files now.  It may be blocked for a while if dest directory contains lots of files.
                           VfsUtil.markDirtyAndRefresh(false, true, true, directory)
                            val fileEditorManager = FileEditorManager.getInstance(project)
                            //iterate all files and open new files
                            VfsUtil.iterateChildrenRecursively(
                                directory,
                                VirtualFileFilter.ALL
                            ) {
                                if (!it.isDirectory && !currentFiles.contains(it)) {
                                    fileEditorManager.openFile(it, true)
                                }
                                true
                            }

Opening all new files is not a good approach IMO.
Just search for the file name given to the init; if found open if not select new files but don't open. Then you avoid any blocking operations.

@maxandersen  a question,  developers can use JBang to generate mulit files,  and input name just part of file names.  For example:
"templates": {
    "Rocketmq": {
      "file-refs": {
        "src/{basename}Consumer.java": "templates/RocketmqConsumer.java.qute",
        "src/{basename}Provider.java": "templates/RocketmqProvider.java.qute",
        "src/application.properties": "templates/rocketmq-application.properties.qute"
      },
      "description": "Basic template for RocketMQ App"
    }
  }

If you input  MyApp.java and no real file generated in this case.

But not expected to have multiple files open. Annoying to users having to close what they don't need open.

Got. I will modify the logic and only open one  new file by ext name match, and just let developers know that JBang script files have been created successfully.

authors: linux-china maxandersen

repo: jbangdev/jbang-idea


text:
Iterating NlRouterReceiverHandle blocks forever

Version of neli
0.7.0-rc2
Does the documentation specify that neil's behavior is correct?
no.
Does there appear to be a mistake in the netlink documentation based on the kernel code?
no.
Describe the bug
Iterating NlRouterReceiverHandle hangs occasionally. It seems that the last message contains empty payload. Here are the log messages after reproducing the issue with the example code:

Expand log messages
2023-09-04T13:46:48.981Z TRACE [neli::nl] Field deserialized: Payload(Buffer)
2023-09-04T13:46:48.981Z DEBUG [neli::iter] Message received: Nlmsghdr { nl_len: 1724, nl_type: 35, nl_flags: NlmF(2), nl_seq: 1170, nl_pid: 149406, nl_payload: Payload(Buffer) }
2023-09-04T13:46:48.981Z TRACE [neli::router::synchronous] Message received: Ok(Nlmsghdr { nl_len: 1724, nl_type: 35, nl_flags: NlmF(2), nl_seq: 1170, nl_pid: 149406, nl_payload: Payload
(Buffer) })
2023-09-04T13:46:48.982Z TRACE [neli::utils::synchronous] Semaphore released; current count is 0, available is 3
2023-09-04T13:46:48.982Z TRACE [neli::utils::synchronous] Semaphore acquired; current count is 1, available is 2
2023-09-04T13:46:48.982Z TRACE [neli::socket::synchronous] Buffer received: [20, 0, 0, 0, 3, 0, 2, 0, 146, 4, 0, 0, 158, 71, 2, 0, 0, 0, 0, 0]
2023-09-04T13:46:48.982Z TRACE [neli::nl] Deserializing data type Nlmsghdr
2023-09-04T13:46:48.982Z TRACE [neli::nl] Deserializing field type u32
2023-09-04T13:46:48.982Z TRACE [neli::nl] Buffer to be deserialized: [20, 0, 0, 0]
2023-09-04T13:46:48.982Z TRACE [neli::nl] Field deserialized: 20
2023-09-04T13:46:48.982Z TRACE [neli::nl] Deserializing field type u16
2023-09-04T13:46:48.982Z TRACE [neli::nl] Buffer to be deserialized: [3, 0]
2023-09-04T13:46:48.982Z TRACE [neli::nl] Field deserialized: 3
2023-09-04T13:46:48.982Z TRACE [neli::nl] Deserializing field type neli::consts::nl::NlmF
2023-09-04T13:46:48.982Z TRACE [neli::nl] Buffer to be deserialized: [2, 0]
2023-09-04T13:46:48.982Z TRACE [neli::consts::nl] Deserializing data type NlmF
2023-09-04T13:46:48.982Z TRACE [neli::consts::nl] Deserializing field type u16
2023-09-04T13:46:48.982Z TRACE [neli::consts::nl] Buffer to be deserialized: [2, 0]
2023-09-04T13:46:48.982Z TRACE [neli::consts::nl] Field deserialized: 2
2023-09-04T13:46:48.982Z TRACE [neli::nl] Field deserialized: NlmF(2)
2023-09-04T13:46:48.982Z TRACE [neli::nl] Deserializing field type u32
2023-09-04T13:46:48.982Z TRACE [neli::nl] Buffer to be deserialized: [146, 4, 0, 0]
2023-09-04T13:46:48.982Z TRACE [neli::nl] Field deserialized: 1170
2023-09-04T13:46:48.982Z TRACE [neli::nl] Deserializing field type u32
2023-09-04T13:46:48.982Z TRACE [neli::nl] Buffer to be deserialized: [158, 71, 2, 0]
2023-09-04T13:46:48.982Z TRACE [neli::nl] Field deserialized: 149406
2023-09-04T13:46:48.982Z TRACE [neli::nl] Deserializing field type neli::nl::NlPayload<u16, neli::types::Buffer>
2023-09-04T13:46:48.982Z TRACE [neli::nl] Buffer to be deserialized: [0, 0, 0, 0]
2023-09-04T13:46:48.982Z TRACE [neli::nl] Deserializing data type neli::nl::NlPayload<u16, neli::types::Buffer>
2023-09-04T13:46:48.982Z TRACE [neli::nl] Received empty payload
2023-09-04T13:46:48.982Z TRACE [neli::nl] Padding: [0, 0, 0, 0]
2023-09-04T13:46:48.982Z TRACE [neli::nl] Field deserialized: Empty
2023-09-04T13:46:48.982Z DEBUG [neli::iter] Message received: Nlmsghdr { nl_len: 20, nl_type: 3, nl_flags: NlmF(2), nl_seq: 1170, nl_pid: 149406, nl_payload: Empty }
2023-09-04T13:46:48.982Z TRACE [neli::router::synchronous] Message received: Ok(Nlmsghdr { nl_len: 20, nl_type: 3, nl_flags: NlmF(2), nl_seq: 1170, nl_pid: 149406, nl_payload: Empty })
2023-09-04T13:46:48.982Z TRACE [neli::utils::synchronous] Semaphore released; current count is 0, available is 3
2023-09-04T13:46:48.982Z TRACE [neli::utils::synchronous] Semaphore acquired; current count is 1, available is 2

To Reproduce
The code below reproduces the issue quite quickly.

Expand example code
use neli::{
    consts::{
        nl::{NlmF, Nlmsg},
        socket::NlFamily,
    },
    genl::{Genlmsghdr, GenlmsghdrBuilder, NoUserHeader},
    nl::NlPayload,
    router::synchronous::{NlRouter, NlRouterReceiverHandle},
    utils::Groups,
};
use std::error::Error;

#[neli::neli_enum(serialized_type = "u8")]
pub enum Nl80211Command {
    Unspecified = 0,
    GetReg = 31,
}
impl neli::consts::genl::Cmd for Nl80211Command {}

#[neli::neli_enum(serialized_type = "u16")]
pub enum Nl80211Attribute {
    Unspecified = 0,
    RegAlpha2 = 33,
}
impl neli::consts::genl::NlAttrType for Nl80211Attribute {}

fn main() -> Result<(), Box<dyn Error>> {
    let (socket, _) = NlRouter::connect(NlFamily::Generic, None, Groups::empty()).unwrap();
    let nl_type = socket.resolve_genl_family("nl80211").unwrap();
    let nl_payload = NlPayload::Payload(
        GenlmsghdrBuilder::<Nl80211Command, Nl80211Attribute, NoUserHeader>::default()
            .cmd(Nl80211Command::GetReg)
            .version(1)
            .build()
            .unwrap(),
    );
    loop {
        println!("\n\n\n\n\n");
        let recv: NlRouterReceiverHandle<Nlmsg, Genlmsghdr<Nl80211Command, Nl80211Attribute>> =
            socket.send(nl_type, NlmF::REQUEST | NlmF::DUMP, nl_payload.clone())?;
        for msg in recv {
            let msg = msg?;
            println!("msg={:?}", msg.nl_type());
        }
    }
}

Expected behavior
Iterating NlRouterReceiverHandle should never get stuck and block forever.
Additional context
This seems to only happen with synchronous code. I can't reproduce the issue with async socket.

Okay it seems that this is reproducible with async socket as well:
use neli::{
    consts::{
        nl::{NlmF, Nlmsg},
        socket::NlFamily,
    },
    genl::{Genlmsghdr, GenlmsghdrBuilder, NoUserHeader},
    nl::NlPayload,
    router::asynchronous::{NlRouter, NlRouterReceiverHandle},
    utils::Groups,
};
use std::error::Error;

#[neli::neli_enum(serialized_type = "u8")]
pub enum Nl80211Command {
    Unspecified = 0,
    GetReg = 31,
}
impl neli::consts::genl::Cmd for Nl80211Command {}

#[neli::neli_enum(serialized_type = "u16")]
pub enum Nl80211Attribute {
    Unspecified = 0,
    RegAlpha2 = 33,
}
impl neli::consts::genl::NlAttrType for Nl80211Attribute {}

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let (socket, _) = NlRouter::connect(NlFamily::Generic, None, Groups::empty())
        .await
        .unwrap();
    let nl_type = socket.resolve_genl_family("nl80211").await.unwrap();
    let nl_payload = NlPayload::Payload(
        GenlmsghdrBuilder::<Nl80211Command, Nl80211Attribute, NoUserHeader>::default()
            .cmd(Nl80211Command::GetReg)
            .version(1)
            .build()
            .unwrap(),
    );
    loop {
        println!("\n\n\n\n\n");
        let mut recv: NlRouterReceiverHandle<Nlmsg, Genlmsghdr<Nl80211Command, Nl80211Attribute>> =
            socket
                .send(nl_type, NlmF::REQUEST | NlmF::DUMP, nl_payload.clone())
                .await?;
        while let Some(Ok(msg)) = recv
            .next::<Nlmsg, Genlmsghdr<Nl80211Command, Nl80211Attribute>>()
            .await
        {
            println!("msg={:?}", msg.nl_type());
        }
    }
}

Log messages before hanging:
2023-09-07T07:49:15.068Z TRACE [neli::utils::asynchronous] Semaphore acquired; current count is 1, available is 2
2023-09-07T07:49:15.068Z TRACE [neli::socket::asynchronous] Buffer received: [20, 0, 0, 0, 3, 0, 2, 0, 73, 79, 0, 0, 185, 0, 7, 0, 0, 0, 0, 0]
2023-09-07T07:49:15.068Z TRACE [neli::nl] Deserializing data type Nlmsghdr
2023-09-07T07:49:15.068Z TRACE [neli::nl] Deserializing field type u32
2023-09-07T07:49:15.068Z TRACE [neli::nl] Buffer to be deserialized: [20, 0, 0, 0]
2023-09-07T07:49:15.068Z TRACE [neli::nl] Field deserialized: 20
2023-09-07T07:49:15.068Z TRACE [neli::nl] Deserializing field type u16
2023-09-07T07:49:15.068Z TRACE [neli::nl] Buffer to be deserialized: [3, 0]
2023-09-07T07:49:15.068Z TRACE [neli::nl] Field deserialized: 3
2023-09-07T07:49:15.068Z TRACE [neli::nl] Deserializing field type neli::consts::nl::NlmF
2023-09-07T07:49:15.068Z TRACE [neli::nl] Buffer to be deserialized: [2, 0]
2023-09-07T07:49:15.068Z TRACE [neli::consts::nl] Deserializing data type NlmF
2023-09-07T07:49:15.068Z TRACE [neli::consts::nl] Deserializing field type u16
2023-09-07T07:49:15.068Z TRACE [neli::consts::nl] Buffer to be deserialized: [2, 0]
2023-09-07T07:49:15.068Z TRACE [neli::consts::nl] Field deserialized: 2
2023-09-07T07:49:15.068Z TRACE [neli::nl] Field deserialized: NlmF(2)
2023-09-07T07:49:15.068Z TRACE [neli::nl] Deserializing field type u32
2023-09-07T07:49:15.068Z TRACE [neli::nl] Buffer to be deserialized: [73, 79, 0, 0]
2023-09-07T07:49:15.068Z TRACE [neli::nl] Field deserialized: 20297
2023-09-07T07:49:15.068Z TRACE [neli::nl] Deserializing field type u32
2023-09-07T07:49:15.068Z TRACE [neli::nl] Buffer to be deserialized: [185, 0, 7, 0]
2023-09-07T07:49:15.068Z TRACE [neli::nl] Field deserialized: 458937
2023-09-07T07:49:15.068Z TRACE [neli::nl] Deserializing field type neli::nl::NlPayload<u16, neli::types::Buffer>
2023-09-07T07:49:15.068Z TRACE [neli::nl] Buffer to be deserialized: [0, 0, 0, 0]
2023-09-07T07:49:15.068Z TRACE [neli::nl] Deserializing data type neli::nl::NlPayload<u16, neli::types::Buffer>
2023-09-07T07:49:15.068Z TRACE [neli::nl] Received empty payload
2023-09-07T07:49:15.068Z TRACE [neli::nl] Padding: [0, 0, 0, 0]
2023-09-07T07:49:15.068Z TRACE [neli::nl] Field deserialized: Empty
2023-09-07T07:49:15.068Z DEBUG [neli::iter] Message received: Nlmsghdr { nl_len: 20, nl_type: 3, nl_flags: NlmF(2), nl_seq: 20297, nl_pid: 458937, nl_payload:
Empty }
2023-09-07T07:49:15.068Z TRACE [neli::router::asynchronous] Message received: Ok(Nlmsghdr { nl_len: 20, nl_type: 3, nl_flags: NlmF(2), nl_seq: 20297, nl_pid: 4
58937, nl_payload: Empty })
2023-09-07T07:49:15.068Z TRACE [neli::utils::asynchronous] Semaphore released; current count is 1, max is 2
2023-09-07T07:49:15.068Z TRACE [neli::utils::asynchronous] Semaphore acquired; current count is 1, available is 2

I think I found the cause of this bug. It looks like a race condition where the message processing thread does not become aware of the sequence number that it should be listening for until after the message is already sent, allowing a short window of time for the message to arrive before the sequence number is registered. This causes the processing thread to drop the message which will lead to the message being received in the processing thread but will never be sent to the receiver handle. I have a fix that I'll put up for you to test, but I think this part of the code bears further scrutiny, largely because I'm wondering what the best way to report a message that has no recognized PID would be. Do you think a separate channel like the multicast receiver would be best for unrecognized messages?

Please test #227 and see if it resolves this first issue of hanging. It did in my testing of your example code.

Please test #227 and see if it resolves this first issue of hanging. It did in my testing of your example code.

The fix seems the resolve the issue. Thank you!

I have a fix that I'll put up for you to test, but I think this part of the code bears further scrutiny, largely because I'm wondering what the best way to report a message that has no recognized PID would be. Do you think a separate channel like the multicast receiver would be best for unrecognized messages?

I'm not so familiar with neli internals that I could answer this confidently, but would you be able to use a single channel if you use an enum to represent messages with and without recognized PID?

One thing to keep in mind is that already there's a channel per message sent and the router thread routes the message to the correct receiver handle based on sequence number and PID. There's a single channel for multicast messages and I'm proposing adding one last channel for packets that couldn't be routed to any known PID. I think this is much better than the current solution of broadcasting that error to all channels. #221 makes the current approach particularly problematic.

authors: jbaublitz ollipa

repo: jbaublitz/neli


text:
Replace CHM with HashMap in CHMGraphCache

The map in the CHMGraphCache is initialized during class construction and then never updated again. We can safely use a HashMap by assigning it to a final variable in the GraphCache class to ensure safe publication. Then, the get() operations should be faster since there is no need to read from volatile variables. This is likely a very minor change, but since it is at the bottom of the stack and is used as we traverse the graph for each node that we visit, it seems like a potentially valuable change.
Current Benchmark Numbers
I ran mvn clean compile exec:exec@bench -DbenchArgs="nytimes" two times in a row to get:
nytimes-256-angular.hdf5: 289761 base and 9991 query vectors created, dimensions 256
Build M=16 ef=100 in 67.92s with avg degree 31.98 and 0.72 short edges
Uncompressed vectors
  Query (memory) top 100/1 recall 0.7281 in 2.82s after 43,143,500 nodes visited
  Query (disk) top 100/1 recall 0.7281 in 5.96s after 43,143,500 nodes visited
  Query (memory) top 100/2 recall 0.7775 in 6.13s after 75,900,506 nodes visited
  Query (disk) top 100/2 recall 0.7775 in 11.85s after 75,900,506 nodes visited
BinaryQuantization build in 0.06s,
BinaryQuantization encoded 289,761 vectors [13.26 MB] in 0.12s
  Query top 100/1 recall 0.3836 in 2.72s after 54,455,368 nodes visited
  Query top 100/2 recall 0.4993 in 3.24s after 95,710,444 nodes visited
ProductQuantization(64) build in 10.80s,
ProductQuantization(64) encoded 289,761 vectors [22.61 MB] in 2.69s
  Query top 100/1 recall 0.6457 in 2.54s after 44,194,642 nodes visited
  Query top 100/2 recall 0.7638 in 3.97s after 77,578,322 nodes visited
ProductQuantization(32) build in 9.50s,
ProductQuantization(32) encoded 289,761 vectors [13.64 MB] in 2.26s
  Query top 100/1 recall 0.5286 in 1.96s after 46,249,428 nodes visited
  Query top 100/2 recall 0.6695 in 3.19s after 80,703,390 nodes visited

nytimes-256-angular.hdf5: 289761 base and 9991 query vectors created, dimensions 256
Build M=16 ef=100 in 69.08s with avg degree 31.98 and 0.72 short edges
Uncompressed vectors
  Query (memory) top 100/1 recall 0.7271 in 2.61s after 43,040,146 nodes visited
  Query (disk) top 100/1 recall 0.7271 in 5.54s after 43,040,146 nodes visited
  Query (memory) top 100/2 recall 0.7778 in 6.10s after 75,913,800 nodes visited
  Query (disk) top 100/2 recall 0.7778 in 11.70s after 75,913,800 nodes visited
BinaryQuantization build in 0.05s,
BinaryQuantization encoded 289,761 vectors [13.26 MB] in 0.12s
  Query top 100/1 recall 0.3843 in 3.12s after 54,337,928 nodes visited
  Query top 100/2 recall 0.4998 in 4.85s after 95,492,742 nodes visited
ProductQuantization(64) build in 15.86s,
ProductQuantization(64) encoded 289,761 vectors [22.61 MB] in 3.21s
  Query top 100/1 recall 0.6460 in 2.97s after 43,980,682 nodes visited
  Query top 100/2 recall 0.7634 in 4.41s after 77,401,564 nodes visited
ProductQuantization(32) build in 11.15s,
ProductQuantization(32) encoded 289,761 vectors [13.64 MB] in 2.45s
  Query top 100/1 recall 0.5296 in 2.42s after 46,308,822 nodes visited
  Query top 100/2 recall 0.6698 in 3.89s after 80,838,354 nodes visited

With PR
I ran mvn clean compile exec:exec@bench -DbenchArgs="nytimes" two times in a row to get:
nytimes-256-angular.hdf5: 289761 base and 9991 query vectors created, dimensions 256
Build M=16 ef=100 in 68.41s with avg degree 31.98 and 0.72 short edges
Uncompressed vectors
  Query (memory) top 100/1 recall 0.7288 in 2.76s after 43,148,414 nodes visited
  Query (disk) top 100/1 recall 0.7288 in 5.61s after 43,148,414 nodes visited
  Query (memory) top 100/2 recall 0.7777 in 4.62s after 75,984,238 nodes visited
  Query (disk) top 100/2 recall 0.7777 in 9.17s after 75,984,238 nodes visited
BinaryQuantization build in 0.05s,
BinaryQuantization encoded 289,761 vectors [13.26 MB] in 0.12s
  Query top 100/1 recall 0.3837 in 2.53s after 54,465,400 nodes visited
  Query top 100/2 recall 0.4993 in 2.89s after 95,726,412 nodes visited
ProductQuantization(64) build in 11.57s,
ProductQuantization(64) encoded 289,761 vectors [22.61 MB] in 2.98s
  Query top 100/1 recall 0.6472 in 2.63s after 44,069,632 nodes visited
  Query top 100/2 recall 0.7644 in 4.19s after 77,371,530 nodes visited
ProductQuantization(32) build in 10.44s,
ProductQuantization(32) encoded 289,761 vectors [13.64 MB] in 2.43s
  Query top 100/1 recall 0.5302 in 2.11s after 46,361,400 nodes visited
  Query top 100/2 recall 0.6705 in 3.45s after 80,771,098 nodes visited

nytimes-256-angular.hdf5: 289761 base and 9991 query vectors created, dimensions 256
Build M=16 ef=100 in 73.78s with avg degree 31.98 and 0.72 short edges
Uncompressed vectors
  Query (memory) top 100/1 recall 0.7278 in 2.77s after 43,076,102 nodes visited
  Query (disk) top 100/1 recall 0.7278 in 5.37s after 43,076,102 nodes visited
  Query (memory) top 100/2 recall 0.7781 in 4.48s after 75,968,194 nodes visited
  Query (disk) top 100/2 recall 0.7781 in 8.75s after 75,968,194 nodes visited
BinaryQuantization build in 0.05s,
BinaryQuantization encoded 289,761 vectors [13.26 MB] in 0.12s
  Query top 100/1 recall 0.3833 in 2.41s after 54,300,148 nodes visited
  Query top 100/2 recall 0.4990 in 2.99s after 95,545,502 nodes visited
ProductQuantization(64) build in 10.29s,
ProductQuantization(64) encoded 289,761 vectors [22.61 MB] in 2.49s
  Query top 100/1 recall 0.6473 in 2.50s after 44,135,836 nodes visited
  Query top 100/2 recall 0.7637 in 4.11s after 77,432,240 nodes visited
ProductQuantization(32) build in 9.28s,
ProductQuantization(32) encoded 289,761 vectors [13.64 MB] in 2.11s
  Query top 100/1 recall 0.5304 in 2.31s after 46,319,646 nodes visited
  Query top 100/2 recall 0.6708 in 3.99s after 80,763,738 nodes visited

Additional thoughts
In most of the above results, we're faster with the HM instead of the CHM. I'm not sure how else we want to improve this though.

Thanks!

authors: jbellis michaeljmarshall

repo: jbellis/jvector


text:
Implement periodic push and corresponding unit test.

@jbhatt-salesforce Check out this pull request for implementation of metric updater logic and corresponding unit test.  Let me know if there are questions.

Current coverage is 31.93% (diff: 75.00%)

No coverage report found for develop at 3819743.

Powered by Codecov. Last update 3819743...210991e

@saaja-sfdc looks great!! I'm going to step through it to better understand it.

authors: codecov-io jbhatt-salesforce saaja-sfdc

repo: jbhatt-salesforce/Warden-Service


text:
Regression in getLogDir method

In wildfly container is returned directory path without last slash
In fuse container is returned directory path with last slash (and also in karaf container)

Super.
Lukas
----- Original Message -----
From: "Martin Basovnik" notifications@github.com
To: "jboss-soa-qa/jcontainer-manager" jcontainer-manager@noreply.github.com
Cc: "llowinge" llowinge@redhat.com
Sent: Monday, November 30, 2015 10:49:37 AM
Subject: Re: [jcontainer-manager] Regression in getLogDir method (#65)
Closed #65 via f5d071c1cf915a87a1f58029eb9e686fb4672aac.

Reply to this email directly or view it on GitHub:
https://github.com/jboss-soa-qa/jcontainer-manager/issues/65#event-477516241

repo: jboss-soa-qa/jcontainer-manager


text:
npm run clean:android fails, unable to install native app

I started using this boilerplate and it works perfectly fine with expo but when I ran npm run clean:android on my project it failed. So, I just created a sample app and did not change anything in the project to check whether it's something I have added as a dependency that is causing this issue. But still got the same error in Freshly created app -
`

MyLatestCreation@0.0.1 clean:android /Users/dxraider/Priyesh/projects/bittrex/MyLatestCreation
cd android/ && ./gradlew clean && cd .. && react-native run-android

Incremental java compilation is an incubating feature.
:app:clean
:react-native-i18n:clean
BUILD SUCCESSFUL
Total time: 7.41 secs
This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html
Scanning folders for symlinks in /Users/dxraider/Priyesh/projects/bittrex/MyLatestCreation/node_modules (23ms)
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:react-native-i18n:preBuild UP-TO-DATE
:react-native-i18n:preReleaseBuild UP-TO-DATE
:react-native-i18n:checkReleaseManifest
:react-native-i18n:preDebugAndroidTestBuild UP-TO-DATE
:react-native-i18n:preDebugBuild UP-TO-DATE
:react-native-i18n:preDebugUnitTestBuild UP-TO-DATE
:react-native-i18n:preReleaseUnitTestBuild UP-TO-DATE
:react-native-i18n:prepareComAndroidSupportAppcompatV72301Library
:react-native-i18n:prepareComAndroidSupportSupportV42301Library
:react-native-i18n:prepareComFacebookFrescoDrawee061Library
:react-native-i18n:prepareComFacebookFrescoFbcore061Library
:react-native-i18n:prepareComFacebookFrescoFresco061Library
:react-native-i18n:prepareComFacebookFrescoImagepipeline061Library
:react-native-i18n:prepareComFacebookFrescoImagepipelineOkhttp061Library
:react-native-i18n:prepareComFacebookReactReactNative0120Library
:react-native-i18n:prepareOrgWebkitAndroidJscR174650Library
:react-native-i18n:prepareReleaseDependencies
:react-native-i18n:compileReleaseAidl
:react-native-i18n:compileReleaseNdk UP-TO-DATE
:react-native-i18n:compileLint
:react-native-i18n:copyReleaseLint UP-TO-DATE
:react-native-i18n:compileReleaseRenderscript
:react-native-i18n:generateReleaseBuildConfig
:react-native-i18n:generateReleaseResValues
:react-native-i18n:generateReleaseResources
:react-native-i18n:mergeReleaseResources
:react-native-i18n:processReleaseManifest
:react-native-i18n:processReleaseResources
:react-native-i18n:generateReleaseSources
:react-native-i18n:incrementalReleaseJavaCompilationSafeguard
:react-native-i18n:compileReleaseJavaWithJavac
:react-native-i18n:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:react-native-i18n:extractReleaseAnnotations
:react-native-i18n:mergeReleaseShaders
:react-native-i18n:compileReleaseShaders
:react-native-i18n:generateReleaseAssets
:react-native-i18n:mergeReleaseAssets
:react-native-i18n:mergeReleaseProguardFiles
:react-native-i18n:packageReleaseRenderscript UP-TO-DATE
:react-native-i18n:packageReleaseResources
:react-native-i18n:processReleaseJavaRes UP-TO-DATE
:react-native-i18n:transformResourcesWithMergeJavaResForRelease
:react-native-i18n:transformClassesAndResourcesWithSyncLibJarsForRelease
:react-native-i18n:mergeReleaseJniLibFolders
:react-native-i18n:transformNative_libsWithMergeJniLibsForRelease
:react-native-i18n:transformNative_libsWithSyncJniLibsForRelease
:react-native-i18n:bundleRelease
:app:prepareComAndroidSupportAppcompatV72301Library
:app:prepareComAndroidSupportRecyclerviewV72301Library
:app:prepareComAndroidSupportSupportV42301Library
:app:prepareComFacebookFrescoDrawee081Library
:app:prepareComFacebookFrescoFbcore081Library
:app:prepareComFacebookFrescoFresco081Library
:app:prepareComFacebookFrescoImagepipeline081Library
:app:prepareComFacebookFrescoImagepipelineOkhttp081Library
:app:prepareComFacebookReactReactNative0201Library
:app:prepareMyLatestCreationReactNativeI18nUnspecifiedLibrary
:app:prepareOrgWebkitAndroidJscR174650Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:app:mergeDebugAssets
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:bundleDebugJsAndAssets SKIPPED
:app:processDebugManifest
:app:processDebugResources
warning: string 'catalyst_debugjs' has no default translation.
warning: string 'catalyst_element_inspector' has no default translation.
warning: string 'catalyst_jsload_error' has no default translation.
warning: string 'catalyst_jsload_message' has no default translation.
warning: string 'catalyst_jsload_title' has no default translation.
warning: string 'catalyst_reloadjs' has no default translation.
warning: string 'catalyst_settings' has no default translation.
warning: string 'catalyst_settings_title' has no default translation.
:app:generateDebugSources
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/dxraider/Priyesh/projects/bittrex/MyLatestCreation/android/app/src/main/java/com/mylatestcreation/MainApplication.java:5: error: cannot find symbol
import com.facebook.react.ReactApplication;
^
symbol:   class ReactApplication
location: package com.facebook.react
/Users/dxraider/Priyesh/projects/bittrex/MyLatestCreation/android/app/src/main/java/com/mylatestcreation/MainApplication.java:7: error: cannot find symbol
import com.facebook.react.ReactNativeHost;
^
symbol:   class ReactNativeHost
location: package com.facebook.react
/Users/dxraider/Priyesh/projects/bittrex/MyLatestCreation/android/app/src/main/java/com/mylatestcreation/MainApplication.java:15: error: cannot find symbol
public class MainApplication extends Application implements ReactApplication {
^
symbol: class ReactApplication
/Users/dxraider/Priyesh/projects/bittrex/MyLatestCreation/android/app/src/main/java/com/mylatestcreation/MainApplication.java:17: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol:   class ReactNativeHost
location: class MainApplication
/Users/dxraider/Priyesh/projects/bittrex/MyLatestCreation/android/app/src/main/java/com/mylatestcreation/MainApplication.java:38: error: cannot find symbol
public ReactNativeHost getReactNativeHost() {
^
symbol:   class ReactNativeHost
location: class MainApplication
/Users/dxraider/Priyesh/projects/bittrex/MyLatestCreation/android/app/src/main/java/com/mylatestcreation/MainApplication.java:17: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol:   class ReactNativeHost
location: class MainApplication
/Users/dxraider/Priyesh/projects/bittrex/MyLatestCreation/android/app/src/main/java/com/mylatestcreation/MainApplication.java:37: error: method does not override or implement a method from a supertype
@Override
^
/Users/dxraider/Priyesh/projects/bittrex/MyLatestCreation/android/app/src/main/java/com/mylatestcreation/MainActivity.java:5: error: MainActivity is not abstract and does not override abstract method getPackages() in ReactActivity
public class MainActivity extends ReactActivity {
^
8 errors
:app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
Total time: 15.137 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html`

@drdeath2609 it is difficult for me to work with Android on my computer. Can you please edit package.json line 11 to be "clean:android": "cd android/ && ./gradlew clean && cd .. && react-native-scripts android", and try again? The key is changing react-native run-android to react-native-scripts android. I do not think that react-native run-android is valid in the Expo fork.
If it works I can make the change to master and update the npm packages.

repo: jbosse/ignite-expo-boilerplate


text:
override eslint in config files

What does this PR do and why?
tiny PR for general housekeeping. overriding eslint rules on config files so we don't need explicit comments
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.
[ ] I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #1946   👈

This comment was auto-generated by Graphite.

repo: jbx-protocol/juice-interface


text:
Loaded but does nothing

I'm using neovim 0.7.2 but I also tried the vim plugin with a bare vim configuration. The filetype isn't set and even if I set it manually there's no coloration or anything :/
I can confirm plugin is loaded by checking packer_plugins global

The filetype is not set by ntangle.nvim. That's normal. The filetype was set in the previous tangle.vim, to have a cheap hack to still have syntax coloring. But it now relies on an external plugin ntangle-ts.nvim. Installing it will enable syntax coloring.

Did you succeed in something?

i didnt try yet. i'll tell you as soon as i do

Ok

I tried with only your plugins and treesitter but nothing happens. I'm unsure if I'm doing something wrong.
Here the result:

And you can reproduce with the following script, passing as argument the init.lua below and somewhere to store runtime data and config dir.
# nvim-alt

if [[ ! -n "$(LC_ALL=C type -t realpath)" ]]
then
    realpath() (
        OURPWD=$PWD
        cd "$(dirname "$1")"
        LINK=$(readlink "$(basename "$1")")
        while [ "$LINK" ]; do
            cd "$(dirname "$LINK")"
            LINK=$(readlink "$(basename "$1")")
        done
        REALPATH="$PWD/$(basename "$1")"
        cd "$OURPWD"
        echo "$REALPATH"
    )
fi

if [[ $TERMUX_VERSION ]];
then
    TMPDIR="$TMUX_TMPDIR"
else
    TMPDIR="${TMPDIR:-/tmp}"
fi

if [[ ! -f "$(realpath $1)" ]]
then
    echo "Invalid argument"
    echo "syntax: $0 VIMRC [DIR]"
    echo "VIMRC is the configuration file to use"
    echo "DIR is where runtime and configuration will be stored."
    echo "if not specified a temporary one will be used."
fi

if [[ ! -n "$2" ]]
then
    NVIM_DIR="$(mktemp --directory nvim-test.XXXXXXXX)"
else
    if [[ ! -d "$(realpath $2)" ]]
    then
        mkdir "$2"
    fi
    NVIM_DIR="$2"
fi

ROOT="$(dirname "$(dirname "$(realpath "$0")")")"
export XDG_DATA_HOME="$NVIM_DIR/data"
export XDG_CONFIG_HOME="$NVIM_DIR/conf"
export MYVIMRC="$1"

echo data stored in $NVIM_DIR
nvim -u "$MYVIMRC"
#rm -rf "$TEST_TMP_DIR"

with the following configuration:
-- vim: et sw=4 ts=4:
local function clone_packer()
    local path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
    if vim.fn.empty(vim.fn.glob(path)) > 0 then
        vim.fn.system {
            'git',
            'clone',
            '--depth=1',
            'https://github.com/wbthomason/packer.nvim',
            path
        }
    end
end

local function bootstrap_packer(pkgs, opts)
    pkgs = pkgs or {}
    opts = opts or {}
    clone_packer()
    -- Load Packer
    vim.cmd('packadd packer.nvim')
    local packer = require('packer')
    packer.startup({ pkgs, opts })
    packer.sync()
end

local pkgs = {
    'wbthomason/packer.nvim',
    'jbyuki/ntangle.nvim',
    'jbyuki/ntangle-ts.nvim',
    {
        'nvim-treesitter/nvim-treesitter',
        run = function()
            require('nvim-treesitter.install').update({ with_sync = true })
        end,
    },
}

bootstrap_packer(pkgs)

I don't see the extension of the file on the top-left but is that a neorg file? To syntax color that, you need to install neorg.nvim probably. My plugins support *.t files such as *.lua.t file, that's a completely different way to program to neorg. Maybe you were looking for something else all along?

My confusion, I got here thinking it was a plugin for Literate (which anyway I was going to drop because of some bugs)

authors: jbyuki soratobukuroneko


text:
There may be a problem communicating with the Registry

Hello, after I run ui container i dont see my registry in GUI with this message :  There may be a problem communicating with the Registry.
i have tested my registry address in browser and its ok.

see registry ui logs by docker logs -f


text:
Fixes crash when logrotate fails

Fixes https://github.com/jc21/nginx-proxy-manager/issues/1250
Somehow the owner of the logs is sometimes not root, which causes logrotate to fail. This makes sure that a failing of logrotate does not crash npm.

This is an automated message from CI:
Docker Image for build 1 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1255
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

So this just logs the problem but doesn't really fix it. In addition to this change you can add a new file
docker/rootfs/etc/cont-init.d/01-perms
and chmod +x it before committing it. In this file, you can perform operations that are executing at container start:
#!/usr/bin/with-contenv bash

mkdir -p /data/logs
chown -R root:root /data/logs

Well It fixes the npm crashing problem not the logrotate problem, yeah.
But with the chown at container start is a great idea, I wouldn'tve thought of that

Works as expected. Let's hope this won't break accessing the logs for anyone :crossed_fingers:

This is an automated message from CI:
Docker Image for build 2 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1255
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.


text:
Export feature generates sheets with all cells selected

It saves a click  if the process just goes to cell A1 after generating each sheet

Sorted

repo: jceresearch/stixls


text:
Unable To Make Call

This was working until recently, now getting:
PJSIP(1):    pjsua_acc.c  .....Unable to create/send REGISTER: Object is busy (PJSIP_EBUSY) [status=171001]
13:18:31.395 ERROR:     [0x106514000] AVAudioSessionUtilities.h:111: GetProperty: AudioSessionGetProperty ('cilt') failed with error: '!siz'
13:18:31.396 ERROR:     [0x106514000] AVAudioSessionUtilities.h:124: GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz'
PJSIP(2):    pjsua_acc.c  ...SIP registration failed, status=408 (Request Timeout) 2015-05-31 13:18:53.392 FitSpot[3348:1186674] Did stop listening for connections due to error Generic Error

Apologies @jconst, this was yet another Twillio bug !

@SolomonBier I just came across the same issue as you did.  Could you shed some light on how you solved the problem?

13:18:31.395 ERROR: [0x106514000] AVAudioSessionUtilities.h:111: GetProperty: AudioSessionGetProperty ('cilt') failed with error: '!siz'
13:18:31.396 ERROR: [0x106514000] AVAudioSessionUtilities.h:124: GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz'

authors: SidMcLaughlin SolomonBier

repo: jconst/PhoneKit


text:
Prism don't work with exec typing animation

Issue summary
The prism is applied only for echo and command and typing animation use prompt. You can fix this by adding:
$.terminal.prism_formatters.prompt = true;

But then formatter is applied to original prompt as well.
Expected behavior
Exec with typing animation should show syntax highlighting while the animation running
Actual behavior
No syntax visible until animation finishes
Steps to reproduce

Open Terminal Demo
type demo()

The solution may be to add additional type for formatters: "animation" so Prism will be able to use it.

The website got updated and $.terminal.prism_formatters.prompt = true; was added.


text:
find fails with array of ids

The default behaviour of Model#find is to take a single id and returns a single element or take
an array of ids and returns an array of elements (though duplicate ids in the array are not in the result).
Expected behaviour:
using the code below will work with hashid-rails installed
Model.find([1,2])
=> [#<Model id: 1>,  #<Model id: 2>]

Actual Result
Get an error
ActiveRecord::RecordNotFound: Couldn't find Role without an ID
        from /Users/drb/.gem/ruby/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation/finder_methods.rb:454:in `find_with_ids'
        from /Users/drb/.gem/ruby/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation/finder_methods.rb:66:in `find'
        from /Users/drb/.gem/ruby/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/querying.rb:3:in `find'
        from /Users/drb/.gem/ruby/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/core.rb:151:in `find'
        from /Users/drb/.gem/ruby/2.3.0/gems/hashid-rails-0.5.0/lib/hashid/rails.rb:66:in `find'
        from (irb):1
        from /Users/drb/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/console.rb:65:in `start'
        from /Users/drb/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/console_helper.rb:9:in `start'
        from /Users/drb/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:78:in `console'
        from /Users/drb/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
        from /Users/drb/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
        from /Users/drb/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
        from /Users/drb/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
        from /Users/drb/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
        from /Users/drb/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
        from /Users/drb/Code/project/mafia-rails/bin/rails:9:in `<top (required)>'
        from /Users/drb/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `load'
        from /Users/drb/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `block in load'
        from /Users/drb/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
        from /Users/drb/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `load'
        from /Users/drb/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /Users/drb/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from -e:1:in `<main>'

Environment
This was found to occur on Ruby on Rails 5.0.1 and ruby 2.3.3 on macOS

Hi @zyphrus. Thanks for pointing this out! I was able to replicate the issue you mentioned, added a test case, and implemented a fix in version 0.6.0 (https://github.com/jcypret/hashid-rails/commit/23caa2228d6c345050040f6287a7dd33d1aadf51).

authors: jcypret zyphrus

repo: jcypret/hashid-rails


text:
Record number of result set rows in DataSourceQueryCountListener

I'd like to test the number of returned rows from some JPA select queries. Would it be possible to add that to net.ttddyy.dsproxy.QueryCount?

+1 for this feature. Or is there a manual way how to count number of rows returned, by intercepting how many times next() method was called?

DataSourceQueryCountListener may or may not be appropriate because it is an accumulated number by thread or global, based on the strategy.
This means, if it is thread based, the count for the ResultSet#next becomes a total of all the ResultSet reads for the thread(usually typical request-response lifecycle in servlet). So, if one request-response makes 3 select queries and each reads 10 records, the QueryCount will have count=30. I think what people more interested is a read count for each query.
The manual way of achieving this is by implementing MethodExecutionListener and reacting on the callback of ResultSet#next.
A drawback of this approach is that you need to manage the lifecycle of ResultSet open/close and associate the count to the resultset.
This is how I have done to get the row count in the micrometer observation for DataSource.
https://github.com/jdbc-observations/datasource-micrometer/blob/main/datasource-micrometer/src/main/java/net/ttddyy/observation/tracing/DataSourceObservationListener.java#L205-L217
I think the best approach to the library is to add a callback specific to the ResultSet lifecycle.
For example, every time next is called, trigger a callback with a value that contains how many times it is called for the specific ResultSet. (actually, r2dbc-proxy has this callback.)
Also, need a callback when ResultSet#close is called to receive the total count for the next. A thing that makes it more interesting is that calling ResultSet#close is an optional operation that Statement#close implies the close of the ResultSet.
(Just a memo to myself about what needs to be done to achieve this)

authors: fretfan jochenberger ttddyy

repo: jdbc-observations/datasource-proxy


text:
Potential CMR temporal bugs

While testing the temporal option to exclude the range boundaries, it appears the CMR results don't quite match what the documentation suggests it should return.
If you make a request such as this:
granules = response["feed"]["entry"]

for granule in granules:
  print("{} to {}".format(granule["time_start"], granule["time_end"]))

you will get the following output
2016-10-10T01:38:36.000Z to 2016-10-10T01:38:36.000Z
2016-10-10T01:38:45.000Z to 2016-10-10T01:38:45.000Z
2016-10-10T01:38:54.000Z to 2016-10-10T01:38:54.000Z

but if you increase the end date on the temporal range to 2016-10-10T01:39:04Z and rerun, a 4th granule will show up with a date range that seems like it should have been included before
2016-10-10T01:38:36.000Z to 2016-10-10T01:38:36.000Z
2016-10-10T01:38:45.000Z to 2016-10-10T01:38:45.000Z
2016-10-10T01:38:54.000Z to 2016-10-10T01:38:54.000Z
2016-10-10T01:39:03.000Z to 2016-10-10T01:39:03.000Z

In addition, the exclude_boundary flag doesn't seem to have any effect on the search results. Presumably what it should do is not include your temporal boundary dates in the search results. ie if you run that first search where the date ends on 01:39:03Z, if you set exclude_boundary=true then you would expect that the granule with that date would not show up.

CMR team opened a ticket to address these issues.

Discussed with Jason. We will close this ticket as working as expected. But will file another ticket CMR-3828 to investigate why the fraction of a second is not displayed in the search API and the elastic search index, which mislead people into thinking the temporal search was not working.

Looks like the API is working as expected, but the API doesn't report fractions of a second, so it appeared as if it wasn't matching correctly.

repo: jddeal/pyCMR


text:
Is there a need for an AlwaysPipe?

Similar to the AlwaysCallback this would allow to pipe both resolve and rejection in a single implementation.
I would propose the following API:
public interface AlwaysCallback<D, F, D_OUT, F_OUT, P_OUT> {
    Promise<D_OUT, F_OUT, P_OUT> pipeAlways(final State state, final D resolved, final F rejected);
}

I see that this is only a convenience method as the same behaviour can be achieved with a DonePipe and a FailPipe.

Do we really need P_OUT given that progress remains unchanged?

yes in the pipe interface you need it. In the method on the promise interface you do not need it.
<D_OUT, F_OUT> Promise<D_OUT, F_OUT, P> always(AlwaysPipe<D, F, D_OUT, F_OUT, P> alwaysPipe);

thnx @sclassen !

authors: aalmiray saturnism sclassen

repo: jdeferred/jdeferred


text:
"relative_humidity" responses are almost null.

Hi their,
The "relative_humidity" responses are almost null.
We can get the actual relative_humidity, but it seems that there is no relative_humidity with forecast data.
Can we get all relative_humidity?
If we can do it, we can also add "apparent temperature" with temperature, wind speed, and humidity.
Calculator of Apparent temperature
https://planetcalc.com/2089/
Best regards.

Heyho @kanpyo02,
as you correctly observed, while we have real-world-measured relative_humidity (i.e. the value is not null for most historical and current weather records), it is missing from the forecast data. This is a limitation that we inherit from MOSMIX, the DWD's weather forecast product, which does not include forecasts for relative humidity. The full list of available parameters can be found here.
So there is unfortunately not much we can do about the missing relative humidity forecasts unless we want to completely uproot our data collection and switch to a different forecast source (interestingly, ICON, which is itself one of the sources for MOSMIX, does have relative humidity predictions).
I'm closing this as "upstream issue", but feel free to re-open if you hard-disagree ;) There is an ongoing discussion about apparent temperature in #112.

repo: jdemaeyer/brightsky


text:
构建速度优化，babel-loader 打开 cache，删除一小段冗余代码

RT

补充一点实际项目优化前后的数据
os osx 14
node 12.20.1

优化前
yarn dev
耗时

36.49s
33.87s
40.32s
35.95s

yarn build
耗时

105.15s
53.03s
51.50s

优化后
yarn dev
耗时

38.30s
18.00s
16.28s

yarn build
提升不明显

补充一点实际项目优化前后的数据
os osx 14
node 12.20.1

优化前
yarn dev
耗时

36.49s
33.87s
40.32s
35.95s

yarn build
耗时

105.15s
53.03s
51.50s

优化后
yarn dev
耗时

38.30s
18.00s
16.28s

yarn build
提升不明显


text:
Initial production release

[x] Initial structure
[x] CRUD methods
[x] Bulk-CRUD methods
[x] Property type support

[x] Strings
[x] Numbers
[x] Booleans
[x] Dates
[x] Buffers
[x] Arrays (with nested type)
[x] Objects (with nested properties)

[ ] Lookup methods

[ ] query
[x] scan

[x] Hooks
[ ] Native DynamoDB options exposed in opts
[x] Migrate lodash to devDependencies (or remove entirely!)
[ ] Finishing Documentation

[x] Defining models
[x] Methods available to models
[ ] Adding methods to models
[ ] Overwriting methods on models

[x] Example tests

[x] Each example needs tests!
[x] Examples should build models, add example custom methods, then export the final object module.exports = assets

[x] Finish README

[x] Listing alternatives, including DocumentClient

[ ] High code coverage - every method executed

Needs to include essential links to DynamoDB reading too - this might make a convenient ORM but you still need to know how the underlying DB works!

https://www.alexdebrie.com/posts/dynamodb-filter-expressions/

Needs to include essential links to DynamoDB reading too - this might make a convenient ORM but you still need to know how the underlying DB works!

https://www.alexdebrie.com/posts/dynamodb-filter-expressions/

repo: jdrydn/dynazord


text:
Add support to cargo backend to allow installing without specifying --locked

The default when installing via the cargo backend is to automatically installed with the --locked option. This is a great default, as it installs the software with the same versions the developer worked with.
However, if a downstream dependency version is yanked, the package can no-longer be installed using the --locked parameter.
e.g. mise use -g cargo:getzola/zola@tag:v0.19.2
warning: package `bytemuck v1.16.0` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `bytes v1.6.0` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `futures-util v0.3.30` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `zerovec v0.10.2` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `zerovec-derive v0.10.2` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked

Adding the option to run without --locked would allo packages like this to be installed.

we could have a tool option here like locked = false I think

authors: jdx kemitix

repo: jdx/mise


text:
🛑 kayser contigo is down

In 30588f0, kayser contigo (https://kaysercontigo.pe) was down:

HTTP code: 0
Response time: 0 ms

Resolved: kayser contigo is back up in 7c4a75c.


text:
different time for sliders

Hi guys,
I like your plugin and I use a lot in my projects, I liked a lot, then I have a question and a possible feature for this glide.
I have one project that I need to time between sliders need to be different, example, first I need 4000 ms before change to second slider, but second needs 7000 ms before change to third slider and so.
What you think? Is good idea? if isn't setted, assume default autoplay, if setted, use this on config.
Look a concept example here:

If you like, I can to develop alpha here to we test and talk about.
Thanks again for this plugin

Yeah, It's a good idea.

Done in v2.0.5

authors: jedrzejchalubek joubertredrat


text:
BasicTable slots同时使用customeRender + title， title会不生效

版本号：
3.7.0_all
问题描述：
BasicTable slots同时使用customeRender + title， title会不生效
错误截图：

友情提示：

未按格式要求发帖、描述过于简单的，会被直接删掉;
描述问题请图文并茂，方便我们理解并快速定位问题;
如果使用的不是master，请说明你使用的分支;

zy

antd4.0版本，title不支持插槽

你可以使用以下方式自定义标题

repo: jeecgboot/JeecgBoot


text:
打印时只能生成一页内容

版本号：3.4.0
前端版本：vue3版
问题描述：打印页内容过长时，只能生成一页内容，其余内容被截掉
截图&代码：

友情提示（为了提高issue处理效率）：

未按格式要求发帖，会被直接删掉;
描述过于简单或模糊，导致无法处理的，会被直接删掉；
请自己初判问题描述是否清楚，是否方便我们调查处理；
针对问题请说明是Online在线功能(需说明用的主题模板)，还是生成的代码功能；

这个插件没实现自动分页打印功能，得自己搞

repo: jeecgboot/jeecg-boot


text:
Direct link to images not presented

The "Edit image details" modal allows admin users to provide a "Direct link to image in publication" but this link isn't displayed anywhere on the gall page. I can recover this link easily as an admin with the edit button, but for non-admin users this convenience is not available.

These are gone in the current photo viewer afaict.

Oops, looks like I forgot to add this back. WIll fix it.

authors: Megachile jeffdc

repo: jeffdc/gallformers


text:
inference problem

Hello！Your work is perfect.I miss some problems when I run the demo.sh, my error are as follows.
There are many warnings like this:
warnings.warn(f'for {key}: copying from a non-meta parameter in the checkpoint to a meta '
/home/shanboqi/anaconda3/envs/griffon/lib/python3.10/site-packages/torch/nn/modules/module.py:2025: UserWarning: for vision_model.post_layernorm.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass assign=True to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
and a warning like this:
WARNING:root:Some parameters are on the meta device device because they were offloaded to the cpu.
and at last, there is an error:
Traceback (most recent call last):
File "/home/shanboqi/griffon-master/llava/eval/run_llava.py", line 124, in
eval_model(args)
File "/home/shanboqi/griffon-master/llava/eval/run_llava.py", line 46, in eval_model
tokenizer, model, image_processor, context_len = load_pretrained_model(args.model_path, args.model_base, model_name)
File "/home/shanboqi/anaconda3/envs/griffon/lib/python3.10/site-packages/llava/model/builder.py", line 147, in load_pretrained_model
vision_tower.to(device=model.device, dtype=torch.float16)
File "/home/shanboqi/anaconda3/envs/griffon/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1152, in to
return self._apply(convert)
File "/home/shanboqi/anaconda3/envs/griffon/lib/python3.10/site-packages/torch/nn/modules/module.py", line 802, in _apply
module._apply(fn)
File "/home/shanboqi/anaconda3/envs/griffon/lib/python3.10/site-packages/torch/nn/modules/module.py", line 802, in _apply
module._apply(fn)
File "/home/shanboqi/anaconda3/envs/griffon/lib/python3.10/site-packages/torch/nn/modules/module.py", line 802, in _apply
module._apply(fn)
[Previous line repeated 1 more time]
File "/home/shanboqi/anaconda3/envs/griffon/lib/python3.10/site-packages/torch/nn/modules/module.py", line 825, in _apply
param_applied = fn(param)
File "/home/shanboqi/anaconda3/envs/griffon/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1150, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
NotImplementedError: Cannot copy out of meta tensor; no data!
Could you help me with these problems, thank you very much!

Hi @Qiqi224 ,
If using the latest Griffon-G model, you should also update the codes to the latest version. According to the log, you are still using the previous version of the inference code, which does not support the latest model.
For the first warning "warnings.warn(f'for {key}: copying from a non-meta parameter in the checkpoint to a meta '", this is caused by the pytorch and transformers version. It will not affect the final result, so we do not fix or hide this warning in the code.

Hi @Qiqi224 , If using the latest Griffon-G model, you should also update the codes to the latest version. According to the log, you are still using the previous version of the inference code, which does not support the latest model. For the first warning "warnings.warn(f'for {key}: copying from a non-meta parameter in the checkpoint to a meta '", this is caused by the pytorch and transformers version. It will not affect the final result, so we do not fix or hide this warning in the code.

Hi, I am happy you can help me. I download the Griffon-v1 model from huggingface, and I follow your tutorial to deal with both the Griffon and Clip checkpoints, then I run demo.sh and meet the error above, I don't know how to solve the error.

We just follow the v1 usage. to run the inference codes and get the correct response without meeting the above error. It seems like the vision tower inited is not loaded correctly with weights. Maybe you can check the environment version, the part you might have modified, and the way you run the demo.sh to solve this error.

repo: jefferyZhan/Griffon


text:
.

Was going to check this out - what ended up being the issue?

It wasn't actually an issue. Must say a mistake on my part.
I was trying to run the bot from the emulator. So when the connector client made a request with the userId generated by the emulator, it could not find it as it was making a request to bot connector.
The userId generated by the emulator was not registered by the bot connector, hence the error. It had me go nuts for a day, I don't know how I realized this in the end.

authors: jeffhollan manikantareddyd

repo: jeffhollan/BotFrameworkSample


text:
Movement and assembly refs are missing

Need to go through movement and assembly refs because not all are there. See commits 347c6071 and dd8ad14f.

Closing for now


text:
TPT 0-300

I finished looking over these changes today. These changes catch a few things that pidgin's fork didn't get to yet.

Added a few more new labels: pickypoint, hisher, kidkids, adultetc. All the text that uses them is edited to use them in the translation too.
Changed lots of whitespace to match the 144-pixel textbox this hack uses.
Ported a bunch of references that got skipped somehow, including the Onett and Twoson newspapers.
Fixed some typos, some of which existed in the EB text.
Changed some dialogue that uses party leader in M12 to match EB text and display Ness's name every time. This could be edited back if that's a better idea though. (Looking now, I only see two examples, L4013 and L2443.)
Added a version of @MalBound's hint newspaper "controller" and "TV" replacement text 'cause it was in these labels. (I said "game system" explicitly because the Japanese text doesn't even mention controllers, it just outright said whoever was playing the game.)

Besides the last two bullet points possibly needing edits, this is ready to merge.

I was looking over these labels and realized that the Stonehenge text I changed was broken in the original game. I'll work on a fix (and maybe squash all these commits so everything's a little less messy).

I think the conflict is due to how the changes got applied in pidgin's fork. I'll see if I can resolve it.

The conflicts are pretty complicated and I don't think I can fix it anytime soon :\ Do you think you could take a look at it?

Looks like all the line endings got changed around somewhere...I'll change my file to Unix style endings and see if it's easier to resolve.

It took some StackOverflow searching, but I think I got it to not completely break. I'll spend some time fixing the conflicts today and tomorrow.

Okay, ready for merge now.

authors: PhoenixBound jeffman


text:
Question: Going Live?

Can we go live with this podcast plugin? If not, is there a way to integrate this feature?

Not sure, if I understand your questions correctly.
You might have seen, we are on Version 0.9.12. According to semantic versioning this is a beta.
On integrating, we are using MIT license. Follow the link for details.

Going live means that I would record and broadcast at the same time. People can call in, talk to me and it would upload as a recording after the show.

Jekyll-Octopod is neither audio recording software nor audio broadcasting software. It's podcast publishing software. A podcast is audio files distributed via RSS feeds.

authors: haslinger jubiki

repo: jekyll-octopod/jekyll-octopod


text:
Heed Mixed Content warning

request local files, and google fonts, over https.

Thanks!

authors: Strangehill parkr

repo: jekyll/plugins


text:
ASM API Plugin

Repository URL
https://github.com/jonesbusy/asm-api-plugin
New Repository Name
asm-api-plugin
Description
It's a quite long journey until ASM is removed from core. But will never happen if not started. I volunteer to help also to update consumer (like the json-path-api plugin that I maintain already)
See https://groups.google.com/g/jenkinsci-dev/c/NhV_o6zxbzw for full context
FYI @basil
GitHub users to have commit permission
@jonesbusy
Jenkins project users to have release permission
jonesbusy
Issue tracker
GitHub issues

Security audit, information and commands
The security team is auditing all the hosting requests, to ensure a better security by default.
This message informs you that a Jenkins Security Scan was triggered on your repository.
It takes ~10 minutes to complete.
Commands
The bot will parse all comments, and it will check if any line start with a command.
Security team only:

/audit-ok => the audit is complete, the hosting can continue :tada:.
/audit-skip => the audit is not necessary, the hosting can continue :tada:.
/audit-findings => the audit reveals some issues that require corrections :pencil2:.

Anyone:

/request-security-scan => the findings from the Jenkins Security Scan were corrected, this command will re-scan your repository :mag:.
/audit-review => the findings from the audit were corrected, this command will ping the security team to review the findings :eyes:.
	It's only applicable when the previous audit required changes.

Only one command can be requested per comment.

(automatically generated message, version: 1.26.21)

The Jenkins Security Scan did not find anything dangerous with your plugin, congratulations! :tada:

:bulb: The Security team recommends that you are setting up the scan in your repository by following our guide.

Don't hesitate to use an older baseline, if needed :)

/hosting host

authors: NotMyFault jenkins-cert-app jonesbusy


text:
Updating permissions/plugin-datatheorem-mobile-app-security.yml

The artifact id used in the path wasn't correct. Updating the path to :
com/datatheorem/mobileappsecurity/jenkins/plugin/datatheorem-mobile-app-security
jenkinsci github :
https://github.com/jenkinsci/datatheorem-mobile-app-security-plugin
New Hosted plugin issue link :
https://issues.jenkins-ci.org/browse/HOSTING-755
Submitter checklist for changing permissions

Always

[X] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[X] Add link to resolved HOSTING issue in description above

For a new permissions file only

[X] Make sure the file is created in permissions/ directory
[X] artifactId (pom.xml) is used for name (permissions YAML file).
[X] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[X] Check that the file is named plugin-${artifactId}.yml for plugins

Build failed; the context from the latest run is:
Expand to view
Commit message: "Merge pull request #87 from jenkins-infra/java11-lts"
First time build. Skipping changelog.
[Pipeline] Start of Pipeline
[Pipeline] properties
[Pipeline] node
Running on ubuntu-jenkinsinfrac4ec30 in /home/jenkins/workspace/tory-permissions-updater_PR-1120
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Clean)
[Pipeline] deleteDir
[Pipeline] sh
+ ls -lah
total 8.0K
drwxrwxr-x  2 jenkins jenkins 4.0K May  7 12:32 .
drwxrwxr-x 22 jenkins jenkins 4.0K May  7 12:32 ..
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
using credential github-access-token
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
remote: Enumerating objects
remote: Counting objects
remote: Compressing objects
Receiving objects
Resolving deltas
Fetching without tags
Merging remotes/origin/master commit 5db673ecaf8f3235745e991df5403f2557018fb3 into PR head commit 3725001c50e244787d4fb2011dee03e1cd4254da
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Archive)
[Pipeline] archiveArtifacts
Archiving artifacts
[Pipeline] archiveArtifacts
Archiving artifacts
‘json/*.json’ doesn’t match anything: even ‘json’ doesn’t exist
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline

GitHub has been notified of this commit’s build result

ERROR: No artifacts found that match the file pattern "json/*.json". Configuration error?
Finished: FAILURE

Powered by the Comment Logger

My bad, I should have caught that.

authors: jenkinsadmin marc-tranzer slide


text:
aws-lambda-cloud plugin : change publication paths

Description
Got to fix the publication path set in the permissions file for plugin aws-lambda-cloud : https://github.com/jenkinsci/aws-lambda-cloud-plugin
Submitter checklist for changing permissions

Always

[X] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[ ] Add link to resolved HOSTING issue in description above

For a new permissions file only

[ ] Make sure the file is created in permissions/ directory
[ ] artifactId (pom.xml) is used for name (permissions YAML file).
[ ] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[ ] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[ ] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[ ] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[ ] Make sure to @mention the users being added so their GitHub account names are known if they require GitHub merge access (see below).
[ ] All newly added users have logged in to Artifactory at least once

Reviewer checklist (not for requesters!)

[ ] Check this if newly added person also needs to be given merge permission to the GitHub repo (please @ the people/person with their GitHub username in this issue as well). If needed, it can be done using an IRC Bot command
[ ] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @daniel-beck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it

Sorry @oleg-nenashev
But the path I set in the yml file was incorrect.
Fixing it to io/jenkins instead of org/jenkins-ci

I should have caught this in the initial PR, sorry about that

authors: jlamande slide


text:
Add plugin-modernizer-tool permission and CD

Link to GitHub repository
This is the tool for the GSoC 2024
https://github.com/jenkinsci/plugin-modernizer-tool/pull/8
Note: I've temporary disabled action to avoid the CD to run. We are in a very early stage of this component and I don't think it's worth publishing any releases before some weeks/month
Note: This previous PR also add the Jenkinsfile even no job exists yet on ci.jenkins.io. I will open a support ticket for it
When modifying release permission
List the GitHub usernames of the users who should have commit permissions below:

@berviantoleo
@gounthar
@iamrajiv
@jonesbusy

This is needed in order to cut releases of the plugin or component.
If you are modifying the release permission of your plugin or component, fill out the following checklist:

### Release permission checklist (for submitters)
- [ ] The usernames of the users added to the "developers" section in the .yml file are the same the users use to log in to [accounts.jenkins.io](https://accounts.jenkins.io/).
- [ ] All users added have logged in to [Artifactory](https://repo.jenkins-ci.org/) and [Jira](https://issues.jenkins.io/) once.
- [ ] I have mentioned an [existing team member](https://github.com/orgs/jenkinsci/teams) of the plugin or component team to approve this request.

When enabling automated releases (cd: true)
Follow the documentation to ensure, your pull request is set up properly. Don't merge it yet.
In case of changes requested by the hosting team, an open PR facilitates future reviews, without derailing work across multiple PRs.
Link to the PR enabling CD in your plugin
https://github.com/jenkinsci/plugin-modernizer-tool/pull/8
### CD checklist (for submitters)
- [x] I have provided a link to the pull request in my plugin, which enables CD according to the documentation.

### Reviewer checklist
- [ ] Check that the `$pluginId Developers` team has `Admin` permissions while granting the access.
- [ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
- [ ] If security contacts are changed (this includes add/remove), ping the security officer (currently `@Wadeck`) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it.

FYI @berviantoleo @gounthar @iamrajiv

Some logins are missing still, but I think you can handle that on your own :)

I've excluded missing login(s) or unknown users for now until login are fixed

authors: NotMyFault jonesbusy


text:
chore: upgrade charts

updated chart jxgh/jxboot-helmfile-resources from 1.1.1 to 1.1.3
updated chart jxgh/lighthouse from 1.3.1 to 1.3.2

/retest


text:
chore: upgrade charts

updated chart jxgh/lighthouse from 1.5.10 to 1.5.11

/retest

/close


text:
robot不支持参数传入

Describe the bug
A clear and concise description of what the bug is.
pipeline上面定义了parameters定义了一个传入robot id的参数dingdingid，
但是在post里robot用参数化代替的时候，没有读取到具体参数
部分写法如下：
dingtalk(
robot:'${dingdingid}'
)
执行返回的结果是 ID 为${dingdingid}的机器不存在。请问这是什么原因
插件版本2.3.2

同时希望机器人ID可以自定义，而不是由系统生成。

请问这个问题什么时候能修复呢

最近没时间弄的，你们自己可以提个 pr。

authors: Mr-LiuDC fengguangke liuweiGL xjiaon

repo: jenkinsci/dingtalk-plugin


text:
[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true

See JEP-222. Alternative to #129. Works with https://github.com/jenkinsci/remoting/pull/357. Requires #147.

We will need to update the Windows side as well (https://github.com/jenkinsci/docker-jnlp-slave/blob/master/jenkins-agent.ps1)

Yes, I did not try that yet but I could.

the upstream pull request in Remoting needs to be released first

Yes, this is on hold until the core changes are released.

So can you merge & release this @jeffret-b, or whoever is maintaining this repo?

I don't have permission in this repository. Maybe @slide or @oleg-nenashev

@MarkEWaite thanks! Now can you can a release please? https://github.com/jenkinsci/docker-jnlp-slave/compare/3.40-1...master

I would like to leave this for @oleg-nenashev to release, since he's released the most recent several versions of it and I've never released a version.  If @oleg-nenashev has not been able to release it by tomorrow, I'll attempt the release.

ping @MarkEWaite @oleg-nenashev

Sorry that I missed this one @jglick.  As I look at the repository, the release process is not immediately clear to me.  I'll talk with @oleg-nenashev tomorrow and learn how to release from this repository.

I am not sure either. It may suffice to just create a tag and wait for Docker Hub automated builds to kick in.

IIUC from the Jenkinsfile, Linux publishing is passive, whereas a Jenkins project publishes the Windows version.

The linux publishing should be done on dockerhub builds, though I am not sure how the tagging for specific versions takes place. For the Windows versions, we are publishing them via trusted.ci, we do not currently do a version specific release, I would need to look into that.

on it

The 4.0.1-1 release is now available and ready to use.  A CONTRIBUTING document has also been added which includes a video link to a session that describes the release process.

$ docker run --rm jenkinsci/jnlp-slave:4.0.1-1 2>&1 | fgrep -i websocket
 -webSocket                            : Make a WebSocket connection to Jenkins

:tada:

authors: MarkEWaite jeffret-b jglick oleg-nenashev slide

repo: jenkinsci/docker-jnlp-slave


text:
Using  GCE feature 'deploying-containers' fails because of missing Java on host

This plugin supports using GCE instance templates for provisioning a new Jenkins SSH slave.
I created a new instance template in Google compute engine, which uses the GCE feature deploy containers. As the Container-image, I am using  openjdk:11-jre-slim.
When using this plugin, a new VM is booted up by my Jenkins job, but Jenkins master fails to connect to it.
From Jenkins log:

May 03, 2019 9:13:31 AM INFO com.google.jenkins.plugins.computeengine.ComputeEngineCloud log
Connecting to 35.209.XXX.YY on port 22, with timeout 10000.
May 03, 2019 9:13:35 AM INFO com.google.jenkins.plugins.computeengine.ComputeEngineCloud log
Connected via SSH.
May 03, 2019 9:13:35 AM INFO com.google.jenkins.plugins.computeengine.ComputeEngineCloud log
connect fresh as root
May 03, 2019 9:13:35 AM INFO com.google.jenkins.plugins.computeengine.ComputeEngineCloud log
Connecting to 35.209.254.68 on port 22, with timeout 10000.
May 03, 2019 9:13:35 AM INFO com.google.jenkins.plugins.computeengine.ComputeEngineCloud log
Connected via SSH.
May 03, 2019 9:13:35 AM INFO com.google.jenkins.plugins.computeengine.ComputeEngineCloud log
Copying agent.jar to: /tmp
May 03, 2019 9:13:35 AM INFO com.google.jenkins.plugins.computeengine.ComputeEngineCloud log
Verifying: java -fullversion
May 03, 2019 9:13:35 AM WARNING com.google.jenkins.plugins.computeengine.ComputeEngineCloud log
Java is not installed.

Well, this failure seems quite obvious to me. There is no Java installed on the machine/host with the (external) IP 35.209.XXX.YY. There would be / is a docker image openjdk:11-jre-slim available on this machine, which could/should be used for executing Java.
Please let this plugin support the feature 'deploying-containers'
PS: This is a follow-up of https://issues.jenkins-ci.org/browse/JENKINS-52251

Thanks for bringing this up. Didn't realize it wasn't trivial to be running containers on GCE instances with the plugin when I first commented on the JIRA issue.
Right now, as you may know, the plugin SSH's directly to the VM. We programmatically insert a security key to the compute engine vm's instance metadata and have the other key when we SSH. Consequently, we won't be able to reach the container running on the VM.
However, this is an interesting use case. I can't guarantee we will implement it, but I will label it as a feature request.

Thanks for the update, Rachel.
In my opinion, this is THE usecase for the google-compute-engine-plugin. Using https://cloud.google.com/container-optimized-os/ in combination with https://jenkins.io/doc/book/pipeline/docker/ as Jenkins slave would be awesome.

Thanks for the extra information!

@SchulteMarkus thanks for the feedback. Fyi, the work to support this is non-trivial, so it will merit some further consideration. In the mean time, have you considered using the k8s plugin and running workloads in GKE? Running containers is what GKE excels at. We have a great solutions article which covers this use case here: https://cloud.google.com/solutions/jenkins-on-kubernetes-engine-tutorial

@craigatgoogle thanks for the feedback.
I see that it won't be trivial to support the requirement from the plugins point of view.
I had see the k8s plugin. I had hoped being able to avoid it, as it adds another layer of complexity, compared to a solution, that runs only in GCE VM instances.
I created kind of workaround for my requirement:
I am using https://www.packer.io/ to extend the CoreOS (stable) image (https://coreos.com/os/docs/latest/booting-on-google-compute-engine.html), which is already present at GCE image marketplace. I am installing OpenJDK11 into this image, and using the created custom image for my Jenkins slave. You can find the packer image template at https://gist.github.com/SchulteMarkus/4221cfa6059b9e4827c073017a9bac35

@SchulteMarkus thanks for sharing. I think in the interim, highlighting this workaround in the plugin docs could provide value to other users who share a similar requirement.

@SchulteMarkus may we use your JSON template is our documentation for a workaround?

Sure
Craig Barber notifications@github.com schrieb am Mo., 13. Mai 2019, 21:56:

@SchulteMarkus https://github.com/SchulteMarkus may we use your JSON
template is our documentation for a workaround?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jenkinsci/google-compute-engine-plugin/issues/89?email_source=notifications&email_token=AAO3YDB2GPXIQRBESI3TZ2TPVHBU7A5CNFSM4HKSMMJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVJMFSY#issuecomment-491963083,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAO3YDHHRFC73FIOQDQHFHDPVHBU7ANCNFSM4HKSMMJQ
.

@SchulteMarkus were you able to get this working? if yes how?

@SchulteMarkus were you able to get this working? if yes how?

I wasn't able to get this working.

i was able to get it to pass java issue but not able to redirect stdin to the container so that agent can come up. basically i am passing below init script to vm and wait for the image to load, once it is loaded, i run agent.jar, but jenkins to write stdin to remote agent to start it which i do not know how to achieve.
cat > /tmp/java <<'EOF'
#!/bin/bash

if [ "$1" == "-fullversion" ]; then
  echo $@
else
  while ! docker ps | grep IMAGE_NAME; do
    sleep 5
    docker ps
  done
  docker exec -it $(docker ps | grep IMAGE_NAME | cut -d ' ' -f 1 | tr -s ' ') 'java -jar /tmp/agent.jar'
fi
EOF

authors: SchulteMarkus craigatgoogle mohammadidinani rachely3n

repo: jenkinsci/google-compute-engine-plugin


text:
xmlns decls are marked as errors

xmlns decls are marked as errors

This is a task from Readme.txt. Might be already fixed need to double-check.

Most are not but some still are: #21 #34

Let us collect any missing Jelly Tag Library namespaces into https://github.com/jenkinsci/idea-stapler-plugin/milestone/2

repo: jenkinsci/idea-stapler-plugin


text:
Add Preemptible option for GCP

Since 2015, jcloud supports preemptible options on Google Container Engine: JCLOUD-1001.
As requested by users @ JENKINS-44601, I added the possibility to create instances on GCE with preemptible options.
It has been tested on our Jenkins and VMs have been populated with preemptible option.

@danielkutik do I need another review ? :thinking:

We also would like to see this merged. @felfert As you've been the one merging various other PRs, would you mind merging this one, too?

repo: jenkinsci/jclouds-plugin