build failed while fetching metadata on private bitbucket repo

Hi,
I tried to build a go project with private bitbucket repos as dependencies. This can't be done, because gogradle tries to fetch metadata from a private bitbucket repo and receives a 403 error.
12:11:00.241 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader@4a08c8885 pairs: {GET /2.0/repositories/xxx/xxx HTTP/1.1: null}{User-Agent: Go-http-client/1.1 Java/1.8.0_121}{Host: api.bitbucket.org}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: keep-alive}
(I removed the repo and replaced it with xxx)
Based on this https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html a basic auth user and password should be provided

OK, thank you for your information, I have tested Gogradle only with public repo in bitbucket and I will look into this.

@siklol  Sorry for the late response, but now you can declare a private repository as described here:
repositories {
    golang {
        root ~/bitbucket\.org\/myprivaterepo\/[\w-]+/
        vcs 'hg'
        url {
            "ssh://hg@bitbucket.org/myprivaterepo/${it.split('/')[2]}"
        }

    }
}

Hope that helps.

@blindpirate I tried your configuration but it still receives an 403 error.
I think the problem exists in bitbuckets api. Fetching metadata from it via http requests result in the 403 error. You need to specifiy a user and password via basic auth to fix it.
Could you please have a look at it again? Thanks for the help! Really appreciate it

Do you mind telling me the name of your repository and your repository declarations in your build.gradle? I think the repository declaration doesn't match your private repository name.
In my design, if you declared a repository as described above, Gogradle will totally know where to fetch the code then it don't have to request bitbucket api for that information any more.

Oh, did you put repository declaration ahead of your dependencies declaration?

Hi @blindpirate
I created a test build with a test repo:
`import com.github.blindpirate.gogradle.Go
plugins {
id 'com.github.blindpirate.gogradle' version '0.4.2'
}
repositories {
golang {
root ~/bitbucket.org/veitosiander/[\w-]+/
vcs 'git'
url {
"ssh://git@bitbucket.org:veitosiander/${it.split('/')[2]}"
}
}

}
golang {
packagePath = 'bitbucket.org/veitosiander/test-bot'
goVersion = '1.8'
goRoot = '/usr/lib/go/'
}
dependencies {
golang {
build 'github.com/anaskhan96/soup'
build 'bitbucket.org/veitosiander/de.private.gogradle'
}
}`
Could you pinpoint my error? Still getting 403 errors

Regular expression ~/bitbucket\.org\/veitosiander\/[\w-]+/ cannot match bitbucket.org/veitosiander/de.private.gogradle. You should use ~/bitbucket\.org\/veitosiander\/[\w.]+/

Thanks! This seems to work. But I get a new problem now:
08:17:40.654 [DEBUG] [com.github.blindpirate.gogradle.util.logging.DebugLogMethodInterceptor] Entering method produce of class DefaultPackagePathResolver$$EnhancerByGuice$$fa185ffb, the arguments is [bitbucket.org/veitosiander/de.private.gogradle] 08:17:40.655 [DEBUG] [com.github.blindpirate.gogradle.util.logging.DebugLogMethodInterceptor] Exiting method produce of class DefaultPackagePathResolver$$EnhancerByGuice$$fa185ffb, total time is 0.772 ms, exception is [ClassCastException]org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String 08:17:40.656 [DEBUG] [com.github.blindpirate.gogradle.util.logging.DebugLogMethodInterceptor] Exiting method convert of class DefaultNotationConverter$$EnhancerByGuice$$64689a45, total time is 1.313 ms, exception is [ClassCastException]org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String 08:17:40.656 [DEBUG] [org.gradle.configuration.project.BuildScriptProcessor] Timing: Running the build script took 0.117 secs 08:17:40.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]  08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]  08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where: 08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file '/home/vosiander/go/src/bitbucket.org/veitosiander/rent-bot/build.gradle' line: 27 08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]  08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred evaluating root project 'rent-bot'. 08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String 08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]  08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try: 08:17:40.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.

It seems a misuse of Groovy GString. What's there in '/home/vosiander/go/src/bitbucket.org/veitosiander/rent-bot/build.gradle' line: 27? Try to add toString() to that GString like this:
"I am a GString with ${value}".toString()

It's still the same gradle.build file I uploaded earlier. Adding toString() does not work.
It seems to me that the dependency resolver uses the local path but then fails with the error message from above. I tried renaming my project from rent-bot to rentbot and the error message changed to "rentbot".
Do you have any idea?

Try to add toString() in repositories like this:
repositories {
    golang {
        root ~/bitbucket\.org\/veitosiander\/[\w.]+/
        vcs 'git'
        url {
            "ssh://git@bitbucket.org:veitosiander/${it.split('/')[2]}".toString()
        }

    }
}

I didn't take GString return value into consideration, and I will fix it in the next release. Thank you for it.

Hello!
Sorry, but this still doesn't work with my (work) repositories. I did the regex you mentioned (even simpler ones) and it still does get the 403 error. Could you add some specific code which handles bitbucket repos?

So you mean it works with your test repository bitbucket.org/veitosiander/de.private.gogradle but fails to work with your "working repositories"? What if you just try a string instead of regex like this:
repositories {
       golang {
              root 'bitbucket.org/my/privaterepo1'
              url 'ssh://git@bitbucket.org:my/privaterepo1'
       }

       golang {
              root 'bitbucket.org/my/privaterepo2'
              url 'ssh://git@bitbucket.org:my/privaterepo2'
       }

       ....
}

Hi, I would close this for the moment, please reopen it if there's any further question.


Exclude deleted entries from list view

@dvenkatr Is this the list of Kulu users displayed under the Invite tab?

Will be taken care of as part of tasks from https://github.com/nilenso/kulu-backend/issues/13


Package updates

I updated all packages with npm-check-updates
Changelog

