class_name issue when using (compressed) binary tokens in pck

Tested versions

Reproducible in Godot v4.3.dev (2e7fc8131)

System information
Godot v4.3.dev (2e7fc8131) - Void #1 SMP PREEMPT_DYNAMIC Wed Feb  7 19:24:35 UTC 2024 - Vulkan (Forward+) - dedicated AMD Radeon RX 7900 XTX (RADV NAVI31) () - AMD Ryzen 9 5950X 16-Core Processor (32 Threads)
Issue description
I have a scene with a script like so
class_name EnemyCharacter

extends CharacterBody3D

When running from the editor OR when the pck is exported with gdscript in text format not binary tokesn my Bullet class with the following works fine
func _on_body_entered(body):
    var b = body as EnemyCharacter
    if b:
        b.damage(xxx)

b is not null and it executes correctly.
However when i export using binary tokens this fails and returns null even though body.get_script() returns EnemyCharacter.
I cannot seem to narrow the issue down as I am using this same style of cast and it is working in other situations. I have item pickups working the same way without issue with either binary tokens or plain text. The only difference i see is the ones that are working have Node3D parents. While the one that is not working with binary tokens EnemyCharacter has a CharacterBody3D parent and Bullet has a RigidBody3D parent.
I believe it to be a bug simply because it works correctly with gdscript exported as Text or when run in the editor.
Steps to reproduce
Haven't been able to make a simple reproducible without including all of my games scripts.

Create EnemyCharacter class for a CharacterBody3D root scene
Create a RigidBody3D parented scene for a bullet
In Bullets func _on_body_entered(body): cast body to EnemyCharacter and check if null
will always return null if exported with Binary Tokens even though get_script() returns EnemyCharacter
Cast will work correctly with Text export or Editor run

Minimal reproduction project (MRP)
N/A

See also #88353 (not a duplicate) and #88365. I'm guessing we forgot to fix path comparisons in GDScriptParser::DataType and a few other places.

That seems to be the case because i am getting:
ERROR: Another resource is loaded from path 'res://Controllers/EnemyController.gd' (possible cyclic resource inclusion).
Which i did not notice at the time of filing the issue

I can't reproduce the bug described in the first post. Please provide MRP.

I can't reproduce the bug described in the first post. Please provide MRP. Also could you please check if #88853 fixes your issue.

#88853 does not seem to resolve the issue. I'm working on creating an MRP today. Having trouble reproducing it other then in my project. Still believe it to be a bug since it works correctly with my project with Text Export

I am seeing this issue too... but also with a large-ish project. Similar results and workarounds as the OP.  [on master, a586e860e5fc382dec4ad9a0bec72f7c6684f020]
In my case, I have two .gd files mentioned as possible cyclic resources. I'm pretty sure they do depend on each other, indirectly at least, since one is an autoload file with some globals and the other is a core game level script whose callees also use that autoload.
This MRP shows the "cyclic resource" error in the exported project BUT does not crash. Let me know if you want more.
ScriptCycle.zip

This is an MRP which actually shows the bug and the bad results. The last error (invalid type) is evidence of the issue affecting real code.
ScriptCyclesMRP.zip
It's got no functionality whatsoever other than the kind of dynamic scene and script loading that triggers the issue for me.
When run under the editor, you should see nothing but a grey window. Normal output is:
level path: res://levels/zero/level_0_0.tscn
Level

