No symbols found in Outline when in a multi-root workspace

I've reported the following bug to the MS-PLS tracker:
https://github.com/microsoft/python-language-server/issues/1536
But maybe it belongs here. I let you decide.
Environment data

VS Code version: 1.38.0
Extension version: 2019.9.34911
OS and version: Ubuntu 19.04
Python version: 3.7.3
Type of virtual environment used: N/A
Relevant/affected Python packages and their versions: XXX
Jedi or Language Server? Language Server

Expected behaviour
See link above.
Actual behaviour
See link above.
Steps to reproduce:

Create a workspace
Add a number of folders containing python projects
Open some file for each of the projects
See if outline is ok for every open file
Restart vscode and check again
Close and restart vscode with different active editors each time and check again

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
User belongs to experiment group 'ShowExtensionSurveyPrompt - control'
> conda --version
> pyenv root
> python3.7 -c "import sys;print(sys.executable)"
> python3.6 -c "import sys;print(sys.executable)"
> python3 -c "import sys;print(sys.executable)"
> python2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> /usr/bin/python3 -c "import sys;print(sys.executable)"
> conda info --json
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python2 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python2 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python2.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python2.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python3.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python3.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python2 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python2 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python2.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python2.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python3 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python3 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python3.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python3.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python2 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python2 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python2.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python2.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python3.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /usr/bin/python3.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python2 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python2 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python2.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python2.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python3 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python3 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python3.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
> /bin/python3.7 ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles/interpreterInfo.py
Starting Jedi Python language engine.
> /usr/bin/python3 -c "
import unittest
loader = unittest.TestLoader()
suites = loader.discover(".", pattern="test_*.py")
print("start") #Don't remove this line
for suite in suites._tests:
    for cls in suite._tests:
        try:
            for m in cls._tests:
                print(m.id())
        except:
            pass"
cwd: ~/Projects/Jampp/Gcd
> /usr/bin/python3 -c "
import unittest
loader = unittest.TestLoader()
suites = loader.discover(".", pattern="test_*.py")
print("start") #Don't remove this line
for suite in suites._tests:
    for cls in suite._tests:
        try:
            for m in cls._tests:
                print(m.id())
        except:
            pass"
cwd: ~/Projects/Jampp/Gcd
> conda info --json
> conda --version
> /usr/bin/python3 -m flake8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/Projects/Jampp/Gcd/setup.py
cwd: ~/Projects/Jampp/Gcd
> /usr/bin/python3 -m flake8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/Projects/Jampp/Gcd/setup.py
cwd: ~/Projects/Jampp/Gcd
##########Linting Output - flake8##########
> /usr/bin/python3 -c "import sys;print(sys.prefix)"
cwd: ~/Projects/Jampp/Gcd
> /usr/bin/python3 -c "import sys;print(sys.prefix)"
cwd: ~/Projects/Jampp/Gcd
> /usr/bin/python3 -c "import sys;print(sys.executable)"
cwd: ~/Projects/Jampp/Gcd
> /usr/bin/python3 -c "import sys;print(sys.executable)"
cwd: ~/Projects/Jampp/Gcd
> /usr/bin/python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/Projects/Jampp/Gcd
> /usr/bin/python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/Projects/Jampp/Gcd
> /usr/bin/python3 -m site --user-site
cwd: ~/Projects/Jampp/Gcd
> /usr/bin/python3 -m site --user-site
cwd: ~/Projects/Jampp/Gcd
> /usr/bin/python3 completion.py
cwd: ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles
> /usr/bin/python3 completion.py
cwd: ~/.vscode/extensions/ms-python.python-2019.9.34911/pythonFiles

Ok, as commented in https://github.com/microsoft/python-language-server/issues/1536#issuecomment-530494346, this seems to be a bug in vscode-python. A serious bug I would say because it kinda means that multi-root workspaces are not supported with the language server (?).

Related to https://github.com/Microsoft/vscode-python/issues/5132, if not dup