added 2 packages node-sass and phantomjs because 'peerDependencies' (npm/npm#6565)
loader-utils: fixed stylesheet link from index.html (#14)
eslint: fixed configuration  from package.json

"true" is not a valid value
set global mode

supplied a license field to package.json according README.md (MIT)

avoid warning when running npm

npm install: ok
npm run test: ok
npm run start: ok
npm run build: ok
node version: v0.12.6
npm version: v2.12.1

This looks great! Thanks a lot. I'll take a deeper looks this evening and will merge.

travis build: https://travis-ci.org/badsyntax/react-seed/builds/70236602

Thank again, good to see all the latest packages working nicely together!


defmt-test build fails for non-CortexM thumb targets

Our team is using defmt-test as a foundation for several unit and integration tests. Our target processor is a Cortex R core, and we build for the following architecture targets:
armv8r-none-eabihf
thumbv8r-none-eabihf
Most of our development occurred while building and testing with armv8r-...; we have only recently started using thumbv8r-.... When we made the switch to thumb, our test builds started failing with the following error:
   Compiling cortex-m v0.7.7
error: failed to run custom build command for `cortex-m v0.7.7`

Caused by:
  process didn't exit successfully: `/workdir/build/debug/build/cortex-m-73e6882762cfa3ea/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /opt/cargo/registry/src/index.crates.io-6f17d22bba15001f/cortex-m-0.7.7/build.rs:25:10:
  called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

At first we wondered why the cortex-m crate was even being built for a non-CortexM target architecture (armv8r), but then we looked at the defmt-test dependencies in Cargo.toml:
[dependencies]
cortex-m-rt = "0.7"
cortex-m-semihosting = "0.5"
...

Looking further into the issue, we found that switching from arm to thumb target invokes this code in the build of the cortex-m crate:
    if target.starts_with("thumb") {
        ...
        fs::copy(
            format!("bin/{}{}.a", target, suffix),
            out_dir.join(format!("lib{}.a", name)),
        )
        .unwrap();
        ...
    }

This unwrap() is panicking because it is looking for a .a file that does not exist, because the crate is being built for an incompatible target architecture. With armv8r (i.e. target.starts_with("thumb") is false), this part of the build script is never invoked and the build succeeds.
Overall, we are wondering if you would consider removing this hard dependency on the cortex M crates from defmt-test. Perhaps you could put this behind a default feature flag that could be turned off when using armv8r or similar target architectures. We have had great success using defmt-test so far. That is, our test binaries build and execute successfully with the main() provided by defmt-test, when built for armv8r. We would like to continue using and building more tests upon the defmt-test foundation. However, we also would like to build for thumbv8r, and without forking the defmt repo there is currently no way we can think of to do this. In our minds there should be a way for us to "opt out" of the Cortex M requirement here.
Thank you for your consideration.

Thanks for your reply!
I will consult with my team and see what we want to do. Stay tuned.


Can we use ProviderContainer to get multiple provider ?

I have some providers like firstProvider and secondProvider and I want to access it inside a pure dart class. e.g :
class MainViewMode{ }

So my question is that can we use a single instance of ProviderContainer to access multiple providers, e.g :
class MainViewModel{

  final container = ProviderContainer();
  var first = container.read(firstProvider);
  var second = container.read(secondProvider);

}

I got this doubt as its mentioned in the docs not to reuse the instance of ProviderContainer between tests. So I thought does the above example works or not.

I'm not sure what's the purpose of this code

I'm not sure what's the purpose of this code

I'm not sure what's the purpose of this code

I use MVVM pattern where view depends on it's respective view model only. So if I have multiple services like Api service and data base services then my view model should depend on them. So I need  inject the dependencies into the view model. As of now I had used get_it for this, but I want to use RiverPod as it stated it can be read without any context and on.

I'm not sure what's the purpose of this code

I use MVVM pattern where view depends on it's respective view model only. So if I have multiple services like Api service and data base services then my view model should depend on them. So I need  inject the dependencies into the view model. As of now I had used get_it for this, but I want to use RiverPod as it stated it can be read without any context and on.

I'm not sure what's the purpose of this code

I use MVVM pattern where view depends on it's respective view model only. So if I have multiple services like Api service and data base services then my view model should depend on them. So I need inject the dependencies into the view model. As of now I had used get_it for this, but I want to use RiverPod as it stated it can be read without any context and on.

What do you need is to use a Provider for the ViewModel, then you can access to all the dependencies it has.
Example:
`dart
class MainViewModel{
final First first;
final Second second;
MainViewModel(this.first, this.second);
}
final mainViewModelProvider = Provider(
(ref) => MainViewModel(
first: ref.watch(firstProvider),
second: ref.watch(secondProvider),
),
);
`

I'm not sure what's the purpose of this code

I use MVVM pattern where view depends on it's respective view model only. So if I have multiple services like Api service and data base services then my view model should depend on them. So I need inject the dependencies into the view model. As of now I had used get_it for this, but I want to use RiverPod as it stated it can be read without any context and on.

What do you need is to use a Provider for the ViewModel, then you can access to all the dependencies it has.
Example:
`dart
class MainViewModel{
final First first;
final Second second;
MainViewModel(this.first, this.second);
}
final mainViewModelProvider = Provider(
(ref) => MainViewModel(
first: ref.watch(firstProvider),
second: ref.watch(secondProvider),
),
);
`

I see little to no value in such object.
I'd recommend straight-up reading the providers in your view. Your providers are your ViewModel

I see little to no value in such object.
I'd recommend straight-up reading the providers in your view. Your providers are your ViewModel

I'm not sure what's the purpose of this code

I use MVVM pattern where view depends on it's respective view model only. So if I have multiple services like Api service and data base services then my view model should depend on them. So I need inject the dependencies into the view model. As of now I had used get_it for this, but I want to use RiverPod as it stated it can be read without any context and on.

What do you need is to use a Provider for the ViewModel, then you can access to all the dependencies it has.
Example:
`
class MainViewModel{
final First first;
final Second second;
MainViewModel(this.first, this.second);
}
final mainViewModelProvider = Provider(
(ref) => MainViewModel(
first: ref.watch(firstProvider),
second: ref.watch(secondProvider),
),
);
`

Why we are injecting the dependencies using constructor although RiverPod works like a service locator. I would inject the dependencies directly inside the view model.

I'm not sure what's the purpose of this code

I use MVVM pattern where view depends on it's respective view model only. So if I have multiple services like Api service and data base services then my view model should depend on them. So I need inject the dependencies into the view model. As of now I had used get_it for this, but I want to use RiverPod as it stated it can be read without any context and on.

What do you need is to use a Provider for the ViewModel, then you can access to all the dependencies it has.
Example:
`
class MainViewModel{
final First first;
final Second second;
MainViewModel(this.first, this.second);
}
final mainViewModelProvider = Provider(
(ref) => MainViewModel(
first: ref.watch(firstProvider),
second: ref.watch(secondProvider),
),
);
`

Why we are injecting the dependencies using constructor although RiverPod works like a service locator. I would inject the dependencies directly inside the view model.

I see little to no value in such object.
I'd recommend straight-up reading the providers in your view. Your providers are your ViewModel

😅 We going off topic, I needed to only that can we use a single instance of ProviderContainer to read multiple Providers ?

I see little to no value in such object.
I'd recommend straight-up reading the providers in your view. Your providers are your ViewModel

😅 We going off topic, I needed to only that can we use a single instance of ProviderContainer to read multiple Providers ?

Why we are injecting the dependencies using constructor although RiverPod works like a service locator. I would inject the dependencies directly inside the view model.

Inject dependencies through constructor is a common DI pattern. In this case is the better way to keep classes as agnostic as possible. If you didn't like this, you can send as parameter only the ref object and then use it for access dynamically to all Providers do you need.

Why we are injecting the dependencies using constructor although RiverPod works like a service locator. I would inject the dependencies directly inside the view model.

Inject dependencies through constructor is a common DI pattern. In this case is the better way to keep classes as agnostic as possible. If you didn't like this, you can send as parameter only the ref object and then use it for access dynamically to all Providers do you need.


Remove unused UIKit custom matchers

When trying to use PCK in a Quick spec via import PivotalCoreKit the build fails.

Could not build Objective-C module 'PivotalCoreKit'

which leads to the following error message on UIKitMatchers.h:3.

'ComparatorsBase.h' file not found

Removing this file fixes the issue and does not cause any tests to fail. While this might be covering up a larger issue, it also looks like it cleans up some dead code.
Thoughts?

Thanks Joe.


⚠ Bofrost.de has degraded performance

In 9c91e94, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1241 ms

Resolved: Bofrost.de performance has improved in e4ac78a.


feat: IPC transport (UNIX domain socket)

Warning: this is a breaking API change. -> No it's not after #78!
Added the IPC transport type, backed by tokio::net::UnixStream. This required an abstraction over the Transport address type, which is now handled by a trait Address:
/// A trait for address types that can be used by any transport.
pub trait Address: Clone + Debug + Send + Sync + Unpin + Hash + Eq + 'static {}

/// IP address types, used for TCP and QUIC transports.
impl Address for SocketAddr {}

/// File system path, used for IPC transport.
impl Address for PathBuf {}

// trait with generic address
pub trait Transport<A: Address> { ... }

This is because IPC sockets bind to actual filesystem paths rather than IP addresses.
For this reason, now most sockets have a generic Transport<A: Address> impl block, plus an impl with the Transport<SocketAddr> concrete type and same for Transport<PathBuf>.
Benchmarks
Added benchmarks to our criterion suite.


TerrainProvider support

Need to create a terrain provider directive - unfortunately you'll have to rebuild the cesium globe in order to alter the terrain provider.

Maybe this should instead be integrated into the layer picker so that we don't have to rebuild the globe....


[fftw3] Fix build, cleanup

Fixes #https://github.com/microsoft/vcpkg/issues/32808, fftw3l build errors with avx2/avx/sse2 features. (Alternative to #32865, CC @JonLiu1993.)
Adds fftw*_omp to the exported targets in namespace FFTW. (Not an official export, but the namespace and short target names are official, so there isn't much room for alternatives.) Fixes #10194.
Cleanup. Drop obsolete patches. Use unique log file names.

@Kaltxi

tested successfully by fftw3[avx2,threads]:x64-linux


Previous Question: Differences in Codes H35000 and H41400

Detail the end difference between the two. One is ordered "pursuant to the rule," and the other is "without objection"

Code H42300 is also used in conjunction with "Pursuant to the rule" with no immediate difference between itself and H35000.
Need to find the difference between the two, or possibly count it as a miscoding in the House code.


Upgrade SignarR client

When I upgrade signalr client the HubConnection can’t compile as it says the constructor takes 0 parameters so how do I now set the URL

Worked it out need to use HubConnectionBuilder.
Maybe you should update your code to use the new approach.
The article was really helpful by the way.


Do not use Guava's Throwables.propagate()

It is going to be deprecated in Guava 20. Explanation: https://github.com/google/guava/wiki/ThrowablesExplained#uses-for-throwablespropagate

Any of the checked boxes below indicate that I took action:

[ ] Reviewed the Contribution Guidelines.
[ ] Signed the Gradle CLA.
[ ] Ensured that basic checks pass: ./gradlew quickCheck

For all non-trivial changes that modify the behavior or public API:

[ ] Before submitting a pull request, I started a discussion on the Gradle developer list,
the forum or can reference a JIRA issue.
[ ] I considered writing a design document. A design document can be
brief but explains the use case or problem you are trying to solve,
touches on the planned implementation approach as well as the test cases
that verify the behavior. Optimally, design documents should be submitted
as a separate pull request. Samples
can be found in the Gradle GitHub repository. Please let us know if you need help with
creating the design document. We are happy to help!
[ ] The pull request contains an appropriate level of unit and integration
test coverage to verify the behavior. Before submitting the pull request
I ran a build on your local machine via the command
./gradlew quickCheck <impacted-subproject>:check.
[ ] The pull request updates the Gradle documentation like user guide,
DSL reference and Javadocs where applicable.

This has been in progress for a couple weeks now. @lptr is this abandoned or do we intend to complete this soon?


Need to stop behavior ; Extra default style added to each tag , and commentize none HTML tags like </#list>

Hi
Explanation
Am using news-letter-preset its cooool
Problem
I have un desired behavior
More Info About The Problem
Check below two links and try do export can you tell the difference here is a screen shot :)
with gjs-preset-newsletter plugin https://jsfiddle.net/shareefhiasat/Lup78L17/5/
with gjs-blocks-basic plugin https://jsfiddle.net/shareefhiasat/4q3kxthj/1/
So What ?
Its the same fiddle ; the only difference is the plugin
What is Expected
I expect no extra attributes like style to be added to the tag in my content

UPDATE
I could stop the style from appearing but there is extra double quotations now check this
( How like this by commenting css , ( i have no idea what is the impact of this so please advise )  )

Now Another Problem

These double quotations is wrong in free marker syntax render in back end .
@artf can you advise thanks
In Short
Original code that must stay as is
<#assign currentDate=. now></#assign>
Becomes
<#assign currentDate="." now="">
And this is wrong , throws exception , not correct syntax !
UPDATE
After alot of more tries, i decided to try adding it as component now its ok
after i commented this line
https://github.com/artf/grapesjs-preset-newsletter/blob/601ad471b29c2ffb08bc07ad9c8ecc0b6064dd21/src/openExportCommand.js#L44
And replace with
codeViewer.setContent(tmpl);
But still there is a problem which is </#list> dose not appear on screen or source of HTML why.
https://jsfiddle.net/3xhqkc96/12/
@rgcarrasqueira  @santiph  @artf

The parser
here
https://github.com/artf/grapesjs/blob/f74791da68b25d1037502a2ad06093da29e25830/src/parser/index.js#L49
Discardes my end tags for the free marker like </#list> </#assign>

Hi all ; @rgcarrasqueira @santiph @artf  any chance to advise here thanks
I ended up now creating component for each part and resave  the template that way it is ok but lot of work, i believe there is easier way please help.
Thanks


Dropout robustness

predict 5 times with dropout activated, and compute the score, this gives some kind of robustness about the entities

closed via https://github.com/helpmefindaname/ner-eval-dashboard/pull/31


Feature/add form field fragments

Codecov Report

Merging #12 into master will decrease coverage by 2.91%.
The diff coverage is 82.60%.

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
- Coverage   99.06%   96.15%   -2.92%
==========================================
  Files           8       10       +2
  Lines         107      130      +23
  Branches       36       41       +5
==========================================
+ Hits          106      125      +19
- Misses          1        4       +3
- Partials        0        1       +1

Impacted Files
Coverage Δ

src/fragments/Select/index.jsx
81.81% <81.81%> (ø)

src/fragments/Input/index.jsx
83.33% <83.33%> (ø)

Continue to review full report at Codecov.

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


Add fractions to list of characters to replace.

Folds all the characters in https://unicodelookup.com/#vulgar fraction/1 to ASCII representations.

npm complained about package.lock being out-of-date when I ran npm install, so I included the changes it made. If you would like me to remove all changes to package.lock for this PR, I am happy to do so.


Specify source directory other than src

Problem
Allowing to specify the source folder as . instead of src would be especially helpful for workspace projects with a lot of packages where having that extra src folder in every package is a bit clunky and counter productive, see screenshot:

Proposed Solution
No response
Notes
No response

Hi,
Thanks for feedback!
This actually duplicates #173, so I will close this issue now, but we will review your concerns when working on that.


Fix J2Predictor for tz-aware dates

Coverage decreased (-0.5%) to 94.583% when pulling 94a4a86622059204cdaef9926beb3279a175d6d3 on Juanlu001:fix-j2-tz into d4ec34d34a596b3dd2567aab232809d7f364cbcf on satellogic:master.


placeholder prop

great library! any chance for a placeholder prop?
thanks!

Thank you for your opinion.
I pushed a new code to REPO for support placeholder prop.
Now you can use placeholder prop (on v.0.3.8)! Please update your NPM package

looks great thank you!


Consider installing embedded Python on Windows

Python is not installed by default on Windows, and overall, the installation is a hassle.
Therefore, the ESP-IDF installation script (PowerShell) for Windows installs an embedded Python instance in the ~/.espressif directory.

We might do the same during the native cargo-first build when installing other stuff in the .espressif directory.
We might even consider doing this for the PlatformIO build, even though it is not completely clear where exactly the Python instance should be uncompressed then (in ~/.platformio?).

native build
I'd prefer if we would make this opt-in instead of opt-out, for example we could add a --install-python to the (yet to be created) cargo-espidf tool for the people that really don't want to install python by themselves.
But tell me what you think.


Intermittently, cells hang with: "No interpreter for Pylance for Notebook URI"

Opening an interactivate window in a workspace with a kernel selected in the top-right hangs without even a "thinking" clock icon.  Occasionally VSCode was bringing up  a notification box that no kernel was associated with the notebook, but as I hopped between workspaces and opened the interactive window differently (e.g. "Run file in Interactive Window"), that wasn't a reliable indicator and I haven't seen it in the last dozen or so times I've opened workspaces/reinstalled the jupyter extension to demonstrate the issue.
I tried reloading the extension and restarting VSCode, but that didn't work.  Uninstalling and reinstalling the extension did, for that workspace only.  Likewise, upgrading to the pre-release version of the Jupyter extension solved the problem for that workspace only.  Upgrading to pre-release of Pylance did not solve the issue.
Environment data

VS Code version: 1.87.0
Jupyter Extension version (available under the Extensions sidebar): v2024.2.2024022602 (pre-release) and v2024.2.0
Python Extension version (available under the Extensions sidebar): v2024.2.1
OS (Windows | Mac | Linux distro) and version: 6.5.0-21-generic; Ubuntu 22.04.1 Jammy Jellyfish
Python and/or Anaconda version: 3.12.1 and 3.10.12
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Jupyter server running: Local | Remote | Local

Expected behaviour
Cells run
Actual behaviour
Cells hang.  Apparently culpable line in log:
12:37:51.675 [info] No interpreter for Pylance for Notebook URI "/Interactive-1.interactive"

Steps to reproduce:
I tried creating a new workspace and environment to get an MWE, but the problem didn't recur.  Here is an image of what I'm seeing in the interactive window:

Logs

 Jupyter VSCode verbose logs
12:10:21.417 [info] Starting interactive window for resource '' with controller '.jvsc74a57bd0dc8f877a7a49103d927e43d8befe50604ba0afe2a23a0672a8c9991226efe377.~/github/gen-experiments/env/python.~/github/gen-experiments/env/python.-m#ipykernel_launcher (Interactive)'
12:10:21.522 [debug] No controller, hence notebook communications cannot be initialized for editor /Interactive-1.interactive
12:10:21.922 [debug] Interactive Window Editor Created: untitled:/Interactive-1.interactive with input box: vscode-interactive-input:/InteractiveInput-1
12:10:21.930 [debug] start the kernel, options.disableUI=false for /Interactive-1.interactive
12:10:21.952 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0dc8f877a7a49103d927e43d8befe50604ba0afe2a23a0672a8c9991226efe377.~/github/gen-experiments/env/python.~/github/gen-experiments/env/python.-m#ipykernel_launcher  (Python Path: ~/github/gen-experiments/env/bin/python, Venv, env, 3.12.1) for '/Interactive-1.interactive' (disableUI=false)
12:10:21.955 [debug] Creating raw notebook for resource '/Interactive-1.interactive'
12:10:21.989 [debug] Getting activated env variables, Class name = yp (started execution), Arg 1: "/Interactive-1.interactive", Arg 2: "~/github/gen-experiments/env/bin/python", Arg 3: undefined
12:10:21.989 [debug] Get Custom Env Variables, Class name = Rm (started execution), Arg 1: "/Interactive-1.interactive", Arg 2: "RunPythonCode"
12:10:21.991 [debug] Get Custom Env Variables, Class name = Rm, completed in 2ms, has a truthy return value, Arg 1: "/Interactive-1.interactive", Arg 2: "RunPythonCode"
12:10:22.025 [debug] Launching kernel .jvsc74a57bd0dc8f877a7a49103d927e43d8befe50604ba0afe2a23a0672a8c9991226efe377.~/github/gen-experiments/env/python.~/github/gen-experiments/env/python.-m#ipykernel_launcher for /Interactive-1.interactive in ~/github/gen-experiments with ports 9001, 9000, 9004, 9002, 9003
12:10:22.473 [debug] Got env vars with python ~/github/gen-experiments/env/bin/python, with env var count 74 in 484ms.
    PATH value is ~/github/gen-experiments/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/go/bin and
    Path value is undefined
12:10:22.473 [debug] Prepend PATH with python bin for ~/github/gen-experiments/env/bin/python
12:10:22.474 [debug] Activated Env Variables for ~/github/gen-experiments/env/bin/python,
    PATH value is ~/github/gen-experiments/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/go/bin and
    Path value is undefined
12:10:22.475 [debug] Getting activated env variables, Class name = yp, completed in 486ms, has a truthy return value, Arg 1: "/Interactive-1.interactive", Arg 2: "~/github/gen-experiments/env/bin/python", Arg 3: undefined
12:10:22.557 [info] Process Execution: ~/github/gen-experiments/env/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
12:10:22.557 [debug] Kernel Env Variables for ~/.vscode/extensions/ms-toolsai.jupyter-2024.2.0-linux-x64/temp/jupyter/kernels/python3121jvsc74a57bd0dc8f877a7a49103d927e43d8befe50604ba0afe2a23a0672a8c9991226efe377/kernel.json, PATH value is ~/github/gen-experiments/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/go/bin
12:10:22.623 [info] Process Execution: ~/github/gen-experiments/env/bin/python -m ipykernel_launcher --f=~/.local/share/jupyter/runtime/kernel-v2-8396ee2SMiIMBCqC.json
    > cwd: ~/github/gen-experiments
12:10:22.623 [info] Kernel process 8757.
12:10:23.251 [debug] ipykernel version & path 6.29.2, ~/github/gen-experiments/env/lib/python3.12/site-packages/ipykernel/__init__.py for ~/github/gen-experiments/env/bin/python
12:10:23.678 [warn] StdErr from Kernel Process 0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
12:10:23.678 [debug] KernelProcess error: 0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.

12:10:23.767 [debug] Kernel output: NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.

To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.

To read more about this, see https://github.com/ipython/ipython/issues/2049

To connect another client to this kernel, use:
    --existing kernel-v2-8396ee2SMiIMBCqC.json

12:10:23.909 [debug] Waiting for Raw Session to be ready in postStartRawSession
12:10:23.909 [debug] Waiting for Raw session to be ready, status: connected
12:10:23.909 [debug] Raw session connected
12:10:23.909 [debug] Waiting for Raw session to be ready
12:10:23.911 [debug] Waited for Raw session to be ready & got status: connected
12:10:23.912 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
12:10:23.912 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
12:10:23.912 [debug] Sending request for kernelInfo
12:10:23.953 [debug] Got response for requestKernelInfo
12:10:23.953 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 41ms
12:10:23.971 [debug] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
12:10:23.997 [debug] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
12:10:23.997 [debug] End sendTelemetryForPythonKernelExecutable after 26ms
12:10:23.998 [debug] Started running kernel initialization for /Interactive-1.interactive
12:10:23.999 [debug] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
12:10:24.009 [debug] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 0 output(s)
12:10:24.009 [debug] Determined IPyWidgets Version as undefined
12:10:24.014 [debug] Executing silently Code (idle) = import types as _VSCODE_types\nimport os\nimport hashlib as _VSCODE_hashlib\nfrom IPython import get_ip
12:10:24.063 [debug] Executing silently Code (completed) = import types as _VSCODE_types\nimport os\nimport hashlib as _VSCODE_hashlib\nfrom IPython import get_ip with 0 output(s)
12:10:24.064 [debug] Requesting Kernel info
12:10:24.064 [debug] Got Kernel info
12:10:24.065 [debug] End running kernel initialization, now waiting for idle
12:10:24.065 [debug] Waiting for idle on (kernel): 21d6a8ef-68b9-4ad8-b12d-8f875324cf4c -> idle
12:10:24.065 [debug] Finished waiting for idle on (kernel): 21d6a8ef-68b9-4ad8-b12d-8f875324cf4c -> idle
12:10:24.065 [debug] End running kernel initialization, session is idle
12:10:24.075 [info] Registering Kernel Completion Provider from kernel env (Python 3.12.1) for language python
12:10:30.564 [info] No interpreter for Pylance for Notebook URI "/Interactive-1.interactive"
12:10:30.586 [info] Handle Execution of Cells 1 for /Interactive-1.interactive

Thanks for filling this issue and sorry you are running into this
If and when you do run into this issue
Please can you

Take a screenshot
Capture the logs again

Please she the above

Please can you

Take a screenshot
Capture the logs again

Please she the above

Thanks for the quick response.  The original screenshot and logs were from an isolated VSCode session in order to provide clean logs, so new ones would look identical.  What is missing from the screenshot/logs, or what would you want me to do differently?  Was there supposed to be a third step?

Thanks

I do not see you running any cells, please can you replicate this with some text in the cell and then run it.
Based on the logs you are trying to run a cell, but given the cell is empty, i'm not sure I understand the workflow

pace with a kernel selected in the top-right hangs without even a "thinking" clock

What do you mean by hangs?
This is what I'm struggling to understand,

is VS Code frozen and you are not able to do anything else at all (i.e. cannot open files, cannot type into an editor, etc)
Or are you inferring this based on some UI element (please could you elaborate)
thanks

~/.local/share/jupyter/kernels/0530078540366062831988326/kernel.json

Question 1
You seem to have a tonne of kernels on your machine.
Please can you delete or move all the files from your kernels folder into a separate location (have it empty).
Then try again and see if that makes a difference.
Question 2
Did you create these manually? Do you have any idea how they ended up there?
Curious to understand how users

Ah, interesting!  A package I wrote runs experiments as jupyter notebooks in memory, saving the result as html.  It was creating a new kernel with a random name for each run, as I think kernel_name was once a required argument to nbconvert.preprocessors.ExecutePreprocessor.  But it isn't now, so I think I can get rid of it, or at least have the process clean up the kernels it makes.

Thank you!  It looks like deleting those kernels makes it work!

 New logs
Visual Studio Code (1.87.0, undefined, desktop)
Jupyter Extension Version: 2024.2.0.
Python Extension Version: 2024.2.1.
Pylance Extension Version: 2024.2.106.
Platform: linux (x64).
Workspace folder ~/github/pysindy, Home = /home/jake
13:40:39.848 [debug] Get Custom Env Variables, Class name = Rm (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
13:40:39.849 [info] Start refreshing Kernel Picker<PHONE_NUMBER>849)
13:40:39.864 [info] Using Pylance
13:40:39.923 [debug] Get Custom Env Variables, Class name = Rm, completed in 75ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
13:40:39.923 [debug] Jupyter Paths /kernels:
13:40:39.923 [debug] Kernel Spec Root Paths, /usr/share/jupyter/kernels, /usr/local/share/jupyter/kernels, ~/.local/share/jupyter/kernels
13:40:39.927 [debug] Search for KernelSpecs in Interpreter ~/github/pysindy/env/bin/python
13:40:39.927 [debug] Finding Global Python KernelSpecs
13:40:39.931 [debug] Getting activated env variables, Class name = yp (started execution), Arg 1: "~/github/pysindy", Arg 2: "~/github/pysindy/env/bin/python", Arg 3: undefined
13:40:39.931 [debug] Get Custom Env Variables, Class name = Rm (started execution), Arg 1: "~/github/pysindy", Arg 2: "RunPythonCode"
13:40:39.933 [debug] Get Custom Env Variables, Class name = Rm, completed in 2ms, has a truthy return value, Arg 1: "~/github/pysindy", Arg 2: "RunPythonCode"
13:40:39.945 [debug] Search for KernelSpecs in Interpreter /usr/local/bin/python3.12
13:40:39.950 [debug] Search for KernelSpecs in Interpreter /bin/python3
13:40:39.956 [debug] Search for KernelSpecs in Interpreter /usr/bin/python3
13:40:39.961 [debug] Search for KernelSpecs in Interpreter /usr/local/bin/python3.11
13:40:39.967 [debug] Search for KernelSpecs in Interpreter /usr/local/bin/python3.8
13:40:39.979 [debug] Full interpreter list is length: 6, ~/github/pysindy/env/bin/python:env:Venv:~/github/pysindy/env/bin/python, /usr/local/bin/python3.12::Unknown:/usr/local/bin/python3.12, /bin/python3::Unknown:/bin/python3, /usr/bin/python3::Unknown:/usr/bin/python3, /usr/local/bin/python3.11::Unknown:/usr/local/bin/python3.11, /usr/local/bin/python3.8::Unknown:/usr/local/bin/python3.8
13:40:40.007 [info] Starting interactive window for resource '' with controller '.jvsc74a57bd0af2b7ca702bc007d49e4815451e788ef9429217bc2294f2515f5d80739c8b71b.~/github/pysindy/env/python.~/github/pysindy/env/python.-m#ipykernel_launcher (Interactive)'
13:40:40.080 [debug] Kernels for interpreter /usr/local/bin/python3.12 are .jvsc74a57bd0f1062708a37074d70712b695aadee582e0b0b9f95f45576b5521424137d05fec./usr/local/bin/python3.12./usr/local/bin/python3.12.-m#ipykernel_launcher
13:40:40.081 [debug] Kernels for interpreter /bin/python3 are .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher
13:40:40.083 [debug] Kernels for interpreter /usr/bin/python3 are .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher
13:40:40.085 [debug] Kernels for interpreter /usr/local/bin/python3.11 are .jvsc74a57bd01a1af0ee75eeea9e2e1ee996c87e7a2b11a0bebd85af04bb136d915cefc0abce./usr/local/bin/python3.11./usr/local/bin/python3.11.-m#ipykernel_launcher
13:40:40.088 [debug] Kernels for interpreter /usr/local/bin/python3.8 are .jvsc74a57bd00adcc2737ebf6a4a119f135174df96668767fca1ef1112612db5ecadf2b6d608./usr/local/bin/python3.8./usr/local/bin/python3.8.-m#ipykernel_launcher
13:40:40.107 [debug] Loading kernelspec from ~/github/pysindy/env/share/jupyter/kernels/python3/kernel.json for ~/github/pysindy/env/bin/python
13:40:40.122 [debug] Conda file returned by Python Extension is conda
13:40:40.200 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'python31012jvsc74a57bd0af2b7ca702bc007d49e4815451e788ef9429217bc2294f2515f5d80739c8b71b', /python for interpreter ~/github/pysindy/env/bin/python and spec ~/github/pysindy/env/share/jupyter/kernels/python3/kernel.json
13:40:40.200 [debug] Kernels for interpreter ~/github/pysindy/env/bin/python are .jvsc74a57bd0af2b7ca702bc007d49e4815451e788ef9429217bc2294f2515f5d80739c8b71b.~/github/pysindy/env/python.~/github/pysindy/env/python.-m#ipykernel_launcher
13:40:40.357 [info] Start refreshing Interpreter Kernel Picker
13:40:40.391 [debug] No controller, hence notebook communications cannot be initialized for editor /Interactive-1.interactive
13:40:40.506 [debug] Got env vars with python ~/github/pysindy/env/bin/python, with env var count 75 in 575ms.
    PATH value is ~/github/pysindy/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/go/bin and
    Path value is undefined
13:40:40.506 [debug] Prepend PATH with python bin for ~/github/pysindy/env/bin/python
13:40:40.506 [debug] Activated Env Variables for ~/github/pysindy/env/bin/python,
    PATH value is ~/github/pysindy/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/go/bin and
    Path value is undefined
13:40:40.506 [debug] Getting activated env variables, Class name = yp, completed in 575ms, has a truthy return value, Arg 1: "~/github/pysindy", Arg 2: "~/github/pysindy/env/bin/python", Arg 3: undefined
13:40:40.522 [info] Process Execution: ~/github/pysindy/env/bin/python -m pip list
13:40:40.524 [debug] Initialize notebook communications for editor /Interactive-1.interactive
13:40:40.525 [debug] Resolving notebook UI Comms (resolve) for /Interactive-1.interactive
13:40:40.525 [debug] initialize CommonMessageCoordinator
13:40:40.537 [debug] IPyWidgetMessageDispatcher.initialize
13:40:40.538 [debug] Attempting to determine version of IPyWidgets
13:40:40.538 [debug] Controller selection change completed
13:40:40.760 [debug] Interactive Window Editor Created: untitled:/Interactive-1.interactive with input box: vscode-interactive-input:/InteractiveInput-1
13:40:40.764 [debug] start the kernel, options.disableUI=false for /Interactive-1.interactive
13:40:40.765 [debug] Waiting for IPyWidgets version
13:40:40.765 [debug] Waiting for IPyWidgets version promise
13:40:40.775 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0af2b7ca702bc007d49e4815451e788ef9429217bc2294f2515f5d80739c8b71b.~/github/pysindy/env/python.~/github/pysindy/env/python.-m#ipykernel_launcher  (Python Path: ~/github/pysindy/env/bin/python, Venv, env, 3.10.12) for '/Interactive-1.interactive' (disableUI=false)
13:40:40.776 [debug] Creating raw notebook for resource '/Interactive-1.interactive'
13:40:40.795 [debug] Getting activated env variables, Class name = yp (started execution), Arg 1: "/Interactive-1.interactive", Arg 2: "~/github/pysindy/env/bin/python", Arg 3: undefined
13:40:40.795 [debug] Get Custom Env Variables, Class name = Rm (started execution), Arg 1: "/Interactive-1.interactive", Arg 2: "RunPythonCode"
13:40:40.802 [debug] Get Custom Env Variables, Class name = Rm, completed in 7ms, has a truthy return value, Arg 1: "/Interactive-1.interactive", Arg 2: "RunPythonCode"
13:40:40.827 [debug] Attempting to determine version of IPyWidgets
13:40:40.827 [debug] Waiting for IPyWidgets version
13:40:40.827 [debug] Waiting for IPyWidgets version promise
13:40:40.913 [debug] Launching kernel .jvsc74a57bd0af2b7ca702bc007d49e4815451e788ef9429217bc2294f2515f5d80739c8b71b.~/github/pysindy/env/python.~/github/pysindy/env/python.-m#ipykernel_launcher for /Interactive-1.interactive in ~/github/pysindy with ports 9001, 9000, 9004, 9002, 9003
13:40:41.187 [debug] Got env vars with python ~/github/pysindy/env/bin/python, with env var count 75 in 392ms.
    PATH value is ~/github/pysindy/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/go/bin and
    Path value is undefined
13:40:41.187 [debug] Prepend PATH with python bin for ~/github/pysindy/env/bin/python
13:40:41.187 [debug] Activated Env Variables for ~/github/pysindy/env/bin/python,
    PATH value is ~/github/pysindy/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/go/bin and
    Path value is undefined
13:40:41.188 [debug] Getting activated env variables, Class name = yp, completed in 393ms, has a truthy return value, Arg 1: "/Interactive-1.interactive", Arg 2: "~/github/pysindy/env/bin/python", Arg 3: undefined
13:40:41.237 [info] Process Execution: ~/github/pysindy/env/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
13:40:41.238 [debug] Kernel Env Variables for python31012jvsc74a57bd0af2b7ca702bc007d49e4815451e788ef9429217bc2294f2515f5d80739c8b71b, PATH value is ~/github/pysindy/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/go/bin
13:40:41.279 [info] Process Execution: ~/github/pysindy/env/bin/python -m ipykernel_launcher --f=~/.local/share/jupyter/runtime/kernel-v2-31756Z3P7YrBoNA55.json
    > cwd: ~/github/pysindy
13:40:41.279 [info] Kernel process 34864.
13:40:41.906 [debug] Full interpreter list is length: 6, /usr/local/bin/python3.12::Unknown:/usr/local/bin/python3.12, /bin/python3::Unknown:/bin/python3, /usr/bin/python3::Unknown:/usr/bin/python3, /usr/local/bin/python3.11::Unknown:/usr/local/bin/python3.11, /usr/local/bin/python3.8::Unknown:/usr/local/bin/python3.8, ~/github/pysindy/env/bin/python:env:Venv:~/github/pysindy/env/bin/python
13:40:41.906 [debug] Refreshed Environments
13:40:41.983 [debug] ipykernel version & path 6.29.0, ~/github/pysindy/env/lib/python3.10/site-packages/ipykernel/__init__.py for ~/github/pysindy/env/bin/python
13:40:42.365 [debug] Kernel output: NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.

To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.

To read more about this, see https://github.com/ipython/ipython/issues/2049

To connect another client to this kernel, use:
    --existing kernel-v2-31756Z3P7YrBoNA55.json

13:40:42.526 [debug] Waiting for Raw Session to be ready in postStartRawSession
13:40:42.526 [debug] Waiting for Raw session to be ready, status: connected
13:40:42.526 [debug] Raw session connected
13:40:42.526 [debug] Waiting for Raw session to be ready
13:40:42.526 [debug] Waited for Raw session to be ready & got status: connected
13:40:42.526 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
13:40:42.526 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
13:40:42.526 [debug] Sending request for kernelInfo
13:40:42.537 [debug] Got response for requestKernelInfo
13:40:42.537 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 11ms
13:40:42.539 [debug] Executing silently Code (busy) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
13:40:42.562 [debug] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
13:40:42.563 [debug] End sendTelemetryForPythonKernelExecutable after 24ms
13:40:42.563 [debug] Started running kernel initialization for /Interactive-1.interactive
13:40:42.563 [debug] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
13:40:42.699 [debug] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
13:40:42.700 [debug] Determined IPyWidgets Version as 8
13:40:42.700 [debug] Version of IPyWidgets 8 determined after 2.162s
13:40:42.700 [debug] Version of IPyWidgets 8 determined after 1.873s
13:40:42.702 [debug] Executing silently Code (idle) = import types as _VSCODE_types\nimport os\nimport hashlib as _VSCODE_hashlib\nfrom IPython import get_ip
13:40:42.725 [debug] Executing silently Code (completed) = import types as _VSCODE_types\nimport os\nimport hashlib as _VSCODE_hashlib\nfrom IPython import get_ip with 0 output(s)
13:40:42.726 [debug] Requesting Kernel info
13:40:42.726 [debug] Got Kernel info
13:40:42.726 [debug] End running kernel initialization, now waiting for idle
13:40:42.726 [debug] Waiting for idle on (kernel): 2a0633a5-d02a-47ac-ac40-81e98c722bc7 -> idle
13:40:42.726 [debug] Finished waiting for idle on (kernel): 2a0633a5-d02a-47ac-ac40-81e98c722bc7 -> idle
13:40:42.726 [debug] End running kernel initialization, session is idle
13:40:42.729 [info] Registering Kernel Completion Provider from kernel env (Python 3.10.12) for language python
13:40:42.730 [debug] IPyWidgetScriptSource.initialize
13:40:42.730 [debug] Registering commtarget jupyter.widget
13:40:42.730 [debug] IPyWidgetMessageDispatcher.initialize
13:40:42.732 [debug] getDataDirsImpl, Class name = Fr (started execution), Arg 1: "/Interactive-1.interactive", Arg 2: "~/github/pysindy/env/bin/python"
13:40:42.732 [debug] Get Custom Env Variables, Class name = Rm (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
13:40:42.733 [debug] Get Custom Env Variables, Class name = Rm, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
13:40:42.733 [debug] Jupyter Paths :
13:40:42.768 [info] Process Execution: ~/github/pysindy/env/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2024.2.0-linux-x64/pythonFiles/printJupyterDataDir.py
13:40:42.886 [warn] Got an empty Jupyter Data Dir from ~/github/pysindy/env/bin/python, stderr = undefined
13:40:42.887 [debug] getDataDirsImpl, Class name = Fr, completed in 155ms, has a truthy return value, Arg 1: "/Interactive-1.interactive", Arg 2: "~/github/pysindy/env/bin/python", Return Value: <Uri:~/.local/share/jupyter>, <Uri:~/github/pysindy/env/share/jupyter>, <Uri:/usr/local/share/jupyter>, <Uri:/usr/share/jupyter>
13:40:42.934 [info] End refreshing Kernel Picker<PHONE_NUMBER>849)
13:40:43.262 [debug] IPyWidgetMessageDispatcher.initialize
13:40:43.262 [debug] Web view is ready to receive widget messages
13:40:43.290 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
13:40:43.291 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
13:40:43.301 [debug] IPyWidgetMessageDispatcher.initialize
13:40:43.301 [debug] IPyWidgetMessageDispatcher.initialize
13:40:43.313 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.2.0-linux-x64/temp/scripts/5ae505615fc00072cd1edee9092133f0ec478d4945358eb5eebc816aa5e7b28e/jupyter
13:40:43.313 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
13:40:43.317 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
13:40:43.317 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.2.0-linux-x64/temp/scripts/5ae505615fc00072cd1edee9092133f0ec478d4945358eb5eebc816aa5e7b28e/jupyter
13:40:44.056 [debug] Jupyter completion time: 11
13:40:44.819 [info] Handle Execution of Cells 1 for /Interactive-1.interactive
13:40:44.825 [debug] Cell Index:1 sent to kernel
13:40:44.838 [debug] Start cell 1 execution @<PHONE_NUMBER>837 (clear output)
13:40:44.839 [info] Kernel acknowledged execution of cell 1 @<PHONE_NUMBER>837
13:40:44.843 [info] End cell 1 execution after 0.005s, completed @<PHONE_NUMBER>842, started @<PHONE_NUMBER>837
13:40:44.844 [debug] Cell 1 executed successfully

I wonder if installing the package performs a more robust kernel discovery than merely opening a window or starting up VSCode.  Regardless, my bug is personally fixed.  I'm happy to close the issue, or I'm happy to try to do more debugging steps if it would help :)

This is a duplicate of https://github.com/microsoft/vscode/issues/204416
I.e. the fact that you had a large number of kernels cause running of cells to fail.


Add additionalLabels for missing resources

@usamaahmadkhan Yikes!  Build has Failed!

@hanzala1234 Yikes!  Build has Failed!

@usamaahmadkhan Validation Successful

dont merge now until commit history is cleaned

@Nebojsa92 Validation Successful

@hanzala1234 Validation Successful


Remove Natural Earth layers from vector tiles

What's your idea for a cool feature that would help you use OHM better.
To help clean up the vector tiles, it has been requested that Natural Earth layers be removed from the tiles, and not just from the map styles (which was done previously). The following layers seem to be completely compiled from Natural Earth sources:
state_label_points
state_lines
country_label_points
country_lines
country_lines_disputed
country_polygons
populated_places
Notes:

It looks like country_polygons is already removed from the tiles.
We will continue to use land for the time being even though it's sourced from Natural Earth since land_ohm is not complete
At least transport_lines has been a mix of both Natural Earth and OHM sources. This complicates things, since we can't simply remove an entire layer. And I'm not sure if there are maybe additional layers that mix sources?

Current workarounds
We're removing from the style json, so they're not present in the map, but they should also be removed from the tiles.
Additional info
This is in South America, and appears to be Natural Earth highways that are still in the transport_lines

@tsinn , I have been looking carefully this issue, Looks the production endpoint has some cache issues,
https://vtiles.openhistoricalmap.org/#4.07/-31.46/-54.8

I have deployed a new version on staging and the lines are gone!
https://vtiles-staging.openhistoricalmap.org/#4.07/-31.46/-54.8

We have a new release that may happen next week,  once that those lines should be gone.
cc . @geohacker

@Rub21 that's right. Some of NE are already removed but we haven't completely removed it as a source in the tiler. What we should do is to be able to remove this entire block https://github.com/OpenHistoricalMap/ohm-deploy/blob/main/images/tiler-server/config/config.toml#L228-L372 — for this we should first remove all layers that uses NE below.

@geohacker, I have removed the NE layer from the tiler:, as you mention in the above comment:  https://vtiles-staging.openhistoricalmap.org/#11.85/27.48175/-82.

Thank you @Rub21. @tsinn @danrademacher is this what you expect? Do we need to keep any NE layers around?

Make this layer available z0-20:

Land is showing from z0-20

This is done!! Closing here!


Some unit tests appear to be more load sensitive than expected

Reducing the amount of retests for now until the tests are improved.
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:
NONE

/cc @vasiliy-ul
/cc @fgimenez
/cc @qinqon
/cc @dhiller

/unhold
Issue #5313 created

There are still tests that use real timeouts and they may fail randomly under load. Probably it was a bit too early to enable parallel runs...

/retest

@rmohr , maybe we should consider reverting the commit completely for the time being? If it blocks PRs then probably some more work is needed before enabling it.

Unit tests pass. Merging to improve the situation for other PRs.


Documentation for Socket

Is there any documentation on how to use Sockets?

I can't also seem to get it to work. Can someone kindly provide an example on this, thanks!

I can't also seem to get it to work. Can someone kindly provide an example on this, thanks!

Interested in this as well!

any example?


branch rule cannot be matched to URL without trailing slash

Similar to this bug, the new router cause incompatibility with the old version (2.1.2). For rules that contain a trailing slash (e.g. /path6/), the current version (2.2.x) returns NotFound for a URL that doesn't end with a trailing slash (e.g. /path6).
In versions <=2.1.2, there was a possibility to define a branch rule for /path6/. This rule was successfully matched also for URL without the trailing slash "https://domain/path5" in case there wasn't the same leaf rule "/path6".
Updated test that failed:
def test_strict_slashes_leaves_dont_consume():
    # See issue #1074
    map = r.Map(
        [
            r.Rule("/path6/", endpoint="branch"),
        ],
        strict_slashes=False,
    )

    adapter = map.bind("example.org", "/")

    assert adapter.match("/path6", method="GET") == ("branch", {}).  # stop work in versions 2.2.x

According to documentation, this probably isn't a use-case for switch strict_slashes but it breaks our code, maybe some mention in the changelog.

Rules that end with a slash are “branches”, others are “leaves”. If strict_slashes is enabled (the default), visiting a branch URL without a trailing slash will redirect to the URL with a slash appended. source

Environment:

Python version: 3.9.13
Werkzeug version: >2.2.0

I think you are reporting #1074, although I think you desire the opposite behavior. Could you confirm if I've understood you correctly?

I am having a hard time understanding the issue you're reporting. Can you please update the title and code example to explain exactly the behavior you expect? Most of the example seems irrelevant to what you're discussing.

I can't find the exact reference, but I'm pretty sure what you're trying to describe is, as you point out, not intended to be supported. I know something in the docs or a previous issue mentions that it would not be correct for a trailing slash to be appended, as it breaks something about good URL design.

Please reduce the code in your example to only demonstrate the exact issue you are having.

OK, I guess I'm not explaining this well. Write a minimal, reproducible example, showing the error you're getting and what you expect instead. assert on its own doesn't convey what's going on.

I am a little confused as the snippet posted works exactly as the documentation you've quoted suggests. Do you consider this a bug? Or is the issue that the bug fix and change in behavior isn't clear from the changelog?

I updated dependencies in our project and ran into problems with our internal services that cannot reach us because missing trailing slash. When I read the documentation, I didn't consider this as a bug but an undocumented fix of behavior.

Do you consider this a bug?

No.

Or is the issue that the bug fix and change in behavior isn't clear from the changelog?

Yes.

See also #2479


Add an end-to-end integration test

This test includes a copy of hw1, which could be a problem, but I think it's OK since hw1 is just "type in the assignment from these screenshots."
This test does not run the recording part of the toolkit, but it does exercise the common path of printing a table.
This should hopefully keep us (read: me) from breaking the thing into uselessness…

Coverage increased (+8.4%) to 65.733% when pulling 64a98a8b36b7ec5e19320cf0ba46f2359177014f on end-to-end into ee16fc9d9a3be6a11c28ad2ceafcbaac5015b55b on master.


[resolves #2361] Unable to use Netty HL7 encoder / decoder

retest this please

retest this please


Can we have independent pytorch based script for NAS detectors (coco dataset) evaluation

Looks like, yolo-NAS architectures have different prediction format (different than standard coco) for model.predict(...)
Can we have a distinct standalone pytorch function which does not use super-gradient code base rather uses only torch and coco-eval apis, and produce standard annotation format defined by coco?
The standard coco dataset has fixed format for prediction, as follows
[
{"image_id":---, "category_id":---, "bbox":[x, y, w, h], "score": ---, ........}
{"image_id":---, "category_id":---, "bbox":[x, y, w, h], "score": ---, ........}
]
The indicative script can be something like follows. This might need few more changes but i hope you get an idea.
`
net = models.get("yolo_nas_m", pretrained_weights="coco")
net.eval()
net.cuda()
outputs = []
for each in dataloader:
pred = net(each)
'''
convert model prediction in standard coco format
'''
outputs.append(convert_to_coco_format(pred))
'''
feed outputs to standard coco eval apis
'''
`
Also, this type of function might  help to compare performance of predict function form super-gradients with standard coco apis. I see that many people have raised some concerns where such independent script can help them.
https://github.com/Deci-AI/super-gradients/issues/958
https://github.com/Deci-AI/super-gradients/issues/1016
https://github.com/Deci-AI/super-gradients/issues/977

Hi. I don't see how referenced issues are related to the matter. We intentionally re-implemented mAP metric from inconvenient implementation pycocoeval to a native pytorch, faster, DDP-friendly metric implementation.
The only place where pycocotools-based metric is a viable option is academia research where you want to compare many models coming from different sources and really want to compare them using same evaluation methodology. We are open for external contributions here.

Let's assume you have a trained model.
The easies way to get predictions from the model is to use model.predict API.
We designed it to be the most convenient for the user that just want to get the predictions.
Image normalization, size preprocessing and NMS will be done for you automatically.
yolo_nas = super_gradients.training.models.get("yolo_nas_l", pretrained_weights="coco").cuda()
result:ImagesDetectionPrediction = yolo_nas.predict(Image.open("lena.jpg"))

Note that return result is a ImagesDetectionPrediction container that may contain detection results for multiple frames. That is you can use predict method for images in the whole directory or a video.
Anyhow, if you're sending a single image then you can use result[0] to get bounding boxes. Our you can iterate: for image_level_predictions in result.
yolo_nas = super_gradients.training.models.get("yolo_nas_l", pretrained_weights="coco").cuda()
result:ImagesDetectionPrediction = yolo_nas.predict(Image.open("lena.jpg"))

predictions:ImagePrediction = result[0]

# And now you have it:
# Decoded bounding boxes (I think bounding boxes format is pretty clear here, right?)
predictions.prediction.bboxes_xyxy # [N,4]
predictions.prediction.confidence  # [N]
predictions.prediction.labels      # [N]
predictions.class_names

Bounding boxes are returned in the coordinate system of the original image so you can put them directly to the COCO json file according it it's format

Thanks a lot for the detailed answer @BloodAxe. I definitely see the benefits of model.predict API
But if we want to use fp16 version of the pytorch , how does model.predict work in this case ?
converting the pytorch yolonas is easy and can be done like this model = yolo_nas_l.half()
but now how do we change the input to support fp16 ?
Also does the model.predict accept torch tensors instead of numpy or images ?

@JagdishKolhe if you were able to find any work around please let me know

But if we want to use fp16 version of the pytorch , how does model.predict work in this case ?
converting the pytorch yolonas is easy and can be done like this model = yolo_nas_l.half()

Converting to half seems to be working fine:
    model = models.get(Models.YOLO_NAS_S, pretrained_weights="coco").cuda().half()
    model.predict("https://deci-datasets-research.s3.amazonaws.com/image_samples/beatles-abbeyroad.jpg").show()

The predict takes numpy image, images folder or urls as input. Hope it answers your question.


Feature request: support anonymous slice element.

I'm trying to write a macro that put elements into a distribute_slice. One hard thing is that i have to name the individual items...
I feel it would be more convenient if using _ as the name of anonymous slice element is supported (distribute_slice(XYZ) can replace it with whatever name it feels best i think).

This would be on the language to permit static _ as valid syntax; it was decided against in https://github.com/rust-lang/rust/issues/54912.

To avoid naming elements from the macro you can make your macro expand to:
const _: () = {
    #[distributed_slice(...)]
    static __: Type = value;
};

OK, great to know, thanks!


Add tailwind support

"Huge" PR, not because of me changing a lot of stuff, but because of package locks

Looks good (I just had one comment about the classes page for a problem I've already solved in a draft PR)


panic when using IncrementalRemesher

I was trying out the features of this (great) library, and somehow I couldn't use the remesher, no matter how simple the input stl is.
My stripped down rust code is as follows:
use std::path::Path;

use baby_shark::{
    io::stl::{StlReader, StlWriter},
    remeshing::incremental::IncrementalRemesher,
    mesh::corner_table::prelude::CornerTableF
};

fn main() {
    let mut reader = StlReader::new();
    let mut mesh: CornerTableF = reader.read_stl_from_file(Path::new(
        "H:/Other computers/My Computer/- Graphics & Projects/Models/3D/Wastelands/basic_cube.stl")).expect("Read mesh from STL");

    let remesher = IncrementalRemesher::new()
        .with_iterations_count(10)
        .with_split_edges(true)
        .with_collapse_edges(true)
        .with_flip_edges(true)
        .with_shift_vertices(true)
        .with_project_vertices(true);
    remesher.remesh(&mut mesh, 0.002f32);

    let writer = StlWriter::new();
    writer.write_stl_to_file(&mesh, Path::new("out.stl")).expect("Save mesh to STL");
}

Even running with RUST_BACKTRACE=1 I can't seem to find a clear culript for the panicking.
A similar program calling the EdgeDecimator  instead of the IncrementalRemesher works fine.
I'm attaching the basic_cube.stl below.
basic_cube.zip

I believe this issue is fixed in the last commit (0.1.6 version of the crate). Please let me know if it is still happening to you.


Allow named workspace folders

This PR fixes #252.
The change is to use the base name of the path for the workspace folder instead of the name, which defaults to the path's base name if a name hasn't been specified. I've tested that this works in my setup (VS Code 1.54.2 running on Linux), and have added unit tests to cover the cases where a name has or hasn't been specified.

@evan-bradley Going to merge this one into the mainline and the changes will go out with the next release (2.7.3)
I left a few comments that are still outstanding but they were mainly questions for my own understanding.


save/upload faces

face_recognition version:
Python version: 3.6.5
Operating System: Win10/64bit

Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
IMPORTANT: If your issue is related to a specific picture, include it so others can reproduce the issue.
What I Did
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Everything works fine for me, though I would like to know how I can save all unknown faces to a directory  so that I can code something in a GUI where you can select a face and give it a name
thanks in advance

Look at this example: https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture.py#L23
If you change pil_image.show() to pil_image.save("filename.jpg"), that should give you an idea of how to do it.

@ageitgey is there anyway to make it save from live webcam, i mean is there anyway to make it see my face from live webcam and save it into a txt file that it saw my face,

-seeing my face from live webcam--
 saving to a text file BARACK OBAMA ...


SSRF vulnerability reported via Axios in 1.104.4

Fresh install of Epsagon today in an old project:
  npm i --save epsagon
  npm audit

✗ cat package.json | grep epsa
    "epsagon": "^1.104.4",

Result:
│ High          │ Server-Side Request Forgery                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ axios                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=0.21.1                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ epsagon                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ epsagon > axios                                              │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1594                            │

Hi @jcollum !
We've identified a potential memory leak with the latest Axios version, as you can see here https://github.com/axios/axios/issues/3457
We are still investigating, and we want to make sure there's no impact dinner in the meantime.
To rest you assured, we've verified that this current CVE is not related to our use, and can't be exploited by using Epsagon for monitoring.
Let me know if you have any questions

Hi @jcollum !
We've identified a potential memory leak with the latest Axios version, as you can see here https://github.com/axios/axios/issues/3457
We are still investigating, and we want to make sure there's no impact dinner in the meantime.
To rest you assured, we've verified that this current CVE is not related to our use, and can't be exploited by using Epsagon for monitoring.
Let me know if you have any questions

https://github.com/epsagon/epsagon-node/pull/424

https://github.com/epsagon/epsagon-node/pull/424


Add fallback-at-startup into xds

Extracted from https://github.com/grpc/grpc/pull/18402.

This change is

Except for a test IgnoreChildPolicyInFallback, this is ready for review. Thanks!
Since https://github.com/grpc/grpc/pull/18052 is in and the child policy state related methods are moved into the locality map, I am duplicating the logic in XdsLb for the fallback policy.

Basic Tests Windows [opt] (internal CI): https://github.com/grpc/grpc/issues/18637
Interop Cloud-to-Cloud Tests (internal CI): https://github.com/grpc/grpc/issues/18843


Can we exclude path in url matching?

I want to match all path under the domain except for a few path. i.e. example.com/unsubscribe.html
Is there a way to do this?

In the case of iOS you can do that manually as described in official iOS documentation:

To specify an area that should not be handled as a universal link, add “NOT ” (including a space after the T) to the beginning of the path string. For example, the apple-app-site-association file shown in Listing 6-1 could prevent the /videos/wwdc/2010/* area of the website from being handled as a universal link by updating the paths array as shown here:

"paths": [ "/wwdc/news/", "NOT /videos/wwdc/2010/", "/videos/wwdc/201?/"]

Android doesn't have that feature, so you can't.
As kind of a workaround you can allow app to capture them all, and if some link should not be handled by the app - use in-app browser plugin to display that page.

Thanks. I guess I ll have to use the work around for android.


Sample database manual setup

Currently DBeaver asks about sample database installation only during initial startup.
It is not possible to install sample database after that.
We need to add an action in the main menu which will allow this.

verified


[SR-1894] Consider protocol metatypes as not @objc compatible.

What's in this pull request?
StarterBug fix.
Resolved bug number: (SR-1894)

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    All supported platforms     | @swift-ci Please smoke test and merge
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

A smoke test on macOS does the following:

Builds the compiler incrementally.
Builds the standard library only for macOS. Simulator standard libraries and
device standard libraries are not built.
lldb is not built.
The test and validation-test targets are run only for macOS. The optimized
version of these tests are not run.

A smoke test on Linux does the following:

Builds the compiler incrementally.
Builds the standard library incrementally.
lldb is built incrementally.
The swift test and validation-test targets are run. The optimized version of these
tests are not run.
lldb is tested.

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    All supported platforms     | @swift-ci Please test and merge
    OS X platform               | @swift-ci Please test OS X platform
    OS X platform               | @swift-ci Please benchmark
    Linux platform              | @swift-ci Please test Linux platform

Lint Testing
    Language     | Comment
    ------------ | -------------
    Python       | @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

Looking good! A few comments.

A single-@objc-protocol metatype ought to be Bridged-@objc representable.

@swift-ci Please test OS X platform

@swift-ci Please test OS X platform

Merged. Thanks, Aleksey!


[Dask] Automatically unbox 0d NumPy array containing another object

The following script does not work with the current XGBoost (master branch):
import dask
from dask.distributed import Client, LocalCluster

import xgboost as xgb
import numpy as np
from scipy.sparse import csr_matrix

params = {'objective': 'binary:logistic', 'max_depth': 1, 'eval_metric': 'logloss'}

def main(client):
    np.random.seed(0)
    nrow = 1000
    ncol = 10

    data = np.random.uniform(size=(nrow, ncol)).flatten().astype(np.float32)
    row_ind = np.array([([i] * ncol) for i in range(nrow)]).flatten()
    col_ind = np.array([list(range(ncol)) for i in range(nrow)]).flatten()
    X = csr_matrix((data, (row_ind, col_ind)), shape=(nrow, ncol), dtype=np.float32)
    y = np.random.choice(2, size=(nrow,), replace=True)
    weight = np.ones(shape=(nrow,), dtype=np.float32)
    X[400:600,:] = 0
    X.eliminate_zeros()
    X = dask.array.from_array(X, chunks=(nrow // 2, ncol))
    y = dask.array.from_array(y, chunks=(nrow // 2,))
    weight = dask.array.from_array(weight, chunks=(nrow // 2,))

    dtrain = xgb.dask.DaskDMatrix(client, X, label=y, weight=weight)
    output = xgb.dask.train(client, params, dtrain, num_boost_round=10, evals=[(dtrain, 'train')])
    print(output['history'])

if __name__ == '__main__':
    with LocalCluster(n_workers=2, threads_per_worker=1) as cluster:
        with Client(cluster) as client:
            main(client)

It crashes with the following error message:
Traceback (most recent call last):
  File "test.py", line 35, in <module>
    main(client)
  File "test.py", line 29, in main
    output = xgb.dask.train(client, params, dtrain, num_boost_round=10, evals=[(dtrain, 'train')])
  File "/home/phcho/tmp/xgboost/python-package/xgboost/dask.py", line 602, in train
    results = client.gather(futures)
  File "/home/phcho/miniconda3/envs/cuml_dev/lib/python3.8/site-packages/distributed/client.py", line 1982, in gather
    return self.sync(
  File "/home/phcho/miniconda3/envs/cuml_dev/lib/python3.8/site-packages/distributed/client.py", line 832, in sync
    return sync(
  File "/home/phcho/miniconda3/envs/cuml_dev/lib/python3.8/site-packages/distributed/utils.py", line 339, in sync
    raise exc.with_traceback(tb)
  File "/home/phcho/miniconda3/envs/cuml_dev/lib/python3.8/site-packages/distributed/utils.py", line 323, in f
    result[0] = yield future
  File "/home/phcho/miniconda3/envs/cuml_dev/lib/python3.8/site-packages/tornado/gen.py", line 735, in run
    value = future.result()
  File "/home/phcho/miniconda3/envs/cuml_dev/lib/python3.8/site-packages/distributed/client.py", line 1847, in _gather
    raise exception.with_traceback(traceback)
  File "/home/phcho/tmp/xgboost/python-package/xgboost/dask.py", line 561, in dispatched_train
    local_dtrain = dtrain.get_worker_data(worker)
  File "/home/phcho/tmp/xgboost/python-package/xgboost/dask.py", line 325, in get_worker_data
    data = concat(data)
  File "/home/phcho/tmp/xgboost/python-package/xgboost/dask.py", line 94, in concat
    return numpy.concatenate(value, axis=0)
  File "<__array_function__ internals>", line 5, in concatenate
ValueError: zero-dimensional arrays cannot be concatenated

Diagnosis: for some reason, Dask sends XGBoost a zero-dimensional NumPy array that contains the object we want, like scipy.sparse. The array doesn't automatically degrade to a scalar, so this PR writes a pass to convert all zero-dimensional NumPy arrays.

Wait, you are using sparse matrix.  I don't think dask supports sparse very well?

I don't think dask supports sparse very well?

Is this documented?

Here is the document: https://docs.dask.org/en/latest/array-sparse.html . I haven't really tested it yet.

No mention of scipy.  And we are not using the sparse package.

Closing, since Dask is integrating with Sparse package, not SciPy sparse matrix.


Missing rater scores at some plots

E.g., for https://github.com/google/BIG-bench/tree/main/bigbench/benchmark_tasks/periodic_elements there is no score plotted, but the score is present in human evaluation file.

strange! looking into this

It seems that rater results disappeared from every plot now. Probably related to some recent plot generation code change. Cc @Sohl-Dickstein

Ok, so the problem is that HUMAN_EVAL_DICT[subtask]  (https://github.com/google/BIG-bench/blob/main/bigbench/api/analysis.py#L130) is a list of results (per rater?) rather than dictionary of metrics with results. So metric in HUMAN_EVAL_DICT[subtask] is always False.

@Sohl-Dickstein @cdfreeman-google any updates?

(we're working on a fix here--there's some flux as we're resolving some other naming issues on our end)

This ended up snowballing quite a bit into a large refactor of how we did scoring.  Everything is code complete right now, and plots should be updated by tomorrow with correct scoring.

Looks like this one is fixed


Task15

Concatinate firstname middlename lastname

@bhavi98
Task -15
Code verified.
Task -16
Code verified.
Task -19
Code verified.


Feature/minor update

Change summary page.

Delete CCN avarage value
Add metrics recommend value
Add description

Local check passed.


Add #pluck to collectionMethods

Collection#map is over models not model attributes

Sorry I may of been mistaken. Really sorry about that @jridgewell

Damn, it won't work directly for #pluck. But @jdalton opened https://github.com/jashkenas/backbone/pull/3866 that cleans this up.

it won't work directly for #pluck.

Do you have any insight into why it doesn't work?

Because we would have to pass down a special (model) => model.get(attr) function into _.pluck, but _.pluck internally calls _.property coercing the getter into it's source string.


(Old) Regression: String-returning function in section called with wrong this

We know how to workaround this (quite old) regression, but just to let you know of this (feel free to close without comment in case this is considered irrelevant).
Try this snippet:
Mustache.render("{{#getName}}{{getName}}{{/getName}}", { name: "Hans", getName: function () { return this.name; }});

In Mustache 0.7.2 (yeah, we're using quite an old version of Mustache right now), this gave Hans, whereas in every version since, it results in an empty string.
That's because in 0.7.2, the inner getName call had the view as this-binding, whereas now, it has "Hans" (the return value of the outer #getName).
git bisect: da16eada83dd0eb2771d3c388b132359ff42f7b5
Workaround:
Mustache.render("{{#getName}}{{.}}{{/getName}}", { name: "Hans", getName: function () { return this.name; }});

Thanks for letting us know!
Good food for thought – I'll come back later with a formed and researched opinion.


scoop: The term 'scoop' is not recognized as a name of a cmdlet, function, script file, or executable program.

after installing scoop and restarting the PowerShell
PS C:\Windows\System32> scoop
scoop: The term 'scoop' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Suggestion [4,General]: The most similar commands are: cp, echo, copy, clp, group, sbp, sp, cpp, sleep, sort.
PS C:\Windows\System32>

if reinstall cant solve the issue, then manually add the ...\scoop\shims to $PATH
$env:Path -split ';' | Select-String 'scoop\\shims'

C:\Users\HUMOR\scoop\shims

if reinstall cant solve the issue, then manually add the ...\scoop\shims to $PATH
$env:Path -split ';' | Select-String 'scoop\\shims'

C:\Users\HUMOR\scoop\shims

yeah this works!


PriceMarketFactory resolution can be manipulated

resolveMarket in PriceMarketFactory determines the price to resolve to by calling this:
uint256 _resolvedSpotPrice = pool.getSpotPriceSansFee(address(tokenIn), address(tokenOut));
which will get the spot price of the relative token in a balancer pool at the time of calling.
This can be trivially manipulated to resolve in either direction and cash out on this by a contract that calls this function and performs the following steps:

Take out a flash loan for the collateral of the market
Mint "winning" tokens from the market via the buy method
Take out another flash loan for one of the tokens in the balancer pool
Use all the flash loaned balancer pool tokens to purchase the other token in the pool
Resolve the market. It will resolve in accordance with the manipulated spot price
Claim winnings on purchased market shares
Buy tokens to repay flash loans with winnings
Repay flash loans
Take profit

Step 2 could also source the winning shares by buying losing shares form anyone who holds them and if this is possible would be even more capital efficient since it wouldn't affect the pool size and would let someone in theory take all the capital in the market fraudulently.

Since we only use(d) the PriceMarketFactory for testing, the solution here is to delete that contract.
However, would an averaged spot price over a period of time work? My understanding is that uniswap can do that.

Yea a TWAP solution would prevent this

I renamed it to TestPriceMarketFactory and added a comment explaining that this cannot be used in production.


ARVIR tweaks

Makes the iPhone app compile when compiling for a device (not a sim)
Uses the new image assets for the beta/close buttons https://artsyproduct.atlassian.net/browse/EV-144
Updates the type on the setup page https://artsyproduct.atlassian.net/browse/EV-142

#trivial because ARVIR is in already

Merge on green.


Fix panic when result is zero-length []byte

Sometimes I got panic because r.Bytes() has zero-length. This PR fixes it.

Coverage remained the same at 95.761% when pulling 37e16788d163cd20ec25fa22846a3e29fdd7065f on ng-vu:master into 8d702de6764ce34c7c4b0cd297b2293c5ee95b49 on solher:master.

Thanks a lot 👍


Successful installation via Docker...then nothing

Hiya, folks!
So, I installed via Docker, apparently successfully, since Audiogram appears to be running in the Docker dashboard. But...now what? I attempted to open in a browser window, but get the error:
This page isn’t working
localhost didn’t send any data.
ERR_EMPTY_RESPONSE
What might I be missing?
Thanks!
— Jay

Hi, I think this project is abandoned. For a while there was a BBC News Labs version that was really good, but I think they removed the repo.
I am using this fork now and it works out of the box in Docker: https://github.com/newsdev/audiogram

@greylockglass You're almost there! Once you fire up the Docker image, you'll be at a command prompt in the container. Run npm start and you'll have the web interface listening on :8888!

Thanks, @hapimp ! I'll give it a try. I feel like I did actually go down that road and came to a dead end. I may just resort to Headliner, which is a web-based service that looks like it may be based on Audiogram.


Bugs

Environment (please complete the following information):

OS (e.g., Windows 10):
Extension version (e.g., 1.2.3):

Describe the bug:

Repro steps:

Expected behavior:

Additional context:

Hi,
Please add more information and feel free to reopen.


Undocumented let rec syntax impossible to provide termination proof

Prerequisites

[ X] Put an X between the brackets on this line if you have done all of the following:

Checked that your issue isn't already filed.
Reduced the issue to a self-contained, reproducible test case.

Description
Local let bindings can use the undocumented rec keyword to allow self-reference, but this is undocumented and doesn't support the termination_by syntax that top-level functions support, so they are unnecessarily restricted compared to top-level functions.
[Description of the issue]
Steps to Reproduce
The following code passes with partial, but if removed Lean complains about a missing termination_by modifier. I wasn't able to find any example in the Lean4 tests of a let rec with termination_by, and both let rec and termination_by are currently undocumented on this page despite let rec being a "term" in the parser(and hence an expression).
Passes
def evenq (n: Nat) : Bool := Nat.mod n 2 = 0

partial def pack (n: Nat) : List Nat :=
  let next (n: Nat) := n / 2;
  let rec loop (n : Nat) (acc : Nat) (accs: List Nat) : List Nat :=
    match n with
    | Nat.zero => List.cons acc accs
    | n => match evenq n with
      | true => loop (next n) 0 (List.cons acc accs)
      | false => loop (next n) (acc+1) accs
  loop n 0 []

#eval pack 27

Fails with termination_by modifier:
def evenq (n: Nat) : Bool := Nat.mod n 2 = 0

def pack (n: Nat) : List Nat :=
  let next (n: Nat) := n / 2;
  let rec loop (n : Nat) (acc : Nat) (accs: List Nat) : List Nat :=
    match n with
    | Nat.zero => List.cons acc accs
    | n => match evenq n with
      | true => loop (next n) 0 (List.cons acc accs)
      | false => loop (next n) (acc+1) accs
  termination_by sorry
  loop n 0 []

#eval pack 27

Expected behavior: [What you expect to happen]
I expect all valid expressions to be documented in the reference manual, and for local let bindings to as expressive as def declarations.
Actual behavior: [What actually happens]
Local recursive let bindings are undocumented and less expressive than top-level def declarations.
Reproduces how often: [What percentage of the time does it reproduce?]
100% of the time
Versions
$ lean --version
Lean (version 4.0.0-nightly-2021-12-08, commit b0fe1e5d10ae, Release)

Correction: It is documented in the tactics section, as an example when using tactics. However, if it's a core expression type with special treatment in the parser, it should be in the syntax reference page linked in the original post.

This is incorrect syntax. You should provide termination_by on def level, i.e after loop.

I am closing this issue because it is not a bug. The example linked above shows how to use termination_by with a let rec. The documentation will be improved in the future.


Merge dev to main for release 1.2.2

There is an issue in zuul for the sap_vm_preconfigure is this a problem? Or can we just merge?

There is an issue in zuul for the sap_vm_preconfigure is this a problem? Or can we just merge?

Looking at https://github.com/sap-linuxlab/community.sap_install/pull/309#issuecomment-1403950943 and also at https://ansible.softwarefactory-project.io/zuul/builds?job_name=ansible-galaxy-importer&project=sap-linuxlab%2Fcommunity.sap_install&skip=0 and then https://ansible.softwarefactory-project.io/zuul/build/5c2e09002b984d00bb264f80a1da9479 and https://ansible.softwarefactory-project.io/zuul/build/91ec40567c00431d9ff97fb0526b51dd , we probably can ignore it for now.
But as the errors were identical, I'll open an issue to avoid this ansible-galaxy-importer failure.

Let’s merge 😀


GH feature branch preview

Create feature branch preview deployments

https://github.com/aeternity/jitsi-meet/commit/1072865562f0c7f6f43685afbfb0677228906259

We already have ci.yaml that i guess is supposed to be used


Great Work ! But...

It's very good work, the code is well done and easy to understand, and it is the only code that offers an alternative to the SDK made by the community which is now abandoned, the only downside is that in your code you do not offer all the functions that we can have, such as changing the volume of the browser on the local or the stream (but you detect it which is already great!) another "negative" point is that a small wiki is missing which could help a lot to understand how the Wavelink Websocket works, if I had not tested your raw code I would not have understood that Wavelink uses an "indentifer" and the "name" to manage a audio output, I think fixing these two little things would make it a great base for anyone wanting to develop things with the WaveLink wbesocket ! And also the repos is pretty active for a small project like that so it's nice too :D

I was actually planning to create a separate repo purely dedicated to controlling and managing Wave Link that you could install with pip. It's just that I've never written a public library that would be used by other people. So we'll see if that ever happens.
But yeah, this repo is just a personal project so that I could easily restore this on my computer if I ever need to reinstall Windows. It being helpful to other people is just a bonus.
As for the features you mentioned, I'll look into adding them whenever I get the chance :3

Setting an input's volume and mute is now available as of commit 9cfc2f2 with the set_input_volume() and set_input_mute() functions. I've also added a very basic rundown of generic functions in the README file as of the 6ae918b commit - I might extend documentation later but I'd rather have that for a dedicated Wave Link library.

Setting an input's volume and mute is now available as of commit 9cfc2f2 with the set_input_volume() and set_input_mute() functions. I've also added a very basic rundown of generic functions in the README file as of the 6ae918b commit - I might extend documentation later but I'd rather have that for a dedicated Wave Link library.

Fantastic! thanks a lot! when i've finished my current dev job I might look making a fork with your code in order to make a proper library if you're okay with it (with you as a contributor of course)

feel free to do whatever you want with the code. thats the beauty of open source. i added the MIT license to the project just to make sure it's clear that i'm ok with people doing whatever they want with it.

feel free to do whatever you want with the code. thats the beauty of open source. i added the MIT license to the project just to make sure it's clear that i'm ok with people doing whatever they want with it.

Thank's Forgot to make a fork but i've made a Lib here : https://github.com/Steepy12/ElgatoWavePy and also available to download with "pip install ElgatoWavePy"


update packages

:white_check_mark: Build TheIdServer 7.4.7-fix-dependencies1-0143 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/0c4e23dbd3 by @invalid-email-address)


Cancel previous workflow runs on push

:notebook_with_decorative_cover: Description
I've initially restricted this to the long-running PRs that build VAST.
:memo: Checklist

[ ] All user-facing changes have changelog entries.
[ ] The changes are reflected on docs.tenzir.com/vast, if necessary.
[ ] The PR description contains instructions for the reviewer, if necessary.

:dart: Review Instructions

@dominiklohmann Currently I think less than 1% of PRs are triggered from a fork repository, so in general I'm not sure that we gain much by handling this case.
That said, it doesn't make things too much more complicated so I wouldn't mind changing it to a separate workflow, but I'm not sure how to integrate the logic that we only want to abort workflow runs on PRs but not on master pushes with this approach.

I did not think of the push case, that's a fair point. Let's keep this as-is then.


[Docker] pip install issue

Description
the pip command in the 0.18.0 docker is broken for some reason. Always have error code.

it turns out 0.18.0 shipped 22.1.2 is broken. The same issue was not seen in previous version or latter version


Optional values reporting error after a continue in a loop

/* @flow */
type OptionalValues = {
    optional?: {value: string};
}
declare var someValues: OptionalValues[];

for( const ov of someValues) {
    if (!ov.optional){
        continue;
    }

    ov.optional.value = 'test';   // Error: property `value`. Property cannot be assigned on possibly undefined value
}

Seems to be very similar to #1167 and #935

@Xesued thanks for the repro - looks like a bug that's specific to continue and property refinements (the latter is what distinguishes it from #1167).
Until fixed, a workaround is to refactor the control flow as follows (if feasible):
for( const ov of someValues) {
   if (ov.optional) {
     ov.optional.value = 'test';  // no error
     break;
  }
}

Adding to this, break also exhibits the same bug inside of for loops -- replacing continue with break in the provided repro shows it.
@bhosmer: Mind if I take a look at this one? I feel like writing some OCaml. :)

This is now fixed.