When running the exported project, you'll see:
SCRIPT ERROR: Parse Error: Could not preload resource file "res://game/level.tscn".
          at: GDScript::reload (res://game/game.gd:9)
SCRIPT ERROR: Compile Error:
          at: GDScript::reload (res://game/level.gd:-1)
SCRIPT ERROR: Compile Error:
          at: GDScript::reload (res://levels/level_descriptor.gd:-1)
SCRIPT ERROR: Parse Error: Could not preload resource file "res://game/level.tscn".
          at: GDScript::reload (res://game/game.gd:9)
SCRIPT ERROR: Compile Error:
          at: GDScript::reload (res://game/level.gdc:-1)
ERROR: Failed to load script "res://game/level.gdc" with error "Compilation failed".
   at: load (modules/gdscript/gdscript.cpp:2824)
ERROR: Another resource is loaded from path 'res://game/level.gd' (possible cyclic resource inclusion).
   at: set_path (core/io/resource.cpp:75)
ERROR: Another resource is loaded from path 'res://game/game.gd' (possible cyclic resource inclusion).
   at: set_path (core/io/resource.cpp:75)
level path: res://levels/zero/level_0_0.tscn
Level
SCRIPT ERROR: Invalid type in function 'setup' in base 'Node (Level)'. The Object-derived class of argument 1 (Node (Game)) is not a subclass of the expected argument class.
          at: Game.set_level (res://game/game.gd:66)

The only error im getting is
ERROR: Another resource is loaded from path 'res://Controllers/EnemyController.gd' (possible cyclic resource inclusion).
   at: set_path (core/io/resource.cpp:75)

And then any cast to EnemyCharacter (defined in class_name of EnemyController) fails only when exported as binary tokens. Text is working perfect. I'm going to see if it has anything to do with the global script ive added recently. Because i do not recall that issue prior to that

Not sure of a good way to figure out the issue as its working great with text export. Any ideas on troubleshooting this?

AFAIK the binary script export is a new feature recently added (and made default) on master. It's not present (or exposed?) in 4.3dev3. (I see raw text in the functioning exported binaries built with that engine/template). When the error is reported, it means problems will occur later on, presumably when creating Nodes using the mentioned types.
I was able to successfully export projects as of a week or so ago and also only saw it break recently without any structural changes in the area of code that reports the cyclic dependencies. So, given all that, IMHO, there's nothing else you need to do. My MRP demonstrates the bug, I think.

@eswartz I fixed the issue with your MRP in #89005. Please test if this fixes the bug in your project.
@wpbirney Please try testing with #89005. There is a chance that there is another kind of regression going on, not related to script paths (though I'm guessing that's the reason).
If the bug is still reproducible, then we need a MRP. If you can't create it from scratch, then you can try another approach. Make a copy of your project and iteratively remove parts that you think are not related to the bug. Continue until the project is small enough to debug. If the bug disappears at some point, go back to the previous step and try to remove something else.

@dalexeev Yes, that PR (or master, since it was merged a minute before I saw this) works properly in my actual game. Thanks!


Musescore opens .zip instead of Ark

Describe the bug
When opening a .zip file in KDE, I would expect Ark to open it (it has always done that before). However, since I installed Musescore, musescore has priority over Ark to open zip, and therefore the opening crashes. I guess it's just matter of setting some priorities.
I know it's simple to override on user side, but I think to remember it's possible to override that directly in the .desktop file by putting a lower priority number, and it may help inexperienced users. Actually, I even think that Musescore should not open .zip at all since it can't deal with them properly.
To Reproduce
Steps to reproduce the behavior:

Install Ark and Musescore in KDE
Open a .zip file
See error when Musescore (instead of Ark) opens it

Notify maintainers
@vandenoever @turio @ttuegel
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

system: "x86_64-linux"
host os: Linux 5.4.93, NixOS, 21.03pre-git (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.4pre20201205_a5d85d0
channels(root): "nixos-unstable-21.03pre267299.5ff6700bb82, nixos-21.03pre267299.5ff6700bb82"
channels(me): "local-nixos-unstable-21.05pre279012.ad47284f8b0, home-manager, local-nixpkgs-unstable-21.03pre267409.f5daa8ab31f, nixos-20-03-20.03.3324.929768261a3, test, nixos-unstable-21.03pre250162.34ad166a830"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

share/applications/mscore.desktop doesn't mention application/zip:
MimeType=application/x-musescore;application/x-musescore+xml;application/vnd.recordare.musicxml;application/vnd.recordare.musicxml+xml;audio/midi;application/x-bww;application/x-biab;application/x-capella;audio/x-gtp;application/x-musedata;application/x-overture;audio/x-ptb;application/x-sf2;application/x-sf3;

What does file -Lb --mime-type file-youre-trying-to-open.zip say?

Hum, strange... I get:
$ file -Lb --mime-type myfile.zip
application/zip

(the file is just produced with the zip command line)
I tried to check the .desktop file, I can see :
$ ll $(which musescore)
lrwxrwxrwx 1 root root 71 janv.  1  1970 /run/current-system/sw/bin/musescore -> /nix/store/zy314bxnjg8hbb3jnj4c46l66ym9zgp5-musescore-3.6/bin/musescore

$ cat /nix/store/zy314bxnjg8hbb3jnj4c46l66ym9zgp5-musescore-3.6/share/applications/mscore.desktop
[Desktop Entry]
Version=1.0
Name=MuseScore 3.6
GenericName=Music notation
GenericName[de]=Notensatz
GenericName[fr]=Notation musicale
Comment=Create, play and print sheet music
Comment[ru]=Визуальный редактор нотных партитур
Comment[fr]=Gravure de partitions musicales
Exec=mscore %F
Icon=mscore
StartupNotify=true
StartupWMClass=mscore
Terminal=false
Type=Application
Categories=Qt;Audio;Sequencer;Midi;AudioVideoEditing;Music;AudioVideo;
Keywords=music;notation;composition;composing;arranging;making;sheet music;music notation software;lead sheet;leadsheet;score;full score;scorewriter;MIDI;musicxml;playback;instrument;
Keywords[de]=Musik;Noten;Musiknoten;Komposition;Komponieren;Arrangieren;Notenblatt;Notenblätter;Notationsprogramm;Musiknotationsprogramm;Musiknotation;Tabulatur;MIDI;musicxml;Instrument;
MimeType=application/x-musescore;application/x-musescore+xml;application/vnd.recordare.musicxml;application/vnd.recordare.musicxml+xml;audio/midi;application/x-bww;application/x-biab;application/x-capella;audio/x-gtp;application/x-musedata;application/x-overture;audio/x-ptb;application/x-sf2;application/x-sf3;

Also, I'm not sure what happens: if I use xdg-open myfile.zip, it opens with Ark. The problem is rather when I open it with Dolphin. Also, I just tried to right click/open with/other application, select Ark, and select "Memorize the association between the software and application/zip"... and now it opens with Ark, but Musescore is still in the "Open with" list. Don't know why Dolphin tries Musescore by default...

This sounds like an upstream issue. Please open an issue on Dolphin's issue tracker.

I tried installing Musescore with nix-env on KDE, and Dolphin still uses Ark as default when selecting a .zip file.
I think that this can be closed,

Cool,thanks, I'll close it then, and reopen if I experience this again.


Subclassing SceneLocationView from another module

Hi,
can you make the SceneLocationView class open so it could be subclassed from another module?
Thanks.

I added this library manually in my current project and extends SceneLocationView from other class. It is working for me.


Resets selected rows

I'm using toggleRow(index: number) method to mark the row for selection export. In case user deselects any of the row then also it is getting exported. To avoid this I want to reset row selection of deselected row.
How can I reset only selected rows. Currently I found resetToggleRow() for Resetting all the rows toggled for exporting.
Please suggest any method or solution.

Any recommendation on this issue?


simulate inkey auth tests for unit test txns too

not just mnemonic. can we input keystrokes w a headless browser for inkey auth etc?

?? how can we sim passkey auths ?

So I think all of this would have to be tested on inkey itself — I don't think we'll get access to an iframe in any testing environment.
Passkey auth will have to be mocked, which I think is fine. Typically 3rd party APIs are mocked (algonautjs does not mock algosdk though, because it's not the most stable).


Configure is not saving to configuration table

Hi,
getContent() funtion not saving data

Hi,
I'm really sorry about that. This module has a dependency on ps-module-configuration, which is missing in the readme. I will update it asap. But the issue here is that this dependency depends itself on a pending PR to the Prestashop project.
I'm not really using Github as a way to open source my work, for the moment. I don't have much time for that. I will disable issues and all open source related stuff, and update all repos readmes asap. Sorry again.


fix wikipedia-related issues

Hi @qubixes :
I hope this fixes the Wikipedia-related issues #25 and #26.
Can you please take a look and see if my changes look ok?
Thanks,
Modhurita


Nbtdoc type is not displayed properly when the language is "ja"

The %0% part was missing in nbtdoc.type's translation ;D


Show weekend options

Hello,
I can't make it work. Do you have the same issue?
I am able to change the start pos attribute as well as the first day of the week.
Therefore I think I am doing it the right way.
Nico

I just realized that are 2 options. One is static is the other is dynamic. When I click "no" in the view settings, it works fine>


Add splunk output and customize outputs plugins

Q
A

Bug fix?
no

New feature?
yes

API breaks?
no

Deprecations?
no

License
Apache 2.0

What's in this PR?

Why?

Additional context

Checklist

[x] Implementation tested (with at least one cloud provider)
[x] Error handling code meets the guideline
[x] Logging code meets the guideline (TODO)

Hey @wwojcik thanks for your PR!
Before moving on I would like to clarify one thing. We intentionally decided to avoid supporting custom fluent configuration snippets and would like to stick with this in the future as well. One reason for example is that we don't want to support things like templating or loading secrets in freeform configurations which would be necessary on the long run.
Because of this I would like to ask you to pull the custom output support out of this pull request. However feel free to open a new one with the custom output changes if you feel we should consider it and want discuss it further!

ok I will do as you suggest

For the V2 I opened a new issue for Splunk output: https://github.com/banzaicloud/logging-operator/issues/158
I think we will integrate it soon. But if you have time and port it to the V2 API that is welcomed as well!


Dataset glue crawler security configuration

Describe the bug
All Glue crawlers created by data.all will need a security configuration attached to them. Currently we don't see this is the case.
The CFT for crawler creation does not show this.
How to Reproduce
*P.S. Please do not attach files as it's considered a security risk. Add code snippets directly in the message body as much as possible.*

Expected behavior
No response
Your project
No response
Screenshots
No response
OS
All
Python version
3.1
AWS data.all version
v1.3,v1.4,v1.5
Additional context
No response

This issue looks duplicate of https://github.com/data-dot-all/dataall/issues/1324 - which has been implemented by @mourya-33 as of https://github.com/data-dot-all/dataall/pull/1434
Going to close this issue at this time - please feel free to re-open if needed


Teams link from the main page links to the wrong page

Affected module
UI
Describe the bug
On the main page, Teams count is 1 but then when I click on Teams, it takes me to a page where the count is 0.
It seems that the Teams link from the main page links to /settings/members/teams/Organization instead of linking to
/settings/members/teams.
To Reproduce

Expected behavior
Teams link from the main page should link to /settings/members/teams.
Version:

OS: OS X
Python version:
OpenMetadata version: 0.12.2
OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context

Hi, @stevenspadotto Thanks for reporting.
We will be having /settings/members/teams/Organization as our home path for the Teams page as all teams must fall under Organization
I did remove the older path and UI in this PR.
Should be fixed with 0.13.0
cc: @harshach

@chirag-madlani I see. Ok, thanks. However, on the main page, I see Teams count as 1, but when I click on the Teams link from there, it takes me to the Organization page where I see Teams count as 0. This discrepancy with the count can appear to be confusing.

@chirag-madlani it looks like we are not showing the total count of all teams but instead showing the count at the top level example

@chirag-madlani I see. Ok, thanks. However, on the main page, I see Teams count as 1, but when I click on the Teams link from there, it takes me to the Organization page where I see Teams count as 0. This discrepancy with the count can appear to be confusing.

Yes, there's a mismatch. Will fix it in 0.13.0
Thanks for pointing it out @stevenspadotto @harshach

Need to fix count issue

Fixed in 13.0


Easy Commit for model collections.

E.g.
model.Commit(listState, index, value);
model.Commit(dictState, key, value);

State family is rewriten in v9.0.0.


Final changes for NCT - Zorlin/initial commitments 2024 r2

Based on the previous HEAD re-merged with current main.

We will most likely want to carefully squash and merge this, or build it up in a clean PR with cherry picks.

Ah, the conflicts :(

...ah... this was merged from main/master? and not "v4" :facepalm:
I have run out of time to clean up the actual PR tonight :( need sleep. @kaiserd I will sync with you tomorrow re: this and make sure it works as is

...Ah, wrong repo.
Even more :facepalm:


Add the ability to create empty dir when the host path doesn't exist in the volume when kind=host

Ref https://github.com/kubernetes/kubernetes/issues/26816
Docker has the ability to create empty dir for if the hostpath in the volume doesn't exist on the host (kind=host), and some kubernetes e2e tests / examples reply on this functionality, so it would be preferable if rkt provides such ability as an option.
One way to achieve this is to add an optional boolean in the volume type saying "Create empty dir if the path doesn't exist". e.g.
type Volume struct {
	Name ACName `json:"name"`
	Kind string `json:"kind"`

	// currently used only by "host"
	// TODO(jonboulle): factor out?
	Source    string `json:"source,omitempty"`
	ReadOnly  *bool  `json:"readOnly,omitempty"`
	Recursive *bool  `json:"recursive,omitempty"`
    // Automatically create an empty dir if the path doesn't exist.
    CreateIfNotExisted *bool `json:create,omitempty"`

	// currently used only by "empty"
	Mode *string `json:"mode,omitempty"`
	UID  *int    `json:"uid,omitempty"`
	GID  *int    `json:"gid,omitempty"`
}

cc @jonboulle @sgotti @iaguis @alban @lucab @s-urbaniak

Is this the same as https://github.com/coreos/rkt/issues/2329#issuecomment-231699592? In that case, it may be a rkt bug, not a spec one. Something that was not clear to me from there: how should this interact with RO containers?

This seems like an antipattern to me, so I'd rather push back on it in kubernetes. But even if we decide to do it, I think it should be rkt specific, not a general spec thing.

@jonboulle I agree, at first I am not comfortable about creating arbitrary dirs on host. If we all agree we don't want this, we can just implement in rktnetes.

I'm also for delegating the host path creation (in any way like directory creation or a tmpfs like rkt does when a volume for a mountpoint isn't specified) to who is specifying the volume definition (the orchestrator, the user calling rkt etc...).

The only possible use for a kind=host is an antipattern. It expresses an external system dependency that means a less portable, less self-contained, container. I think once you're already speaking in terms of an antipattern, adding more antipattern knobs is less egregious.
That being said, there are multiple reasons a host volume might be used, which I've tried to list below.

Communicating with an external system producing data or listening on a unix socket, such as /var/log for consuming logs or the X11 sock.
Communicating with external systems that will consume said data: e.g. a container that produces logs at /var/log/fooApp and wishes to bindmount it to the host at /var/log/fooApp as well because the operator knows a logging process will scan through that directory and collect them
Communicating between instances of yourself: e.g. a container that bindmounts in /var/cache/app/thumbnails for each run and populates it with any thumbnails not present, but prefers to re-use existing ones between invocations simply to avoid unneeded processing.

In the case of 1, creating the nonexistent thing is not a desirable action and can end up breaking things (aside, docker once had a bug where it created the docker.sock after starting old containers, so any restart=always containers bindmounting the docker.sock would create a directory there and crashloop the daemon).
In case 2 and 3, you actually gain a slight bit of portability by creating the directory, and the person running the application can decide whether their application/use-case matches 2 or 3.

@jonboulle wanna add a few more details to that close? Did this issue end up getting moved somewhere else, or do we have sufficient consensus of "orchestration systems should do this, not rkt"?

I surmised that we had consensus that this is better handled by the orchestration system or rkt (not the spec), but if I'm off the mark let me know.

I'm fine with that assertion. Thanks for clarifying... I'll open an issue against Kubernetes as to whether it should specify something like this to its volume concept.


"python3 setup.py bdist_wheel" error in RaspberryPi4 with Raspbian

help me.
I am using "https://github.com/jiuqiant/mediapipe_python_aarch64" and "https://github.com/superuser789/MediaPipe-on-RaspberryPi#readme" guide to install mediapipe in Rasberrypi4 with Raspbian.
When I ran "python3 setup.py gen_protos && python3 setup.py bdist_wheel",

/home/pi/mediapipe-0.8.4/mediapipe/python/BUILD:19:17: Linking mediapipe/python/_framework_bindings.so failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc @bazel-out/arm-opt/bin/mediapipe/python/_framework_bindings.so-2.params

Use --sandbox_debug to see verbose messages from the sandbox
/usr/bin/ld.gold: error: cannot find -ljpeg
/usr/bin/ld.gold: error: cannot find -ltiff
collect2: error: ld returned 1 exit status
Target //mediapipe/python:_framework_bindings.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 220.849s, Critical Path: 214.27s
INFO: 32 processes: 10 internal, 22 linux-sandbox.

Thanks.

Hi @hhajae, Please go through this similar references #2041 , https://github.com/google/mediapipe/issues/1917#issuecomment-824243096.

Hi @hhajae, Please go through this similar references #2041 , #1917 (comment).

Hi @sgowroji,
I've had a hard week with this problem(mediapipe in python (Rasberrypi4 with Raspbian)).
However thanks to your comment (https://github.com/google/mediapipe/issues/2107#issuecomment-852012958) and your other comments, I finally succeeded.
Thank you very much for your help.


Added support for JSON.NUMMULTBY

Implementation for issue 497
Added support for JSON.NUMMULTBY command. It multiplies existing fields in JSON that matches specified JSON path at the specified key by the multiplier value. Returns null for non numerical fields. Output is stringified array of updated values.
redis documentation : JSON.NUMMULTBY
Changes :

evalJSONNUMMULTBY implementation
testevalJSONNUMMULTY unit test
TestJsonNummultby integration test

@c-harish please rebase the PR once, to resolve conflicts.

@JyotinderSingh
I have rebased. Please review.

@c-harish please resolve conflicts.

@c-harish please resolve conflicts.

rebased, @lucifercr07. please review.


Is there any way to change the space taken by the legends in a chart ?

Yes, there is, you can change the box size of it  and the padding between the legends:
var chartLegend = {
 labels: {
  boxWidth: 15,
  padding: 10,   },  };
  <Pie legend={chartLegend} data={chartData}></Pie>

When changing the value for the boxWidth, only the width of the colored boxes in each of the legend items are changed.
Adding padding as you have mentioned creates padding between each of the rows in the legend set.
But the desired behavior is to set a max-height property to limit the space taken by the legend section.
Is there any way we can achieve this behavior @Ahmad-AlShalabi  ?

I'm facing the exact same issue. What could be the solution ?


Crashing on memory.isOtherEnemy

I have been getting a weird crash after the latest update, when i try to debug it i get this?
Can some pro please help me:

are you checking if localPlayer is valid?
are you checking if the entity is valid?
0xC0000005 means a bad pointer in either localPlayer or entity.

also getting this

can i find out where 0x78AA2B66 is?

the game moves stuff around so you won't be able to find the assembly of it.
check the stack call, it will give you a hint to what crashed it.

You are not allowed to add changes here: https://github.com/danielkrupinski/Osiris/blob/master/Osiris/Hacks/Aimbot.cpp#L23
Anyways, if you did not touch that function, I suggest you to check if the player is valid before calling isEnemy. For example:
ClientClass * pClClass { };
if ( pEntity && ( pClClass = pEntity->getClientClass ( ) ) && pClClass->classId == ClassId::CSPlayer && pEntity->isEnemy ( ) ) { /* your code */ };


[GAPRINDASHVILI] ui-components: update to 1.0.19

https://github.com/ManageIQ/ui-components/pull/269
https://github.com/ManageIQ/ui-components/pull/270
https://github.com/ManageIQ/ui-components/pull/271
Cc @chalettu, @eclarizio, @romanblanco

As soon as we get the bump from this change: https://github.com/ManageIQ/ui-components/pull/272
we should totally update/merge this 🙇♀

Anddddddd we have a fix for the bz!
See, look, its a fix


Support for linting using tslint?

Any chance you're going to support linting via tslint?  I have this running in my build tools, but it would be great to have errors show up in my editor.

Unfortunately I don't really think this is in scope for us. Perhaps look into SublimeLinter-contrib-tslint.

:+1:


feat: use unified translator to translage ApisixRoute v1

Please answer these questions before submitting a pull request

Why submit this pull request?

[ ] Bugfix

[x] New feature provided

[ ] Improve performance

[ ] Backport patches

Related issues

Bugfix

Description

How to fix?

New feature or improvement

Describe the details and related test reports.

Backport patches

Why need to backport?

Source branch

Related commits and pull requests

Target branch

@gxthrj Please take a look when you have time.


Validation "Different|Equal" Can't work with "Sometimes"

Laravel Version: 6.9 (I got this behavior originally at 5.8 and tried with newer versions)
PHP Version: 7.3.5
Database Driver & Version: no applies

Description
When I tried to use validation with "sometimes" and "equal" or "different" rules I got a weird behavior: When my "different2" wasn't present in request I got the follow error:
...
0 => "The different1 and different2 must be different."
...

Check this rule method from a Form Request:
    public function rules()
    {
        return [
            'different1' => ['sometimes', 'boolean', 'different:different2'],
            'different2' => ['sometimes', 'boolean', 'different:different1'],
        ];
    }

My request:
$this->post('/test', [
    'different1' => true,
])->dump();

The problem  is: with the example above, "different1" was in the request while "different2" wasn't. Validator should not fail and say that they must be different because in this case "different2" even wasn't present. In my vision, Validator just said: "different1 == undefined"
IMO, the correct behavior should be only validate when both are present in the request, so:
$this->post('/test', [
    'different1' => true,
])->dump();

Passes

$this->post('/test', [
    'different1' => true,
    'different2' => true,
])->dump();

Fails

Also applies to "same" clause
Steps To Reproduce
1 - Create a validation data with the follow contents:
            'different1' => ['sometimes', 'boolean', 'different:different2'],
            'different2' => ['sometimes', 'boolean', 'different:different1'],

2 - Create a test with the follow contents:
$this->post('/test', [
    'different1' => true,
])->dump();

3 - See the error

fixed in https://github.com/laravel/framework/pull/30945


Add T merge(T entity) method

Please add a method to return updated entity on merge method, so that user don't have to query again to get whole entity.

So, essentially, you'd like Morphia to make that query automtically, yes?

@evanchooly yes I'd like to save a query, after mege I get a key, I need to use it query again to get modified entity. I think if "merge" can just return the modified entity would be great.

I can't change the return type of merge() because that would break everyone using it but I can introduce a new method...

that would be great. Thank you!


[SMALLFIX]update file

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/2880/
Test FAILed.


docs: fix/add documention on how to set up the Toast Service

🙋 Documentation Request
I think that there must be some documentation missing on how to get the Toast Service working.
I created a new project from the Fluent Blazor Web App Project.
on the mainLayout page I added the FluentToastProvidor
<FluentStack Class="main" Orientation="Orientation.Horizontal" Width="100%">
        <NavMenu />
        <FluentBodyContent>

                @Body

            <FluentToastProvider></FluentToastProvider>
        </FluentBodyContent>
    </FluentStack>

on the template Counter.razor page, I injected the service, and added the example button and ShowToast() method.
@page "/counter"
@rendermode InteractiveServer
@inject IToastService ToastService

<PageTitle>Counter</PageTitle>

<FluentButton @onclick="@ShowToast" Appearance="Appearance.Accent">Open</FluentButton>

Counter

Current count: <FluentBadge Appearance="Appearance.Neutral">@currentCount</FluentBadge>

<FluentButton Appearance="Appearance.Accent" @onclick="IncrementCount">Click me</FluentButton>

@code {
    private int currentCount = 0;

    private void IncrementCount()
    {
        currentCount++;
    }

    int counter = 1;
    void ShowToast()
    {
        Random rnd = new();

        var intent = Enum.GetValues<ToastIntent>()[rnd.Next(10)];
        var message = $"Simple Toast #{counter++}";
        ToastService.ShowToast(intent, message);
    }
}

Also, the provider example is still referencing the old FluentToastContainer in the example instead of the Provider. component
https://www.fluentui-blazor.net/Toast

Hi.,
Judging from the @rendermode InteractiveServer code in the Counter page, you choose to create the site with per page interactivity. This means the MainLayout will use the (default) SSR mode and because of that the FluentToastProvider does not exist when the Counter page is being rendered/executed. Does that make sense? To fix, the MainLayout needs to be interactive too.
We'll add some more details to the docs on this (and update the Container references, thanks for reporting!)

for anyone viewing this, if you add a render mode declaration on the component, then it fixes it.
<FluentToastProvider @rendermode=RenderMode.InteractiveServer MaxToastCount="10" />

Maybe I'm missing something, but if you do add <FluentToastProvider @rendermode=RenderMode.InteractiveServer MaxToastCount="10" /> in your MainLayout doesn't that cause every page to require a websocket opened in order to support that?
My goal is to have most of my pages be SSR - and I want no WS connection to my server. Only when you navigate to an interactive page do I want the websocket... Does that make sense? Is there a way to achieve this by adding the <FluentToastProvider\> directly in my page? Or is my concern not really valid ?

Yes, you will have a ws connection.
Don't you think it is obvious that having a Toast component requires interactivity? Where is the toast (and the content it shows) coming from? Not from static html that is on the client already.


start in fullscreen

Is there a way to start the editor by default in fullscreen? I didn't find an option for this.
I've noticed I could add the class editormd-fullscreen to the editor-div, but is this the recommended way?

This function is in the source code editormd.toolbarHandlers
get instance call after initialization：
const editormd = editormd(editormdId, {
onload() {
editormd.toolbarHandlers.fullscreen.call(editormd)
}
})


Fixes #134 Move license to alone file called LICENSE

Fixes #134 Move license to alone file called LICENSE
Closes: #134

@sandrobonazzola Please review it.


implement range/generate_series func

Which issue does this PR close?

Closes #8028 .
Rationale for this change

What changes are included in this PR?

Are these changes tested?
test in sqllogictests
Are there any user-facing changes?

cc @jayzhan211  @alamb  this PR is ready for review! : )

Thank you for this new function! Looks like these functions are available in DuckDB 👍🏼 https://duckdb.org/docs/sql/functions/nested.html#range-functions
Here are some suggestions:

Can we add more corner case tests like range(5,5,0), range(1,5,-1), range(1,-5,1)...
Include the semantics of this function (is start/end index inclusive or exclusive, what will happen for range(1,5,-1)) in SQL doc: https://github.com/apache/arrow-datafusion/blob/main/docs/source/user-guide/sql/scalar_functions.md

Thank you for this new function! Looks like these functions are available in DuckDB 👍🏼 https://duckdb.org/docs/sql/functions/nested.html#range-functions
Here are some suggestions:

Can we add more corner case tests like range(5,5,0), range(1,5,-1), range(1,-5,1)...
Include the semantics of this function (is start/end index inclusive or exclusive, what will happen for range(1,5,-1)) in SQL doc: https://github.com/apache/arrow-datafusion/blob/main/docs/source/user-guide/sql/scalar_functions.md

thanks! I have made it clear in the test and doc.

Thanks again @Veeupup and @jayzhan211


Use css and link to css from students.html

Do I also design page or simply link to the CSS? I would like to design the page with CSS myself.


[ru] Localize Idempotence

Description
This Issue is to localize Idempotence into Russian.
Checklist before opening your PR (put x in the checkboxes) — note that you have to add this checklist to your PR and check all the boxes for it to be approved.

[] This PR does not contain plagiarism

don’t copy other people’s work unless you are quoting and contributing it to them.

[] I have signed off on all commits

signing off (ex: git commit -s) is to affirm that commits comply DCO. If you are working locally, you could add an alias to your gitconfig by running git config --global alias.ci "commit -s".

ETA: TBD
Useful links:
Как внести свой вклад
Руководство по стилю
Slack channel
Telegram channel

i can do this issue.

I'd like to work on this issue


fastapi function check too strict

I want to use fastapi with callables which return False on a inspect.is_function check.
from fastapi import FastAPI
import toolz

def some_function():
    ...

def error_handler():
    ...

endpoint = toolz.excepts(Exception, some_function, error_handler)
app = FastAPI()
app.get("/")(endpoint)

Result:

AssertionError: An endpoint must be a function or method

Interesting situation. But I want suggest to you a much clear way for exceptions handling.
When you are trying handle almost all exceptions (with Exception) you will handle any exceptions and it's wrong way. But if you really want handle any exceptions in your application, you may try use it. But if you really want do it - try it:
@app.get("/")
async def func("Place here your args and kwargs"):
    return your_callable(*args, **kwargs)

However, i think we should create PR that will add possibility of adding any callable objects.

Yeah it's just an example, functools.partial and I guess toolz.compose don't work either.

Yeah. This makes sense. I was going to document a working example, etc. But it was faster to fix it :man_shrugging: :tada:
This should be fixed by #977


[wip] fix aarch32 build on aarch64 builder

The community aarch64 build box with Hi1616 CPU is capable to run aarch32 code, so it can work as aarch32 builder.
It does not requre cross-compilation. It is just like i686 on x86_64.
But some packages detect target architecture by executing uname -m, they get aarch64 and then use the value wrongly.
This PR is not the complete fix (if the complete fix even possible).
It fixes essential derivations whose failures prevent to build many other packages/
Related: #60103 https://discourse.nixos.org/t/new-aarch64-and-armv7l-linux-omg-builders/1010

@volth I recommend taking the first two commits of https://github.com/NixOS/nixpkgs/pull/44583/commits and then fixing the fallout.

I cherry-picked those myself in https://github.com/NixOS/nixpkgs/pull/60166 .

PinePhone also has aarch64 CPU capable to run aarch32 code


Lifecycle Events Not Triggered During Screen Navigation

While navigating from one screen to another, the onPause and onStop lifecycle events of the previous screen are not being called.

While navigating from one screen to another, the onPause and onStop lifecycle events of the previous screen are not being called.

yes, I can also repeat it.

Facing issue as well.

Facing same issue as well.
@adrielcafe @DevNatan Is there any fix for this issue? I'm seeing this was closed as one of the fix PR had got merged: https://github.com/adrielcafe/voyager/issues/42
We are still facing the issue in 1.1.0-beta2

I’m also facing the same issue.
Is there any fix for this ?

I'm using this way to listen to lifecycle event.
val lifecycleOwner = LocalLifecycleOwner.current

        DisposableEffect(lifecycleOwner) {
            val observer = LifecycleEventObserver { _, event ->
                // Handle event
            }

            lifecycleOwner.lifecycle.addObserver(observer)
            onDispose {
                lifecycleOwner.lifecycle.removeObserver(observer)
            }
        }

I guess the issue here is with lifecycle observer being removed in onDispose as Screen content is disposed on navigating to new page.
onPause/onStop events are triggered for that screen, but consuming it this way is not possible. What would be the right way in this case?


ldapjs.org - Site temporarily disabled

See: https://github.com/blog/1925-github-pages-legacy-ip-brownout
And: https://github.com/blog/1917-github-pages-legacy-ip-deprecation
And: https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/

⚠ This issue has been locked due to age. If you have encountered a recent
problem that seems to be covered by this issue, please open a new issue.
Please include a minimal reproducible example
when opening a new issue.


MissingPluginException

When trying to implement this plugin I get the following error:
MissingPluginException(No implementation found for method keepOn on channel sarbagyastha.com.np/youtubePlayer)

#0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:300:7)
<asynchronous suspension>
#1      YoutubePlayer.keepOn (package:youtube_player/youtube_player.dart:745:45)
#2      _YoutubePlayerState.build (package:youtube_player/youtube_player.dart:830:21)
#3      StatefulElement.build (package:flutter/src/widgets/framework.dart:3825:27)
#4      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3736:15)
#5      Element.rebuild (package:flutter/src/widgets/framework.dart:3559:5)
#6      StatefulElement.update (package:flutter/src/widgets/framework.dart:3894:5)
#7      Element.updateChild (package:flutter/src/widgets/framework.dart:2748:15)
#8      SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4883:14)
#9      Element.updateChild (package:flutte<…>
[VERBOSE-2:shell.cc(178)] Dart Error: Unhandled exception:
MissingPluginException(No implementation found for method create on channel sarbagyastha.com.np/youtubePlayer)
#0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:300:7)
<asynchronous suspension>
#1      VideoPlayerController.initialize (package:youtube_player/youtube_player.dart:214:59)
<asynchronous suspension>
#2      _YoutubePlayerState.initializeYTController (package:youtube_player/youtube_player.dart:799:22)
#3      _YoutubePlayerState.build (package:youtube_player/youtube_player.dart:841:11)
#4      StatefulElement.build (package:flutter/src/widgets/framework.dart:3825:27)
#5      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3736:15)
#6      Element.rebuild (package:flutter/src/widgets/framework.dart:3559:5)
#7      StatefulElement.update (package:flutter/src/widgets/framework.dart:3894:5)
#8      Element.updateChild (package:flutter/src/widgets/framework.dart:2748:15)

This is with plugin version 3.2.0 on a fresh project where this is the only extra dependency.  Code looks as follows:
import 'package:flutter/material.dart';
import 'package:youtube_player/youtube_player.dart';

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text('Test YT'),
      ),
      body: Center(
        child: YoutubePlayer(
          context: context,
          source: "https://www.youtube.com/watch?v=501-0od08t8",
          quality: YoutubeQuality.HD,
        ),
      ),
    );
  }
}

I have also used just the video id.

@laravelian , did you perform full rebuild of your project after adding the plugin? It's completely working fine.

I did, it looks like I missed the part where its only compatible with Android at the moment. Closing.

Support to iOS is added with this plugin youtube_player_flutter.


fix: fix MapMarker geocode

Pull Request Test Coverage Report for Build 951

9 of 9 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 78.249%

Totals

Change from base Build 942:
0.3%

Covered Lines:
1306

Relevant Lines:
1601

💛  - Coveralls


Migrate from Gradle Enterprise gradle plugin to Develocity plugin

What problem are you trying to solve?

Starting with version 3.17, the plugin is available under the “Develocity” brand. Please see the Develocity Gradle Plugin User Manual for the latest documentation. Several core functionalities have been deprecated with the rebranding and will be removed in a future plugin version. Therefore, upgrading to the 3.17+ version of the plugin requires more than just updating the version number.

Start by updating the plugin’s version to 3.17 and changing the plugin ID to com.gradle.develocity. If you are using the common-custom-user-data-gradle-plugin, update the plugin’s version to 2.0. After running a simple task like ./gradlew help you will be informed about the usage of the deprecated APIs:

Most of the violations can be fixed by replacing references of gradleEnterprise with develocity. Some APIs have been replaced by more descriptive and idiomatic alternatives. In this example, those APIs are taskInputFiles and publishAlways(). See Breaking API changes section for this and other examples. After these changes, your build script should look like the following:

https://docs.gradle.com/enterprise/gradle-plugin/legacy/#develocity_migration

duplicate of #4134. @timtebeek looks like you had a network glitch

ah no they are subtly different; one is for Maven and the other is for Gradle; Both need their own recipe for the migration. Thanks for checking though!


Crash

Crashes when I push the play button.

App version: Latest (5.4)
Android version: 12, beta 5
Device: Xiaomi Mi 10T
Priority this should have – please be realistic and elaborate if possible: moderate

Fixed in 9ef049e7c9268e524bbc6904e6a44a6d9b099803


Validations specs

Changes in this PR:
I've added unit specs, validations, and flash messages.
Changes in files:

app:

controllers:

comments_controllers: notice
likes_controller: notice
post_controller: notice

models:

post: validations
user: validations

views:

layouts:

application: flash render

shared:

_flash: notice

spec:

controllers:

users_controller
posts_controller

models:

comment_spec
like_spec
post_spec
user_spec

views:

posts_view_spec
users_view_spec

Thank you! :tada:


Add ability to determine when script uses language features and/or cmdlets not available in the specified minimum version of PowerShell

This is increasingly becoming an issue as PowerShell gets new language features and cmdlets.  And cmdlets get new parameters, etc.  I could have a #requires -version 3.0 in my script but I'm developing on PowerShell 5.0.  It is real easy to slip up and use a lang feature ("using namespace System.Diagnostics") or a cmdlet (New-TemporaryFile) or a new cmdlet parameter (PassThru added to Enable-JobTrigger in v4).  It would be great if ScriptAnalyzer saw a #requires -Version X.0 and warned (or errored) when I used a feature not available on X.0.  Likewise, I would like to have a parameter to ScriptAnalyzer where I could tell it the minimum version I want to target (perhaps I have several scripts written at different times that have varying levels of #requires -Version).
For bonus points, if someone specified neither the command line parameter (MinimumPowerShellVersion) or had any #requires or min version in their PSD1 file, it would be nice if ScriptAnalyzer told me that - "Scripts require at least version 4 due use of -PassThru parameter on Enable-JobTrigger and use of Get-FileHash cmdlet).
Where things get a bit more tricky is setting a minimum Windows OS version.  But the need is there since I have a whole bunch of cmdlets available to me on Windows 8.1 that I know are not available on Windows 7.

:+1:

That would be really useful. That is what PSSA should be doing in the first place, finding pitfalls like this. They are not easy to check manually or time consuming or PS documentation sometimes does not even mentions version changes (-LiteralPath of *-Clixml is for v3+ and help says nothing about this).

+1
I would like to see this added such that:
a) PSScriptAnalyzer identifies the minimum required version according to
what it finds during its analysis (if no #requires statements are present
and if it is in a module that does not specify the minimum PowerShell
version in the manifest), suggesting as a warning that #requires be used
(if it's a script) or PowerShellVersion be added to a manifest if it's a
module; and
b) PSScriptAnalyzer raises a different warning if there is an indicated
minimum required version that is incorrect based on what is in the
script/module.
--
*Kirk Munro *
Poshoholic, Microsoft MVP
Blog http://poshoholic.com/ | Twitter http://twitter.com/poshoholic |
LinkedIn http://ca.linkedin.com/in/kirkmunro | GitHub
http://github.com/KirkMunro | Facebook
http://www.facebook.com/#!/kirk.munro
Need a PowerShell SME for a project at work? Contact me
http://poshoholic.com/contact-me/!
On Fri, May 22, 2015 at 1:52 AM, Roman Kuzmin<EMAIL_ADDRESS>wrote:

That would be really useful. That is what PSSA should be doing in the
first place, finding pitfalls like this. They are not easy to check
manually or time consuming or PS documentation sometimes does not even
mentions version changes (-LiteralPath of *-Clixml is for v3+ and help
says nothing about this).
—
Reply to this email directly or view it on GitHub
https://github.com/PowerShell/PSScriptAnalyzer/issues/127#issuecomment-104521799
.

Some type accelerators were added in v3, i.e. will fail in v2, for example:
ciminstance
NullString
pscredential
pslistmodifier
cultureinfo
mailaddress
bigint
securestring

Yet another class of changes difficult to check manually is changes in enum values. Example: the error action preference values:

Ignore: v3+
Suspend: v4+

Other items added in various releases that could be used in version analysis:
v3:
[ordered] "accelerator" (aka PSCustomObject casting - this is actually some syntactic magic that just looks like an accelerator)
redirection operators (1> 2> 3> 4> 5> 6>, x>&y, etc.)
workflow
ForEach-Object and Where-Object parameter sets that use new "simplified" syntax
$PSItem automatic variable
property enumeration on collections
count and length properties on scalar objects
$using scope modifier
bit operators (-shr, -shl)
-Modules parameter on #requires statement
v4:
containment operators (-in, -notin)
foreach & where magic methods (although you can get those in v3 with the TypePx module loaded, so some consideration needs to be made towards what is only in a certain version because that is all that is possible vs what is in a certain version that could be backported to older versions and what should script analysis do about that)
configuration (DSC)
A good way to find the items specific to a particular version of PowerShell is to search help.  For example:
Get-Help "PowerShell 3.0"
or
Get-Help "PowerShell 4.0"
I'm not sure those will pick up on documentation where the "PowerShell x.0" string spans more than a single line though.
And of course, this is a great resouce:
https://technet.microsoft.com/en-us/library/hh857339.aspx

I want to avoid having a single monolithic rule for all compatibility issues. My current thinking is to create another Source (or 3) for compatibility rules targeting PSv3, PSv4,and PSv5. That way we can approach this in a more incremental manner. Thoughts?

Multiple rules with rule sets for different versions is fine with me.

Yup, that works for me as long as I can select such rules easily enough.  Perhaps Get-ScriptAnalyzerRule has a parameter like -CompatVersion where -CompatVersion 3 gives me the rules that target PSv3 as well as the rules that are version independent.

Or, either:
a) let us pick a collection of rule sets to use; or
b) apply rule sets dynamically in certain circumstances (automatically grab
the appropriate rule set from PSv3, PSv4, PSv5, etc to apply dynamically
based on minimum required version settings in #requires statement or module
manifest, etc.).
--
*Kirk Munro *
Poshoholic, Microsoft MVP
Blog http://poshoholic.com/ | Twitter http://twitter.com/poshoholic |
LinkedIn http://ca.linkedin.com/in/kirkmunro | GitHub
http://github.com/KirkMunro | Facebook
http://www.facebook.com/#!/kirk.munro
Need a PowerShell SME for a project at work? Contact me
http://poshoholic.com/contact-me/!
On Tue, Dec 1, 2015 at 6:16 PM, Keith Hill<EMAIL_ADDRESS>wrote:

Yup, that works for me as long as I can select such rules easily enough.
Perhaps Get-ScriptAnalyzerRule has a parameter like -CompatVersion where -CompatVersion
3 gives me the rules that target PSv3 as well as the rules that are
version independent.
—
Reply to this email directly or view it on GitHub
https://github.com/PowerShell/PSScriptAnalyzer/issues/127#issuecomment-161113334
.

3 years later...
PSSA has the UseCompatibleCmdlets rule for that and PR 954 currently updates the files for PowerShell Core 6.0.2 and Windows PowerShell 3/4. If you agree then I will close the issue once the command data files are all updated?

That addresses cmdlet compatibility but not sure if it addresses feature compatibility - e.g. support for enums, classes, new operators, new parameters, etc.  Perhaps we could close this issue and open a new one that is more specific to features?

Good point. I am Ok with leaving this issue open then.
As far as I know, enums and classes were introduced in v5. Do you know of any specific new operators that came only in v4/5? The command data files include all parameter sets with the relevant parameters btw. I went through the changelog here and the only notable thing that I found was the introduction of #Requires in v4.

I truly miss ISESteroids' ability to look over the script and create the requires-statement for me. I'm still working with Posh v3 and even a few v2 systems and it would be great if I could invoke something with a Posh version as argument that would tell me if the script is compatible with that version and if not, why not.

@PowerCoder Such functionality was actually added in 1.18 last year
https://devblogs.microsoft.com/powershell/using-psscriptanalyzer-to-check-powershell-version-compatibility/

I apologize. My code is so clean nowadays I have never seen a single PSScriptAnalyzer squiggly in VSCode, so I figured it didn't test for it.
Now I just need to figure out how to set the PoSh extension to check for compatibility with earlier versions of PoSh, so that I get my warnings when I use PoSh5/PwSh Cmdlets. But that is for another repo to help me with...

Those rules only run after they've been configured as the extension cannot make assumptions around against which PS version or platforms the script needs to be compatible


fixFormat ipv6

What problem does this PR solve?
https://github.com/apache/doris/issues/42695
Issue Number: close 42695
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)

Test

[ ] Regression test
[x] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[ ] No.
[ ] Yes.

Does this need documentation?

[ ] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

run buildall

run buildall

run buildall


6.0.0 breaks pip editable mode

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)
[x ] 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
6.0.0 breaks pip editable mode: packages are not automatically reloaded after code refactoring
What steps reproduce the problem?

