Exception on "class extends XXX" autocompletion

Got the following error when trying to get suggestions for classes to extend.

jun. 28, 2023 10:51:21 A.�M. org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError
SEVERE: Internal error: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:67)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
	at jdk.internal.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
	... 11 more
Caused by: java.lang.NullPointerException: Cannot invoke "org.eclipse.lsp4mp.services.properties.CompletionData.getUri()" because the return value of "org.eclipse.lsp4mp.services.properties.CompletionData.getCompletionData(org.eclipse.lsp4j.CompletionItem)" is null
	at org.eclipse.lsp4mp.ls.MicroProfileTextDocumentService.resolveCompletionItem(MicroProfileTextDocumentService.java:156)
	... 15 more

[Error - 10:51:21 AM] Request completionItem/resolve failed.
  Message: Internal error.
  Code: -32603
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:67)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
	at jdk.internal.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
	... 11 more
Caused by: java.lang.NullPointerException: Cannot invoke "org.eclipse.lsp4mp.services.properties.CompletionData.getUri()" because the return value of "org.eclipse.lsp4mp.services.properties.CompletionData.getCompletionData(org.eclipse.lsp4j.CompletionItem)" is null
	at org.eclipse.lsp4mp.ls.MicroProfileTextDocumentService.resolveCompletionItem(MicroProfileTextDocumentService.java:156)
	... 15 more

Additional information:

OS: Windows 11 Enterprise, 22H2
VSCode version: 1.79.2
Tools for MicroProfile version: 0.8.0

@datho7561 have you some idea about this problem?

This seems to be similar to https://github.com/eclipse/lsp4mp/issues/402. I think it's probably the same root cause. The completion item should not appear at all.
As for why completion resolve is failing, I don't know.

@datho7561 if you have an empty class and you open completion, rest_class appears which is correct andyou have the same error popup.
LSP4MP consider that all completions items contains a data at https://github.com/eclipse/lsp4mp/blob/64c176df2c53eb4a8059ea40dfeecae134c603bb/microprofile.ls/org.eclipse.lsp4mp.ls/src/main/java/org/eclipse/lsp4mp/ls/MicroProfileTextDocumentService.java#L156 which is wrong for snippet.
We need to check that here. Are you ok with that? Do you think you could have time to fix it. It is a really annoying bug.

Thanks @datho7561 !

Hey @JessicaJHee if you comment on this issue, I can assign you, to reflect that you contributed the fix

Worked on this issue

Fixed with https://github.com/eclipse/lsp4mp/pull/412


enable fast resume of previous torrents #27

Write the bitfield of downloaded pieces to disk and the hash of the
bitfield as well to verify the file isn't corrupted

This doesn't worry about download pieces being corrupted by file system malfunctions.
libtorrent, used by Deluge, seems to not check the saved pieces for file corruption http://www.rasterbar.com/products/libtorrent/manual.html#fast-resume either.


Not able to add third libraries

I am having issues with the latest release (rc2). I have a third library defined in a separated typescript file that works as a wrapper for a library that is available in js (it's a plugin). Since typings are deprecated and @type for this library is not available (https://github.com/DefinitelyTyped/DefinitelyTyped) I added the implementation in declarations.d.ts file. But the library is not available when I build de code (prod or dev mode) and i get that my code was not found. Any ideas?
It was working with rc1
error:
[14:27:08]  uglifyjs failed: ENOENT: no such file or directory, open                                                                                'C:\Projects\infotycoon-inspections\www\build\main.js'                                                                                [14:27:08]  ionic-app-script task: "build"                                                                                [14:27:08]  Error: ENOENT: no such file or directory, open 'C:\Projects\infotycoon-inspections\www\build\main.js'
plugin: https://github.com/Azure/azure-mobile-engagement-cordova
could this issue be related to the latest update (RC2)?

I have updated all dependencies except ionic-app-scritps pointing it to "0.0.36" instead "0.0.39" and its working.

@salimchemes,
Can you provide a sample repo where we can recreate the issue?
Thanks,
Dan

@danbucholtz i created a blank project and implemented my code and  its working. So, i am checking the config files (package.json, tsconfig.json) to detect where is the difference. I think we can close the issue until i can identify where the problem is.
Thanks

I just ran into the same issue.  The cause was probably different, but:
0.0.39

ngc finished
webpack finished
uglifyjs started
uglifyjs failed: ENOENT: no such file or directory, open "......main.js"

0.0.36

ngc finished
bundle started
bundle failed: Could not resolve ... (barrel declaration)

0.0.39 basically swallowed the exception and left me clueless

@xx0r did you try 0.0.41? check tsconfig,json this line also
"include": [     "src/**/*.ts"   ],
https://github.com/driftyco/ionic2-app-base/blob/master/tsconfig.json
I tried with blank project and works fine.

Thank you for the advice, I updated the scripts to 0.0.41, + checked the tsconfig.json, but the error message is swallowed nonetheless.
however, i was able to replicate the minimal issue :)

ionic start sidemenu.clean --ts --v2
add declarations.ts to pages/page1

export * from "./page1";
export * from "./nonexistent.page";

change app.component.ts to import page1 from the barrel declaration

import { Page1 } from '../pages/page1/declarations';

ionic build
uglifyjs failed: ENOENT: no such file or directory, open '....\sidemenu.clean\www\build\main.js'

just add the code into declarations.ts, you dont need any import.

i have created a blank project with the code in declarations.d.ts and run ionic run browser, the build was ok but when i deploy to android i got that engagement (plugin that i am trying to implement) is not found.
Its an runtime error. Compilation works fine.

I'm seeing the same issue where ionic serve seemed to build successfully, but no main.js was generated.
I downgraded to 0.0.36, ran ionic serve again and got the following error message:
[05:14:54]  bundle failed: Could not resolve './services/auth.service' from /Users/kim/ionic/mindly-app/rc-wip/src/account/index.ts

Seems useful error messages are being swallowed somewhere, like @xx0r mentions

Hi @danbucholtz i have updated the latest ionic-app-scripts version (0.0.44) and I am  still having the same issue.
Latest version working for me was 0.0.36. I think this is a problem related to engagement and custom DT. Since DT for azure engagement plugin is not available I implemented the code into declarations.d.ts file to get it available.
I created this repo to repro the issue
https://github.com/salimchemes/engagement-issue
a couple of things
1 if i run ionic run browser compilation works fine and there are no runtime errors.
2 if i run  ionic run android compilation works fine but i got runtime errors ("Engagement not defined")
In declarations.d.ts file you will see the definiton of the engagement interface and the variable Engagement.
Same issue if I just define the variable as

declare var Engagement : any;

My concern is if the implementation on declarations.d.ts is correct or I am missing something else.
In the real project that I am working on the compilation fails as I described in the issue when i run ionic run browser, ionic run android or ionic serve.

[16:41:14]  uglifyjs failed: ENOENT: no such file or directory, open
'C:\Projects\infotycoon-inspections\www\build\main.js'
[16:41:14]  ionic-app-script task: "build"
[16:41:14]  Error: ENOENT: no such file or directory, open 'C:\Projects\infotycoon-inspections\www\build\main.js

Could you please take a look and let me know your thoughts? Thanks

@salimchemes,
Can you summarize the issue that you're seeing? Sorry, I'm not really following.
Thanks,
Dan

@danbucholtz sorry if I was not clear
That I am trying to do is define Engagement variable into declarations.d.ts to be able to use azure-engagement plugin since is not defined as DT.
I tried with
declare var Engagement : any;
but no luck
Any idea what is missing? Thanks!

You shouldn't need to define the type since we provide src/declarations.d.ts file with a wildcard in it.
declare module "*"
That should be sufficient to allow the lib to be imported.
Thanks,
Dan

@danbucholtz if i do that i got
[10:18:07]  Cannot find name 'Engagement'.
[10:18:07]  ngc failed

DT for engagement plugin does not exist. Is there any example where a plugin with no DT is implemented?
Thanks

Yes. If you look in your src/declarations.d.t.s file, we have declare module '*'. This wildcard operator means importing engagement will likely just work. How are you importing the library? Do you have the src/declarations.d.ts file?
Thanks,
Dan

yes, I have both

src/declarations.d.ts

and

declare module '*';

about how is the library imported not sure if should i do something else. I installed the plugin via npm.
How should I import the library?

What does your import statement look like?

i dont have any imports for engagement, its necessary?

Yes, definitely. I am not familiar with that library but please review our documentation on importing libraries.
http://ionicframework.com/docs/v2/resources/third-party-libs/
I'm going to close this for now since this is not an issue app-scripts, it's more of a question.
Thanks,
Dan


ci: update to internal semantic release action

:tada: This PR is included in version 0.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


MAINT: 1.8.1 backports/prep

backport 10/11 of the current backport-candidate PRs--one is missing because https://github.com/scipy/scipy/pull/15561#issuecomment-1086747474 is a tad annoying to do manually
probably the most important thing getting fixed is the restoration of Pythran for Windows builds?
unfortunately, I don't see any signs that we'll have the PROPACK stuff fully enabled/Windows portable for 1.8.1 (some issues came up last minute for 1.8.0, so have an environment variable to control its usage on the maintenance branch)
this is the first test of the new authors machinery updates from @tupui

Would it be possible to add #15380 to the list? This way the version switcher would be in both dev and released versions and we can think about deprecating the webpage listing the docs. (Then it needs an entry for 1.8.1 in the json).

Diff and included backports here seem fine to me; there's a bug in here somewhere though since CI is failing with:
ImportError: cannot import name '_broadcast_arrays' from 'scipy.stats._axis_nan_policy'

Would it be possible to add #15380 to the list? This way the version switcher would be in both dev and released versions and we can think about deprecating the webpage listing the docs. (Then it needs an entry for 1.8.1 in the json).

That's a new docs feature, quite large and changes a doc build dependency. It's okay I guess, but I'd personally be inclined to leave it for 1.9.0. Up to @tylerjereddy though.

Two updates here:

for the CI failure, I've pushed in a commit that allows tests to pass locally on this branch--``_broadcast_arrays()function lives somewhere else onmain, but in this branch the import can be deleted because it resides directly in _hypotests.py`.
For the HiGHS segfault backport--there's nothing to backport, the segfault problem and related files don't even exist on this branch--see analysis starting here: https://github.com/scipy/scipy/pull/15561#issuecomment-1100957547

Ah, I feel like I've heard a few discussions related to the CI failure with ImportError: cannot import name 'contextfunction' from 'jinja2'.

Edit: I see a CI Lint failure for a long regex from Pamphile's new author script I think--not sure it is really worth trying to split that over multiple lines to satisfy the check.

Yes, best to ignore I'd say.

Ah, I feel like I've heard a few discussions related to the CI failure with ImportError: cannot import name 'contextfunction' from 'jinja2'.

Yes, I think you need the pin as in gh-15895. Better to put an upper bound in jinja than update Sphinx version in a maintenance branch probably.

Ok, let's see if pinning Jinja2 and Pillow versions will fix the respective doc-related issues for Azure and CircleCI.

CI a bit cleaner now--the benchmark failure is a timeout--I believe we've had some activity surrounding that on main as well.

Yes there was the PDF removal in #15649 and move to Meson in #15686

I think bleeding edge NumPy is causing a few deprecation issues for matrix subclasses and distutils. Worth suppressing in our suite?

I think bleeding edge NumPy is causing a few deprecation issues for matrix subclasses and distutils. Worth suppressing in our (maintenance branch) suite?

Since it's just impacting the test suite I think we can skip the matrix issue.

the benchmark timeout persists in CI, but sounds like reviewers are "ok" with ignoring that since the obvious fix didn't help enough
folks don't seem too worried about bleeding-edge NumPy causing 4 test suite errors--1 is precision-related, the others are deprecations--I'll go ahead and merge this then--if an urgent concern pops up regarding that let me know, my next step will be a test PR in the wheels repo to reactivate Pythran on Windows to see if all is well there (so, probably another day or so for last minute adjustments even if I don't see more problems over there).


Shell performance issue with large number of tservers

Describe the bug
When monitoring zookeeper connections on a large cluster the shell makes 2 * ( number of tservers) + 1 connections to zookeeper on connect when trying to determine tablet server to connect to.
It looks like it is retrieving from ZK:

The node that contains all tservers ( in our case /accumulo/<instance id>/tservers)
The list of locks under /accumulo/<instance id>/tservers/<server id>
The lock at /accumulo/<instance id>/tservers/<server id>/<lock id>

It would make sense to cut this off once it has a valid tserver, until such time as talking to other tservers is necessary.
Versions (OS, Maven, Java, and others, as appropriate):
Affected Version -  2.1.2
To Reproduce

Enable ZK logging at DEBUG
Connect to shell, monitoring ClientCnxn messages from zk
Observe requests to ZK for each tserver

Expected behavior
Accumulo should only make as many connections as necessary to function. Making extra calls wastes time and resources.
Additional context
This problem would probably not have a noticable affect on small systems.

Looks like this is the code in question: https://github.com/apache/accumulo/blob/2.1/core/src/main/java/org/apache/accumulo/core/rpc/clients/TServerClient.java#L64-L77


Added missing await operator

Since caches.match() returns a promise, with the code as is, the async function
will always return that promise. Thus, if what we want is in cache, everything is OK,
but if it's not, the promise passed to e.respondWith() will be resolved with undefined, which
is not what we want. To fix this, we await the promise returned by caches.match().
If it resolves with a response object, we return it, otherwise, the || will make sure that
`fetchResponseP' is returned instead of undefined.

@kyarik - please resync with master to fix the build break
@jeffposnick - can you review for technical accuracy?

Updated


cURL issue? - Can't access Admin / Themes Broken

Describe the bug
I cannot access the admin panel, and the main site theme is broken, all links point to 404s.
To Reproduce
Install pH7Builder on vanilla Ubuntu 18.04 LAMP stack

Follow the links provided by Installation of pH7CMS - Step 7/7 page
See errors

I was able to confirm that cURL is running using a basic curl check
http://rsdating.com/ph7/curl.php
<?php echo 'Curl: ', function_exists('curl_version') ? 'Enabled' . "\xA" : 'Disabled' . "\xA"; ?>

@WASasquatch Hi !
Your problem may be caused by your website not being hosted on the root of your domain
http://rsdating.com/ph7 . You will need to edit your .htaccess file and add a RewriteBase directive.
For more information I'd refer you to the Apache HTTPD documentation website.
https://httpd.apache.org/docs/2.4/en/
Sincerely,
PM

Turns out my FTP wasn't configured to upload ".htaccess" files, so it simply wasn't there (I never used ls -al to actually check if it was there and just assumed it was)

Turns out my FTP wasn't configured to upload .htaccess files, so it simply wasn't there (I never used ls -al to actually check if it was there and just assumed it was)

Glad you figured it out! Indeed, pH7CMS cannot work properly without the .htaccess files uploaded. Unfortunately, FTP clients aren't always configured to upload .htaccess file.

Right. I could have just used SFTP or cp from my home system, but I was making sure FTP was working. Which it was, I just forgot about that specific niche of my client. Thanks for the support @polynamaude , and @pH-7 .


[DOCFIX] Update Metastore Doc

alluxio-bot, merge this please.

alluxio-bot, cherry-pick this to branch-2.4 please


Better error messages for missing DB config values

Prior to this PR, if database configuration values are missing, acme-dns errors with confusing error messages from database/sql like:
ERRO[0000] Could not open database [sql: unknown driver "" (forgotten import?)]

Coverage increased (+0.1%) to 93.398% when pulling c920e3111fd3ed685cdf755240582fa4bdbb1ef9 on err-msgs into 856cc058813589e3f09c665dbb1179e2d4e2888e on master.


MULTIARCH-4171: Multiarch builds w/ Konflux

This PR set up the multiarch PipelineRun for building both the bundle and the operator as multiarch manifest-lists.
An additional layer is added to the bundle.Dockerfile image as Konflux has a bug with single-stage images extending FROM scratch. See https://issues.redhat.com/browse/KFLUXBUGS-10

where can i see the image that was built by konflux? i tried going into the pipeline for the job run, but there was nothing

where can i see the image that was built by konflux? i tried going into the pipeline for the job run, but there was nothing

i got it from the output logs in the konflux UI for now (the build-container taskrun output)

/approve

/override e2e-gcp-multi-operator-olm

/lgtm


Empty state slot creates additional [tbody] element when mode is remote

Issue Type (delete the irrelevant ones)

[x] Bug

Specs
What version are you using - 2.6.2
What browser - Chrome 66.0
Steps to Reproduce the Problem

Initialize vgt table with an emptystate slot
Make sure that there are no rows and mode is remote
Inspect element, see 2 tbody elements

jsfiddle
https://jsfiddle.net/2yaz79q4/
Why this matters is because automated testing software does not like 2 tbodies.
Thanks :)

Apologies, apparently having multiple tbody elements is okay according to this question in SO: https://stackoverflow.com/questions/3076708/can-we-have-multiple-tbody-in-same-table
Thus closing the issue!


Dev build console error when using index in :key value with v-for and transitions

What problem does this feature solve?
Currently there is no obvious way to debug an error when including the index value in v-bind:key with v-for when using transitions. This causes erratic and unexpected behavior from transitions (and I would suspect other side effects, but these are untested).
This feature would alert the developer that they have used index value in a place where it will cause errors with transitions.
Example error:
This example should illustrate how difficult it is to determine why the v-for combined with transition-group fails.
In the example below there are 3 uses of v-for with :key. (1) one works fine, it doesn't include index in the :key value. (2) uses index as the key (ie, v-bind:key="index"). (3) uses a concatenated version (v-bind:key="item  '_' index"
https://codepen.io/megacromulent/pen/gdMYLx?editors=1010
Note: this behavior was thought to be a bug because of lack of documentation on this behavior ( #8718 ) and having a console log entry would have solved the confusion instantly during development, instead of hours of debugging and reporting.
What does the proposed API look like?
Check to see if the index value is used anywhere in :key, and then check if a transition is being used, if so, then display console error, or at least a warning.
The proposal is for the dev builds only, so no additions/expansions to the API are needed for the production builds.

This is not possible because sometimes you may want to use the index as the key.
I really think you should open a PR to the docs to add a note in transition-group as I said in the other issue 🙂

You would never want to use index as the key with a transition because it causes an error. I demonstrated that.
Is there something wrong with my example showing this error?

Yeah, you are right. I don't think it makes sense to use the index in any scenario for transition-group. I'm not sure this is an easy to add warning though

If I get to a point where I have more free time, I'd at least look through the code to be able to add this kind of thing.
Perhaps a dev only object that tracks features being used during a render (ie, transition is used) then when an index is found (ie, in the template render?) it would be tracked as well, and then conflicts could be found between features used.
I know it's easy to say this kind of thing, and a whole other thing to actually build it. But I am not a high level dev, so I can only theorize...

In dev branch this issue is solved, why is still open?

It wasn't correctly reference I the commit message of the PR https://github.com/vuejs/vue/pull/8748


Do we really need to keep resolving after we already found a type?

It looks like we call ResolveNestedTypeThroughAbbreviation for all elements in the list, but we olny return the first one.

Thanks for this.


enable passing className property to

I want to be able to set a className property on the <GridItem />
It does seem to have className listed as an optional propType

That className is intended for user only by placeholder elements. Otherwise, you will end up with a duplicated className: one on the <GridItem>, and the same one on its child.


Standalone compilation of functions block

Summary:
Write a function in stan/lang/compile_functions.hpp that takes a program that only consists of functions and compiles to C++ it with the necessary includes.
Description:
Originated in the discussion of #2224 - it would be useful to be able to parse and compile a file that contains only a functions block. The primary use case is to let thos functions then be invoked from R, but it could also help in allowing truly modular Stan programs.
Current Version:
v2.14.0

I am trying this as my first task in the Stan codebase (but it seems I cannot assign myself nor add a "feature" label)

I think we have to somehow make you a member of the project.  Also, you want to coordinate with @mitzimorris.  I believe the recent pull request to remove the requirement of a model { } block will make this very easy to generate functions only.
The tricky part is going to be finding minimal headers.  I fear there will be dependencies on code that's only in stan-dev/stan rather than just in stan-dev/math, which would be ideal (much more minimal include).
The other thing we really want out of this function is an ability to (a) control the namespace in which they get generated from the call (vector<string> for namespaces would work), and (b) have them instantiated with only int and double primitive types.  Having both of these will let us generate functions that can be used directly by Rcpp.

Nice codebase you have! Getting into it was easier than I expected.
I have some working code with a rudimentary test which shows that the generated functions can be parsed and instantiated. The feature is not yet done, but I think it is the correct time to ask for some feedback (all tests currently pass).
The changes I made can be found at https://github.com/martincerny/stan/tree/feature/2267-standalone-functions and a comparison to stan/develop can be reviewed here:
https://github.com/stan-dev/stan/compare/develop...martincerny:feature/2267-standalone-functions?expand=1
What it does:

There is now a function stan::lang::compile_functions() that runs the normal parser, but generates only the function block. The normal parser already worked with models that contain only the function block, only difference from stan::lang::compile() is in the way the output is generated: only the functions block is created, it is possible to specify the namespace for the functions block and no class declaration is created.
stanc_helper() now invokes compile_functions() on files with the extension .stanfuncs and allows for a -namespace command line parameter to specify the target namespace
Compiling .stanfuncs files with stanc as "functions only" has been added to make/tests so tests can depend on the compiled .hpp files.

Some specific points I'd like someone from the core team to give feedback on:

The decision to choose mode of compilation (functions only / model) by file extension and the choice of the .stanfuncs extension are both important and should be discussed by the core team (there could be a need for more compilation modes in the future, especially with regards to #2224).

My reasoning behind this decision was:

The mode of compilation should be deductible from the file to be compiled and should not require the user to check some external configuration/build/... file. This is good for both reading code and editor support.
Deciding what to do with a file based on its extension is a common practice, in particular it is what gcc does.

I did some changes/refactoring to some very core files and to the test infrastructure to avoid duplicating code, but I felt very uncomfortable making the changes without supervision from someone who understands the project better.
Test functions files now reside in test/test-models/good-standalone-functions - is this a reasonable place in the tree? (an obvious alternative would be test/test-standalone-functions/good)
I had trouble with the 80 char limit, I don't like some of the indents / line breaks it forced me to do, but I couldn't find a better way - could you please check that the code reads nice and is aligned with what others write? (e.g. the two-line for cycle in stanc_helper.hpp line 280).
When compiling standalone functions, it is definitely necessary to check whether other blocks are contained in the input file. I see two possible ways of doing this - what would you prefer?

keep the default parser and check whether the members of stan::lang::program are all empty except function_decl_defs_ (requires maintanence when new types of program blocks are introduced or when the program struct changes)
create a specific parser variant that only recognizes the functions block (would require maintanance when the parser structure changes and a specific parser for other compilation modes would have to be created as well)

Should compile_functions() give a warning or error when other blocks are present?

Additionally, I have reduced the required includes to stan/math.hpp, stan/lang/rethrow_located.hpp and a few standard headers.

Sweet, is it set up to compile to a library too?
On Sun, Apr 16, 2017, 8:53 AM Martin Černý<EMAIL_ADDRESS>wrote:

Additionally, I have reduced the required includes to stan/math.hpp,
stan/lang/rethrow_located.hpp and a few standard headers.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/2267#issuecomment-294350204, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAfA6cI99v3G7Y8yiKtfdHMvZHxbGxc3ks5rwg8xgaJpZM4M2zEA
.

Happy easter, everybody.
I have now also written code to generate concrete instantiations of the templated functions. For templated function func it generates ````func__double_onlywhere all parameters are based on doubles + there is a concrete RNG for the_rng``` functions. I have two more points for feedback:

What is the bool propto template parameter for the _lpdf functions? If I get it right, propto == true means the function should ignore constant terms. Therefore, in the instantiated functions, it is always false.
In generate_function_instantiation_template_parameters.hpp the 80 chars limit forced me to split the initial #ifndef / #define directives on two lines... Shouldn't that be exempt from this rule?

@sakrejda Not sure what you mean, but probably not :-) In particular, if you mean the ability to wrap the functions in a library that can be invoked from RStan, than I have not looked at that yet.