I think it's a dup but it's not making clear that it's strictly pls (not jedi) related and also it's a bit confusing by the fact it somehow relates the issue to venvs, which AFAICS have nothing to do with the problem (I'm not running inside a venv now and I can perfectly reproduce the issue).

Please could you provide more information on what is working and what isn't.
Please provide some sample code, screen shots.
I'd like to try to remote this at our end, without that it's difficult to tell what's working and what holes you have opened.
If possible provide a fit repo and a set of instructions to replicate the issue.
Are you opening files that don't belong to any of the 3 workspace folders? Or do they all belong to one of the three folders?

were doubling the effort.

It wasn't my intention, I let you both know that the issue was opened in both repositories, I thought it was better left to you to close one of them, but maybe it's preferable that you simply move issues between your repos, if that's possible.
Here you have a minimal example. It contains a two folder workspace. I have a configured a virtual environment in the venv folder, you will have to configure "python.pythonPath" accordingly, and maybe "python.venvPath". Then open both mod1.py and mod2.py. Run code when mod1.py was the last active tab before closing it, then switch to mod2.py and you should have no outline information. Similarly swapping mod1.py and mod2.py.
vstest.zip

@DonJayamanne please let me know if you need more info in order to reproduce the issue, since I still see the info-needed label.

I'm experiencing this issue too. I usually have multiple folders from a common root folder loaded into VS Code (as I frequently bounce between projects), and I've noticed the Outline function for Python files never works, usually just saying "The active editor cannot provide outline information" (very rarely saying no symbols were found in the file). Normally I run the extension remotely, but I've also tested this with it loaded locally, and accessing files locally and remotely, and at best the first Python file I open gets an outline, and the rest don't.  I've also checked multiple other languages (JS, JSON, CSS, etc.) on both local and remote, and none of them have any trouble with the outline. As soon as I remove all but one folder from the workspace, the outline fires up fine. Trying to restart the language server (or reloading the window for that matter) has zero effect while multiple folders are open.
I've noticed in the output window for Python, it gives me several different errors when multiple folders are open:

It can't find an active interpreter (I'm not sure why I have to keep re-specifying it after a reload when it doesn't change. Sometimes I have to reload the window again to get it to actually acknowledge the interpreter), even if one's shown as active at the bottom of the screen (i.e. the error pops up again when I open a new file).
It can't find settings.json (because it's looking in the wrong folder, such as in /project/.config/Code/User/settings.json instead of /project/.vscode/settings.json or /root/.vscode/settings.json, or it's using the wrong kind of slashes).
Or it can't find Python at all (only seems to happen if the extension is run locally).

The Language Server output remains blank as long as I've got multiple folders open.
Here's my setup info for reference:

VS Code version: 1.48.0
Extension version: 2020.8.101144 (Also tested with 2020.7.96456
OS and version: Local, Windows 10, remote: Ubuntu 16.04
Python version: Local, 3.8.1, remote: 3.5.2, 3.7.4, 3.8.2 (tested with all versions)
Type of virtual environment used: N/A
Relevant/affected Python packages and their versions: N/A (I think)
Jedi or Language Server? Language Server

Any insight would be appreciated. I'd prefer to not have to keep four copies of VS Code open most of the time. Thanks!

The issue is still persisting.
Having the same setup as described by @Allerka and @memeplex (albeit on newer versions of both VS Code and the extension, and using different OS). The issue starts as soon as you're adding a folder to the Workspace with the option File | Add Folder to Workspace....
So it's not just 'having different folders open', but it's really tied to the Workspace. As long as the Workspace is tied to one 'root' folder, there's no issue. Outline works correctly as can be verified by the using the command Go to Symbol in Editor or Go to Symbol in Workspace.
As soon as you add another folder to your Workspace with the option File | Add Folder to Workspace... - and thus effectively creating multi-root Workspace - the Outline doesn't work anymore. The command Go to Symbol in Editor will now display The active editor does not provide symbol information (and thus the reason that Outline info is not working, would be my guess). Removing the folder from the Workspace (and relaunching VS Code) again solves the issue.
The issue seems to be related to the Python extension, as the issue is not present with e.g. Markdown files.
My setup:

OS: Local, Windows 10 x64 10.0.21390 (system setup)
VS Code: Local, 1.56.2 (system setup)
Python Extension: ms-python.python 2021.5.842923320
Pylance Extension: ms-python.vscode-pylance 2021.6.0
Jupyter Extension: ms-toolsai.jupyter 2021.6.832593372
Using Language Server (Microsoft)

Any other useful info I should mention?

This is addressed with language server setting as JediLSP, but not in Pylance. In pylance already opened files don't get Outlines, but switching tabs and back seems to get the Outlines.


Cannot use expressions as iterables in loop

in python you can use
for self.attr in list
this translates to for (var self.attr of list) which gives syntax error.
Need to generate temporary variable for iteration and assign it to attribute inside loop on first line:
for (var temp_iter of list) {
    self.attr = temp_iter
    ...

in case where iterable is just an identifier, we can skip this extra assignment.

Another way could be to not write var when an object attribute accessor is used (or whatever Object.attribute is called). for SomeObject.attr in list would translate to for (SomeObject.attr of list).
Don't know which one is easier to implement.


TypeError: Attempted to assign to readonly property.

We are seeing TypeError: Attempted to assign to readonly property. in our error reporting at the location perfect-scrollbar.js:6:3736 on some Safari browsers running on MAC OS. (We are using perfect-scrollbar 1.5.0)
I think this is, because in drag_thumb.js the readonly property pageX (or pageY) of the mouse event is tried to be set when the condition touchMode && e.touches is truthy.

I'm getting this issue too, on my Iphone 6, IOS 12.4.1, chrome 84.0.4

Same error for me on iPhone 8, iOS 13.6.1, Safari.
The PR LGTM, please review, test and merge.

same issue here, IPhone 8 plus, Safari

I also see this on mobile Safari / iOS web view devices even on latest iOS.


Analysis to find excess transitive dependencies

a: b c
b: c

Here, a: c is excess, a: b and b: c is enough.

The plugin has been moved to https://github.com/JetBrains/intellij-plugins and is now bundled in CLion and GoLand.
This repository is no longer maintained, please submit all feature requests and bug reports to https://youtrack.jetbrains.com/issues/CPP


ARROW-5189: [Rust] [Parquet] Format / display individual fields within a parquet row

Hi,
I'm working on a simple cli app to sample and analyze parquet files.
And couldn't find simple way to get a simple string representation of each column within a Row.
All Fields in a row already implement fmt::Display but there is now way to format individual fields.
Since the Row#fields  is not exposed by the api. Which i assume is by design.
Having a way to format individual fields seems like a common problem,
so I came up with a RowFormatter which provides a way to access the field as a fmt::Display.
use parquet::record::RowFormatter;

// ...

let row = make_row(vec![
    ("id".to_string(), Field::Int(5)),
    ("name".to_string(), Field::Str("abc".to_string()))
]);

println!("row id   : {}", row.fmt(0).unwrap());
println!("row name : {}", row.fmt(1).unwrap());

I'm just getting started with Rust so please let me know if i can do anything better here..

Hi and welcome @FabioBatSilva!
May you please take a few minutes to read the project's latest contribution guide, then create a JIRA ticket at (https://issues.apache.org/jira/ARROW).
After that, you should rename your PR to ARROW-XXXX: [Rust] [Parquet] XXXX while replacing the XXXX with the appropriate info.
Thanks

Can you just use get_XXX for the formatting?
use parquet::record::RowAccessor;

// ...

let row = make_row(vec![
    ("id".to_string(), Field::Int(5)),
    ("name".to_string(), Field::Str("abc".to_string()))
]);

println!("row id   : {}", row.get_int(0).unwrap());
println!("row name : {}", row.get_string(1).unwrap());

@sunchao Yes..
Maybe is just my lack of rust / the row api knowledge
but to do that you have to know what type the filed is and use get_xxx  and get field value..

Yes, you'd need to know the schema before you can access any field from the row. However this is expected if the client wants to do any meaningful processing on an individual column.
Let me know if the above solution can satisfy your requirement. Right now I'm not seeing a strong reason to add this new feature.

@sunchao  Did some tests here and formatting whit get_xxx  is not aways possible..
Since you are formatting the underlining data with a field not the field it self..
While Field implements Display
Map and other underlying data structures might not..
println!("map : {}", row.get_map(i).unwrap());
     ^^^^^^^^^^^^^^^^^^^^^^^ `record::api::Map` cannot be formatted with the default formatter

The problem i think this solves is when you don't know or don't care about the schema.
In my case i'm reading arbitrary parquet files and need to get a string representation for some columns within a row..
for i in 0..row.len() {
    println!("row[{}] : {}", i, row.fmt(i).unwrap());
}

To do the same thing using get_xxx first you need to lookup the type in the schema and have a different branch for each type invoking get_xxx and then maybe format it if the underlining data implements Display.
for i in 0..row.len() {
    look_up_type(schema, i) {
        PhysicalType::INT32 => println!("row[{}] : {}", i, row.get_int(i).unwrap()),
        PhysicalType::BYTE_ARRAY => println!("row[{}] : {}", i, row.get_string(i).unwrap()),
        // ...
        _ => panic!("Unsupported type")
    }
}

Maybe this is just specific to what i'm trying to do but if fells like there should be a simpler way to format a single column.

Thanks !


Zero index checkbox and radio in bootstrap templates

We should mirror the change made in core. See - https://github.com/django-crispy-forms/django-crispy-forms/pull/1141

Fixed in 2d6e42a92c920bf1bf158864c1d94a9ee4ffd5a1


User reports Open shortcut no longer works after latest Maccy update

Before Submitting Your Bug Report

[x] I have verified that there isn't already an issue reporting the same bug to prevent duplication.
[x] I have seen the FAQ.

Maccy Version (see 'About' window)
2.1.0
macOS Version
15.0.1
Maccy Settings
{
  "KeyboardShortcuts_delete" = "{\\"carbonKeyCode\\":51,\\"carbonModifiers\\":2048}";
  "KeyboardShortcuts_pin" = "{\\"carbonKeyCode\\":35,\\"carbonModifiers\\":2048}";
  "KeyboardShortcuts_popup" = "{\\"carbonKeyCode\\":11,\\"carbonModifiers\\":2048}";
  "LaunchAtLogin__hasMigrated" = 1;
  "NSStatusItem Preferred Position Item-0" = 469;
  "NSStatusItem Visible Item-1" = 0;
  "NSWindow Frame SUStatusFrame" = "-1480 896 400 134 -2560 -65 2560 1415 ";
  "NSWindow Frame SUUpdateAlert" = "-1590 697 620 398 -2560 -65 2560 1415 ";
  "NSWindow Frame com.sindresorhus.Preferences.FrameAutosaveName" = "-1551 557 542 436 -2560 -65 2560 1415 ";
  "NSWindow Frame com.sindresorhus.Settings.FrameAutosaveName" = "479 324 510 421 0 0 1440 875 ";
  SUEnableAutomaticChecks = 1;
  SUHasLaunchedBefore = 1;
  SULastCheckTime = "2024-10-24 16:57:45 +0000";
  SUUpdateGroupIdentifier =<PHONE_NUMBER>;
  WebKitDefaultFontSize = 13;
  WebKitJavaScriptEnabled = 0;
  WebKitPluginsEnabled = 0;
  WebKitStandardFont = "-apple-system-font";
  WebKitUserStyleSheetEnabledPreferenceKey = 1;
  WebKitUserStyleSheetLocationPreferenceKey = "/Applications/Maccy.app/Contents/Frameworks/Sparkle.framework/Resources/ReleaseNotesColorStyle.css";
  avoidTakingFocus = 1;
  enabledPasteboardTypes =   (
    "public.html",
    "public.png",
    "public.utf8-plain-text",
    "public.tiff",
    "public.rtf"
  );
  ignoredPasteboardTypes =   (
    "com.agilebits.onepassword",
    "com.typeit4me.clipping",
    "Pasteboard generator type",
    "net.antelle.keeweb",
    "de.petermaurer.TransientPasteboardType"
  );
  menuIcon = maccy;
  migrations =   {
    "2024-07-01-version-2" = 1;
  };
  pasteByDefault = 1;
  showFooter = 1;
  showSearch = 1;
  showTitle = 1;
  windowSize = "[450,800]";
}

Description
A user in my org who uses Maccy is reporting that the Open shortcut (Option+B) no longer works, and changing the shortcut to something else also does not work. Here's exactly what they said:
"Hey! Since I installed the updated required in my MAC, my Maccy App has not been working the way it’s supposed to. It’s supposed to open automatically with option B “ ∫” but it does nothing. When opening it manually it does work, but it considerably slows down my work flow. I’ve had this issue since last week and have tried quitting and restarting the app, changing the open command to another one (another letter or command instead of option), restarting the laptop, turning it off and off again and comparing the preferences setting specifications to my co-workers to see if anything was different on my end, and I did update the maccy version as well to the latest one.  None of this has worked yet disappointed face I’ve tried this at home and in the office so wi-fi not seems to be related, what can be going on?"
I have also instructed them to delete the app and re-install with no luck.
Steps to Reproduce
No response

That's macOS Sequoia limitation, you can read more in #813


Change connector wording per docs team

Description of changes:
This PR changes the name of the link on the bottom of the page from "AWS Connector" to "AWS EKS Connector" , per a request from the docs team. While I was in there, I changed some of the other wording as well.

/lgtm


macOS: installer cannot find sha512sum

On macOS the experience is not super smooth yet it seems :p
First try: I was confused because nothing was happened - but actually the output is mangled (notice where Password is displayed):
❯ sudo bash < <(curl -L https://github.com/tarides/ocaml-platform-installer/releases/latest/download/installer.sh)

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Password:
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  4488  100  4488    0     0   2347      0  0:00:01  0:00:01 --:--:--  5212

Second try: it goes a bit further but then fail because of a missing sha512sum:
❯ sudo bash < <(curl -L https://github.com/tarides/ocaml-platform-installer/releases/latest/download/installer.sh)
[...]
=> Download ocaml-platform-0.1.0-macos-x86_64.tar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2820k  100 2820k    0     0  1236k      0  0:00:02  0:00:02 --:--:-- 1674k
bash: line 87: sha512sum: command not found

Ideally, we wouldn't have to depend on external tools like sha512sum. I don't think the opam installer depends on it, right? How do they do checksums?

I have a fix for the mangled prompt and for the sha512sum command: https://github.com/tarides/ocaml-platform-installer/pull/77
The Opam installer simply don't check if the command it needs isn't available (and it uses an even more uncommon commands, openssl).
Checking the consistency of downloaded archives is a good practice but not required when using https. Skipping the check is fine but I'd be curious to know first if a distro don't have shasum (distributed with perl) installed by default.


Add the handling of flux quantities #2.

Rebases #481 onto dev.

@pgbrodrick @jammont This PR is now a clean rebase of #481 onto dev with a clear overview of the introduced changes. Sorry for the confusion, I should be more careful with merging base branches into PR branches. That would actually follow Kevin's suggestion.

@pgbrodrick Good idea! Duly added. In this case, I think we don't need the general rt_mode check in the RadiativeTransferEngine init anymore. It's only required when loading the information from a prebuilt LUT file.

Thanks for that update - looks good to me.  @jammont, on to you for a quick review.


⚠ Samsung has degraded performance

In 114426a, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2430 ms

Resolved: Samsung performance has improved in fad4ecb.


Unstable API subscribe_transaction

Steps to Reproduce Issue
My local node supports WebSocket as it is configured with jsonrpc-server-type: both.

code:

    let ws = SuiClientBuilder::default()
        .ws_url("ws://localhost:9000")
        .build("http://localhost:9000")
        .await?;
    println!("WS version {:?}", ws.api_version());

    let mut sub = ws
        .read_api()
        .subscribe_transaction(TransactionFilter::MoveFunction {
            package: "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb"
                .parse()?,
            module: None,
            function: None,
        })
        .await?;

    while let Some(tx) = sub.next().await {
        println!("{:?}", tx);
    }

cmd:

cargo run --example transaction_subscription

Expected Result
Expected to receive new SuiTransactionBlockEffects
Actual Result
Initially, this API was working, but after some time, it started returning the following error:
WS version "1.37.0"
Error: RPC call failed: ErrorObject { code: InvalidParams, message: "Invalid params", data: None }

Caused by:
    RPC call failed: ErrorObject { code: InvalidParams, message: "Invalid params", data: None }

System Information

OS: Ubuntu 24.04
Compiler: rustc 1.82.0 (f6e511eec 2024-10-15)

You might need to restart the service, it is known that at times it just fails. Another option is to look at the number of connections, and set it to something like 500?

You might need to restart the service, it is known that at times it just fails. Another option is to look at the number of connections, and set it to something like 500?

Thanks a lot! How do I set the max-connections? I can't find the setting in the fullnode.yaml

Try this?
indexer-max-subscriptions: 500


split project syntax

We don't need Foldable[F] in order to get x.project, so we're creating
two different syntax classes, one providing project method and other
providing all the foldable-like operations

LGTM if we can get the build to pass.

Not sure why it failed. I'm rerunning it.

I solved this in #94 with this: https://github.com/andyscott/droste/pull/94/files#diff-6090ab885f012136e60f7ccdbff850b1 WDYT?


WIP: New command to move AccountClaims and Account CRs back into Ready state

This is a WIP branch to track work for OSD-11087, remediation of an AWS Account Operator Issue.

@fahlmant This worked as intended, but I'm wondering if we should just close this PR without merging.  Hopefully we'll never need this feature again.  Thoughts?

/close
I think we can close this unless the need arises again


Merge carlossanlop/main with jeffhandley/retain-directives

@jeffhandley I pulled all the changes in main into a copy of your branch, and this is the result.
If you're ok with that, let's work on this branch from now on. I will leave some comments summarizing what's new.

Next step: Figure out why the Roslyn VSInstance code is not working... again. I updated the dependencies, but I'm still having trouble getting it to work.

@carlossanlop @jeffhandley I've been trying to fix tests but it's painfully slow and at times I get completely lost... Am I moving in the right direction?


Focus editor for undo after some actions in menu

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes
I fixed #3758.
Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[x] I have run grunt to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Coverage remained the same at 68.311% when pulling cee287da99f1533b0a88c0ed74f95de906e74e8c on kazuhitoyokoi:master-fixundo into c8e4df94f9989e56abd7630ae5db03e3b6148b6a on node-red:master.


Add export to standard OpenDocument format (ODF)

Feature Request
Is your feature request related to a problem or unsupported use case? Please describe.
At Nubo (interministerial cloud of DGFiP) we don’t even have access to the Office suite, so no Word document. We only use LibreOffice, which should be the de facto go-to format for word processing documents. Right now, we are unable to use the Impress as we cannot export documents to .odt format.
Describe the solution you'd like
Add export option to ODT file format (ideally prioritize it).
I see it is already in the roadmap (https://github.com/orgs/numerique-gouv/projects/13/views/1?filterQuery=odt&pane=issue&itemId=86564553 and https://github.com/orgs/numerique-gouv/projects/13/views/1?filterQuery=odt&pane=issue&itemId=86564864), but it has a status of draft. It’d be great if it could have a higher priority, so that I can recommend it.

@virgile-dev OOXML (Microsoft’s "open" standard) is not and will most likely never be fully supported by any free software due to the complexity of its implementation. In addition, it has three different flavors used in the wild (ECMA, Transitional, and Strict), when two of them should be deprecated, bringing inconsistencies between format versions and incompatibility that even the proprietary vendor cannot resolve itself.
This, concretely, means that when sharing DOCX documents, not only will they probably be incompatible between public agents’ computers, but also citizens’ ones as you cannot guess which version of Word they have, and if it supports the format you sent.
As a matter of fact, quickly looking at the source of the example document named "🎓 Guide de démarrage sur Docs", it looks like it is using Transitional format, which is not the one really intended to be the ISO standard (though it is a proper standard…). More here: https://interoperable-europe.ec.europa.eu/collection/open-source-observatory-osor/document/complex-singularity-versus-openness and here https://fr.wikipedia.org/wiki/Office_Open_XML. Also, I insist on that: https://fr.wikipedia.org/wiki/Office_Open_XML#L'aveu_même_de_Microsoft_:_ODF_a_clairement_gagné
So the question is: why bother use DOCX when ODF exists and is an open, reliable standard? Especially when making open source software :wink:
It’d be really nice to prioritize ODF over DOCX for all those reasons.


VidoeCLIP MMPT: pre-trained S3D not available

In the MMPT README it says  "We use pre-trained S3D for video feature extraction. Please place the models as pretrained_models/s3d_dict.npy and pretrained_models/s3d_howto100m.pth."
The original author of this work has been inactive for quite some time and the links for the weights don't work anymore:
wget https://www.rocq.inria.fr/cluster-willow/amiech/howto100m/s3d_howto100m.pth
wget https://www.rocq.inria.fr/cluster-willow/amiech/howto100m/s3d_dict.npy

Could someone who has them downloaded make them available?

Same Issue!


Update grounded_sam_demo.py

Enable the use of vit_l and vit_b with sam_hq in grounded_sam_demo.py.

Thank you so much for helping us improve our code!


$PROFILE support for PowerShell

fixes #139
This adds $PROFILE support to the PowerShell subkernel - it uses a PowerShell internal method called GetFullProfileFileName which get's the proper path (the logic in PowerShell is surprisingly complex...)
The result is:
CurentUserCurrentHost:
/Users/tyleonha/.config/powershell/Microsoft.dotnet-interactive_profile.ps1

AllUsersCurrentHost:
/Users/tyleonha/.dotnet/tools/.store/microsoft.dotnet-interactive/0.0.0/microsoft.dotnet-interactive/0.0.0/tools/netcoreapp3.1/any/runtimes/unix/lib/netcoreapp3.1/Microsoft.dotnet-interactive_profile.ps1

We might only need the first but we can decide here - it's easy to take out.
Also, #139 was with a conflicting idea with whether we should run the CurrentUserAllHosts profile since this is another Host... however, since there is not real prompt, this could lead to bad things...so I think we should defer that for now.
If you think this is the right approach, I can probably add a test or 2 for it as well.

Yes, please add tests. :smile:

I will before this is merged :) just want to make sure @daxian-dbw agrees with this plan.

No I agree with you, @daxian-dbw . Let's do something different.
Should I add a Pwsh property on the kernel?
Or maybe I should make the profile paths internal and then move RunProfileAsNeeded into the kernel?

@daxian-dbw I've refactored a bit so that pwsh isn't passed in anywhere. Let me know what you think.

@TylerLeonhardt I'm glad that you agree to refactor the code further within this PR. Then I have the following suggestions:

Instead of using pwsh.Runspace...SetVariable, how about doing it even earlier in the InitialSessionState setting?
This way no need to pass around pwsh. Something like this:

var iss = InitialSessionState.CreateDefault2();
if(Platform.IsWindows)
{
    // This sets the execution policy on Windows to RemoteSigned.
    iss.ExecutionPolicy = ExecutionPolicy.RemoteSigned;
}

var profileValue = DollarProfileHelper.GetProfileValue();
iss.Add(new SessionStateVariableEntry("PROFILE", profileValue));

var runspace = RunspaceFactory.CreateRunspace(_psHost, iss);
...

RunSubmitCodeLocally should be kept private, because output/error rendering works properly only if it's called within a codesubmit context. So the use and visibility of it should be restricted. There are 2 options that I can think of:

Move RunProfilesAsNeeded to PowerShellKernel.cs. This will work, and then HasRunProfiles can be made a private field and _allUsersCurrentHost and _currentUserCurrentHost should be made internal static.
Try out the DeferCommand. It's used a lot in this repo as a way to initialize the kernel by running a deferred command. So we can try defer a command to execute a profile file. (I don't know for sure if this will work, but possible and elegant if it works 😄)
Take the CSharpKernel extension method UseKernelHelpers as an example:
https://github.com/dotnet/interactive/blob/23866dcff025086c3f41bb6a00e4119a642588c1/Microsoft.DotNet.Interactive.CSharp/CSharpKernelExtensions.cs#L36-L46

Ok @daxian-dbw! I've addressed all your feedback.


Input and weight type error

OS: Windows 11
Additional info: I use a Python VENV
<All keys matched successfully>
Traceback (most recent call last):
  File "D:\Programme\AICoverGen\src\main.py", line 192, in <module>
    cover_path = song_cover_pipeline(args.youtube_link, rvc_dirname, args.pitch_change)
  File "D:\Programme\AICoverGen\src\main.py", line 164, in song_cover_pipeline
    ai_vocals_path = voice_change(voice_model, main_vocals_dereverb_path, pitch_change)
  File "D:\Programme\AICoverGen\src\main.py", line 104, in voice_change
    rvc_infer(rvc_index_path, vocals_path, output_path, pitch_change, cpt, version, net_g, tgt_sr, vc, hubert_model)
  File "D:\Programme\AICoverGen\src\rvc.py", line 147, in rvc_infer
    audio_opt = vc.pipeline(hubert_model, net_g, 0, audio, input_path, times, pitch_change, 'crepe', index_path, 0.7, if_f0, 3, tgt_sr, 0, 0.25, version, 0.33, f0_file=None)
  File "D:\Programme\AICoverGen\src\vc_infer_pipeline.py", line 347, in pipeline
    self.vc(
  File "D:\Programme\AICoverGen\src\vc_infer_pipeline.py", line 185, in vc
    logits = model.extract_features(**inputs)
  File "D:\Programme\AICoverGen\venv\lib\site-packages\fairseq\models\hubert\hubert.py", line 535, in extract_features
    res = self.forward(
  File "D:\Programme\AICoverGen\venv\lib\site-packages\fairseq\models\hubert\hubert.py", line 437, in forward
    features = self.forward_features(source)
  File "D:\Programme\AICoverGen\venv\lib\site-packages\fairseq\models\hubert\hubert.py", line 392, in forward_features
    features = self.feature_extractor(source)
  File "D:\Programme\AICoverGen\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "D:\Programme\AICoverGen\venv\lib\site-packages\fairseq\models\wav2vec\wav2vec2.py", line 895, in forward
    x = conv(x)
  File "D:\Programme\AICoverGen\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "D:\Programme\AICoverGen\venv\lib\site-packages\torch\nn\modules\container.py", line 217, in forward
    input = module(input)
  File "D:\Programme\AICoverGen\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "D:\Programme\AICoverGen\venv\lib\site-packages\torch\nn\modules\conv.py", line 313, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "D:\Programme\AICoverGen\venv\lib\site-packages\torch\nn\modules\conv.py", line 309, in _conv_forward
    return F.conv1d(input, weight, bias, self.stride,
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.cuda.HalfTensor) should be the same

Is the rvc model you're using trained using RVC V2?

I got it from the AI HUB Discord and it is tagged with RVC v2

What's GPU are you using?

GTX 1070 (Palit dual version)

I have made some fixes, so could you try pulling those and testing the program again?

Now its stuck on <All keys matched successfully>

Yah it takes time for the rvc voice change to run

As I have a 3060, it only takes less than a minute. For a 1070, it might take more than a minute

It is there for 10 minutes now with a about 1 minute and and 20 seconds clip sound like it's stuck to me, espically when considiring that another RVC based software that I used before that can also be used as a realtime voice changer and a clip of the same length took about 1 minute to process

Hmm yah that shouldn't take THAT long. Can you check if the program is using your gpu when it reaches the all keys matched successfully part? Like open task manager and monitor the gpu memory usage.

It is using my GPU, but instead of constantly using it it's more like 0% - 91% - 0% - 91% and that switches every second

I can do that, and I will also try running it using the WSL

Ah, it's done it just takes ages for some reason

Lol did it take more than 10 minutes?

I will stop the time on the next run, but I would say the reason why it's so slow is because it switches between 0% and 90%

uhh I just noticed the output file is 9 minutes for some reason

It took 3 minutes from start to finish with an input file of 2 Minutes and 22 Seconds

Is the YouTube video from a playlist perhaps? For the output file of 9 minutes

It took 3 minutes from start to finish with an input file of 2 Minutes and 22 Seconds

This seems about right

Is the YouTube video from a playlist perhaps? For the output file of 9 minutes

No

Do subsequent generations have this issue?


Fix logo squashing

PR Checklist

[x] Please add a description of your changes.
[ ] We need your changes to come with unit tests in order to keep this project in quality and easy to maintain.
[x] Please add a link to the open issue or task that this pull request will resolve.
[ ] Add a note to the changelog to indicate the change.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

If yes please indicate it and migration info into the CHANGELOG.md file.

closes #196

Review can be made here: https://github.com/pioardi/poolifier/blob/issue-196/README.md
Please check it with e.g. Chromes mobile simulator

I found out that on small screens like iPhone X you have 340px in width
So I resized the image virtually by 0.34 on both axis


Automatic placing of node icon

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes
I added the functionality to changes the icon location according to input and output ports. Especially, it is for  subflow and function nodes which  always have icon on the left side.

Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the mailing list/slack team.
[x] I have run grunt to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Coverage increased (+0.04%) to 76.424% when pulling f80b17202272a3d221612a35d316c067840b3006 on kazuhitoyokoi:dev-nodeiconalign into 308d6889a754e0650e1f9904f2d13d83cda9dce3 on node-red:dev.

Thanks! Have added a further commit on this that keeps the appearance of the subflow node in the palette up to date as you edit it.

@knolleary Thank you. I checked the appearance changes of the subflow node in the palette. It looks great!