I updated from 5.5.6 to 6.0.0
Installed a package using pip install -e <package>
Live code refactoring isn't recognized until the kernel is restarted

Versions

Spyder version: 6.0.0
Python version:  py39, py310, py311 (tried all)
Qt version: 5.15.8
PyQt version: 5.15.9
Operating System name/version: Windows 11

Hi @mluerig thank you for the report! Checking around, maybe this is related with https://github.com/spyder-ide/spyder/issues/22433? Seems like, on Windows, we disabled automatically enabling the %autoreload magic option. That could be something that enables doing live code refactoring 🤔 What happens if you try to enable again the autoreload preference? For that you can go to Preferences > IPython Console > Advanced Settings > Autoreload and check Enable Autoreload:

Let us know if the info above helps!

that seemed to have worked - thanks!


[PackageLoading] Don't escape root package when searching for LinuxMain

There was an edge case where which lead swiftpm to escape the root package while searching for LinuxMain.
rdar://problem/41444373 [SR-8072]: 4.2 dev hangs on swift build on mac and linux

@swift-ci please smoke test


Handle 4D data in the napari plugin

Fixes #316
Changes made:

don't specify ndim when converting tracks to a napari layer - let BayesianTracker determine the dimensionality

Codecov Report
Patch and project coverage have no change.