Just so it's compatible with being compiled as a shared library, nice if
there's support for instantiating with all doubles.
On Sun, Apr 16, 2017, 11:48 AM Martin Černý<EMAIL_ADDRESS>wrote:

@sakrejda https://github.com/sakrejda Not sure what you mean, but
probably not :-) In particular, if you mean the ability to wrap the
functions in a library that can be invoked from RStan, than I have not
looked at that yet.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/2267#issuecomment-294358556, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAfA6RLJo0CzPCpWdC2l_fxjGVM8ptiKks5rwjhQgaJpZM4M2zEA
.

I have now also written code to generate concrete instantiations of the templated functions.

Great!  That should be super-helpful in R.  I think there's a few things that need to go into a comment to make it usable in R.
@bgoodri --- is there an example somewhere of what you need for this for RStan?

For templated function func it generates ````func__double_onlywhere all parameters are based on doubles + there is a concrete RNG for the_rng``` functions.

That got lost in translation.

I have two more points for feedback:
• What is the bool propto template parameter for the _lpdf functions? If I get it right, propto == true means the function should ignore constant terms. Therefore, in the instantiated functions, it is always false.

You got it right.

• In generate_function_instantiation_template_parameters.hpp the 80 chars limit forced me to split the initial #ifndef / #define directives on two lines... Shouldn't that be exempt from this rule?

How about a shorter file name?  Maybe just dropping "template_parameters"?

OK, I see the issue now.  Why do you want to mangle the function name to func_double_only?

All the hacks are in the expose_stan_functions() function.
On Mon, Apr 17, 2017 at 8:52 PM, Bob Carpenter<EMAIL_ADDRESS>wrote:

OK, I see the issue now. Why do you want to mangle the function name to
func_double_only?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/2267#issuecomment-294639292, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADOrqkEKHDNGcBjYMNCzx8ziggR-tqy3ks5rxAlngaJpZM4M2zEA
.

This looks really awesome!
Would it be possible to generate for ODE functors in addition to double only versions a flavor which has the argument for the states as var?
Currently, functions which involve integrate_ode_bdf cannot be exposed to R. The reason is that the bdf integrator needs the Jacobian of the ODE RHS wrt to the states which is done by default using autodiff. However, this maybe conceptually not possible as AD is not usable in the exported functions; I don't know - but if this could work that would be amazing.

@wds15 I think it should be possible, but I've never really used the ODE solver. Could you provide an example you are interested in? - please describe the complete use case and share code for a specific Stan function you would like to have available.
@bob-carpenter The long name follows the naming conventions of the rest of the directory (and the shorter one you suggest is used by another file). I have mixed feelings about the "one function per file " approach, but that's how the rest of the code is written.
The '_double_only' suffix just felt right to distinguish the template from the instantiation, but I guess it's not necessary (though I have only shallow knowledge of the darker corners of C++ templates and R-C++ interop)

@bob-carpenter One more thing: note that the function instantiation is something different than the template - in particular, it is NOT an explicit specialization of the template (as that would not guarantee it gets actually instantiated), but it is a normal function that calls the templated function - I am not completely sure what the compiler would do if I named them the same. That's why I named them differently. Another way to keep things clean would be to put either the templates or the instantiations into a different namespace (xx::instances or xx::templates)...

Ok, here it goes: This is the Stan file which should be exported to R
functions {

  vector integrand(vector x) {
    return exp(-square(x));
  }

  real[] integrand_ode(real r, real[] f, real[] theta, real[] x_r, int[] x_i) {
    real df_dx[1];
    real x = logit(r);
    df_dx[1] = exp(-square(x)) * 1/(r * (1-r));
    return(df_dx);
  }

  real ode_integrate() {
    int x_i[0];
    // ok:
    //return(integrate_ode_rk45(integrand_ode, rep_array(0.0, 1),
    //1E-5, rep_array(1.0-1E-5, 1), rep_array(0.0, 0), rep_array(0.0,
    //0), x_i)[1,1]);
    // not ok
    return(integrate_ode_bdf(integrand_ode, rep_array(0.0, 1), 1E-5, rep_array(1.0-1E-5, 1), rep_array(0.0, 0), rep_array(0.0, 0), x_i)[1,1]);
  }

}
data {
}
model {}

The generated functor for integrand_ode looks like this:
template <typename T0__, typename T1__, typename T2__, typename T3__>
std::vector<typename boost::math::tools::promote_args<T0__, T1__, T2__, T3__>::type>
integrand_ode(const T0__& r,
                  const std::vector<T1__>& f,
                  const std::vector<T2__>& theta,
                  const std::vector<T3__>& x_r,
                  const std::vector<int>& x_i, std::ostream* pstream__) {

Things do not work, because we only get a double only version of that thing. However, we need the Jacobian wrt to states, so we need a version of the functor where T0, T2 and T3 are doubles (as before), but T1 must be stan::math::var.
Of course, you then also need to pull in the AD machinery...

@wds15 Thanks for the code. It is however not clear to me, why would you want T1 to be stan::math::var and how do you intend to use the standalone function from R. Maybe there is a solution to your problem without resorting to stan::math::var (and choosing that only T1 has stan::math::var seems quite arbitrary). Could you please elaborate on what exactly is your ultimate goal? I'd like to avoid the XY Problem :-).

well, then just dump the above stan model into a file, call it integrate.stan and then do in R
library(rstan)
expose_stan_functions("integrate.stan")

You will see that the compilation fails, because the functor I refer to is not available. If you trace where things are coming from, the you see that the integrate_ode_bdf tries to get the derivative of the functor wrt to the states.
Does that clear things up?

#include <iostream>
#include <string>

template <typename T>
double foo(T x) { return 1; }

double foo(double x) { return 2; }

template <>
double foo(double x) { return 3; }

template <>
double foo<std::string>(std::string x) { return 4; }

int main() {
  std::cout << "foo(2.7) = " << foo(2.7) << std::endl;
  std::cout << "foo(1) = " << foo(1) << std::endl;
  std::cout << "foo(\"bar\") = " << foo("bar") << std::endl;
  std::cout << "foo(std::string(\"bar\")) = " << foo(std::string("bar")) << std::endl;
}

outputs
foo(2.7) = 2
foo(1) = 1
foo("bar") = 1
foo(std::string("bar")) = 4

So you see that first it figures out which template function to use, and only then figures out the specialization.  That's why foo(2.7) evaluates to 2.  The overload is more specific than the template, despite the template having a double specialization.

@bob-carpenter The long name follows the naming conventions of the rest of the directory (and the shorter one you suggest is used by another file). I have mixed feelings about the "one function per file " approach, but that's how the rest of the code is written.

So do we all.  We've found it easier to find things that way. May be because Daniel and I came from Java backgrounds which strictly enforced the one class per file issue.

In response to https://github.com/stan-dev/stan/issues/2267#issuecomment-295099249, that's totally OK.  The resolution mechanism first figures out which overload to use, then if the result is a template function, which instantiation to use.  Both steps need to be unambiguous, that's all.

@wds15 I think I still miss the bigger picture - do you want/need to evaluate the derivatives with respect to the parameters in R? Or are you just interested in performing the numerical integration? Or you really only care about the evaluating the state function?

He wants the integration to run.
On Fri, Apr 21, 2017, 3:26 PM Martin Černý<EMAIL_ADDRESS>wrote:

@wds15 https://github.com/wds15 I think I still miss the bigger picture

do you want/need to evaluate the derivatives with respect to the
parameters in R? Or are you just interested in performing the numerical
integration? Or you really only care about the evaluating the state
function?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/2267#issuecomment-296285579, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAfA6UEBjPCyQo_7cRAc5QgZovAwsMTFks5ryQLngaJpZM4M2zEA
.

@sakrejda @wds15 I have written a test that verifies that the example code with ODE can compile into a standalone functions file and that the ode_integrate() can be called. However, since there is no current complement to expose_stan_functions for the standalone functions, I cannot verify it works also in R.
Furhter I have filed a pull  request in hope of getting more feedback on my initial questions from April 15.

I updated the title and description to add context as to how this feature will be used.

The core has been implemented and merged, remaining problems are tracked elsewhere, closing.


docs: update chart to reflect macos-latest

The chart makes it seem like macos-latest is 11 when it's actually 12.

Hello! We update docs manually as soon as it is fully migrated.


Questions about the graph

I have a little question about this part below. Does this mean you slice it along first axis, which means you slice it along batch-size dimension? But according to the paper,shouldn't it be sliced along 'w'  dimension?
        def MapToSequences(x):
            x = tf.squeeze(x, [1])
            x = tf.unstack(x)
            return x

The sequence length error was related to an error in the CNN part of the network. Please retry with current master.


Fix typo in ASN1_STRING_length doc

Fixes https://github.com/openssl/openssl/issues/5454

Checklist

[x] documentation is added or updated

@richmoore Sure, CLA check passing now

ping @openssl/committers for another review.

ping @prog1dev

@mspncp Thank you. You right. I made the changes you requested

reconfirm.

Merged to master, 1.1.0, and 1.0.2, thank you!


Create Zst435.py

Zst compression made by Jurijus Pacalovas

Please, add my compression zst.

The utility creates an output file listing the paths and names of files that are being ignored by git. If your compression utility can read input from stdin to create the compressed output file then we are compatible. However, I don't think there is benefit to add the utility here. If you have a website that would describe the proposed compression utility and that it works with the output of GitZipIgnore I'd be happy to reference that site in the README.md


upgrade

please upgrade appcompat-v7 to 27.1.1,  I have mix vertion of this lib  with 26
thanks before.

bye.

Hi @sooodi. In the last release I've updated SDK version to 27.


[README] add a few linter/testing tools

sonarqube
asqatasun
axe-linter & lighthouse-ci on github

Awesome 👍


Don't show the update notifications

Browser name:
Chrome
Browser version:
57
OctoLinker version:
4.9.0
Expected behavior:
Please stop notifying me that OctoLinker has updated.
My browser doesn't bug me, the extensions shouldn't either.

Isn't it nice to know what we added to OctoLinker?
We also communicate new features on Twitter @OctoLinker. Compared to our active users (more than 12.000) we have less than 100 followers on Twitter. Therefore I added long time ago the notification to reach a broader audience.
Anyway, we can add an option to disable the notification.

Yes and no. I appreciate any updates but I don't really go read the release notes of every version of every software I manually or automatically update. There's a lot of notification noise already
An option would be nice

<3


A crash again

MaxBook:MKHRequirement maxim$ xcake make

Reading Cakefile
Creating Project
Creating Target<>
Creating Target
Creating Target
Resolving Project
Resolving Target<>
Resolving Target
Resolving Target
Creating build configurations for Project
Creating build configuration Debug for Project
Creating build configuration Release for Project
Creating build configurations for Target<>
Creating build configuration Debug for Target<>
Creating build configuration Release for Target<>
Creating build configurations for Target
Creating build configuration Debug for Target
Creating build configuration Release for Target
Creating build configurations for Target
Creating build configuration Debug for Target
Creating build configuration Release for Target
Creating User Schemes
/Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/lib/xcake/generator/scheme_generator.rb:33:in block in visit_target': undefined method build_for_running' for #Xcodeproj::XCScheme::BuildAction:0x007fde710aba70 (NoMethodError)
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/lib/xcake/generator/scheme_generator.rb:16:in each' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/lib/xcake/generator/scheme_generator.rb:16:in visit_target'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/lib/xcake/visitor.rb:45:in visit' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/lib/xcake/dsl/project.rb:83:in block in accept'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/lib/xcake/dsl/project.rb:82:in each' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/lib/xcake/dsl/project.rb:82:in accept'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/lib/xcake/command/make.rb:25:in block in run' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/lib/xcake/command/make.rb:23:in each'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/lib/xcake/command/make.rb:23:in run' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/claide-1.0.1/lib/claide/command.rb:334:in run'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.8/bin/xcake:6:in <top (required)>' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/xcake:22:in load'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/xcake:22:in <main>' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in eval'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `'

