"Infer from usage" (or a refactoring?) for class methods should use implements and extends type info

Suggestion
When a class implements an interface or extends a base class (esp. a class type defined in the package's .d.ts), then there should be an easy way for IDE users to add type annotations to parameter types and return types for class methods that exist on the base type(s).  Note that this is different (although related) to #23911 which is about inference. I'm talking here about enabling opt-in IDE actions, not automatic inference.  An opt-in solution may avoid some of the edge cases and technical pitfalls that have prevented #23911 from being successful so far.
🔍 Search Terms
infer from usage
parameter types
return types
implements
base class
✅ Viability Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion
Currently, "infer from usage" for function parameters (does it infer return types too?) seems to ignore the type of that method in interfaces that are implemented by that class, or in base classes. It shouldn't!  The base class or interface seems like it should be the most reliable indicator of "usage" and should either override or augment whatever type info TS can gather from usage.
Both parameter types and return types should be fetched from the base interface or class.
I know that there's work on inference (#23911 and elsewhere), but I'm asking for something simpler: an opt-in way for IDE users to add type annotations to their source code using the base class or interface type(s).
What makes #23911 hard are all the weird cases, like multiple inheritance, overloads, derived classes that intentionally vary signatures from its parent, etc.
But using an opt-in, IDE-centric solution could sidestep many of those annoying corner cases by simply bailing out when those edge cases happen, or providing a "best effort" output that the user can reject with Ctrl-Z/CMD+Z if they don't like it.
I'm not sure whether this feature should be a refactoring, part of "infer from usage", or both.
It'd be ideal if there were a way to do it for one method and also to do it for all methods in a type and/or in a file, because often when you want to fill in one method's parameter/return types, then you also need to fill in all of them!
Note that any support should include both base classes and base interfaces.
📃 Motivating Example
We are in the middle of porting the Stage 3 Temporal proposal polyfill to TS. It was painful to add types to hundreds of class methods that implemented abstract class types defined in our .d.ts. This seemed like completely unnecessary manual gruntwork that could and should have been automated.
I also committed bugs in the process.  For example, I accidentally omitted a = undefined default value on some parameters due to a mistake in the search-n-replace regex I was using to add parameter types.
I suspect that these are common problems any time a JS codebase is migrated to TS.
If there were an automated way to overlay the base class types on an existing implementation, it would have saved our team ~20 hours.
💻 Use Cases
The main use case I'm familiar with is porting a JS codebase to TS. Nowadays most JS packages have an existing .d.ts that defines the public API, so it'd be great to be able to use that to jumpstart the migration of the implementation to TS.
The best workaround I've found so far is to create some generic types (e.g. PlainDateParams<T extends keyof PlainDate> and PlainDateReturn<T extends keyof PlainDate) that define parameters and return types of class methods (including statics and constructors), and then use regex search-and-replace to look for method parameters that lack types, and use $1, $2, etc. to add XxxParams and XxxReturn annotations to them. This is better than completely manual work, but it's still time-consuming and error prone (e.g. when there are inline comments, default values,  line breaks, etc.)

I would also be open to a codefix for this. I don’t think it belongs in “infer from usage” as the source isn’t “usage” per se, but the source is actually better than usage, and it would probably be an easy codefix to write.

I think this should be mostly solved by #45670. Thoughts?

I see there being 4 use cases:

Migrating existing JS projects that have a .d.ts defined in @types or in the project) to TS
Implementing a new class that implements an existing interface (not sure if this also applies to extending a declare class declaration)
Implementing a new derived class that extends a base class implementation (not declaration). The difference from (2) is that with (2) you can copy/paste the declaration into your code and you'll have all the types you need, while with (3) you'd need to generate a .d.ts from the existing implementation before you can copy/paste. That's harder.
Adapting to changes in a base class or interface, e.g. base interface adds a new method or changes a parameter type