Comparison is base (336fa29) 85.64% compared to head (91bbfcc) 85.64%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #317   +/-   ##
=======================================
  Coverage   85.64%   85.64%
=======================================
  Files          30       30
  Lines        1957     1957
  Branches      296      296
=======================================
  Hits         1676     1676
  Misses        201      201
  Partials       80       80

Impacted Files
Coverage Δ

btrack/napari/main.py
73.33% <0.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


SPOE filter for Intentions uses 'tcp-request content accept'

With Intentions enabled, the HAProxy configuration that's auto-generated contains this in the frontend for the local service:
frontend front_downstream
  mode http
  bind <IP_ADDRESS>:21000 name front_downstream_bind crt /tmp/haproxy-connect-002132058/e727ca4e64d85da74a3846094069b9bd80f41a92f36c5a16fd2417a1b2443f42 ca-file /tmp/haproxy-connect-002132058/6552a0a59b20ca0d1997c4e5e9afb8a5c3e31dc00aada13727733f742d79d4d5 ssl verify required
  timeout client 30000
  filter spoe engine intentions config /tmp/haproxy-connect-002132058/spoe.conf
  tcp-request content accept if { var(sess.connect.auth) -m int eq 1 }
  default_backend back_downstream

The tcp-request content accept line will accept the connection if there is no "Deny" intention in Consul forbidding it. However, there is no rule that rejects the connection otherwise. So, all requests are accepted, no matter whether the are denied in Consul.
Workaround:
Editing the configuration so that tcp-request content accept if is replaced with tcp-request content reject unless fixes it:
tcp-request content reject unless { var(sess.connect.auth) -m int eq 1 }