Any ideas why?

Sometimes the output is like this:
MaxBook:MKHRequirement maxim$ xcake make

Reading Cakefile
Creating Project
Creating Target<>
Creating Target
Creating Target
Resolving Project
Resolving Target<>
Resolving Target
Resolving Target
Creating build configurations for Project
Creating build configuration Debug for Project
Creating build configuration Release for Project
Creating build configurations for Target<>
Creating build configuration Debug for Target<>
Creating build configuration Release for Target<>
Creating build configurations for Target
Creating build configuration Debug for Target
Creating build configuration Release for Target
Creating build configurations for Target
Creating build configuration Debug for Target
Creating build configuration Release for Target
Platform not supported!

@maximkhatskevich I think this is the same crash as before, if you clone this repo and run rake install then the development version of 0.8.9 should be installed and you can see if that fixes it.
I'm considering releasing 0.8.9 with these fixes and doing another 0.8.10 with the rest

I think iterating faster would be better than waiting for longer :) Okay, I'll try to install from sources, but a release would be very welcome!

@maximkhatskevich sure I'll release tonight :)

Should I use 'master' branch for installing from source?

MaxBook:xcake maxim$ rake install
rake aborted!
LoadError: cannot load such file -- bundler/gem_tasks
/Users/maxim/Dev/xcake/Rakefile:1:in <top (required)>' /Users/maxim/.rvm/gems/ruby-2.4.0@global/gems/rake-12.0.0/exe/rake:27:in <top (required)>'
/Users/maxim/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in eval' /Users/maxim/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in '
(See full trace by running task with --trace)

doesn't work, even if I switch to ruby 2.0.0

ah you need to run gem install rake && gem install bundle and then re run it :)

omg... I'm almost ready to give up on all that Ruby stuff... :) Okay, doing that now.

@maximkhatskevich  haha it's a learning curve at first but then you get used to it haha

Anyway...
MaxBook:xcake maxim$ rake install
rake aborted!
LoadError: cannot load such file -- rspec/core/rake_task
/Users/maxim/Dev/xcake/Rakefile:2:in <top (required)>' /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/rake-12.0.0/exe/rake:27:in <top (required)>'
/Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in eval' /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in '
(See full trace by running task with --trace)

after installing the above

Okay, I guessed it. 'rspec' is another gem I needed to install.

MaxBook:MKHRequirement maxim$ xcake make

Reading Cakefile
Creating Project
Creating Target
Resolving Project
Resolving Target
Creating build configurations for Project
Creating build configuration Debug for Project
Creating build configuration Release for Project
Creating build configurations for Target
Creating build configuration Debug for Target
Creating build configuration Release for Target
Integrating System Frameworks ["Foundation", "UIKit"] for
Target
Creating build phases for Target
Creating User Schemes
/Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/generator/scheme_generator.rb:33:in block in visit_target': undefined method build_for_running' for #Xcodeproj::XCScheme::BuildAction:0x007fd6c2838cb8 (NoMethodError)
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/generator/scheme_generator.rb:16:in each' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/generator/scheme_generator.rb:16:in visit_target'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/visitor.rb:45:in visit' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/dsl/project.rb:83:in block in accept'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/dsl/project.rb:82:in each' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/dsl/project.rb:82:in accept'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/command/make.rb:25:in block in run' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/command/make.rb:23:in each'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/command/make.rb:23:in run' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/claide-1.0.1/lib/claide/command.rb:334:in run'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/bin/xcake:6:in <top (required)>' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/xcake:22:in load'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/xcake:22:in <main>' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in eval'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `'

Any ideas now?

:) yup, you're getting it - okay seems like this is a different error. Let me look through my code and see if I cab bash out a quick fix for you :) should be a simple one

would be awesome! Thx!

@maximkhatskevich so pushed a fix to master, I am writing some unit tests for it but feel free to pull it down and test it out :)

no, sorry, seems to be the same result :(

MaxBook:MKHRequirement maxim$ xcake make

Reading Cakefile
Creating Project
Creating Target
Resolving Project
Resolving Target
Creating build configurations for Project
Creating build configuration Debug for Project
Creating build configuration Release for Project
Creating build configurations for Target
Creating build configuration Debug for Target
Creating build configuration Release for Target
Integrating System Frameworks ["Foundation", "UIKit"] for
Target
Creating build phases for Target
Creating User Schemes
/Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/generator/scheme_generator.rb:33:in block in visit_target': undefined method build_for_running' for #Xcodeproj::XCScheme::BuildAction:0x007fdd96138f00 (NoMethodError)
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/generator/scheme_generator.rb:16:in each' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/generator/scheme_generator.rb:16:in visit_target'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/visitor.rb:45:in visit' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/dsl/project.rb:83:in block in accept'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/dsl/project.rb:82:in each' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/dsl/project.rb:82:in accept'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/command/make.rb:25:in block in run' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/command/make.rb:23:in each'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/command/make.rb:23:in run' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/claide-1.0.1/lib/claide/command.rb:334:in run'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/bin/xcake:6:in <top (required)>' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/xcake:22:in load'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/xcake:22:in <main>' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in eval'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `'