In my experience, (2) is really easy: just copy the code from .d.ts and replace the semicolons with implementations.
(3) requires generating a .d.ts which is sometimes easy, sometimes hard depending on your build config and your familiarity with TS tools. But (3) also seems relatively rare, at least in my naive view where deep inheritance hierarchies aren't popular in TS (as opposed to Java, C#, etc.)  This may be a wrong assumption!
(4) is usually easy because typically there's only a few changes, not a wholesale refactor. So manually adding types until red squgglies go away is usually fine.
(1), however, is a big pain because you need to interleave the existing JS (param names and default values) with TS types. This is easy to screw this up and is very time-consuming on classes with many members.
Another challenge with (1) is a chicken-and-egg problem. If you enable noImplicitAny then your project can't compile and you can't run tests to validate your changes to one file before adding types to the next file. But if you leave noImplicitAny disabled (as you probably must when you're just starting to port a new JS project to TS) then you won't get any red squigglies telling you about parameters that need types. So you end up having to enable noImplicitAny, fix one file or part of one file, then turn it off and run tests, then rinse and repeat. This is annoying. (Although maybe I'm doing it wrong!)
Anyway, if I were to prioritize investment, I'd probably want to focus on (1) because it's a very common use case that's also very difficult today.  Making the others easier too is great, but lower priority IMHO.
If I'm understanding #45670 correctly, it won't help with (1), correct?  Because it relies on adding a new method implementation as opposed to fixing an existing one?
Assuming I am understanding it correctly, then yes I agree that a codefix would be great. Seems like the only good solution for (1).

I would also be open to a codefix for this. I don’t think it belongs in “infer from usage” as the source isn’t “usage” per se, but the source is actually better than usage, and it would probably be an easy codefix to write.

Sounds great! (Assuming I'm correct above.)  I'm not able to PR this but would be very happy to see this happen!
Would there be a "fix all methods in this class" option?  A "fix all types in this file" option?  Or would it be just one method at a time?
How would it behave if there were overloaded methods in the base type(s)?  Are there other "gotcha" cases where the codefix may not work or may produce an unexpected result?
Would it work for property types as well as methods?  What about getters/setters?  Constructors too? Statics?

Usually a fix-all applies to the whole file. Note that a codefix would also require noImplicitAny, so I’m not sure if there’s a great solution to the problem of having to fix one file at a time.
Overloads are tricky. I’m not sure what the right behavior would be there.


add warning triangle icon

The icon looks visually correct in the preview environment, but it might be nice to see if you can get the icon output to be a bit simpler.


[BUG]: Attestation update entity issues

What is the bug related to?
Registry Core
What went wrong?
On update an entity where attestation status is ATTESTATION_REQUESTED, It doesn't update the attestation property data or state to DRAFT
Steps to reproduce -

Create a schema with attestation with some properties
Create an entity
Raise an attestation for it, If it is of type MANUAL and verify that the entity has attestation state of ATTESTATION_REQUESTED
Update the entity with properties used in attestation and observe that entity properties are updated but in attestation it is neither updated the attestation properties data nor the state is to DRAFT

What did you expect to see?
On update an entity where attestation state is ATTESTATION_REQUESTED, it should

[ ] Update the attestation state to DRAFT
[ ] Close the claim or set claim state to CLOSED as DRAFT attestation should not be attested

Additional Context
No response
Relevant logs/output (if any)
No response

https://github.com/Sunbird-RC/sunbird-rc-core/pull/310


[Python] Datetime and Categorical handling improvement

Depends on #247.

Allow null mask retrieval in Python
Prevent int to float conversion when nulls are present (particularly relevant for high precision Datetimes - many significant figures).
Prevent float array generation when nulls are present in categorical

Current coverage is 80.93% (diff: 100%)

Merging #253 into master will increase coverage by 0.16%

@@             master       #253   diff @@
==========================================
  Files            12         12
  Lines           915        923     +8
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            739        747     +8
  Misses          176        176
  Partials          0          0

Powered by Codecov. Last update dca1a34...b63c75a

Sorry, I merged #247, so this needs to be rebased. Thanks for digging through this

apparently i can rebase and push to your branch now


Broken link

https://docs.textile.io/concepts/threads/schemas#media

https://docs.textile.io/concepts/threads/mills#image/resize

https://docs.textile.io/clients/ linked on https://docs.textile.io/concepts

thanks again @pigmej, let us know if you see more!


An output for exact cache hit

I think it would be useful to indicate somehow whether cache was restored using the exact key or one of the fallback restore-keys.
A use case for this is being able to skip some subsequent steps only in the case of an exact cache hit. For example, if a build tool uses incremental compilation, a partial cache hit is good, it saves some time, but if the cache hit was exact, we can skip the compilation step altogether which might save us much more time (e.g. build tool loading the project). A concrete case of such build tool it sbt: in a medium-sized project with several modules it might spend up to a minute loading the project.
So I'm suggesting to add another output value to the action which will indicate whether hit was exact or not.

I think @laughedelic would like to check if the hit was on a primary key, or on a restore key. The primary key hit is "exact cache hit", while the restore key hit is "partial hit".
I think this often makes sense - when a restore key is hit, it means a not up-to-date version of the files is obtained, which is usefull, but is likely to need at least some updating (like calling sbt update)´, while on primary key you know everything is already up to date and you can skip any such steps.

After reading the documentation again I think cache-hit is set to true only on the exact hit, not on the restore key hit. You are therefore not notified about a partial hit at all - it might speed up something or it might not, you are expected to proceed as if there is no hit.

A boolean value to indicate an exact match was found for the key

This is confirmed by looking at sources:
            const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
            utils.setCacheHitOutput(isExactKeyMatch);

The documentation could perhaps be changed to explicitly state this, like:
A boolean value to indicate an exact match was found for the key (not set when only a restore key matches)

cache-hit indeed is only true if you're hitting the primary key.
Unfortunately, you can't distinguish between a cache-miss and a hit of a restore-key.
I would love for cache-hit to tell me the key it hit instead of just a boolean for the primary key.

Agree, two changes make sense:

Log the restore key for which the partial match happened.
Update doc to explicitly call out about cache-hit

Would love to see some PR contribution as it looks like a good first issue.

Would you want it to use a different output, or can I reuse the current one?
Offhand, it feels like changing the existing output is probably an API break.
If you don't want the output reused, do you have an particular preference for an output name?
(Quite happy to make a PR, if it's likely to be accepted.)

In the meantime, you should be able to detect a partial hit in many cases by virtue of the fact that the directory being restored isn't empty.

Hostile 🤖, there is a PR for this

I think this issue should be closed, as you can do everything with outputs.cache-matched-key.

if it is null, no cache was restored
if it is not null, some cache was restored, either from the primary or a fallback key
if it is equal to output.cache-primary-key we had an exact cache hit.

Please, no breaking API changes for a redundant feature!

Not sure if I'm missing something, but adding a new output isn't a breaking change.

I think they're saying that ${{ outputs.cache-matched-key == output.cache-primary-key }} is conceptually equivalent to the requested feature.
(Fwiw, I don't think checking to see if the restored directory is empty is workable, as I think the directory doesn't need to start out empty, and iterating over a directory can be expensive, plus any operation that requires a step is problematic as the goal is to be able to do a step w/ an if:...)

I think this issue should be closed, as you can do everything with outputs.cache-matched-key.

This output is only available for actions/cache/restore and not actions/cache. My use case is:

I have a general 'build' step that downloads+builds all dependencies. There are several other steps that can read from this cache without needing to write anything extra. This is keyed on language version + hash of dependency file
I have a 'test' step that wants to read from this cache but also write some extra bits (test build artifacts, test results etc.). I want to write these to a separate cache. This is keyed on same as above, but + github ref so each PR gets its own copy of this cache with restore keys that can match about anything

So in my test job I want to:

Try and fetch (and later save) any test cache that exists and, if that fails
Try and fetch the general build cache

In the first step I might hit a non-primary key, but still download the cache, but then I have no way to know I shouldn't run the second step and hence download another cache into the same directories (which leads to a whole bunch of ugly errors about existing files)
I could do this with separate invocations of /save and /restore but it would be convenient if it were available in the top-level action

Could you branch on whether there are files in the path passed to actions/cache?


The build does not produce a working application

Attempting to compile produces error 512.

Should the command line be invoking ni.exe rather than inform7.exe which doesn't exist in the compilers directory?
Update - Copying ni.exe to inform7.exe doesn't help since the error "VM not set" is revealed.

The latest front-end code will only work with the soon-to-be-released version of Inform 7 from https://github.com/ganelson/inform. You'll need to either build that yourself, or build the front end from one of the tagged releases, or tweak the logic in ProjectFrame.cpp to use the right command line format for 6M62 (the code is in there but set up for the next build).

Thanks David.

The command line tools build and run under Cygwin but merely copying the inform folder into the distribution folder (which seems to be the logical next step) doesn't produce a working build. The compiler and it's support files don't end up in the compilers folder as I assume is intended.

The correct incantation to copy everything into the build directory is (from "Distribution/inform") "make forceintegration".

Thanks David, that seems to have worked. By the way, the hunspell source code is now in src/hunspell.

Here is the result of compiling Onyx.

Here are the current library versions.

Oh, I just noticed that the automatic indentation in the source pane isn't working.


code build error

npm run build and report an error
Type '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes'.  TS2559

I am having the same issue

@simcheolhwan

npm install before you build this please.

Yes.. already tried that.. what version of node and rpm are you using. What OS are you using? @simcheolhwan

Hi guys, I have also encountered a new problem with the code build error.
System: win and node: v16.15.1
$ yarn build
yarn run v1.22.5
warning package.json: Potential typo "hompage", did you mean "homepage"?
$ cross-env react-app-rewired build && npm run build-scripts
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
Failed to compile.

./src/app/ElectronVersion.module.scss
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "mixins";
  │         ^^^^^^^^
  ╵
  src\app\ElectronVersion.module.scss 1:9  root stylesheet

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Works fine with node v16.18.1


Failed to run on Ubuntu 24.04

$ ./target/release/urdf-viz sample.urdf
2024-07-14T06:15:12.515949Z  INFO k::urdf: link=root
2024-07-14T06:15:12.515973Z  INFO k::urdf: root=root
2024-07-14T06:15:12.515986Z  INFO k::urdf: link=l_shoulder1
2024-07-14T06:15:12.515990Z  INFO k::urdf: set parent = l_shoulder_yaw [⚙+Z], child = l_shoulder_pitch [⚙+Y]
2024-07-14T06:15:12.516000Z  INFO k::urdf: link=l_shoulder2
2024-07-14T06:15:12.516003Z  INFO k::urdf: set parent = l_shoulder_pitch [⚙+Y], child = l_shoulder_roll [⚙+X]
2024-07-14T06:15:12.516007Z  INFO k::urdf: link=l_shoulder3
2024-07-14T06:15:12.516009Z  INFO k::urdf: set parent = l_shoulder_roll [⚙+X], child = l_elbow_pitch [⚙+Y]
2024-07-14T06:15:12.516013Z  INFO k::urdf: link=l_elbow1
2024-07-14T06:15:12.516015Z  INFO k::urdf: set parent = l_elbow_pitch [⚙+Y], child = l_wrist_yaw [⚙+Z]
2024-07-14T06:15:12.516018Z  INFO k::urdf: link=l_wrist1
2024-07-14T06:15:12.516021Z  INFO k::urdf: set parent = l_wrist_yaw [⚙+Z], child = l_wrist_pitch [⚙+Y]
2024-07-14T06:15:12.516024Z  INFO k::urdf: link=l_wrist2
2024-07-14T06:15:12.516027Z  INFO k::urdf: link=r_shoulder1
2024-07-14T06:15:12.516030Z  INFO k::urdf: set parent = r_shoulder_yaw [⚙+Z], child = r_shoulder_pitch [⚙+Y]
2024-07-14T06:15:12.516033Z  INFO k::urdf: link=r_shoulder2
2024-07-14T06:15:12.516036Z  INFO k::urdf: set parent = r_shoulder_pitch [⚙+Y], child = r_shoulder_roll [⚙+X]
2024-07-14T06:15:12.516039Z  INFO k::urdf: link=r_shoulder3
2024-07-14T06:15:12.516041Z  INFO k::urdf: set parent = r_shoulder_roll [⚙+X], child = r_elbow_pitch [⚙+Y]
2024-07-14T06:15:12.516047Z  INFO k::urdf: link=r_elbow1
2024-07-14T06:15:12.516051Z  INFO k::urdf: set parent = r_elbow_pitch [⚙+Y], child = r_wrist_yaw [⚙+Z]
2024-07-14T06:15:12.516055Z  INFO k::urdf: link=r_wrist1
2024-07-14T06:15:12.516057Z  INFO k::urdf: set parent = r_wrist_yaw [⚙+Z], child = r_wrist_pitch [⚙+Y]
2024-07-14T06:15:12.516060Z  INFO k::urdf: link=r_wrist2
2024-07-14T06:15:12.516064Z  INFO k::urdf: set parent = root [⚓] => /root/, child = l_shoulder_yaw [⚙+Z] => /l_shoulder1/
2024-07-14T06:15:12.516075Z  INFO k::urdf: set parent = root [⚓] => /root/, child = r_shoulder_yaw [⚙+Z] => /r_shoulder1/
root [⚓] => /root/
    l_shoulder_yaw [⚙+Z] => /l_shoulder1/
        l_shoulder_pitch [⚙+Y] => /l_shoulder2/
            l_shoulder_roll [⚙+X] => /l_shoulder3/
                l_elbow_pitch [⚙+Y] => /l_elbow1/
                    l_wrist_yaw [⚙+Z] => /l_wrist1/
                        l_wrist_pitch [⚙+Y] => /l_wrist2/
    r_shoulder_yaw [⚙+Z] => /r_shoulder1/
        r_shoulder_pitch [⚙+Y] => /r_shoulder2/
            r_shoulder_roll [⚙+X] => /r_shoulder3/
                r_elbow_pitch [⚙+Y] => /r_elbow1/
                    r_wrist_yaw [⚙+Z] => /r_wrist1/
                        r_wrist_pitch [⚙+Y] => /r_wrist2/

interface 'wl_surface' has no event 2
2024-07-14T06:15:12.543016Z ERROR smithay_client_toolkit::window::concept_frame: No font could be found
thread 'main' panicked at /home/ogura/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kiss3d-0.35.0/src/window/gl_canvas.rs:80:14:
called `Result::unwrap()` on an `Err` value: OsError("eglInitialize failed")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: queue 0x626676cdeae0 destroyed while proxies still attached:
  wl_buffer@40 still attached
  wl_buffer@39 still attached
  wl_buffer@38 still attached
  wl_buffer@37 still attached
  wl_buffer@36 still attached
  wl_subsurface@30 still attached
  wl_surface@29 still attached
  wl_subsurface@28 still attached
  wl_surface@27 still attached
  wl_subsurface@26 still attached
  wl_surface@25 still attached
  wl_subsurface@24 still attached
  wl_surface@23 still attached
  wl_subsurface@22 still attached
  wl_surface@21 still attached
  xdg_wm_base@18 still attached
  wl_surface@17 still attached
  zwp_text_input_manager_v3@11 still attached
  zwp_pointer_constraints_v1@10 still attached
  zwp_relative_pointer_manager_v1@9 still attached
  wl_seat@8 still attached
  wl_subcompositor@7 still attached
  wl_output@6 still attached
  wl_shm@5 still attached
  wl_compositor@4 still attached
  wl_registry@2 still attached

smithay_client_toolkit::window::concept_frame: No font could be found

Either you are not running https://github.com/openrr/urdf-viz#pre-requirements-for-build or that instruction is out of date for the latest ubuntu and needs to be updated?

I did
sudo apt-get install cmake xorg-dev libglu1-mesa-dev
It might be the problem of the new laptop hardware.

Excuse me,I have the same problem on Ubuntu 22.04,have you solved this problem?

The same problem occurred on an Ubuntu 24.04 virtual machine, and forcing the application to use X11 served as a workaround for me.
WINIT_UNIX_BACKEND=x11 urdf-viz URDF_FILE.urdf


jira issue list: CREATED and UPDATED column does not match computer time

Describe the bug
jira issue list does not generate correct time.
Please provide following details

JiraCLI Version:
(Version="main", GitCommit="5429cbd9d36360ac88245a412d3672a1c023a2a9", CommitDate="2022-01-24T20:14:18+00:00", GoVersion="go1.17.6", Compiler="gc", Platform="darwin/amd64")
Are you using Jira cloud or on-premise jira server? Also mention the version for on-premise installation.
Jira Server 8.20.1
What operating system are you using? Also mention version.
macOS Monterey 12.2.1
What terminal are you using? Also mention version.
Mac Terminal Version 2.12 (443)

To Reproduce
Steps to reproduce the behavior:
jira issue list
Expected behavior
Jira CREATED and UPDATED time matches the computer time
Actual behavior
Jira CREATED and UPDATED time is six hours ahead computer time
Comment
Do I have to set up time zone? how?

@heeh the displayed date time is in UTC. Jira API doesn't support timezone in its endpoints and JQL query.
Related: JRACLOUD-17359

Thank you @ankitpokhrel I really like the program!


resource_local_to_scene not working in arrays. Still in 4.3 dev 5?

Tested versions

Reproducible at least in Godot v4.2.1stable and Godot v4.3dev5

System information
Godot v4.3.dev5 - Windows 10.0.22631 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1650 Ti with Max-Q Design (NVIDIA; <IP_ADDRESS>86) - Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 Threads)
Issue description
Hi guys, I faced this problem and a quick search showed me that it was a bug already fixed in 4.3 dev 5, so I downloaded it but I still have the same issue. Is the bug still present or I'm doing something wrong?
Related Changelog entries:
Changelog for 4.3-dev3:
Fix recursive resource local to scene (array/dictionary properties on resources) ([GH-71578]
Changelog for 4.3-dev5:
Fix resource_local_to_scene in arrays and dictionaries ([GH-87268]
Steps to reproduce
1.- I created a resource file with some @export entries
2.- In my scene script I added a line like this:
@export var params: Array[ParamsResource] = []
3.- Then in the inspector I create the resources and for each element of the array, I mark it as local to scene.
4.- I run the game. The scene is not instantiated yet. I have to do it with a button
5.- When I instantiate the scene, in the _ready() I modify the attributes in one of the resources in the array.
6.- I instantiate then another scene of the same object and it already has the same modifications before the _ready() function do them.
Minimal reproduction project (MRP)
minimal.zip
I made this reproduction project that reproduces the problem, but not with the exact steps I described (which are from my game). Hope this does not confuse you.

PD: I made a reproduction project that reproduces the problem, but not with the exact steps I described (from my game). Hope this does not confuse you.

I reproduced this in v4.3.stable.official [77dcf97d8]. Created a scene with an attached script, which exports an array of resources, marked Local to Scene. When the scene is instantiated at runtime, the resource isn't duplicated. Works as expected when the scene is instantiated in the editor.

Oh, wait, the resources aren't duplicated at runtime because exported Arrays aren't duplicated when instanced at runtime. So this would be a duplicate of #16478.

Had the same problem on 4.2.2. After upgrading to 4.3_stable, it now works as expected.

@pumpingGhost Were you able to get Resources in an exported Array to duplicate when using instantiate() on a PackedScene in a script? Could you share the code you're using?
This issue is specifically with instantiating at runtime, in a script. It seems like there might be some confusion about whether the two PRs in 4.3 actually covered that.

@pumpingGhost Were you able to get Resources in an exported Array to duplicate when using instantiate() on a PackedScene in a script? Could you share the code you're using?
This issue is specifically with instantiating at runtime, in a script. It seems like there might be some confusion about whether the two PRs in 4.3 actually covered that.

No I had instantiated the scenes via the scenetree in another scene. So here's my setup:

Scene A has an exported Array of custom resource type and in the editor, a "default" resource is assigned with LocalToScene = true
Scene B's scenetree contains multiple instances of Scene A.

When launching the game, Godot applies new resources for each instance of Scene A within Scene B at runtime.
I haven't tested how it behaves when instantiating PackedScenes in code.
However I noticed some more issues with the resources within the editor. Resetting the resource of Scene A instances in the Scene B scenetree is very inconsistent, as sometimes it resets to a local resource of Scene B and sometimes it resets to the external resource of Scene A. I played around with this for over an hour now, but cannot figure out a pattern of how and when the resources are duplicated. It almost seems as if Scene B has local instances of the resource defined as subresource in the .tscn file, Godot takes that resource at runtime and if not, it falls back to a copy of the original resource from Scene A. Very weird...


Improve exception safety with smart pointers

Would you like to wrap any pointer data members with the template class "std::unique_ptr"?
Update candidates:

PikaBinlogSenderThread
PikaServer

we don't like use these kind of smart pointer, we think we can control raw pointer well. we are the guys who think c++ is c with class. So we don't use lots of c++11, c++14 feature.
Absolutely, many c++11's feature is nice feature. But it change all the time, so we think we don't need to catch up with these new feature.

I suggest to care a bit more about exception safety in C++ classes where several objects are dynamically created.
Would you like to reconsider the usefulness of smart pointers once more?


Create Stack.cpp

Added C++ code of Stack Data structure

Rename it as Stack STL as it isn't a by scratch implementation


Updated link to the list of awesome awesomeness to point to the most …

…currently maintained list as the one listed here is out of date and has not been maintained in a long time.

Thank you. I've decided to not link to any particular meta-awesome document at all. The concept is probably understood by now.


Fixing jquery-tmpl-rails Sprockets deprecations

This is also filed under Sprockets core for guidance here.
Versions

Ruby 2.4.3
Rails 5.1.3
sprockets 3.7.3
jquery-tmpl-rails 1.1.0

Issue:
The latest version of jquery-tmpl-rails triggers a sprockets deprecation warning of:
    DEPRECATION WARNING: Sprockets method `register_engine` is deprecated.
    Please register a mime type using `register_mime_type` then
    use `register_compressor` or `register_transformer`.

    https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
    (called from block (2 levels) in <class:Railtie> at /my/path/to/gems/jquery-tmpl-rails-ef6f58001d41/lib/jquery-tmpl-rails/engine.rb:10)

Attempts at resolution:
Following the deprecation warning, the problem within the gem simply resides here: https://github.com/jimmycuadra/jquery-tmpl-rails/blob/master/lib/jquery-tmpl-rails/engine.rb#L10
Which is currently:
app.assets.register_engine(".tmpl", JqueryTemplate)
I then visited the sprockets guide for handling deprecations, extensibility and compliance with sprockets 2,3,4. https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
I made my best attempt at rectifying the problem with a commit on this fork here: https://github.com/oceanshq/jquery-tmpl-rails/commit/de7a59894f512efb3c1eba432da3517f21d921a2
Which was:
    asset.register_mime_type 'application/javascript', extensions: ['.tmpl'], charset: :unicode
    asset.register_preprocessor 'application/javascript', JqueryTemplate

However, this attempt simply deals out breakages when trying to run the web application at all or test it on the CI. So obviously I've missed something. I am not the gem maintainer but am trying to put this PR together myself as we rely on this gem.
Questions

Is there a simple syntactical approach I am missing here?
It was unclear to me in the docs, although register_engine is deprecated in Sprockets 3, is it actually possible to migrate from register_engine while staying in Sprockets 3?
If we are remaining on Sprockets 3 for the foreseeable future, is it kosher to silence this? Generally I work viewing deprecations as 'bugs that need fixing' and would rather not.

@jimmycuadra

I haven't followed Rails in a while—what is the implication of supporting older versions of Sprockets? Generally I'm supportive of bumping dependencies to more recent versions. Folks using older versions of Rails can continue to use older versions of this gem.

This is exactly true. Although it focuses on supporting 'all' versions of
sprockets, the deprecation warning I am getting is that this gem's syntax
is deprecated in Sprockets 3 and will not work with Sprockets 4. I would
agree that you do not need to write new code to support Sprockets 2
On 27 April 2018 at 13:15, Jimmy Cuadra<EMAIL_ADDRESS>wrote:

I haven't followed Rails in a while—what is the implication of supporting
older versions of Sprockets? Generally I'm supportive of bumping
dependencies to more recent versions. Folks using older versions of Rails
can continue to use older versions of this gem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jimmycuadra/jquery-tmpl-rails/issues/11#issuecomment-384952684,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHgCxo9M20BqxihnQD3mmYRlF1NPjIy7ks5tswvYgaJpZM4TjGzX
.

I am okay with doing a major version bump of this gem and requiring whatever version of Sprockets the most recent version of Rails requires.


Fix sed in lint_tool_test.sh on macOS

macOS doesn't understand ;:
sed: 1: ":join;N;$!b join; s/ /� ...": unused label 'join;N;$!b join; s/ /·/g;s/	/├───/g;s/\r/⁋/g;s/\n/¶\n/g'

Codecov Report

Merging #1071 (97c0a03) into master (0186aac) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 97c0a03 differs from pull request most recent head 649b6c8. Consider uploading reports for the commit 649b6c8 to get more accurate results

@@           Coverage Diff           @@
##           master    #1071   +/-   ##
=======================================
  Coverage   92.91%   92.91%
=======================================
  Files         329      329
  Lines       21539    21539
=======================================
  Hits        20013    20013
  Misses       1526     1526

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0186aac...649b6c8. Read the comment docs.

I did a few more changes to the sed call to make it fully posix-compliant and added error detection.


Callback that always runs, regardless of whether report should be ignored?

Description
The underlying motivation: I'd like to ignore certain exceptions via discard_classes but nonetheless report information about them to a metrics store (e.g. if I see FooException, we shouldn't report it to Bugsnag but should tell Prometheus, Datadog, or whatever).
In implementing this, I discovered that notify bails out before the add_on_error code runs when that exception is marked to be ignored. This, of course, makes good sense! But also blocks what I was trying to do.
So basically, I'd like to see if we could add a hook that runs, regardless of whether exception is marked to be ignored, whether the release stage is marked to be ignored, and so on.
I'm happy to do the legwork on this one if you all are ok with adding it to the library.
I'd also love to be told that this is possible through other means that I don't know about!
Describe the solution you'd like
Re-institute configuration.before_notify_callbacks or some other hook that lets you run arbitrary code against a report prior to the filtering process.
Describe alternatives you've considered

Using add_on_error: doesn't work AFAICT, since notify bails before it hits the callbacks
Adding user middleware: doesn't work AFAICT, since notify bails before it hits the callbacks
Doing this outside of the bugsnag-ruby library is certainly plausible, but I wanted to see if we might get it in here.

Hi @stitchfixsam
What we'd recommend for your scenario it to not use discard_classes but instead store your own list of classes to discard. Then in add_on_error once you've run your other code return false if the exception class is in your own list to prevent it being reported to Bugsnag.
Keeping this issue open though as we may be able to support this a better way within bugsnag-ruby in the future.

@mattdyoung clever! I'll give it a go. Thanks for the reply, and please do @ me if you need hands to implement the feature in due time.


RTC: Fix video and audio track pt_ is not change in player before publisher

For WebRTC:
when player before publisher, it will happen track pt didn't change.

At source change step, change track pt

感谢你提交的PR. 请问你在什么场景下遇到了这个问题, 会导致无法播放吗?

I play a WebRTC URL on the Unity platform first, and then I publish a WebRTC URL on the Web platform. It can occur that the WebRTC track's payload type (PT) does not match the PT of the player, but rather corresponds to the PT of the publisher. During WebRTC streaming, at the player, the WebRTC system ensures whether the track has the correct player PT for streaming.
In particular, since I play the WebRTC stream before publishing, SRS defaults to using the default PT (Chrome 102) at the player. However, the default PT does not match the PT of the player's track

At this code ( negotiate_play_capability ), if I play a WebRTC stream on Unity platform, pt_of_publisher_ of player track will be form Unity track pt and it's not same with web platform ( publisher ).
for (int j = 0; j < (int)track_descs.size(); ++j) {
            SrsRtcTrackDescription* track = track_descs.at(j)->copy();

            // We should clear the extmaps of source(publisher).
            // @see https://github.com/ossrs/srs/issues/2370
            track->extmaps_.clear();

            // We should clear the rtcp_fbs of source(publisher).
            // @see https://github.com/ossrs/srs/issues/2371
            track->media_->rtcp_fbs_.clear();

            // Use remote/source/offer PayloadType.
            track->media_->pt_of_publisher_ = track->media_->pt_;
            track->media_->pt_ = remote_payload.payload_type_;

            vector<SrsMediaPayloadType> red_pts = remote_media_desc.find_media_with_encoding_name("red");
            if (!red_pts.empty() && track->red_) {
                SrsMediaPayloadType red_pt = red_pts.at(0);

                track->red_->pt_of_publisher_ = track->red_->pt_;
                track->red_->pt_ = red_pt.payload_type_;
            }

            track->mid_ = remote_media_desc.mid_;
            uint32_t publish_ssrc = track->ssrc_;

            vector<string> rtcp_fb;
            remote_payload.rtcp_fb_.swap(rtcp_fb);
            for (int j = 0; j < (int)rtcp_fb.size(); j++) {
                if (nack_enabled) {
                    if (rtcp_fb.at(j) == "nack" || rtcp_fb.at(j) == "nack pli") {
                        track->media_->rtcp_fbs_.push_back(rtcp_fb.at(j));
                    }
                }
                if (twcc_enabled && remote_twcc_id) {
                    if (rtcp_fb.at(j) == "transport-cc") {
                        track->media_->rtcp_fbs_.push_back(rtcp_fb.at(j));
                    }
                    track->add_rtp_extension_desc(remote_twcc_id, kTWCCExt);
                }
            }

            track->ssrc_ = SrsRtcSSRCGenerator::instance()->generate_ssrc();

            // TODO: FIXME: set audio_payload rtcp_fbs_,
            // according by whether downlink is support transport algorithms.
            // TODO: FIXME: if we support downlink RTX, MUST assign rtx_ssrc_, rtx_pt, rtx_apt
            // not support rtx
            if (true) {
                srs_freep(track->rtx_);
                track->rtx_ssrc_ = 0;
            }

            track->set_direction("sendonly");
            sub_relations.insert(make_pair(publish_ssrc, track));
        }

And then, becuase pt is not same with publisher pt, this code will not execute. Cause Unity platform to receive incorrect pt. WebRTC will regard pkt as an error and unhandled it at frontend.
 // Should update PT, because subscriber may use different PT to publisher.
    if (track_desc_->media_ && pkt->header.get_payload_type() == track_desc_->media_->pt_of_publisher_) {
        // If PT is media from publisher, change to PT of media for subscriber.
        pkt->header.set_payload_type(track_desc_->media_->pt_);
    } else if (track_desc_->red_ && pkt->header.get_payload_type() == track_desc_->red_->pt_of_publisher_) {
        // If PT is RED from publisher, change to PT of RED for subscriber.
        pkt->header.set_payload_type(track_desc_->red_->pt_);
    } else {
        // TODO: FIXME: Should update PT for RTX.
    }

合并了, 非常感谢你的PR, 因为了修改了一些代码风格, 合并了一些其他的修改, 提交的时候只能强制提交, 所以在这个PR里看, commit会显示是我提交的, 希望您不要在意.


Unable to launch spyder 5.0.0

Issue Report Checklist

[x] Searched the issues page for similar reports
[x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[ ] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
Upon attempting to boot up spyder 5.0.0 a message "Traceback (most recent call last):
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\Scripts\spyder-script.py", line 10, in
sys.exit(main())
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\app\start.py", line 210, in main
from spyder.app import mainwindow
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\app\mainwindow.py", line 72, in
from spyder.app import tour
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\app\tour.py", line 37, in
from spyder.utils.qthelpers import add_actions, create_action
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\utils\qthelpers.py", line 34, in
from spyder.utils.icon_manager import ima
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\utils\icon_manager.py", line 23, in
from spyder.utils.palette import QStylePalette, SpyderPalette
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\utils\palette.py", line 12, in
from qdarkstyle.colorsystem import Blue, Gray
ModuleNotFoundError: No module named 'qdarkstyle.colorsystem'
" was dispalyed.
What steps reproduce the problem?

Launch Anaconda
Navigate to environment with spyder 5.0.0
Click on launch spyder

What is the expected output? What do you see instead?
Spyder should be booted up.
Paste Traceback/Error Below (if applicable)

Traceback (most recent call last):
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\Scripts\spyder-script.py", line 10, in
sys.exit(main())
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\app\start.py", line 210, in main
from spyder.app import mainwindow
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\app\mainwindow.py", line 72, in
from spyder.app import tour
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\app\tour.py", line 37, in
from spyder.utils.qthelpers import add_actions, create_action
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\utils\qthelpers.py", line 34, in
from spyder.utils.icon_manager import ima
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\utils\icon_manager.py", line 23, in
from spyder.utils.palette import QStylePalette, SpyderPalette
File "C:\Users\Ron_c\anaconda3\envs\DeepLearning\lib\site-packages\spyder\utils\palette.py", line 12, in
from qdarkstyle.colorsystem import Blue, Gray
ModuleNotFoundError: No module named 'qdarkstyle.colorsystem'

Versions

Spyder version: 5.0.0
Python version: 3.9.2
Qt version: 5.9.7
PyQt version: 5.9.2
Operating System name/version: Windows 10 Home 2019

Dependencies
NA

Same issue for me after updating the spyder to 5.0.0, let's wait for the reply and solution.

Same issue too.

I had the same issue.  I uninstalled Spyder from Anaconda.  re-installed.  This time Spyder came up... albeit with this error: Mandatory:
spyder_kernels >=2.0.1, <2.1.0 : 2.0.1  (NOK) (by the way...what is the meaning of 'NOK' ??)
It has reduced functionality.  Not useable.  :(

duplicate of this issue I think:
https://github.com/spyder-ide/spyder/issues/15113

That's correct, this is a duplicate of issue #15113. Thanks for noticing it @jeremymatt. And the solution is to install 4.2.5 in the meantime.

@steveSchneider2, your problem is a duplicate of issue #15091 and it'll be fixed in our next version, to be released shortly.

Thanks!  ... I don't know how you're rewarded for all the work you do on this...but your work is highly appreciated.  Have a great day!

Thanks! Fortunately, most of us are hired by @Quansight to work  on Spyder.

Well, it's very much appreciated!  Spyder is a fantastic IDE and you give
great customer service.  It's a wonderful feeling to be able to reach
someone if there's a problem.
Best,
-J
On Tue, Apr 6, 2021 at 3:00 PM Carlos Cordoba @.***>
wrote:

Thanks! Fortunately, most of us are hired by @Quansight
https://github.com/Quansight to work on Spyder.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/15137#issuecomment-814366330,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHVX25R64QQC2F4T5ZAWPKTTHNK6DANCNFSM42ONMGOA
.


verify.py exit status should reflect validation status

I'm filing this as a bug because of a mismatch in behavior I expect from experience with another tool that performs a semantically similar function on a different input format.
If verify.py identifies semantic issues in data, such as a term found in an input file that does not exist in the glossary, a note is made in the output, but the program exits
with status 0.
In contrast, another tool that performs a validation function, xmllint with the --schema argument, exits 0 only if the input XML document adheres to the specified schema.  If there is any deviation from the schema, xmllint exits 1.  (Without the --schema argument, xmllint exits 1 if the input is malformed XML.)
I personally expect a tool that validates content against a specification to exit non-0 if the input document does not adhere to the specified format/schema/vocabulary.  Exitin
g 0 for non-adhering content can give a false sense of content validation.  I've had to resort to running grep on the output log for patterns I know indicate incorrect content, as a post-processing step.
What should the default behavior of verify.py be?

Exit non-0 on non-adhering content, by default?
Exit non-0 on non-adhering content, if a --strict flag is passed?
Continue current behavior (only exiting non-0 if the command line is malformed), perhaps including documentation on how to identify incorrect content flagged in the output stream?
Continue current behavior, but add a mechanically recognizable/parseable summary statement at the end saying "Content passes" or "Content fails"?

I personally vote for the first, though I think the fourth is followed in other validating programs.  (I don't have a Schematron instance handy to check, but I think the fourth option is its behavior.)

I am also in favor of the "non-zero" by default means an issue has occurred with the parsing of the data. I With the "verbose flag" discussed in issue 3, we can add the "content passes" or "content fails" statement.
Thoughts?


update adalight sketch

1. Tell us something about your changes.

add analog output to adalight sketch
add basic color corrections to adalight sketch
add possiblility to switch of leds when no new data is comming in
some refactoring of that sketch

2. If this changes affect the .conf file. Please provide the changed section
3. Reference an issue (optional)
#284
Note: For further discussions use our forum: forum.hyperion-project.org

@penfold42 this is needed when smoothing is off. smoothing output is mostly fast (in ms interval), the serial refresh time is more a "keep alive" and has an interval in seconds

Cool - we should probably consider doing this for all led device types ?

Good idea. The code for refresh is not new in rs232. I made it available in webui.
I will move it to leddevice baseclas by time.

What l havn't mentioned, the new adalight sketch make it possible to drive addressable and analog stripes at the same time.

Hi, last days I puzzeled with my new sketch. The analog was flickering. I've thought my sketch was to slow or pwm interferes with fastled - yesterday I found the cause. Thx to my scope, I found out that some pins have 'faster' pwm then other and they are out of sync!
Here some info on that topic http://playground.arduino.cc/Code/PwmFrequency
I will update my sketch according to this new knoledge


FLT_TAG_DATA_BUFFER Documentation incomplete

[Enter feedback here]
Your Text:
TagData
Pointer to an FLT_TAG_DATA_BUFFER structure that contains reparse point data for the I/O operation. This pointer is valid only in the post-create path. Thus only a minifilter's postoperation callback routine can change the value of this member. A minifilter's post-create callback routine can change this member to point to a different FLT_TAG_DATA_BUFFER structure. However, if it changes the member to point to a different structure, it must first free the existing structure to prevent a pool memory leak.
My Question:
Which methods to use to Malloc/Free to avoid a pool memory leak ??? GlobalAlloc, HeapAlloc, C - malloc .... ??????
This information should be added to all those structures, which might be modified dynamically.

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

ID: a39b4d45-43aa-5a0c-9a37-fb0e32beb698
Version Independent ID: 6d767c49-f9e4-2fe1-68b6-c3d24fe61ee9
Content: FLT_CALLBACK_DATA (fltkernel.h) - Windows drivers
Content Source: wdk-ddi-src/content/fltkernel/ns-fltkernel-_flt_callback_data.md
Product: windows-hardware
Technology: wdk-api-reference
GitHub Login: @lorihollasch
Microsoft Alias: loriwhip

Hi @NoGitHubPlease - thanks for the issue. It's generally well-known to use ExFreePool on kernel-mode memory, which is why you won't see it called out explicitly on most reference pages. I went ahead and added it here - the additional clarity doesn't hurt!


[Linux/Ubuntu]When running compiled binary with sudo an error shows up

This is the error I get when I try to run the binary with sudo
failed to unlock correct collection '/org/freedesktop/secrets/aliases/default'

Now, I don't know enough about keyring to know where the issue exactly is. Is it the issue with gnome-keyring or this lib?
Also, is there anything I can do to mitigate this problem?
The reason I'm running the binary with sudo is since it's being used to connect to vpn, and I can't to that without sudo.
I wanted to keep the username/password pair in keyring for future vpn connections. Is that even possible?
Ubuntu: 21.04
Gnome: 3.38.5

Hi @nikolalukovic !
I would assume that you have to first unlock the keyring for root in your case.

How to do that?  The problem was that root user didn't have a keyring at all. So I ran Seahorse as sudo and created a keyring called login. That's it. Now everything works as it should.


How to delete a files after downloaded

Hi, i can delete files after download.  Maybe I do not fully understand the promise in js. Here is my code:
var ftp = new PromiseFtp();
  ftp.connect({host: '------', user: '----------', password: '------------'})
  .then(function (serverMessage) {
    console.log('Server message: '+serverMessage);
    return ftp.list('/');
  }).then(function (list) {
    list.forEach(function (element, index, array) {
        if (element.name !== '..' && element.name !== '.'){
            console.log(element.name)
        }
    })

  }).then(function () {
    return ftp.end();
  });

What should I do next?

Replace your console.log statements with the command to delete via FTP -- and more importantly, replace list.forEach with Promise.each.
https://github.com/petkaantonov/bluebird/blob/2.x/API.md#eachfunction-iterator---promise


cf service-access performance

To improve performance of the service access command we changed the way that we:

Get service offerings for brokers
Get service plans for service offerings
Get organization names for service plan visibilities

Each change has its own commit with further details in the commit message. Let us know if you have any questions about our changes.
Tracker Story: https://www.pivotaltracker.com/story/show/96912380

Hey guys, just had a few stylistic issues. We try to shy away from inline declaration of return variables because it can be hard to parse.

Your word is my command.

We fixed the style issues.


treatment of dpub roles

running, for example, this test case - the checker returns 36 non-existent roles (one of them being the junk role we use for a 'control').
these are all the dpub roles used in the test case.
while it is not expected for authors to use dpub roles on the web, they are valid roles, and in regards to this particular test case, 4 of them are valid for use.
I would request that at minimum dpub roles are not reported as non-existent roles.  Rather, they be reported as likely not recognized on the web.
ideally, the checker would report valid dpub roles and invalid dpub roles per element as well.
Where if an element is allowed "any role" then any dpub role would also be valid
Otherwise, only the indicated allowed dpub roles on that element
Otherwise, no dpub roles allowed if "no role" is declared, or neither of the above are true.

checking this today, verify rules have been updated


Fix: Button outline color correction

Hi everyone,
This is my first PR so let me know if I did anything wrong. Still learning the ins and outs of things but trying to be more active and notice fixes when I see them.
I made a quick fix to the <Button variant="outline"> where the background wasn't actually the right color for just an outline. The prime source of error here was when an outlined button sits inside a <Card> object, where the button then takes the color of the background rather than the color of the Card it sits on. Switching from bg-background to bg-inherit handles these two issues.
Sample where bg-inherit is used:

Sample where bg-background is used:

Thanks everyone! I've been loving this library for my website I'm building, and can't wait to see what the final product looks like!

Thanks for the PR (and fixes) @thecae. Could you update the PR with a more descriptive title please? Thank you.

Thanks for the PR (and fixes) @thecae. Could you update the PR with a more descriptive title please? Thank you.

Absolutely, it's fixed. Thank you for the feedback! Let me know if you want me to make any other changes.

@thecae IIRC I had this as bg-inherit (or bg-transparent) before but I changed it to bg-background. Let me check and confirm why I made this change and come back to this.
(Congrats on your first PR. The first of many 🎉)


Unable to open new or existing sql files on v1.18

Issue Type: Bug
When trying to make a new tab with ctrl + n I get the error
Unable to open 'SQLQuery_1 - disconnected': Horizontal scrolling and dynamic heights not supported simultaneously.
If I open a sql file in Azure Data Studio, I get the error
Unable to open 'Untitled-2.sql - disconnected': Cannot set property 'input' of undefined.
Currently, I am only able to open jupytr notebooks in Data Studio. I'll be going back to 1.17.1 for now. I have uninstalled/reinstalled via chocolatey, which puts me back to 1.17.1, the Data Studio auto-updater then upgrades me to v1.18 where this all breaks. I have tried this a few times, with the same results.
Azure Data Studio version: azuredatastudio 1.18.0 (2acd37a1b1cff34b64fbb4ea2d40715d7e2accac, 2020-05-19T23:54:30.554Z)
OS version: Windows_NT x64 10.0.18363

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2904)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.74GB (17.29GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (11)

Extension
Author (truncated)
Version

sqldm-performance-insights
IDE
0.4.0

admin-pack
Mic
0.0.2

admin-tool-ext-win
Mic
0.0.2

agent
Mic
0.47.0

dacpac
Mic
1.4.0

import
Mic
0.15.0

profiler
Mic
0.11.0

server-report
Mic
0.2.2

whoisactive
Mic
0.1.4

azdata-sanddance
msr
1.3.9

vscodeintellicode
Vis
1.2.1

@splady I haven't been able to reproduce this locally, but we'll try to investigate based on the error messages provided.  In the meantime, you can disable auto-update to 1.18.0 by setting the Update: Mode to none.

@splady it looks related to the Horizontal Scrolling setting.  Could you please try to disable the below setting while we prepare a fix?

I upgraded from 1.17.1 -> 18.0 and when I tried to open the settings UI I got the error message Unable to open 'Settings': Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node..
I then uninstalled/reinstalled via chocolatey to get back to 1.17.1, turned off Horizontal Scrolling, upgraded within Azure Data Studio to version 18.0, and it works! I can now open new tabs, existing files, and the settings UI.
Thanks for your help!!

I get the same issue - see @kburtram linked to it #10549.
I've closed it since this one task was created first. May be worth checking out the diagnostics created from my task in case that points to anything.

One note is that to remove the HorizontalScrolling setting you can delete this value "workbench.list.horizontalScrolling": true from the settings.json file directly.  That file is at %USERPROFILE%\AppData\Roaming\azuredatastudio\User\settings.json.  This should allow you avoid a downgrade to edit the setting.

Closing this as a duplicate of https://github.com/microsoft/azuredatastudio/issues/10378 - we're working on getting a hotfix out for this but in the meantime the above workaround should fix the issue for now.


Fix formatting issue

This PR fixes a formatting issue causing our Lint code GitHub workflow to fail.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.09%. Comparing base (e0f04ab) to head (c1d7f0d).
Report is 100 commits behind head on develop.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3262      +/-   ##
===========================================
- Coverage    93.15%   93.09%   -0.06%
===========================================
  Files           66       66
  Lines        14287    14339      +52
===========================================
+ Hits         13309    13349      +40
- Misses         978      990      +12

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


How to predict collisions?

The code bellow is taken from the collisions demo:
      var demo = new CANNON.Demo();
      demo.addScene("Sphere / sphere",function(){
          var world = setupWorld(demo);
          // Sphere 1
          var sphereShape = new CANNON.Sphere(1);
          var b1 = new CANNON.Body({ mass: 5 });
          b1.addShape(sphereShape);
          b1.position.set(5,0,0);
          b1.velocity.set(-5,0,0);
          b1.linearDamping = 0;
          world.addBody(b1);
          demo.addVisual(b1);

          // Sphere 2
          var b2 = new CANNON.Body({ mass: 5 });
          b2.addShape(sphereShape);
          b2.linearDamping = 0;
          b2.position.set(-5,0,0);
          b2.velocity.set(5,0,0);
          world.addBody(b2);
          demo.addVisual(b2);
        });

In this case how can I predict the collision point and velocity vectors of both object after the collision without rendering the scene? I want to implement a guide line showing what will happen before the actual rendering of the scene.

The CANNON.Demo may not be built for this purpose. But you could step through and record the simulation outcome without rendering.
If you recorded the positions and rotations of objects at each frame, you could later loop through each frame and apply this to objects in a THREE.js scene to get the exact same result each playback.
There are collision events you can listen for on the body and world classes:
world.addEventListener('beginContact', ...);
world.addEventListener('endContact', ...);`

and
body.addEventListener('collide', ...);

This is an interesting approach. But after some research I notice that there are a family of raycast functions of the world object such as:
var isHit = world.raycastClosest(from, to, options, result);
which emits a ray object and populates a raycast result object. Then:
if ( result.hasHit ) {
      var hitShape = result.shape;
      var hitBody = result.body;
}

will predict potential collisions at given moment. To sum up:

in a static world raycasting is a preferable build-in mechanism for collision detection
in a dynamic world taking into account the objects mass, velocities, trajectories, friction, etc. simulating  the world  behind the curtains, i.e. without rendering anything, may be the only way to forecast collisions

world.addEventListener('beginContact', ...)
world.addEventListener('endContact', ...);`
这两个方法无效了。监听不到事件


Does not install Pod pointing to repo

The cocoapods-install step doesn't seem to handle pods that are being pulled directly from a repo in the Podfile.  In my Podfile, I have a pod like this:
pod 'SomePodName', :git => 'https://somepodname-repo/the-pod-sdk.git'
This installs fine and builds locally in Xcode.  Cocoapods.org website shows this method of adding a pod on their site:  https://guides.cocoapods.org/using/the-podfile.html (see "From a podspec in the root of a library repo" section).
But my bitrise build doesn't install the pod, and then the build fails because this pod wasn't installed.
I'm using version 1.7.2 of cocoapods-install step.

Hi!
Could you try to specify the source of the private podspec repo instead of using the :git => version?
source 'https://github.com/CocoaPods/Specs.git'
source 'https://somepodname-repo/the-pod-sdk.git'

# There are no targets called "Shows" in any Xcode projects
abstract_target 'Shows' do
  pod 'ShowsKit'
  pod 'Fabric'

  # Has its own copy of ShowsKit + ShowWebAuth
  target 'ShowsiOS' do
    pod 'ShowWebAuth'
  end

  # Has its own copy of ShowsKit + ShowTVAuth
  target 'ShowsTV' do
    pod 'ShowTVAuth'
  end
end

I tried that and it still doesn't work.

Please copy paste your build url here. So we can have a closer look.

Also, is it public git url, or it is your self/hosted or using with SSH?

It's public.  There are no SSH keys involved, and I had other developers
test that they could clone the repo to their computers.
I've actually decided to just add this framework as an embedded binary
(instead of pod) and have moved on.  I consider the issue closed from my
perspective.
Thanks,
Tom
On Wed, Sep 12, 2018 at 6:04 AM Tamas Papik<EMAIL_ADDRESS>wrote:

Also, is it public git url, or it is your self/hosted or using with SSH?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bitrise-io/steps-cocoapods-install/issues/36#issuecomment-420608581,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAfGyEUrei-s6W99MKIE9mzPopWIg_h1ks5uaOpLgaJpZM4WWSTX
.

All right, thanks for the feedback.
Feel free to ping us again if you encounter any issues with the step.


Reduce Gradle cache expiry for snapshots

...to help fix issues with build failures due to cached snapshots
Reviewer checklist

[ ] Ensure relevant issues are linked (description should include text like "Fixes #")
[ ] Ensure any appropriate documentation has been added or amended

Coverage remained the same at 100.0% when pulling 277f1790f4fa906a69184ed70a0876a5d9f970b7 on snapshot-caching into e31b17a25a7ed5f125c461831e8c8da5de2c525d on main.


Fix Django version constraints

Close #98

Coverage remained the same at 100.0% when pulling a0305d83f70aa759d4595a88175113749e2af2ed on catcombo:patch-1 into 20616bfdadf33402ac53a63aa7eddd8103f9cbf6 on sobolevn:master.


I am able to build but while running i dont see any landmark, its like not working

i am able to build this project using android studio, But its not working, I installed and download models. But i dont see any landmark while using app.

Hi @i-khan,
have you loaded the models after downloading it?

Where should we load them?

There's a button on the ui, at the bottom left corner.
After clicking on it, it asks what model you want to load. It downloads that model if needed, otherwise it loads it and starts locating the landmarks.
The landmarks appears within the face bounding-box. So, the face must be detected in order to let the model infer the landmark location.

The above is the screen of the android emulator after I run the program, no face detected .


feat: CI action to generate a diff file between the fixtures generated from main against the PR's

Add a CI action that automatically generates a diff file of the comparison between the fixtures generated by the current main branch, and the PR's branch.
The diff file could be made available somewhere in the PR for review and download if necessary.

@spencer-tb and I just brainstormed.
Here's a suggestion for scoping this out:

Add an entry point, e.g., ./src/entry_points/diff_fixtures.py that takes two URIs (local or remote/vanilla directory or tarball) as arguments and diffs them. This would allow specifying a release tarball as a source to diff from. Or just two local directories.
The command reports:
a. A diff of the fixtures directory structure; i.e., new/removed fixture json files. Don't fail if only new. TBD: Return non-zero if fixture json files are missing? A test rename would lead to false positives here.
b. Writes a diff to stdout and returns non-zero if already existing fixtures differ.
This output can be written to stdout, to file, or both.
Github Actions: Upload the fixtures (tarballs) from the existing test.yaml flow as an artifact upon every:
a. Commit on main in test.yaml, and,
b. Every tag/release in fixtures.yaml - note, this is already done :wink:
TBD! Tox: Add a new diff testenv. That:
a. Downloads the latest artifact from main (and/or latest release?)
b. Runs diff_fixtures.
c. Uploads the diff as an artifact.
Github Actions: Add a new Github Action that downloads the fixture artifact(s) generated from this flow's test.yaml (that ran fill) and diffs them against main using tox env from 3.

Other Questions

Github Actions typically have to pass in order to merge; how do we handle differences that are allowed? For example:
a. A framework change that intentionally changes fixtures.
b. Updating a test implementation that changes the fixture.
I.e., how do we make it clear in the flow that there are changes that potentially need review, but that don't necessarily block merging.
Can we readily download Github artifacts from the command-line to run the diff locally (before commit). It seems so: https://docs.github.com/en/rest/actions/artifacts
How to view the diffs in Github UI for each PR, respectively, what format to write the diff output in, so that it can be readily viewed in the Github UI for each PR.

If we don't care about the details of the modifications to each file and we only care about which files were affected, there's a great suggestion here in this StackOverflow answer: https://stackoverflow.com/a/75232801
It uses git notes to save a list of the fixtures (artefacts in their case) plus a hash of each file on the commit's notes, so it should not affect the commit's contents, but we can retrieve this info on the PR's head and make the comparison of both lists.
In our case the hash should be calculated without the "_info" key, but that should be it.


Unable to download from ARTE.tv with youtube-dlg v1.8.3

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

WARNING
All invalid issues will be rejected!!

Before going further

If your problem is a bug with youtube-dl or a request for new site support please report it here

Make sure you are using the latest yt-dlg version (Click the Settings icon and then About to view the current version)

Make sure you are using the latest youtube-dl version (Click the Settings icon and then Update to update to the latest youtube-dl version)

Make sure you searched the bugtracker for similar issues including closed ones

Make sure to read the FAQs file

[x] I think my problem is NOT with youtube-dl
[x] I've verified and i assure that I'm running yt-dlg 1.X.Y
[x] I assure that i am using the latest version of youtube-dl
[x Searched bugtracker
[x] I've read the FAQs file

What is the purpose of your issue?

[ ] Bug report
[ ] Feature request (request for a new functionality)
[x] Question
[ ] Other

Please remove any sections between (---) if they are not related to your issue

Bug report
If the problem occurs when downloading a URL please provide the full verbose output as follows:

Restart yt-dlg
Go to Options > Extra tab
Enable Debug youtube-dl
Go to Options > Advanced tab and Clear your log content
Try to download the URL
Copy the whole log content and insert it between the ``` part below

2022-11-12 12:25:18,763-DEBUG-Worker_1-[debug] System config: []
2022-11-12 12:25:18,763-DEBUG-Worker_1-[debug] User config: []
2022-11-12 12:25:18,763-DEBUG-Worker_1-[debug] Custom config: []
2022-11-12 12:25:18,763-DEBUG-Worker_1-[debug] Command-line args: ['--newline', '-i', '-k', '-o', 'D:\\Videos\\ARTE.tv\\%(title)s.%(ext)s', '--ignore-config', '--hls-prefer-native', '--add-metadata', '--verbose', 'https://www.arte.tv/en/videos/095824-000-A/amalia-rodrigues-and-the-world-of-fado/ ']
2022-11-12 12:25:18,763-DEBUG-Worker_1-[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
2022-11-12 12:25:18,763-DEBUG-Worker_1-[debug] youtube-dl version 2021.12.17
2022-11-12 12:25:18,763-DEBUG-Worker_1-[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
2022-11-12 12:25:18,763-DEBUG-Worker_1-[debug] exe versions: none
2022-11-12 12:25:18,763-DEBUG-Worker_1-[debug] Proxy map: {}
2022-11-12 12:25:18,763-DEBUG-Worker_1-ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
2022-11-12 12:25:18,763-DEBUG-Worker_1-  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 634, in _request_webpage
2022-11-12 12:25:18,763-DEBUG-Worker_1-  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 2288, in urlopen
2022-11-12 12:25:18,763-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
2022-11-12 12:25:18,763-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
2022-11-12 12:25:18,763-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
2022-11-12 12:25:18,763-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
2022-11-12 12:25:18,772-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
2022-11-12 12:25:18,772-DEBUG-Worker_1-Child process exited with non-zero code: 1

What operating system do you use ?
Windows 10 Pro, updated to the latest version with all latest updates and patches.
I'm using youtube-dlg v1.8.3
List of actions to perform to reproduce the problem:

URL of ARTE.tv: https://www.arte.tv/en/videos/095824-000-A/amalia-rodrigues-and-the-world-of-fado/

What is the expected behaviour ?
Error message. See error message above verbose
What happens instead ?
error message. See error message above verbose

Feature request (request for a new functionality)
Please make sure that the requested feature is NOT already in the TODO list

[x] I've verified and i assure that my requested feature is NOT in the TODO list

What operating system do you use ?
Windows 10 Pro, latest revision and with latest updates and patches

I noticed, that the error "Unable to download JSON metadata" a problem is that has been reported all over the place for at least 5 years. I haven't found any resolve. I don't understand why I am not able to download a Video from ARTE.tv using youtube-dlg v1.8.3.

The GUI yt-dlg use CLI Backends like youtube-dl or yt-dlp.
Follow the comment show how change the CLI Backend

Go Settings -> Options -> Extra

Select yt-dlp.exe in CLI Backend, then Close

Go Settings -> Update

Wait until in the status bar show Successfully downloaded CLI Backend.

Doing the test youtube-dl the last version from 2021.12.17 show the error
➜ ./youtube-dl.exe --newline -i -o "C:\Users\user\Videos\%(title)s.%(ext)s" --ignore-config --hls-prefer-native "https://www.arte.tv/en/videos/095824-000-A/amalia-rodrigues-and-the-world-of-fado/"
[ArteTV] 095824-000-A: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

With yt-dlp version 2022.11.11 the download start without problem
➜ ./yt-dlp.exe --newline -i -o "C:\Users\user\Videos\%(title)s.%(ext)s" --ignore-config --hls-prefer-native "https://www.arte.tv/en/videos/095824-000-A/amalia-rodrigues-and-the-world-of-fado/"
[ArteTV] 095824-000-A: Downloading JSON metadata
[ArteTV] 095824-000-A: Downloading m3u8 information
[ArteTV] 095824-000-A: Downloading m3u8 information
[ArteTV] 095824-000-A: Downloading m3u8 information
[ArteTV] 095824-000-A: Downloading m3u8 information
[ArteTV] 095824-000-A: Downloading m3u8 information
[ArteTV] 095824-000-A: Downloading m3u8 information
[info] 095824-000-A: Downloading 1 format(s): VOEU-STE_ANG_-2328+VOEU-STE_ANG_-program_audio_0-VOEU
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 512
[download] Destination: C:\Users\user\Videos\Amália Rodrigues and the World of Fado.fVOEU-STE_ANG_-2328.mp4
[download]   0.0% of ~   9.43MiB at    1.59KiB/s ETA 01:40:58 (frag 0/512)
[download]   0.0% of ~   9.43MiB at    4.78KiB/s ETA 33:39 (frag 0/512)
[download]   0.1% of ~   9.43MiB at   11.16KiB/s ETA 14:24 (frag 0/512)
[download]   0.2% of ~   9.43MiB at   23.91KiB/s ETA 06:43 (frag 0/512)
[download]   0.2% of ~   9.43MiB at   30.07KiB/s ETA 05:20 (frag 0/512)
[download]   0.2% of ~   9.43MiB at   29.34KiB/s ETA 05:20 (frag 1/512)
[download]   0.0% of ~ 351.25MiB at    1.64KiB/s ETA 06:18:08 (frag 1/512)
[download]   0.0% of ~ 351.25MiB at    4.79KiB/s ETA 05:47:50 (frag 1/512)
[download]   0.0% of ~ 351.25MiB at   11.19KiB/s ETA 04:54:02 (frag 1/512)
[download]   0.0% of ~ 351.25MiB at   23.97KiB/s ETA 03:44:34 (frag 1/512)
[download]   0.0% of ~ 351.25MiB at   49.54KiB/s ETA 02:32:30 (frag 1/512)
...

Thank you Oleksander for your testing.
I think I found out what the culprit is:
the youtube-dlg v1.8.3 UPDATE FUNCTION (under Settings) does NOT update to the latest yt-dlp v2022.11.11.
I started youtube-dlg v1.8.3 with Administrator rights, to ensure that the updating processes would succesfully finish, however to no avail. See here the contents of my logfile:
2022-11-13 05:06:08,926-DEBUG-Worker_1-[debug] System config: []
2022-11-13 05:06:08,926-DEBUG-Worker_1-[debug] User config: []
2022-11-13 05:06:08,926-DEBUG-Worker_1-[debug] Custom config: []
2022-11-13 05:06:08,926-DEBUG-Worker_1-[debug] Command-line args: ['--newline', '-i', '-k', '-o', 'D:\Videos\ARTE.tv\%(title)s.%(ext)s', '-v', '--ignore-config', '--hls-prefer-native', '--add-metadata', 'https://www.arte.tv/en/videos/095824-000-A/amalia-rodrigues-and-the-world-of-fado/']
2022-11-13 05:06:08,926-DEBUG-Worker_1-[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
2022-11-13 05:06:08,926-DEBUG-Worker_1-[debug] youtube-dl version 2021.12.17
2022-11-13 05:06:08,926-DEBUG-Worker_1-[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
2022-11-13 05:06:08,926-DEBUG-Worker_1-[debug] exe versions: none
2022-11-13 05:06:08,926-DEBUG-Worker_1-[debug] Proxy map: {}
2022-11-13 05:06:08,926-DEBUG-Worker_1-ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
2022-11-13 05:06:08,926-DEBUG-Worker_1-  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 634, in _request_webpage
2022-11-13 05:06:08,926-DEBUG-Worker_1-  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 2288, in urlopen
2022-11-13 05:06:08,926-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
2022-11-13 05:06:08,926-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
2022-11-13 05:06:08,926-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
2022-11-13 05:06:08,926-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
2022-11-13 05:06:08,926-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
2022-11-13 05:06:08,926-DEBUG-Worker_1-Child process exited with non-zero code: 1
2022-11-13 05:25:08,418-DEBUG-Worker_1-[debug] System config: []
2022-11-13 05:25:08,418-DEBUG-Worker_1-[debug] User config: []
2022-11-13 05:25:08,418-DEBUG-Worker_1-[debug] Custom config: []
2022-11-13 05:25:08,418-DEBUG-Worker_1-[debug] Command-line args: ['--newline', '-i', '-k', '-o', 'D:\Videos\ARTE.tv\%(title)s.%(ext)s', '-v', '--ignore-config', '--hls-prefer-native', '--add-metadata', 'https://www.arte.tv/en/videos/095824-000-A/amalia-rodrigues-and-the-world-of-fado/ ']
2022-11-13 05:25:08,418-DEBUG-Worker_1-[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
2022-11-13 05:25:08,418-DEBUG-Worker_1-[debug] youtube-dl version 2021.12.17
2022-11-13 05:25:08,418-DEBUG-Worker_1-[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
2022-11-13 05:25:08,418-DEBUG-Worker_1-[debug] exe versions: none
2022-11-13 05:25:08,418-DEBUG-Worker_1-[debug] Proxy map: {}
2022-11-13 05:25:08,418-DEBUG-Worker_1-ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
2022-11-13 05:25:08,418-DEBUG-Worker_1-  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 634, in _request_webpage
2022-11-13 05:25:08,418-DEBUG-Worker_1-  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 2288, in urlopen
2022-11-13 05:25:08,418-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
2022-11-13 05:25:08,418-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
2022-11-13 05:25:08,418-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
2022-11-13 05:25:08,418-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
2022-11-13 05:25:08,418-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
2022-11-13 05:25:08,418-DEBUG-Worker_1-Child process exited with non-zero code: 1
Would you please be so kind to analyze and as to why the Update Function in v1.8.3 does not properly update to the latest yt-dlp v2022.11.11?
I look forward hearing from you.
Kind regards,
switch6343

All the logs you share above is related with youtube-dl.
Please try the Last release yt-dlg v.1.8.4 the exe or msi and the try the Setting -> Update function for update to the latest CLI Backend
Wait until the status bar in the GUI show Successfully downloaded CLI Backend.

I uninstalled v1.8.3, rebooted and installed v1.8.4 MSI. Subsequently I pressed the UPDATE button and waited until the "successfully downloaded CLI Backend" was shown.
I again tried to download the documentary of Amália Rodrigues, however again to no avail.
Here the contents of my log:
2022-11-13 20:15:34,188-DEBUG-Worker_1-[debug] System config: []
2022-11-13 20:15:34,204-DEBUG-Worker_1-[debug] User config: []
2022-11-13 20:15:34,204-DEBUG-Worker_1-[debug] Custom config: []
2022-11-13 20:15:34,204-DEBUG-Worker_1-[debug] Command-line args: ['--newline', '-i', '-k', '-o', 'D:\Videos\ARTE.tv\%(title)s.%(ext)s', '-v', '--ignore-config', '--hls-prefer-native', '--add-metadata', 'https://www.arte.tv/en/videos/095824-000-A/amalia-rodrigues-and-the-world-of-fado/ ']
2022-11-13 20:15:34,204-DEBUG-Worker_1-[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
2022-11-13 20:15:34,204-DEBUG-Worker_1-[debug] youtube-dl version 2021.12.17
2022-11-13 20:15:34,204-DEBUG-Worker_1-[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
2022-11-13 20:15:34,204-DEBUG-Worker_1-[debug] exe versions: none
2022-11-13 20:15:34,204-DEBUG-Worker_1-[debug] Proxy map: {}
2022-11-13 20:15:34,204-DEBUG-Worker_1-ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
2022-11-13 20:15:34,204-DEBUG-Worker_1-  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 634, in _request_webpage
2022-11-13 20:15:34,204-DEBUG-Worker_1-  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 2288, in urlopen
2022-11-13 20:15:34,204-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
2022-11-13 20:15:34,204-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
2022-11-13 20:15:34,204-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
2022-11-13 20:15:34,204-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
2022-11-13 20:15:34,204-DEBUG-Worker_1-  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
2022-11-13 20:15:34,204-DEBUG-Worker_1-Child process exited with non-zero code: 1
As you can see on line 7 "2022-11-13 20:15:34,204-DEBUG-Worker_1-[debug] youtube-dl version 2021.12.17" reference is made to youtube-dl version 2021.12.17 and NOT the latest youtube-dl version 2022.11.11.
So, my conclusion is that the UPDATE function for some reason does NOT update to the latest youtube-dl version 2022.11.11.
Pls advise.

Before hit the Update option follow this steps
The latest version of youtube-dl is 2021.12.17 . The other CLI Backends is yt-dlp , make sure is selected in the options before Update function

Oleksis, that did the trick: change from youtube-dl.exe to yt-dlp.exe.
The documentary has been downloaded succesfully, I checked it. However TWO files were downloaded:
Amália Rodrigues and the World of Fado.fVOEU-STE_ANG_-2328.mp4 (filesize: 824302 KB)
Amália Rodrigues and the World of Fado.fVOEU-STE_ANG_-program_audio_0-VOEU.mp4 (filesize 49008 KB)
Here are the contents of the log:
022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] Command-line config: ['--newline', '-i', '-k', '-o', 'D:\Videos\ARTE.tv\%(title)s.%(ext)s', '-v', '--ignore-config', '--hls-prefer-native', '--add-metadata', 'https://www.arte.tv/en/videos/095824-000-A/amalia-rodrigues-and-the-world-of-fado/ ']
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out cp1252 (No ANSI), error cp1252 (No ANSI), screen cp1252 (No ANSI)
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] yt-dlp version 2022.11.11 [8b64402] (win_exe)
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] exe versions: none
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] Proxy map: {}
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] Loaded 1723 extractors
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] [ArteTV] Extracting URL: https://www.arte.tv/en/videos/095824-000-A/amalia-rodrigues-and-the-world-of-fado/
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] Default format spec: best/bestvideo+bestaudio
2022-11-14 02:58:10,349-DEBUG-Worker_1-WARNING: You have requested merging of multiple formats but ffmpeg is not installed. The formats won't be merged
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] Invoking hlsnative downloader on "https://arte-cmafhls.akamaized.net/am/cmaf/095000/095800/095824-000-A/220914061944/medias/095824-000-A_v720.m3u8"
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] File locking is not supported. Proceeding without locking
2022-11-14 02:58:10,349-DEBUG-Worker_1-[debug] Invoking hlsnative downloader on "https://arte-cmafhls.akamaized.net/am/cmaf/095000/095800/095824-000-A/220914061944/medias/095824-000-A_aud_VOEU.m3u8"
2022-11-14 02:58:10,349-DEBUG-Worker_1-ERROR: ffmpeg not found. Please install or provide the path using --ffmpeg-location
2022-11-14 02:58:10,349-DEBUG-Worker_1-Traceback (most recent call last):
2022-11-14 02:58:10,349-DEBUG-Worker_1-  File "yt_dlp\YoutubeDL.py", line 3414, in run_pp
2022-11-14 02:58:10,349-DEBUG-Worker_1-  File "yt_dlp\postprocessor\common.py", line 24, in run
2022-11-14 02:58:10,349-DEBUG-Worker_1-  File "yt_dlp\postprocessor\common.py", line 129, in wrapper
2022-11-14 02:58:10,349-DEBUG-Worker_1-  File "yt_dlp\postprocessor\ffmpeg.py", line 702, in run
2022-11-14 02:58:10,349-DEBUG-Worker_1-  File "yt_dlp\postprocessor\ffmpeg.py", line 323, in run_ffmpeg_multiple_files
2022-11-14 02:58:10,349-DEBUG-Worker_1-  File "yt_dlp\postprocessor\ffmpeg.py", line 328, in real_run_ffmpeg
2022-11-14 02:58:10,349-DEBUG-Worker_1-  File "yt_dlp\postprocessor\ffmpeg.py", line 231, in check_version
2022-11-14 02:58:10,349-DEBUG-Worker_1-yt_dlp.postprocessor.ffmpeg.FFmpegPostProcessorError: ffmpeg not found. Please install or provide the path using --ffmpeg-location
2022-11-14 02:58:10,349-DEBUG-Worker_1-Child process exited with non-zero code: 1
Please note that in the logfile, the file ffmpeg is flagged as missing. I already had noticed that, because in the original, now depreciated youtube-dlg v0.4.1 the following files were included:
ffmpeg.exe
ffprobe.exe
I can add the latest versions of ffmepg en ffprobe from https://www.gyan.dev/ffmpeg/builds/ to the path of the directory C:\Program Files\yt-dlg\yt-dlg\yt-dlg\ , but Is there any reason to have ffmpeg NOT included in the latest version of youtube-dlg v1.8.4?
Please advise.

FFmpeg need be installed for the merging (post-processing) of some videos and audio
Some reason:

Size of the final installer
You can update FFmpeg to the las t  version frequently or use other tools like avconv

Oleksis, thanks!
I had enabled in Settings > Format > "Keep original files". I disabled this now, because this setting generates two more files, which for my purposes are not needed. However, I kept "Add metadate to file" as enabled, as set by me before. I also changed Audio quality from mid to high.
I added the latest ffmpeg.exe file from https://www.gyan.dev/ffmpeg/builds/ to the path C:\Program Files\yt-dlg\yt-dlg\yt-dlg. The whole process now works like a charm.
I also added ffprobe.exe. To be honest, I have no clue what his executable effectively does. What's the purpose of ffprobe? As I stated before, this executable file was included in youtube-dlg v1.8.4? Is this executable really needed?
Please advise.
I am glad you took on the baton to continue developing the youtube-dlg application. Very well done. Keep up the good work.
Kind regards,
switch6343

oleksis;
I stumbled over a very good publication on the subject of ffprobe, ffprobe – Comprehensive Tutorial with 7 Examples. See https://ottverse.com/ffprobe-comprehensive-tutorial-with-examples/
This publication convinced me that ffprobe.exe should be equally included together with ffmpeg.exe in the path where yt-dl is installed. As I stated before, the depreciated youtube-dlg v0.4.1 included ffmpeg as well as ffprobe.
I much appreciated your fast responses. oleksis, keep on keeping on.
cheers
switch6343


Update README, add IOTA/USD

Since other scripts have been added that leverage jq, it's somewhat out-of-date. I think it's best if users are just told to install it by default, as more EUR scripts may be added in the future that do use jq as well.
I've also added an IOTA/USD pair using Bitfinex.

Hi @khell  I reviewed the commits and all looks good!
Thank you again for continuing to contribute.


allow SWEPs to manipulate CalcView & CalcViewModelView

call the weapon's funcs inside of hooks to allow them to properly change their viewmodel

I commend your ability to resolve issues months after they were raised. @meetric1 merge this immediately.


Cypress tests are failing due to change in language takes longer time to get reflected

Our cypress tests has pre-requisite : The choosen language should always be norwegian before it starts to run all tests but I see changing language takes 20 minutes to get reflected in altinn 3 which might be problematic for us to run cypress tests

@Albertlarsen raised a bug as we discussed.

@acn-Sneha Final fix of this was just made and for me language change seems to work instantly now. Can you verify that it works as expected?


Compilation error, in msvc

error C2995: "unknown-type ustdex::_apply(Fn &&,Tup &&) noexcept()": function template has been defined

clang Can be compiled and passed

I'm not supporting msvc at the moment, although I would gladly take a patch if you find the problem.

This is my modification. It can be compiled and run. Because the latest version has changed too much, I can't provide a PR, so I can only provide the changed code. Sorry.
template <class Fn, class Tup, std::size_t... Idx, class... Ts>
USTDEX_INLINE USTDEX_HOST_DEVICE
constexpr auto _apply_impl(
  Fn &&fn,
  Tup &&tup,
  const _tuple<std::index_sequence<Idx...>, Ts...>&
) noexcept(_v<_mvalue<_nothrow_callable<Fn, _copy_cvref_t<Tup, Ts>...>>>)
  -> decltype(DECLVAL(Fn)(DECLVAL(_copy_cvref_t<Tup, Ts>)...)) {
  return std::invoke(
    std::forward<Fn>(fn),
    static_cast<_copy_cvref_t<Tup, _box<Ts, Idx>> &&>(tup)._value...);
}

template <class Fn, class Tup>
USTDEX_INLINE USTDEX_HOST_DEVICE
constexpr auto _apply(Fn &&fn, Tup &&tup) noexcept(noexcept(_apply_impl(std::forward<Fn>(fn), std::forward<Tup>(tup), tup))) {
  return _apply_impl(std::forward<Fn>(fn), std::forward<Tup>(tup), tup);
}

Can you try now? I've replaced the use of ADL with a member function.

msvc works now. see: https://github.com/ericniebler/ustdex/actions/runs/8730108676

yes, it`s ok!   i'm learning it


Setup doesn't work from an ImDisk volume

Installing 3.0 nightlies fails (with "an error") after choosing the installation folder if the setup .exe is located on an ImDisk virtual disk volume.
ImDisk volumes aren't registered with the volume manager, which confuses some Win32 API functions. The drive where the volume is mounted is a DosDevices symlink to \Device\ImDisk# where # is 0, 1, ...
Using Process Monitor I can see that the setup program is trying to find itself at D:\Device\ImDisk0\path\setup.exe when its actual path is D:\path\setup.exe.
This is arguably ImDisk's fault for not playing by the rules, but most setup programs do work from an ImDisk RAM disk and it would be nice if PH's did too.

Fixed in latest nightly build 👍


feat(network): automatically load membership fee payment

Also changes some minors other things, like the refreshing of the page to show changes

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


Add test.txt - [closed]

In GitLab by @wknet123 on Jan 15, 2018, 09:51
Merges dev-gogs-test -> dev

In GitLab by @wknet123 on Nov 13, 2019, 10:25
the build is FAILED console log

In GitLab by @wknet123 on Nov 13, 2019, 10:25
closed


gnome3.iagno: remove stale patch

Motivation for this change
noticed it was failing to apply a patch when reviewing another PR.
Things done

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

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

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

Result of nixpkgs-review pr 107832 run on x86_64-linux 1

1 package built:

gnome3.iagno


Feature/add tutorials section

A start in the right direction! Allows tutorials to be viewed.

Issue #3