Added https://github.com/criteo/haproxy-consul-connect/pull/3


Fixing some of the issues raised by lint (issue #90)

Description

This pull request contains fix for a few of the issues raised by lint.
Mostly cosmetic ones but also a few errors.
Motivation and Context
This is contributing to issue #90.
How Has This Been Tested?
This decreases the number of errors make lint raises.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Hi @ChristopheVuillot,
First of all, thank you very much for taking care of this issue! :)
Seems like you need to rebase your current branch with the latest changes from Master.
If you want me to do it, you will need to grant me write access on your branch, as you wish!!

Hi @atilag, thanks for the rebasing.
This pull request is not much but I figured that fixing a few things while looking at the code was worth it.

Perfect!
Merged.


[Bug]: View API Docs links are invalid after API docs revamp

Description
$subject. Seems it is caused by recent API docs revamp which resulted in URL change for API Docs.
Invalid link currently produced by the LS : https://lib.ballerina.io/ballerina/sql/1.6.2/records/ExecutionResult
Correct link : https://lib.ballerina.io/ballerina/sql/1.6.2#ExecutionResult
Related area
-> Editor
Related issue(s) (optional)
https://github.com/wso2/ballerina-plugin-vscode/issues/434

Closing as this is a duplicate of https://github.com/wso2/ballerina-plugin-vscode/issues/434


Drop Box Updates and a Few New Features