@maximkhatskevich just so I can test this on my end is this the Cakemania Framework Example ?

no, it's one of my side projects. Let me try it with Cakemania, actually

Yes, same happens when I'm trying to run 'xcake make' against the Cakefile of framework example

Please, confirm if you see this crash on your side?

@maximkhatskevich cool, I'll use that to verify my fix rather than wasting your time :)

thx, I'm here waiting for the fix, really need this to move forward :)

@maximkhatskevich Cool, so I've tried fixing it. Turns out it was a minr feature to make xcake behave more like xcode. But I'll disable it for now :) and push it up.

Pushed :)

Okay, now it does not crash. I'm going to verify how it works in more details. Will let you know if I find any issues, of course.

@maximkhatskevich :) sure, need to get all these bugs out.

problems again

I uncommented my unit tests target in the Cakefile and getting this:
MaxBook:MKHRequirement maxim$ xcake make

Reading Cakefile
Creating Project
Creating Target<>
Creating Target
Creating Target
/Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/xcode/project.rb:118:in file_reference_for_path': undefined method dirname' for #Xcodeproj::Project::Object::PBXFileReference:0x007f89c590d340 (NoMethodError)
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/context/xcodeproj_context.rb:56:in file_reference_for_path' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/generator/target_file_reference_generator.rb:33:in include_file_for_path_and_target'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/generator/target_file_reference_generator.rb:26:in block in visit_target' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/generator/target_file_reference_generator.rb:25:in each'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/generator/target_file_reference_generator.rb:25:in visit_target' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/visitor.rb:45:in visit'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/dsl/project.rb:83:in block in accept' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/dsl/project.rb:82:in each'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/dsl/project.rb:82:in accept' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/command/make.rb:25:in block in run'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/command/make.rb:23:in each' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/lib/xcake/command/make.rb:23:in run'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/claide-1.0.1/lib/claide/command.rb:334:in run' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/gems/xcake-0.8.9/bin/xcake:6:in <top (required)>'
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/xcake:22:in load' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/xcake:22:in '
from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in eval' from /Users/maxim/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in '

What a big pain that Xcode project file!

@maximkhatskevich it's good, it's battle testing it :) I'll have a look into this :)

Maybe you require a specific version of Xcodeproj?

@maximkhatskevich I've been thinking about bumping up the requiremnt I think the one in the gemspec right now is too low we should limit support to the latest version since most people use the latest xcode :)

sure, I agree

Waiting for your updates/instructions :)

Do you know what xcodeproj you have btw ? will be interested to see where  dirname went

xcodeproj --version
1.4.2

Something you expected?

@maximkhatskevich looks like there is some file path I didn't code Xcake to support or something in Xcodeproj has changed and its now returning a file reference when Xcake didn't expect.
So Xcake is doing something unsupported and crashing. Just would like to know what that file path is. I'll probably need an example project for this one that can recreate the crash since it depends on what files you are trying to include etc :)

okay, give me a moment

Checkout project from 'develop' https://github.com/maximkhatskevich/MKHRequirement/tree/develop

The Cakefile is there

I was experimenting with Struct, btw, it is a bit more stable, but functionality is more limited than Xcake, so I'm getting back on Xcake, if will be able to make it work again for me :)

@maximkhatskevich Please feel free to file any issues on missing functionality in struct. It'd be great to add anything you're currently missing!

@maximkhatskevich Yeah I've decided Struct will be the better tool in the long term, so I'm helping to make that better and add what I can from Xcake.
Of course not everything will make it as Struct is supposed to be tighter than Xcake.  'm hoping to get all of these bugs fixed in Xcake so I can have it in a good state as I know a lot of people like Xcake.
But like @lyptt says file what you are missing and I can help get it into Struct as well :)

@lyptt I'll take an eye on both projects, but currently the biggest thing is how unstable all that. So much unexpected/undocumented behavior, and I can't easy reuse settings in config file. @lyptt take a look on https://github.com/maximkhatskevich/MKHRequirement/blob/develop/Cakefile and notice how easy and naturally things are nested one into another and how nested scopes easy override what's been defined in an outer scope. For example, I define settings for all Build Configurations, and then override just one or two only for 'Release' configuration, etc. This is missing in Struct. The custom 'def ...' declarations not working - I made them work not causing crashes somehow, but overrides from then are not taking effect on the final project file. Or if I defined settings for all configurations, I can't add few specific overrides just for one Configuration.

@maximkhatskevich also checking out your project and will try it out :) sorry about this. I've decided to add some tests to see if Xcake can generate the Cakemania proects :)
https://github.com/maximkhatskevich/MKHRequirement/tree/develop

@lyptt @jcampbell05 but I do like how naturally Struct handles build schemes. It creates 1 sheme per target, which combines both Debug and Release build configurations as Xcode does by default (Debug for Run and Test, Release for Archive, etc., all inside the same cheme named after its target).
Also, project variants might be a better solution than having multiple custom Build Configurations and Shemes.

@lyptt @jcampbell05 but I do like how naturally Struct handles build schemes. It creates 1 sheme per target, which combines both Debug and Release build configurations as Xcode does by default (Debug for Run and Test, Release for Archive, etc., all inside the same cheme named after its target).
Also, project variants might be a better solution than having multiple custom Build Configurations and Shemes.

I think we could look into getting some sort of high-level system or simplify variants to work in  a way with less of a learning curve if you  are more in the Xcode mindset :)  Xcake takes most of it's cues from Xcode which is why is has the nestling but it obviously adds alot of complexity when it had come to testing.

@maximkhatskevich So from this, I can see two main issues you're running into:

Undocumented / unexplaned behaviour: Yes definitely we need more documentation. I'm 100% in support of this, the more documentation the better! I'll add an issue to track this.
Reusing build configurations - yes I agree this can definitely be improved. Currently there's a bit of duplication when manually specifying configurations. I'll add an issue to investigate how we can go about this in a natural way.

@maximkhatskevich you should join the Gitter channel for Struct we can discuss this more :)

wow, what is Gitter? :)

@lyptt check the Specfile here https://github.com/maximkhatskevich/MKHRequirement/tree/develop you can see where I stopped trying to make it work :)

@maximkhatskevich It's a chat/IRC program that lets you chat to people based on the github repo :) so we can talk about Xcake just by going to the same url as this repo on gitter :)

@lyptt Struct is using Xcodeproj by CocoaPods under the hood as well?

@maximkhatskevich It is indeed! It's great having very active users like you, so I'd love to help make your use of struct as streamlined as possible. Please feel free to file issues on the struct repo and we can help smooth out the process of integrating with struct 👍

@lyptt okay I'll file the key issues I have, but basically I will be able to move on Struct if you make the Specfile work in the repo I gave earlier.

@lyptt It will be great to work together as well :) not many people seem to want to work on Xcode Project Generation. Can't say I can blame them when you get into it :P

@jcampbell05 Oh yeah tell me about it! Xcode is an absolute nightmare - and that's before you start working with it at such a low level 😂 Makes me wonder why I was insane enough to do it, but I can't help myself now!

@lyptt @jcampbell05 I'm wondering if Swift Package Manager can help us with project generation? IBM with their Kitura framework somehow generate project files as well, can you look into this? Probably we can learn something from there?

@maximkhatskevich I think most of our issues are centred around our 'approach' to generating projects. With Xcode projects there's a monumental amount of feature bloat, and factoring that down into something sensible is the hardest task!
The goal for struct was to boil down all these Xcode features and pick out the ones that developers use all the time, and make them incredibly simple to work with. This is basically the overall end-goal for the tool 🚀

@maximkhatskevich @lyptt I think in the long term SPM will become the project format for xcode, but not in a long time. Right now its super optimized for Swift frameworks like Kittura.
When I made Xcake, Cocoapods wasn't used by most developers. Fastlane and SPM didn't exist (Xcake was originally just a private tool that even used Sigh to download the certificates - @KrauseFx was onto something). It was supposed to in effect be a high-level Xcodeproj that allowed you to simply describe a project and allow you access to Xcode. This has ended up in some complexity as I've had to add things like watch app support and some Xcode Features are complex.
If I was building Xcake today :) I would probably build it more like Struct, since the times have changed. so its why I'm so excited to be working with someone as insane as me to be working with xcodeproject.
Someday I will write a talk about the project format it is crazy :)

To make a tool completely future-proof I would make it in Swift, but personally have no idea how to even approach this, as Xcode seems to not have (at least publicly documented) command-line API nor SDK. The only idea is to work with same Xcodeproj as you Xcake/Struct somehow, but it is made for work with from Ruby, have no idea how to communicate with it from Swift.

@maximkhatskevich Yeah, unfortunately there's no project parsers written in Swift, so it'd be a huge maintenance burden to move away from Xcodeproj. Also as Swift is a static language, it's going to be incredibly difficult to write a DSL for it, and it wouldn't be nearly as flexible as a Ruby DSL.

@maximkhatskevich yeah it's difficult since a lot of the Xcodeproject tooling is written in ruby right now thanks to the awesome people at Cocoapods :) I would love to do it in Swift but it would mean starting at a lower-level.
You can usually call xcake make or struct --generate from most languages as most allow you to invoke system calls. And since Struct supports JSON, you can just spit that out / parse it in Swift :).