The tus command that we have allows a command line worker to be run periodically to clear out old uploads. Can you make sure this works? It would also be really great if we could run it via some kind of console command that was registered in our package, so we didn't have to pass in configuration information.
When I tested upload resuming, it totally worked, which was great. However one time when my upload stalled and I got logged out, when I logged back in and resumed my upload it didn't work. Could you check this yourself? It's possible this was a momentary hiccup, but if it's not, is there any way we could make this even more robust? Thoughts?
When deleting a file from the drop box, it didn't delete the underlying concrete5 file. Can you make this work? It needs to delete the concrete5 file, which should remove the file from the filesystem, remove all versions, etc....
Can you add "View Details" to the drop box menu, which takes you over to the file manager details screen. It's the same one you can get to by clicking on the filename of a file in the file manager.
Sorting files in the dropbox doesn't seem to work.
Bulk delete doesn't work in the dropbox interface. Can you make it work and make it look like the file manager's bulk delete dialog?
At this point I've reworked file permissions and just made the permission for whether a user can add to a dropbox into an admin task permission, which doesn't take an object. That means we don't need a file object in order to check the permissions of whether they can add to the dropbox. Can you rework the upload routine so that it checks permissions first, and only imports the file into concrete5 if the user has the permission to upload to the dropbox?
When installing the Dropbox add-on, can you create a "Drop Box" file folder in the file manager at the top level?
Dropbox Frontend: Can you add a folder chooser using the Concrete\Core\Form\Service\Widget\FileFolderSelector widget to the block, and default it to the "Drop Box" folder I just mentioned? The selector should also let the user select their own custom folder to upload into.
Can you add a new option to the dropbox block that is:

"Upload Complete Complete Response"
and a textarea that lets the admin enter the text that should be shown to the user when the file uploads successfully.

Add another field to the drop box block that is

[] Display URL to Uploaded File
This is a checkbox field that admins can check. If checked, when a user uploads a file, they should receive the permalink to the file. Just use the getDownloadURL() method on the file (which should route it through the download_file/ single page, I believe).
This use case is for sites that want to provide a drop box to their users, and then allow their users to use the site to host the file while they provide it for someone else. Believe it or not this is actually the use case that our client wants (go figure.)

I've merged in your updates, and I can see that some changes are made, but I don't think the success is working as well as it could be.
Can you do the following:

When uploads are complete, can you close the Tus window?
When uploads are complete, can you open a new bootstrap modal that says Success, and displays the upload complete message?
In this window, can you add the URL if the display URL to uploaded file is active? Right now things are kind of confusing, and the URL to the uploaded file isn't displaying:

https://github.com/concrete5/drop_box/pull/9


Add missing references

https://github.com/tudo-aqua/bgw-core/blob/c106f5cea48b6ae11efd346fb7a4342a3b2459a3/src/main/kotlin/tools/aqua/bgw/elements/uielements/Button.kt#L13
"ComboBox" is referenced in its documentation. A reference here should be added as well.

Same goes for the "ColorPicker"


Setup publish through github action

As a maintainer, I need to set up a GitHub action to automatically publish new releases to maven central
Acceptance criteria
1 - Publish a version through GitHub actions

already implemented


go.dev: change "copy" link to be full import statement

What is the URL of the page with the issue?
https://pkg.go.dev/testing?tab=doc
What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.66 Safari/537.36

Screenshot

What did you do?
Visited the above page.
What did you expect to see?
Firstly, the presence of the "copy" link to the right of the package path is welcomed: thank you!
However, godoc has this nice feature whereby the first thing at the top of the page is a complete import statement:

I'd like to suggest that we change pkg.go.dev to behave in the same way, such that clicking on the "copy" link would result in the following contents on the clipboard:
import "testing"

What did you see instead?
Only testing is copied to the clipboard.

This has been fixed and will appear after the next deployment, sometime next week.

Live now.

Thank you!


Allow @ in project URLs, fixes #1923

Fixes issue noted by @gabibguti :

I'd like OpenSSF Best Practices Badge Program form to accept URLs
with @ character as valid URLs because NPM package URLs are
like https://www.npmjs.com/package/@username/packagename.

Sigh, right in the middle of this fix we have some vulnerable dependencies reported. I've merged the fixes into this branch so that we can verify we get clean reports when we're done :-).


[Request] Allow the user to customize the hotkey

I think it would be great if the program allowed adjustments to the hotkey, even if it is only minor choices. For example, I think choosing between Alt+Backtick or Ctrl+Backtick would be extremely helpful to some. Personally, I have hand issues and for that reason I remap Ctrl to my Alt key (so I can use copy/paste/etc). Because of that, I'd like to use Ctrl+Backtick instead for the shortcut (so physically it's like I'm pressing Alt anyway!)
I can understand if allowing any key combination might be much more difficult to implement, so perhaps that's not as feasible of a request.

for the same reason, I had exchanged my ctrl and alt key... I think it is a very common behavior among mac users。
I want to use Ctrl+Backtick too.


SonarQube build summary now reports on quality gate status, too.

NB: This PR lacks its complete set of tests due to its large size (which is partially the result of duplicating files and partially due to updating the Node definitions file). Further test coverage is high-priority work and will be undertaken as soon as this is merged.

In this PR there is a new module, sonarqube-rest, which handles asynchronous RESTful access of the SonarQube web server API.
The current test framework uses a class TaskRunner that spawns a new process, invalidating any conventional test libraries for mocking HTTP requests.
In order to test sonarqube-rest, TaskRunner and its accompanying test-specific implementation of task-lib has been completely replaced by a new module "tasklib-wrapper" which allows the use of VSTS task library calls without being wrapped by the TaskRunner class. tasklib-wrapper dynamically switches between production and test code, allowing full unit testing on a method-by-method level.
Classes currently using the VSTS task library can switch to tasklib-wrapper by changing their import statement.

In addition, because of complexity in the common module system (/Tasks/Common/*), all sonarqube-common code has been copied to directories under /Tasks/Gradle/ and /Tasks/Maven/ respectively. This has the cost of needing to mirror changes across, but is the only way that methods in those modules can be tested.

Closing PR to undertake architectural changes.


Refactor codebooker logo

This PR refactors the codebooker logo. The following changes were made:

Removed the background from the logo in other to rid it of the watermark
Added animation
Added favicon

https://github.com/gbowne1/codebooker/assets/100074330/437e2c2a-e65c-45dd-9296-bfea589fce1a

@gbowne1 @LOGESH-B  please review this PR.


Google Gemini

Feature request
With Gemini Pro going GA today (Dec. 13th).
When can users of LangChain expect an update to use the new LLM?
Motivation
This will allow users of LangChain to use the latest LLM that Google is providing along with their safety settings.
Your contribution
I can try and help. Happy to contribute where needed

@ktibbs9417 check this: https://github.com/langchain-ai/langchain/pull/14621
You can run pip install langchain-google-genai to get started with this, note it was just added about 15 mins after you made this issue haha

Like @jamesbraza said, should be able to do this with langchain-google-genai. Let us know if you see any issues! Closing issue for now

You can also use ChatVertexAI with model_name gemini-pro

@dheerajiiitv Did you try it with ChatVertexAI? I tried to use it with ConversationalRetrievalChain.from_llm, but it's not working.

No, I am using System message. I can't use ChatVertexAi, you have to use
VertexAI
On Sat, Dec 16, 2023, 4:48 PM gpy1234 @.***> wrote:

@dheerajiiitv https://github.com/dheerajiiitv Did you try it with
ChatVertexAI? I tried to use it with ConversationalRetrievalChain.from_llm,
but it's not working.
—
Reply to this email directly, view it on GitHub
https://github.com/langchain-ai/langchain/issues/14671#issuecomment-1858793110,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFY7PMHXXFGG2CE7VW537WDYJV7PZAVCNFSM6AAAAABATU7VH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYG44TGMJRGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

No, I am using System message. I can't use ChatVertexAi, you have to use VertexAI
…
On Sat, Dec 16, 2023, 4:48 PM gpy1234 @.> wrote: @dheerajiiitv https://github.com/dheerajiiitv Did you try it with ChatVertexAI? I tried to use it with ConversationalRetrievalChain.from_llm, but it's not working. — Reply to this email directly, view it on GitHub <#14671 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFY7PMHXXFGG2CE7VW537WDYJV7PZAVCNFSM6AAAAABATU7VH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYG44TGMJRGA . You are receiving this because you were mentioned.Message ID: @.>

But in this comment, you mentioned, 'You can also use ChatVertexAI with the model_name gemini-pro.' I would like to use gemini-pro with LangChain's ConversationalRetrievalChain.from_llm

You can also use ChatVertexAI with model_name gemini-pro

I tried it, but it doesnt stream when incorporated into retrieval chain, it has streaming in its parameters but it doesnt stream, does it stream for you?

@JoAmps Seems still that way ever since the langchain google package was updated.  It got better for exception handling, but lost streaming once went to:
langchain-google-genai==0.0.6
google-generativeai==0.3.2

https://github.com/langchain-ai/langchain/pull/15459
https://github.com/h2oai/h2ogpt/commit/972d0b69813343290e219302e25f955bf482105c

I'm confused because I see most things related to this are closed, but not merged. What's the recommended route here? Should we abandon LLMChain since it's marked deprecated and use the new notation? Langchain is all pretty new to me so would love a little bit of clear direction.


DOCS-2035: Add example snippets to movement sensor, power sensor, sensor

@purplenicole730 Ooh I was unaware of this standardization. I personally don't see a problem with some comments being longer than others, since some methods require more explanation and some are highly self-explanatory. I'd like to leave those as they are if that's okay?


Error thrown with door sensor and Homebase 3

Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/eufy_security/blob/master/README.md
Describe the bug
When door sensor opens or closes an error is thrown in the addon. Could be related to schema change.
Have the new homebase 3. Everything updated.
2022-11-18 14:32:40.797  ERROR Station T8030P2_____ - CMD_NOTIFY_PAYLOAD Error:
{
  error: SyntaxError: Unexpected token  in JSON at position 35
      at JSON.parse (<anonymous>)
      at P2PClientProtocol.handleDataControl (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:1416:43)
      at P2PClientProtocol.handleData (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:1019:18)
      at P2PClientProtocol.parseDataMessage (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:1007:26)
      at P2PClientProtocol.handleMsg (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:839:26)
      at Socket.<anonymous> (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:1697:56)
      at Socket.emit (node:events:513:28)
      at UDP.onMessage [as onmessage] (node:dgram:930:8),
  payload: '{"cmd":1550,"payload":{"status":1}}\x00'
}

I am also getting this error on my brand new homebase 3:
2022-12-01 03:31:17.143  ERROR Station {ID}- CMD_NOTIFY_PAYLOAD Error:
{
error: SyntaxError: Unexpected token  in JSON at position 35
at JSON.parse ()
at P2PClientProtocol.handleDataControl (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:1416:43)
at P2PClientProtocol.handleData (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:1019:18)
at P2PClientProtocol.parseDataMessage (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:1007:26)
at P2PClientProtocol.handleMsg (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:839:26)
at Socket. (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:1697:56)
at Socket.emit (node:events:513:28)
at UDP.onMessage [as onmessage] (node:dgram:930:8),
payload: '{"cmd":1550,"payload":{"status":1}}\x00'
}

@fuatakgun ☝, still the same here as well.

https://github.com/fuatakgun/eufy_security/issues/591

@KyleDoherty1 , if you are interested, you can share these devices with me and I can debug.
Or, you can get the Alpha version of integration and see locally.

Updates from alpha version;

door sensor is created (I cannot test if it is reacting)
home base is also functional (switched between home to disarmed)

Did you enable the push notifications for door sensor events?

Ah see, please create an issue under eufy-security-ws repository with above error, it needs to be fixed down there


Animation not working on Localhost

Animations doesn't seems to work on localhost in any modern browser.
Using jQuery I tried addClass when hover, clicking, etc. But nothing seems to work.
I'm missing something?

I'll test this out for myself and see if I have the same issue. Have you checked your urls?

Post your HTML code, and I'm sure we could help, I've not had any problems using it locally.

Yeah, I tested it and I'm getting the same results as michaelw90, if anything this is some user error rather than the file.
Make sure to have this line in your  tag (though with the %path-to% either replaced with the path, or just using a relative path.)

I'm assuming this is an incorrect path of some sort. The animations have been tested on Chrome, Firefox, Safari and iOS both locally and remotely. Check your web inspector for errors.

+1: cannot get it working on localhost in dev chrome and latest safari. When I add an animate class to an element I can see the animate.css class styles are being applied in web inspector (it is definitely being loaded, path is correct and tag is exactly the same as above), yet no animation actually takes place.

Ok, I'll take a look into it. Mac or Windows?

Mac for me, thanks
Sent from my iPhone
On 11 Nov 2011, at 07:26, Dan Eden
<EMAIL_ADDRESS>wrote:

Ok, I'll take a look into it. Mac or Windows?

Reply to this email directly or view it on GitHub:
https://github.com/daneden/animate.css/issues/15#issuecomment-2705637

Wait a second, are you applying a class of 'animated' or declaring the duration etc yourself? The classes only call the animation names - you have to add 'animated' or declare the duration, timing function etc yourself.

I'm just applying a class of e.g 'shake' or 'flipy' etc... I just did
it how the example was? Did I miss something obvious!?

Yep I just re-read the docs, didn't notice the animated class first
time, just read the top part where it says simply add the class name
to your element. Silly me! Let me try again when I'm back at my
laptop..

Yep works fine with animated class. My bad ;)

Good to know =)


[Bug] Impossible, rules-unaware condition errors

CloudFormation Lint Version
1.11.0
What operating system are you using?
Mac pre-commit
Describe the bug
The reproduction template throws:
W1001 Ref to resource 'InternetGateway' that may not be available when condition 'ProvisionStack' is False and when condition 'ProvisionVpc' is True at Resources/InternetGatewayAttachment/Properties/InternetGatewayId

Specifically, the purported hypothetical situation

when condition 'ProvisionStack' is False and when condition 'ProvisionVpc' is True

is impossible per the ProvisionVpc rule.
Expected behavior
The lint should pass, without having to duplicate ProvisionVpc rule logic in
the ProvisionVpc condition. E.g. while updating the condition to:
  ProvisionVpc: !And
  - !Condition 'ProvisionStack'
  - !Equals
    - !Ref 'ProvisionVpc'
    - 'true'

results in a successful lint, this situation requires duplicate definitions
just to satisfy the linter, thus reducing maintainability.
Moreover, since cfn-lint's static analysis is based off of conditions instead
of rules (presumably, based on the reproduction template), templates that pass
lints might not preserve the intended behavior if a cascaded condition is added
without an accompanying duplicate rule.
Reproduction template
---
Conditions:
  ProvisionStack: !Equals
  - !Ref 'ProvisionStack'
  - 'true'
  ProvisionVpc: !Equals
  - !Ref 'ProvisionVpc'
  - 'true'
Parameters:
  ProvisionStack:
    AllowedValues:
    - 'false'
    - 'true'
    Type: 'String'
  ProvisionVpc:
    AllowedValues:
    - 'false'
    - 'true'
    Type: 'String'
Resources:
  InternetGateway:
    Condition: 'ProvisionStack'
    Type: 'AWS::EC2::InternetGateway'
  InternetGatewayAttachment:
    Condition: 'ProvisionVpc'
    Properties:
      InternetGatewayId: !Ref 'InternetGateway'
      VpcId: !Ref 'Vpc'
    Type: 'AWS::EC2::VPCGatewayAttachment'
  Vpc:
    Condition: 'ProvisionVpc'
    Properties:
      CidrBlock: '<IP_ADDRESS>/16'
    Type: 'AWS::EC2::VPC'
Rules:
  ProvisionVpc:
    Assertions:
    - Assert: !Or
      - Fn::Not: !Condition 'ProvisionVpc'
      - !Condition 'ProvisionStack'
...

Duplicate #1888. We would need to add support for Rules.

@kddejong unfortunately with v1.14.2 the reproduction template still throws the same error described above, despite #3634's inclusion in v1.12.0. Did you verify #3634 against the reproduction template?

Yea, but with the change of Fn::Not: !Condition 'ProvisionVpc' to Fn::Not: [!Condition 'ProvisionVpc']. I suppose it is possible the Rules version of the Fn::Not doesn't support a list but the docs say to use a list.

Also as provided by the CloudFormation service Template error: Fn::Not requires a list argument with one element

@kddejong thanks for the followup and for the docs references.
I updated a template I was actually using with the new list-based Fn::Not style and my lints passed, but then I was unable to deploy a changeset: it appears that !Condition is not a supported rule-specific intrinsic function, so I've filed #3710 accordingly

Working on the Condition portion of this today.


treemap

Quick sketch of a treemap mark and transform. TODO

[x] treemap layout
[x] value option
[x] tiling method option
[ ] labels
[ ] clipping for labels?
[ ] aspect ratio based on chart dimensions? or on default height?
[ ] rounding option (only makes sense when computing treemap in screen coordinates)
[ ] option for showing internal nodes (nested or cascading treemap)

I kind of wonder if this should be an initializer so that it can access the chart dimensions (and since in any case the x and y scales won’t be meaningful).

Love it!
As a random remark, if we let users specify their own tiling method, can we anticipate that some tiles might be generic polygons rather that rectangles (and maybe base this mark on Plot.geo in that case?). I'm thinking of @Kcnarf’s voronoi treemaps, of course.
We'll also need a strategy for faceting (maybe using frameAnchor decide where the facet with the smaller total aligns its treemap).
Link: this earlier experiment of a treemap plugin https://observablehq.com/@observablehq/plot-layouts-treemap-775 (#775).

I'm pushing a few experiments in #1732. We'll also need a strategy for faceting; in particular, the surface area between facets should be comparable—a proportion reducer would equalize the total area to 1 on each facet.


No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://<IP_ADDRESS>' is therefore not allowed access.

res file
import {Resource, ResourceParams} from "ng2-resource-rest";

import {Injectable} from "@angular/core";

// Make it Injectable
@Injectable()
// Decorate the your resource class
@ResourceParams({
  // Url to api
  url: 'https://query.yahooapis.com',
  headers:{
    // "X-CSRFToken":csrftoken,
    'Access-Control-Allow-Origin' :'*',
    'Access-Control-Allow-Methods':'POST, GET, OPTIONS',
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  },
  // Api path
  path: '/v1/public/yql'
})
export class YqlRes extends Resource {

}

ts code：
 getInfo(){
   let tsql='select * from json  where url="http://jsonplaceholder.typicode.com/posts"';
   this.yqlRes.get({q:tsql});

 }

then ' i got an error
XMLHttpRequest cannot load https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20json%20%20where%20url%3D%22http%3A%2F%2Fjsonplaceholder.typicode.com%2Fposts%22&format=json&diagnostics=true&callback=. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://<IP_ADDRESS>' is therefore not allowed access.
could you help me?
thank you very much

That kind of header should be send by server.
Please read here about that https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

thank you


Sums incorrect for Race variable at Association to all Features endpoint

This issue is to report that the sums are incorrect for the Race variable at the Association to all Features endpoint. I think this is due to the Unknown - ### issue and/or missing data.
Examples:

Column sums for races do not add up correctly, but row sums do.

Column and row sums for sexes do add up correctly (as do the sums for all other variables).

Looked into this issue and found that the reason that the numbers don't add up is that Other(2131-1) Race value is included in patient data but not specified in the Race feature variable in all features yaml file for PCD. This issue can be fixed by adding Other(2131-1) as one of valid values of the Race feature variable in all features yaml file or adding Other as one of valid values of the Race feature variable in all features yaml file, and icees-db can be updated to do inexact match to make Other(2131-1) Race in patient data to Other specified in all features yaml file.

Yeah, I remember the weird Other(2131-1) issue. (That's what I was incorrectly referring to as "Unknown - ###" issue.) The last time we discussed this, do you recall if we made any decisions on how to resolve the issue? It seems like we could either update the YAML file (again!!!), but that would mean keeping a confusing Other(2131-1) variable, or implement a hacky fix in which we simply change the name of Other(2131-1) to Other in the db?

I confirmed that Other(2131-1) is now being returned by ICEES. Closing issue as resolved ...


Issue in Automating your infrastructure deployments in the Cloud with Terraform and Azure Pipelines

Issue in Exercise 3: Deploy resources using Terraform (IaC) in Azure CD pipeline,
In step 9, The container name terraform is not available.

Hi @amalgireesh ,
The container name has to be entered as Terraform. It won't be listed. Sorry for the confusion. We will update the instructions in the lab document.
Thanks


add a gaze.from_file() facade

Description of the problem
Depending on the type of the file we need to call either gaze.from_asc(), gaze.from_csv() or gaze.from_ipc().
For future programmatic pipeline definitions, ideally written in a more general filetype independent way, a single function would be much nicer to use instead.
Description of a solution
The difficulty lies in resolving the completely different signatures, but we could just refactor dataset.dataset_files.load_gaze_file() into gaze.from_file() and reuse the DatasetDefinition. This would be sufficient for the ongoing work on general pipelines and if desired this can be refined with additional arguments in a follow up work.
One additional difficulty lies in resolving the if preprocessed branch in dataset.dataset_files.load_gaze_file().
I would propose to use a more descriptive argument instead of preprocessed, for example auto_nest: bool, and put the additional nesting at the end of from_file() regardless of the filetype.
Proposed signature:
def from_file(
        filepath: Path,
        *,
        definition: DatasetDefinition,
        meta: dict[str, Any] | None  = None,
        read_kwargs: dict[str, Any] | None = None,
        auto_nest: bool = False,
) -> GazeDataFrame:

But then I see that passing the column name attributes from the DatasetDefinition also wouldn't work.
So basically we need to find a way to get rid of the if preprocessed branch of code:
https://github.com/aeye-lab/pymovements/blob/cb9ef9571c5b24f7609928d18efc3ae2520c1d03/src/pymovements/dataset/dataset_files.py#L270-L330
A good alternative could be to move the if preprocessed branch to load_gaze_files() instead of having it in load_gaze_file().
Maybe that's the cleanest way for now, as it doesn't break any behavior and lends us some time on how we handle the nesting issue in cached preprocessed csv files. In the long run the issue could be resolved further by adding auto column detection during initialization of a GazeDataFrame.
Minimum acceptance criteria

[ ] write gaze.from_file()
[ ] refactor dataset.dataset_files.load_gaze_files() to use gaze.from_file()

#715 should be resolved first, and it would solve the auto nest issues and remove a large part of the if preprocessed branch.


Error in build npm install node-sass

I'm getting the following error message when trying to run my application's npm install, which uses the node-sass module which in turn uses node-gyp,
><EMAIL_ADDRESS>postinstall C:\Users\Cliente\source\repos\Integracao\Organiza.Portal.Web\node_modules\node-sass
> node scripts/build.js

Building: C:\Program Files\nodejs\node.exe C:\Users\Cliente\source\repos\Integracao\Organiza.Portal.Web\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   'C:\\Users\\Cliente\\source\\repos\\Integracao\\Organiza.Portal.Web\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "C:\Users\Cliente\.windows-build-tools\python27\python.exe" in the PATH
gyp verb `which` succeeded C:\Users\Cliente\.windows-build-tools\python27\python.exe C:\Users\Cliente\.windows-build-tools\python27\python.exe
gyp verb check python version `C:\Users\Cliente\.windows-build-tools\python27\python.exe -c "import sys; print "2.7.16
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 13.0.1
gyp verb command install [ '13.0.1' ]
gyp verb install input version string "13.0.1"
gyp verb install installing version: 13.0.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 13.0.1
gyp verb build dir attempting to create "build" dir: C:\Users\Cliente\source\repos\Integracao\Organiza.Portal.Web\node_modules\node-sass\build
gyp verb build dir "build" dir needed to be created? C:\Users\Cliente\source\repos\Integracao\Organiza.Portal.Web\node_modules\node-sass\build
gyp verb find vs2017 Found installation at: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
gyp verb find vs2017   - Found Microsoft.VisualStudio.Component.VC.Tools.x86.x64
gyp verb find vs2017   - Found Microsoft.VisualStudio.VC.MSBuild.Base
gyp verb find vs2017   - Found Microsoft.VisualStudio.Component.Windows10SDK.18362
gyp verb find vs2017   - Using this installation with Windows 10 SDK
gyp verb find vs2017 using installation: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\Users\Cliente\source\repos\Integracao\Organiza.Portal.Web\node_modules\node-sass\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\Users\Cliente\source\repos\Integracao\Organiza.Portal.Web\node_modules\node-sass\config.gypi
gyp verb common.gypi checking for gypi file: C:\Users\Cliente\source\repos\Integracao\Organiza.Portal.Web\node_modules\node-sass\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Users\Cliente\.windows-build-tools\python27\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\Cliente\\source\\repos\\Integracao\\Organiza.Portal.Web\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=2015',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Cliente\\source\\repos\\Integracao\\Organiza.Portal.Web\\node_modules\\node-sass\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Cliente\\source\\repos\\Integracao\\Organiza.Portal.Web\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Cliente\\.node-gyp\\13.0.1\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\Cliente\\.node-gyp\\13.0.1',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\Cliente\\source\\repos\\Integracao\\Organiza.Portal.Web\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\Cliente\\.node-gyp\\13.0.1\\<(target_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\Cliente\\source\\repos\\Integracao\\Organiza.Portal.Web\\node_modules\\node-sass',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\Cliente\\source\\repos\\Integracao\\Organiza.Portal.Web\\node_modules\\node-sass\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\Cliente\.node-gyp\13.0.1
gyp verb found first Solution file build/binding.sln
gyp verb using MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
gyp ERR! stack     at onErrorNT (internal/child_process.js:456:16)
gyp ERR! stack     at processTicksAndRejections (internal/process/task_queues.js:80:21)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Cliente\\source\\repos\\Integracao\\Organiza.Portal.Web\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\Cliente\source\repos\Integracao\Organiza.Portal.Web\node_modules\node-sass
gyp ERR! node -v v13.0.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR!     <https://github.com/nodejs/node-gyp/issues>
Build failed with error code: 7

same here.

Support for Visual Studio 2019 was added in node-gyp v5.0.0 by https://github.com/nodejs/node-gyp/pull/1762. It looks like node-sass would need to update the version of node-gyp it depends on: https://github.com/sass/node-sass/blob/fbc9ff5abc72d9bc22a3b0bc9fa902fc46c980f7/package.json#L67

I resolved by running the "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\vsdevcmd.bat" before npm install

same here. It doesn't seem to work with node 13

<EMAIL_ADDRESS>
vs. https://github.com/nodejs/node-gyp/blob/master/CHANGELOG.md

Hi, I get the same error on a azure pipeline build using a yarn task.

This is breaking my continuous integration pipeline.

This is breaking my continuous integration pipeline.

It calm me down that I'm not the only one ;)

Please publish:

node-gyp@???
node@???
Microsoft Visual Studio@???
Python@???

Closing as this isn't an issue with node-gyp and needs to be taken up with node-sass. node-gyp 5 (or 6) is required for Visual Studio 2019 support.

This is breaking my continuous integration pipeline.

I fixed this problem adding to the build phase a command line task forcing to install a specific version of node.
npm install -g<EMAIL_ADDRESS>

Not much we can do about Angular or node-sass here, please take it to their repos.
I appreciate the need for catharsis, but this is not an ideal place for it.

OK, thx.
"I appreciate the need for catharsis, but this is not an ideal place for it."
...that sounds really interesting!! ;-)

node-sass has min requirements on the node version itself.
see here: https://www.npmjs.com/package/node-sass

ok thx

The only one (quick?) solution was to downgrade to the latest 10.x version. But is there a solution, i can't always install and uninstall different node versions.

The only one (quick?) solution was to downgrade to the latest 10.x version. But is there a solution, i can't always install and uninstall different node versions.

Install NVM on your system it will list down all your installed node version in console by using "nvm llist" command and you can switch to your node version when needed by this command "nvm use NODE_VERSION"

ok thx

hmm getting this though on the right version of node

thank you for your information.

I was able to install node-sass by downgrading to node version 12 (I'm using Volta to manage versions on Windows)
Node version 14.16 and 15.x did not work for me.
I also installed Python v3 and made sure to add it to the env variables in Windows and also to the path. I am uncertain if it had any affect on the success.

ok thx

Node-sass is deprecated so it would be safer to migrate to an alternative.  https://sass-lang.com/blog/libsass-is-deprecated

what are you supposed to install?

I resolved it by running the "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\vsdevcmd.bat" before npm install

Thanks, i run LaunchDevCmd.bat on C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools, and cd to my root project from DevCmd and install<EMAIL_ADDRESS>it'is works... 🥳

yarn add node-sass worked.
what's weird is that i already tried "npm install node-sass" and "npm install -g node-sass" and it didnt work.

I have the same problem and I am using mac

I solved the error by uninstalling the Xcode program and installing node version 12.
https://nodejs.org/dist/latest-v12.x/

OK thx

in node 14 you can switch to sass .. this past year has seen two major library deprecations for me: node-sass and tslint
src: https://sass-lang.com/blog/libsass-is-deprecated
src: https://blog.palantir.com/tslint-in-2019-1a144c2317a9 (ts lint dep. was even older, but didnt effect for example angular until this year for me)


A problem about RuntimeError

when i finish my trainingand i want to use the checkpoints and configs test a picture,i met the following error:
File "make_result.py", line 40, in
result_ = inference_detector(model, img)
File "/home/dlrenzhenchao/mmdetection/mmdet/apis/inference.py", line 86, in inference_detector
result = model(return_loss=False, rescale=True, **data)
File "/home/dlrenzhenchao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in call
result = self.forward(*input, **kwargs)
File "/home/dlrenzhenchao/mmdetection/mmdet/core/fp16/decorators.py", line 49, in new_func
return old_func(*args, **kwargs)
File "/home/dlrenzhenchao/mmdetection/mmdet/models/detectors/base.py", line 140, in forward
return self.forward_test(img, img_meta, **kwargs)
File "/home/dlrenzhenchao/mmdetection/mmdet/models/detectors/base.py", line 123, in forward_test
return self.simple_test(imgs[0], img_metas[0], **kwargs)
File "/home/dlrenzhenchao/mmdetection/mmdet/models/detectors/cascade_rcnn.py", line 353, in simple_test
cls_score = sum(ms_scores) / self.num_stages
RuntimeError: The size of tensor a (81) must match the size of tensor b (11) at non-singleton dimension 1
i think maybe there is something wrong with the cascade_rnn.py ,but i dont know how to do

Please follow the Error report issue template.

I am facing the same error


What is the way of generating (min-width: 960px) with bs-css

Hi folks,
I was using Css.media(string, Css.rule) and wanted to compute  (min-width: 960px) with bs-css.
Initially my thought was that was possible because internally we have string_of_length, we also have  minWidth.
After trying a bit I did not found a way to do that.
Thank you for wrapping Glamor.
This is my first css in js (reason actually) experience.

module Styles = {
  let container = style([
    media("(min-with: 960px)", [ ... ])
  ]);
}

Its a primitive api atm. I still not quite sure how to implement media queries an a type safe way.

I hope this helped