Agree with both of you.

@lyptt never seen an example of JSON version of the config. Do you have one? Does it allow string concatination for dynamic value composing from patterns? What about variables and reusing of code/settings?

Hi @maximkhatskevich, there aren't any JSON examples at present, but they act identically to the YAML variants. JSON is the most limited of the three formats, as YAML at least has the benefit of merge operators to copy keys and values into an object.

@maximkhatskevich An example of merge operators in YAML:
.debug-config: &debug-config
  SWIFT_VERSION: '3.0'

targets:
  My app:
    configurations:
      debug:
        <<: *debug-config

@maximkhatskevich this results in the following JSON equivalent:
{
  "targets": {
    "My app": {
      "configurations": {
        "debug": {
          "SWIFT_VERSION": "3.0"
        }
      }
    }
  }
}

We are talking about adding variables to JSON in future so maybe we could allow this:
{
"env: {
"debug-config": {
"SWIFT_VERSION": "3.0"
}
},
  "targets": {
    "My app": {
      "configurations": {
        "debug": "$debug-config"
      }
    }
  }
}

Okay, thanks for the example. If currently JSON is the most limited, then it's not helpful, agree. YAML seems to be the most elegant, as it is least verbose, I like it. But the lack of proper support of variables and string concatenation like in Ruby makes me use Ruby format for sure.

In near future, I would write a Swift wrapper around Struct that will then generate Specfile and execute 'struct -g'. Would be interesting to experiment with it.

@maximkhatskevich Yup! Struct was intended to also act as a middleman for other tooling, so this is absolutely supported. If you are comfortable with ruby, you can require 'struct' and use Struct's APIs directly to generate Specfiles dynamically.

Going to close this as the original crash was fixed and the one I'm fixing is this one https://github.com/jcampbell05/xcake/issues/154 so we can carry the conversation on their :)

@jcampbell05 @lyptt I hope you've got notifications about about this https://github.com/maximkhatskevich/MKHProjGen/issues/1


Plans for package

@toivoh, I was wondering what the plans for this package are. Are you planning to support this through v0.5? Have you had a look at Gallium ?

I'm hoping to be able to support Julia 0.5; so far it's been a modest amount of work to upgrade from one Julia version to the next. But it might take a while before I can do the necessary changes. Not sure how much work it will be to support the new fused broadcast syntax (e.g. f.(g.(x))) though.
I've heard about Gallium, but I've never tried it. My impression is that it's not so widely adopted yet as to make the Debug package unnecessary.

Having Debug.jl on v0.5 would be great. Gallium crashes all the time.

@ehsantn I agree with you


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>chore(scripts): cover@#overwrite c8 --temp-directory build/coverage ava && c8 report -r lcov --temp-directory build/coverage
chore(package): add nyc from template
chore(package): set $.ava.require='esm' as in template
chore(package): set $.ava.files='tests/-test.js,tests/-test.mjs' as in template
chore(package): set $.ava.extensions='js,mjs' as in template

Coverage remained the same at 83.951% when pulling 648698978dc3126b184af48ce6a9407781ecba8e on template-sync-1 into 8ce38d4a5da2015b6e88558b73402f8c05c454ad on master.


Typescript files not included in npm package but requested from server

I installed ng2-image-lazy-load from the npm package, but keep getting 404's because the Typescript source files are requested from the server, which are not part of the npm package, e.g.

The controller for path '/Areas/Web/node_modules/ng2-image-lazy-load/src/client/app/directives/image-lazy-load.directive.ts' was not found or does not implement IController.

My bootstrap code is as follows
import { bootstrap } from 'angular2/platform/browser';
import { provide } from 'angular2/core';
import { FORM_PROVIDERS } from 'angular2/common';
import { HTTP_PROVIDERS } from 'angular2/http';
import {
  ROUTER_PROVIDERS,
  APP_BASE_HREF,
  LocationStrategy,
  HashLocationStrategy
} from 'angular2/router';

import { AppComponent } from './app.component';
...
import { IMAGELAZYLOAD_PROVIDERS } from 'ng2-image-lazy-load';

bootstrap(AppComponent, [
    FORM_PROVIDERS,
    ROUTER_PROVIDERS,
    HTTP_PROVIDERS,
    provide(LocationStrategy, { useClass: HashLocationStrategy }),
    ...
    IMAGELAZYLOAD_PROVIDERS
  ])
  .then(success => console.log('Bootstrap success'))
  .catch(error => console.log(error));

and I map the module in my ìndex.html` like so
<script>
   System.config({
      baseURL: '/Areas/Web',
      map: {
         'angular2': '/Areas/Web/node_modules/angular2',
         'rxjs': '/Areas/Web/node_modules/rxjs',
         'ng2-image-lazy-load': '/Areas/Web/node_modules/ng2-image-lazy-load/ng2-image-lazy-load'
      }
   });
   System.defaultJSExtensions=true;
   System.import('/Areas/Web/app/main')
      .then(null,console.error.bind(console));
</script>

Here's a snippet from the component that uses ng2-lazy-load-image
...
import {
    IMAGELAZYLOAD_PROVIDERS,
    IMAGELAZYLOAD_DIRECTIVES,
    WebWorker
} from 'ng2-image-lazy-load';

@Component({
    selector: '...',
    templateUrl: '...',
    ...
    directives: [
        IMAGELAZYLOAD_DIRECTIVES
    ]
})

and here's the template
<ul image-lazy-load-area>
    <li *ngFor="#item of items">
        <img [image-lazy-load-item]="item.image" alt="{{item.name}}" />
    </li>
</ul>

I could, of course copy the .tsfiles over from github, but I doubt that's the way it's supposed to work. Besides, I'd have to adjust the mapping and the imports as well.

Please try with latest version 1.2.0 and reopen if you are still having trouble. Thanks.


Added style theme

the font must be changed to arial bold for accuracy ...
I tried to copy style of terminal from this video: https://youtu.be/lT-NxwrjgZM.
It wasn't look as arial. I used OCR A for more sharp edges btw I think looks cooler.
... why did you changed the script
I didn't touch code. I refactored CR endings -> LF endings in repo. I assume original author was working on windows and having autocrlf=false.

But probably I need to separate crlf and styles in 2 pulls

i also used OCR A for the vid, gonna check the request then maybe pull it

Created pull with only styles without any files or git refactoring.
https://github.com/create-juicey-app/wantyougone/pull/6


Add pyproject.toml for Custom Node Registry

Hey! My name is Robin and I'm from comfy-org! We would love to have you join the Comfy Registry, a public collection of custom nodes which lets authors publish nodes by version and automate testing against existing workflows.
Eventually, the registry will be integrated as a backend for the UI-manager where all nodes will go through a security scan. Nodes that pass these checks will have a verification flag (✅) beside their name on the UI-manager. Feel free to read up more on the registry here
Action Required:

[ ] Go to the registry. Login and create a publisher id (everything after the @ sign on your registry profile).
[ ] Add the publisher id into the pyproject.toml file.
[ ] Merge the separate Github Actions PR, then merge this PR.

If you want to publish the node manually, install the cli by running pip install comfy-cli, then run comfy node publish
Otherwise, if you have any questions, please message me on discord at robinken or join our server!

the node is not ready to be pushed to the registry or the manager. too experimental. I'll keep working on it and we'll see


add: windscribe-gui-deb

[x] Edit packagelist
[x] Add initial pacscript
[ ] Contact devs (via email)
[ ] Add maintainer to pacscript

@wizard-28 It's really necessary to contact the developers or not?

Hmm... Actually, leave. I guess it's better not to contact big companies for this.


[C++][Release] Port changes required to build on vcpkg for 11.0.0 (utf8proc, thrift)

Describe the bug, including details regarding any error messages, version, and platform.
This issue is to track the porting of some patches that are required in order to build for vcpkg. Those should be ported to the main repo.
The vcpkg PR can be seen here:
https://github.com/microsoft/vcpkg/pull/29279
At the moment there are two identified issues, one with utf8proc and one with thrift  on Windows.
The initial issue with utf8_proc:
CMake Error at cmake_modules/Findutf8proc.cmake:31 (message):
  2.2.0
Call Stack (most recent call first):
  /home/raulcd/code/vcpkg/scripts/buildsystems/vcpkg.cmake:843 (_find_package)
  cmake_modules/ThirdpartyToolchain.cmake:280 (find_package)
  cmake_modules/ThirdpartyToolchain.cmake:2622 (resolve_dependency)
  CMakeLists.txt:498 (include)

This is due to the REQUIRED_VERSION on cpp/cmake_modules/ThirdpartyToolchain.cmake:
  resolve_dependency(utf8proc
                     REQUIRED_VERSION
                     "2.2.0"
                     PC_PACKAGE_NAMES
                     libutf8proc)

The issue with thrift on Windows:
CMake Error at D:/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find ThriftAlt (missing: ThriftAlt_LIB) (found version "0.16.0")
Call Stack (most recent call first):
  D:/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  D:/installed/x64-windows-static/share/arrow/FindThriftAlt.cmake:164 (find_package_handle_standard_args)
  C:/a/1/s/scripts/buildsystems/vcpkg.cmake:843 (_find_package)
  D:/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  D:/installed/x64-windows-static/share/arrow/ArrowConfig.cmake:105 (find_dependency)
  C:/a/1/s/scripts/buildsystems/vcpkg.cmake:843 (_find_package)
  CMakeLists.txt:24 (find_package)

Component(s)
C++, Release

This is not required anymore.


rewrite(takoyaki_bin): Rewrite for more flexibility and easy updates

Currently, takoyaki_bin has duplicate functions, adding improvements seems to be impossible. This PR updates takoyaki_bin with the following:
:heavy_check_mark: Remove clap.rs, and instead add a simple implementation
:heavy_check_mark: Move files according to their role; utils/ and commands/

LGTM!


Some updates to run pipeline smoothly

HI @maximilien ,
This is ready for review. Thanks.

OK cool. BTW, the following:
echo "yes" | bosh delete deployment $dummy_deployment --force

are example usage of bosh CLI that may break when moving to new CLI. Although, for this particular case, I believe it should work fine.
Merging. Cheers 👍


LBluetoothLeScannerCompat fails to work when using ScanSettings.CALLBACK_TYPE_FIRST_MATCH | ScanSettings.CALLBACK_TYPE_MATCH_LOST

I am running the code on a Nexus 9, with Android 5.0.1.
Scan fails to start with the following message :

java.lang.SecurityException: Need BLUETOOTH_PRIVILEGED permission: Neither user 10119 nor current process has android.permission.BLUETOOTH_PRIVILEGED.
at android.os.Parcel.readException(Parcel.java:1540)
at android.os.Parcel.readException(Parcel.java:1493)
at android.bluetooth.IBluetoothGatt$Stub$Proxy.startScan(IBluetoothGatt.java:747)
at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper.onClientRegistered(BluetoothLeScanner.java:299)
at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:56)
at android.os.Binder.execTransact(Binder.java:446)

I found out that the parameters are handled using reflection.
The only compatible setting is the CALLBACK_TYPE_ALL_MATCHES.
In my opinion we could fix the issue by :

Not using reflection
Changing the ScanCallback in order to handle these parameters.

I am working on a fix, and will probably post a reply about it.

Do you have the correct permissions in the manifest?
On Sat, Mar 7, 2015, 2:17 PM Simon GUEROUT<EMAIL_ADDRESS>wrote:

I am running the code on a Nexus 9, with Android 5.0.1.
Scan fails to start with the following message :
java.lang.SecurityException: Need BLUETOOTH_PRIVILEGED permission: Neither
user 10119 nor current process has android.permission.BLUETOOTH_PRIVILEGED.
at android.os.Parcel.readException(Parcel.java:1540)
at android.os.Parcel.readException(Parcel.java:1493)
at
android.bluetooth.IBluetoothGatt$Stub$Proxy.startScan(IBluetoothGatt.java:747)
at
android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper.onClientRegistered(BluetoothLeScanner.java:299)
at
android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:56)
at android.os.Binder.execTransact(Binder.java:446)
I found out that the parameters are handled using reflection.
The only compatible setting is the CALLBACK_TYPE_ALL_MATCHES.
In my opinion we could fix the issue by :

Not using reflection
Changing the ScanCallback in order to handle these parameters.

I am working on a fix, and will probably post a reply about it.
—
Reply to this email directly or view it on GitHub
https://github.com/google/uribeacon/issues/214.

Well, I have BLUETOOTH and BLUETOOTH_ADMIN, but as BLUETOOTH_PRIVILEGED is not supposed to be used, I did not include it at first.

public static final String BLUETOOTH_PRIVILEGED
Allows applications to pair bluetooth devices without user interaction, and to allow or disallow phonebook access or message access. This is not available to third party applications.
Constant Value: "android.permission.BLUETOOTH_PRIVILEGED"

Even including it does not change anything.
Here is the code I am using
scanner = BluetoothLeScannerCompatProvider.getBluetoothLeScannerCompat(mContext);
// THIS FAILS
scanner.startScan(
  Arrays.asList(new ScanFilter.Builder().setServiceUuid(ParcelUuid.fromString("7265656c-7941-6374-6976-652055554944")).build()),
  new ScanSettings.Builder() //
      .setCallbackType(ScanSettings.CALLBACK_TYPE_FIRST_MATCH | ScanSettings.CALLBACK_TYPE_MATCH_LOST) //
      .setScanMode(ScanSettings.SCAN_MODE_LOW_POWER) //
      .setScanResultType(ScanSettings.SCAN_RESULT_TYPE_FULL) //
      .build(),
  scanCallback
);

// THIS WORKS
scanner.startScan(
  Arrays.asList(new ScanFilter.Builder().setServiceUuid(ParcelUuid.fromString("7265656c-7941-6374-6976-652055554944")).build()),
  new ScanSettings.Builder() //
      .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) //
      .setScanMode(ScanSettings.SCAN_MODE_LOW_POWER) //
      .setScanResultType(ScanSettings.SCAN_RESULT_TYPE_FULL) //
      .build(),
  scanCallback
);

Take a look at this. It seems there is one extra permission needed for the
library.
https://github.com/google/uribeacon/blob/master/android-uribeacon/uribeacon-sample/src/main/AndroidManifest.xml
Also if you look at the BLE API in lollipop it says only the all matches is
supported.
On Sat, Mar 7, 2015, 2:51 PM Simon GUEROUT<EMAIL_ADDRESS>wrote:

Well, I have BLUETOOTH and BLUETOOTH_ADMIN, but as BLUETOOTH_PRIVILEGED is
not supposed to be used, I did not include it at first.
public static final String BLUETOOTH_PRIVILEGED
Allows applications to pair bluetooth devices without user interaction,
and to allow or disallow phonebook access or message access. This is not
available to third party applications.
Constant Value: "android.permission.BLUETOOTH_PRIVILEGED"
Even including it does not change anything.
Here is the code I am using
scanner = BluetoothLeScannerCompatProvider.getBluetoothLeScannerCompat(mContext);// THIS FAILS
scanner.startScan(
Arrays.asList(new ScanFilter.Builder().setServiceUuid(ParcelUuid.fromString("7265656c-7941-6374-6976-652055554944")).build()),
new ScanSettings.Builder() //
.setCallbackType(ScanSettings.CALLBACK_TYPE_FIRST_MATCH | ScanSettings.CALLBACK_TYPE_MATCH_LOST) //
.setScanMode(ScanSettings.SCAN_MODE_LOW_POWER) //
.setScanResultType(ScanSettings.SCAN_RESULT_TYPE_FULL) //
.build(),
scanCallback
);
// THIS WORKS
scanner.startScan(
Arrays.asList(new ScanFilter.Builder().setServiceUuid(ParcelUuid.fromString("7265656c-7941-6374-6976-652055554944")).build()),
new ScanSettings.Builder() //
.setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) //
.setScanMode(ScanSettings.SCAN_MODE_LOW_POWER) //
.setScanResultType(ScanSettings.SCAN_RESULT_TYPE_FULL) //
.build(),
scanCallback
);
—
Reply to this email directly or view it on GitHub
https://github.com/google/uribeacon/issues/214#issuecomment-77714976.

The extra permission is not used in Lollipop, but it is in my Manifest.
As for the ALL_MATCHES vs the FIRST_MATCH|MATCH_LOST, it is handled for the older versions in JbBluetoothLeScannerCompat.

I am working on a project based on parts of this library : https://github.com/reelyactive/ble-android-sdk
I'll fix my project and port the changes in this one (I'll submit a pull request)

The compat library uses the ble lollipop library if available (where only
all matches is supported) .  If you're on a nexus 9 then it's probably not
using the jellybean library.
On Sat, Mar 7, 2015, 3:19 PM Simon GUEROUT<EMAIL_ADDRESS>wrote:

I am working on a project based on parts of this library :
https://github.com/reelyactive/ble-android-sdk
I'll fix my project and port the changes in this one (I'll submit a pull
request)
—
Reply to this email directly or view it on GitHub
https://github.com/google/uribeacon/issues/214#issuecomment-77715910.

I tried using both versions of the API on hte Nexus 9 and using FIRST_MATCH|MATCH_LOST fails with the newest :
// GO LOLLIPOP
scanner = BluetoothLeScannerCompatProvider.getBluetoothLeScannerCompat(mContext);
// GO JELLYBEAN
scanner = BluetoothLeScannerCompatProvider.getBluetoothLeScannerCompat(mContext, false);

So the first one doesn't work but the second one does?
On Sat, Mar 7, 2015, 3:28 PM Simon GUEROUT<EMAIL_ADDRESS>wrote:

I tried using both versions of the API on hte Nexus 9 and using
FIRST_MATCH|MATCH_LOST fails with the newest :
// GO LOLLIPOP
scanner = BluetoothLeScannerCompatProvider.getBluetoothLeScannerCompat(mContext);// GO JELLYBEAN
scanner = BluetoothLeScannerCompatProvider.getBluetoothLeScannerCompat(mContext, false);
—
Reply to this email directly or view it on GitHub
https://github.com/google/uribeacon/issues/214#issuecomment-77716205.

So I tried 4 cases:

JB APIs + ALL_MATCHES => OK
JB APIs + FIRST_MATCH|MATCH_LOST => OK
Lollipop APIs + ALL_MATCHES => OK
Lollipop APIs + FIRST_MATCH|MATCH_LOST => NOT OK
The issue comes from the fact that the ScanSettings are not used the same way in JbBluetoothLeScannerCompat and LBluetoothLeScannerCompat

In the JbBluetoothLeScannerCompat the adresses seen during the scan are kept in memory, in order to track events when using FIRST_MATCH|MATCH_LOST, in LBluetoothLeScannerCompat there is a call to
if (method.toString().contains(".setCallbackType(")) {
    method.invoke(builder, settings.getCallbackType());
    callbackTypeSet = true;
}

which leads to the error.
Looking at the Android source code shows that these are not public (yet).
(https://android.googlesource.com/platform/frameworks/base/+/android-5.0.2_r1/core/java/android/bluetooth/le/ScanSettings.java)
In order to support FIRST_MATCH|MATCH_LOST, the same code as in JbBluetoothLeScannerCompat#callbackLeScanClients
should be used for new matches (+ an alarm to check for lost matches ?).

I am running the code on a Nexus 9, with Android 5.0.1.
Scan fails to start with the following message :

java.lang.SecurityException: Need BLUETOOTH_PRIVILEGED permission: Neither user 10119 nor current process has android.permission.BLUETOOTH_PRIVILEGED.
at android.os.Parcel.readException(Parcel.java:1540)
at android.os.Parcel.readException(Parcel.java:1493)
at android.bluetooth.IBluetoothGatt$Stub$Proxy.startScan(IBluetoothGatt.java:747)
at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper.onClientRegistered(BluetoothLeScanner.java:299)
at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:56)
at android.os.Binder.execTransact(Binder.java:446)

I found out that the parameters are handled using reflection.
The only compatible setting is the CALLBACK_TYPE_ALL_MATCHES.
In my opinion we could fix the issue by :

Not using reflection
Changing the ScanCallback in order to handle these parameters.

I am working on a fix, and will probably post a reply about it.

I am working on it. I will fix it within 10 days. I got the real issue I will fix it. for more information click scanner.


How to know which version of Server is compatible with android app version. How to decide?

I am currently using below versions but how to be sure that my app client version that I choose is fully compatible with Signal-Server.
Server Version : Master - Current
Client Version :Android Master - 5.12.1

Mostly by assuming, I check the commit date of the server version and find the client version that committed on the same date.
From there, following semantic versioning, major version of those server & client should be compatible

Hi,
I am running server and android client with current master build.
Register the app client on server and every thing look fine.
RegistrationUtil: Marking registration completed.
We have two app user registered.
But while sending message to between two client , server receive message from sender but not being received by received.
Message Log like this which is being send.
request {
body: "{"destination":"65aa882a-fa47-4cdb-a7a3-7a170143a471","messages":[{"content":"MwigjJIFEiEF7w2CwebJbeLW401FsO2x0/FXECw+VrQPHv+F2XsYKj4aIQX0F5TBvioakYs6EeuwQUAcvmdwh2II8FDWrg39WSdZNSLTATMKIQV39oIJOXlL80T9qguUl6YzAtSRHrok+pE/iPmZfq8JVhAAGAAioAH5RcDtaUtVGq5PSRItujgEPOhGjWShwakU3TxFfajP+mlFfCYcduxnKv3SvkVlqV+8d58GxUyUUXl8xyLqqKl98kZ8nz5PITzAVjQobDmo6chJhKXDA6dRHMZiXLtKUJWZoygyML8tLCBf7NMouIHp9eyKxU2vScm9Ty0eByTqhdOdQDVIpCy72nafUdKXnWurqlDcY65QNoC70NYcF9qxEEV5pJUDmgMoh04w/ffZAg==","destinationDeviceId":1,"destinationRegistrationId":1803,"type":3}],"online":false,"timestamp":1621931404083}"
headers: "content-type:application/json"
id:<PHONE_NUMBER>246111685
path: "/v1/messages/65aa882a-fa47-4cdb-a7a3-7a170143a471"
verb: "PUT"
}
Also received 200 from server.
But destination do not receive any thing on web-socket.
While we kill the app, all those message send is received on notification.
Please suggest me how to solve such issue.

I am experiencing the same error, trying to figuring out what's the exact issue is.

Hi,
I am running server and android client with current master build.
Register the app client on server and every thing look fine.
RegistrationUtil: Marking registration completed.
We have two app user registered.
But while sending message to between two client , server receive message from sender but not being received by received.
Message Log like this which is being send.
request {
body: "{"destination":"65aa882a-fa47-4cdb-a7a3-7a170143a471","messages":[{"content":"MwigjJIFEiEF7w2CwebJbeLW401FsO2x0/FXECw+VrQPHv+F2XsYKj4aIQX0F5TBvioakYs6EeuwQUAcvmdwh2II8FDWrg39WSdZNSLTATMKIQV39oIJOXlL80T9qguUl6YzAtSRHrok+pE/iPmZfq8JVhAAGAAioAH5RcDtaUtVGq5PSRItujgEPOhGjWShwakU3TxFfajP+mlFfCYcduxnKv3SvkVlqV+8d58GxUyUUXl8xyLqqKl98kZ8nz5PITzAVjQobDmo6chJhKXDA6dRHMZiXLtKUJWZoygyML8tLCBf7NMouIHp9eyKxU2vScm9Ty0eByTqhdOdQDVIpCy72nafUdKXnWurqlDcY65QNoC70NYcF9qxEEV5pJUDmgMoh04w/ffZAg==","destinationDeviceId":1,"destinationRegistrationId":1803,"type":3}],"online":false,"timestamp":1621931404083}"
headers: "content-type:application/json"
id:<PHONE_NUMBER>246111685
path: "/v1/messages/65aa882a-fa47-4cdb-a7a3-7a170143a471"
verb: "PUT"
}
Also received 200 from server.
But destination do not receive any thing on web-socket.
While we kill the app, all those message send is received on notification.
Please suggest me how to solve such issue.

Close the app on the android and open again, it's a common issue.
If it doesn't solve it, there might be a problem with your UNIDENTIFIED TRUST ROOT

If there is problem with UNIDENTIFIED TRUST ROOT no message communication should happen.
I will request you to elaborate reason for solution you are suggesting.
We have generated UNIDENTIFIED TRUST ROOT as per documentation.
We have also found that ProvisionalEnvironment constructor is not called.
And also restarting signal server delivers all sent messages to client.
Conclusion is that whenever web-socket connection is recreated at any end pending messages from received.
But we receive and send other messages related to profile and all are being received by server.
There is something which is not release message queue on server to socket for the destination.
Please provide your insights.

You said While we kill the app, all those message send is received on notification right?
Which app did you kill, the android app or server app? if client app, then that's common, even in earlier version it sometimes delay until the app restarted, but it will be smooth after that

Either of the them, server or android when restart messages are received.
I also meant to say non of the messages are received while all client is online. App communication do not work while all are online and all socket connection is open.
To be precise, pending messages are communicated only when web socket connection is re connected and no communication between two android client happens when both are connected and live.


Usage option

add usage option as command line arguments

@nikotrone  what kind of usage options do you want, and for what part of the program?


Test updating dev-requirements.txt / setup.py on workflow dispatch

Install core dependencies for integration testing from dbt-core branch.

Description

Checklist

[ ] I have read the contributing guide and understand what's expected of me
[ ] I have signed the CLA
[ ] I have run this code in development and it appears to resolve the stated issue
[ ] This PR includes tests, or tests are not required/relevant for this PR
[ ] I have opened an issue to add/update docs, or docs changes are not required/relevant for this PR
[ ] I have run changie new to create a changelog entry

Manually kicked off test run: https://github.com/dbt-labs/dbt-redshift/actions/runs/4235851680/jobs/7359978550

Won't this also require always having a branch in dev-requirements.txt, even if it's just main?

Actually putting a branch in dev-requirements would break this since I just prepend branch name i.e. you would end up with:
git+https://github.com/dbt-labs/dbt-core.git@main@main#egg=dbt-core&subdirectory=core

But then we can never run this for workflows that have a base of one of the latest branches.  Are we okay with that?  It's not common, but not unheard of either.

But then we can never run this for workflows that have a base of one of the latest branches. Are we okay with that? It's not common, but not unheard of either.

Good call out, update the sed syntax to handle this!

Approving knowing this may not work for windows.

Looks like it does run on Windows!

You can't actually test this until it's in main anyways.
Since this is an update to an existing workflow I am able to test it off a branch with:
gh workflow run integration.yml -f dbt-core-branch=cl/dbt-retry --ref update_dev_req
See: https://github.com/dbt-labs/dbt-redshift/actions/runs/4237292878/jobs/7363103011


Invalid FileSystemAccess Name: "SeedDB"

When using the template to build my 3DS project, I get an error making the CIA with makerom:
[EXHEADER ERROR] Invalid FileSystemAccess Name: "SeedDB"
[EXHEADER ERROR] Failed to create ExHeader
[NCCH ERROR] NCCH Build Process Failed
[RESULT] Failed to build outfile

Using devkitARM on Windows. makerom version is v0.15, latest release from https://github.com/profi200/Project_CTR/releases

The latest release on that page is too old. In the first place, building is supposed to be using the makerom binary included with buildtools.

ok, thanks - now what version of makerom am I supposed to use?

Given that there don't seem to be any recent releases there, use a build of the latest source.


…

Description

Closes #
What does this PR change? Give us a brief description.
Did you change something visual? A before/after screenshot can be helpful.

Deleting "twitter:" meta elements in favor of using "og:" as fallback.
Deleting "initial-scale=1" because of it's default value.
Reducing code size.

These changes won't make any difference in visual perspective, but they will reduce file size in this project and every project that uses Starlight.
Resources
Twitter and OG meta elements:

https://developer.x.com/en/docs/twitter-for-websites/cards/guides/getting-started
https://developer.x.com/en/docs/twitter-for-websites/cards/overview/markup

initial-scale=1:
https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag

Controls the zoom level when the page is first loaded. Minimum: 0.1. Maximum: 10. Default: 1. Negative values: ignored.

Hello! Thank you for opening your first PR to Starlight! ✨
Here’s what will happen next:

Our GitHub bots will run to check your changes.
If they spot any issues you will see some error messages on this PR.
Don’t hesitate to ask any questions if you’re not sure what these mean!

In a few minutes, you’ll be able to see a preview of your changes on Netlify 🤩

One or more of our maintainers will take a look and may ask you to make changes.
We try to be responsive, but don’t worry if this takes a few days.


Information needed to interpret parameter 1

This page describes the WIN32K_CALLOUT_WATCHDOG_LIVEDUMP bug check 0x1A1 which is not an actual bug check but an identifier for a kernel live dump event. This pages also describes the parameter set, e.g., parameter 1 indicates the thread blocking prompt return from the Win32k callout.
This page lacks information on how to proceed with debugging this issue. I.e., how should one interpret parameter 1 as a thread. Is this a memory address where a data structure can be found that contains more information on the thread? If so, how should one interpret this data structure? And how can one capture (or where can one find) a memory (mini) dump containing this structure? Or should this number be decoded into a thread id that one then can look up? Or even something else?
Regards, Beat Nideröst

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

ID: 808b2103-81f8-3383-62fa-8b7c508d017e
Version Independent ID: 0f62bdee-6756-5cfa-61fe-8a4cd800fcdd
Content: Bug Check 1A1 WIN32K_CALLOUT_WATCHDOG_LIVEDUMP - Windows drivers
Content Source: windows-driver-docs-pr/debugger/bug-check-0x1a1--win32k-callout-watchdog-livedump.md
Product: windows-hardware
Technology: debugger
GitHub Login: @DOMARS
Microsoft Alias: domars

@niderost - I added links for more information about working with threads and the thread information block (TEB) to this topic.  For general developer questions on working with bug checks, you may have success posting your question in the following forum, where other driver developers and Microsoft engineers can be found.
•	Hardware and Application Developers on Q&A
Good luck with your debugging, and thanks for this input on the 1A1 live dump bug check code.