Jenkins: No valid subject assertion found in response, with Okta

Hello!
I'm trying to configure Jenkins with SAML plugin and Okta.
I have followed the instructions and when Okta tries to redirect me back to Jenkins I get the following error:
javax.servlet.ServletException: org.pac4j.saml.exceptions.SamlException: No valid subject assertion found in response
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:795)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875)
at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:211)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
at org.kohsuke.stapler.Stapler.service(Stapler.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:86)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.pac4j.saml.exceptions.SamlException: No valid subject assertion found in response
at org.pac4j.saml.sso.Saml2ResponseValidator.validateSamlSSOResponse(Saml2ResponseValidator.java:168)
at org.pac4j.saml.sso.Saml2ResponseValidator.validateSamlResponse(Saml2ResponseValidator.java:99)
at org.pac4j.saml.client.Saml2Client.retrieveCredentials(Saml2Client.java:317)
at org.pac4j.saml.client.Saml2Client.retrieveCredentials(Saml2Client.java:95)
at org.pac4j.core.client.BaseClient.getCredentials(BaseClient.java:211)
at org.jenkinsci.plugins.saml.SamlSecurityRealm.doFinishLogin(SamlSecurityRealm.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745)
... 63 more
Please note that the settings in Okta are quite standard and that we managed to configure our Artifactory (JFrog software) with SAML and Okta in the same way.

You have any luck with this?

I use Okta with this plugin. I haven't tested it in awhile, but I'd be surprised if much changed.

check "Jenkins URL" value in jenkins configuration. It has to match the actual url.
i got it fixed after removing the prefix /jenkins.

thanks! that works
On Fri, Jan 30, 2015 at 2:52 AM, mvgpal<EMAIL_ADDRESS>wrote:

check "Jenkins URL" value in jenkins configuration. It has to match the
actual url.
i got it fixed after removing the prefix /jenkins.
—
Reply to this email directly or view it on GitHub
https://github.com/connectifier/jenkins-saml-plugin/issues/4#issuecomment-72135060
.

I get the same error: javax.servlet.ServletException: org.pac4j.saml.exceptions.SamlException: No valid subject assertion found in response
What are the specific steps to fix this error?  Someone above said check "Jenkins URL" value in the Jenkins config.  Is this on the Jenkins server or on the Identity Provider config.  Any help is appreciated.  Thanks.

On SP-initiated SSO, I get the following error:
javax.servlet.ServletException: org.pac4j.saml.exceptions.SamlException: No valid subject assertion found in response
I've tried both OneLogin and Okta and I get the same thing.   How can this be fixed?   My Jenkins URL does not have a prefix /jenkins.   Any ideas?

Same here: javax.servlet.ServletException: org.pac4j.saml.exceptions.SamlException: No valid subject assertion found in response, I've double checked to ensure that /jenkins is not in the end-point.
And this is with a 0.4-SNAPSHOT build make locally.

I am experiencing this as well.  The initial failure seems to occur here.
Jul 23, 2015 5:53:32 PM org.opensaml.common.binding.security.SAMLProtocolMessageXMLSignatureSecurityPolicyRule doEvaluate
INFO: Validation of protocol message signature succeeded, message type: {urn:oasis:names:tc:SAML:2.0:protocol}Response
Jul 23, 2015 5:53:32 PM org.pac4j.saml.sso.Saml2ResponseValidator validateSamlSSOResponse
SEVERE: Current assertion validation failed, continue with the next one
org.pac4j.saml.exceptions.SamlException: Subject confirmation validation failed
at org.pac4j.saml.sso.Saml2ResponseValidator.validateSubject(Saml2ResponseValidator.java:282)

HI,
We enabled the SAML and got the same error. Did anyone resolved this. I am using Okta.

You need to login from the OKTA console. What server are you enabling this
on?
On Jul 27, 2015 9:37 PM, "krrishv"<EMAIL_ADDRESS>wrote:

HI,
We enabled the SAML and got the same error. Did anyone resolved this. I am
using Okta.
—
Reply to this email directly or view it on GitHub
https://github.com/connectifier/jenkins-saml-plugin/issues/4#issuecomment-125439121
.

I We login to Jenkins with our AD account. So we have configured Okta to release the nameid with the ad samaccountname. I see the SAML assertion going to Jenkins. But we get the above error. I use the matrix authrization method. Not sure what i am doing wrong. Everything is configured as per documentation. I have configured both through the front end SSL server and also directly in Jenkins through port 8080.

You need to login to the okta console for your organization, provision an application (Jenkins) and add the user to that app.  then you can login from the okta console by clicking on the app link as that user.

Here's one way to set this up for Okta:

"Add Application" and search for "Template SAML 2.0 App"
Use the following settings leaving everything blank not mentioned here:

Post Back URL: https://yourmachine.yourdomain.com:8080/securityRealm/finishLogin
Name ID Format: EmailAddress
Recipient: https://yourmachine.yourdomain.com:8080/securityRealm/finishLogin
Audience Restriction: https://yourmachine.yourdomain.com:8080/securityRealm/finishLogin
authnContextClassRef: PasswordProtectedTransport
Response: Signed
Assertion: Signed
Request: Compressed
Destination: https://yourmachine.yourdomain.com:8080/securityRealm/finishLogin

Go to the Okta "Sign On" tab and choose "View Setup Instructions". Scroll to the bottom and copy the XML where it says "Provide the following IDP metadata to your SP provider."
Go to Jenkins and choose "Configure Global Security", "SAML 2.0", and paste the XML into the "IdP Metadata" field

An alternate way to set this up for Okta:

"Add Application", hit "Create New App", and choose "SAML 2.0"
Use the following settings leaving everything blank not mentioned here:

Single Sign On URL: https://yourmachine.yourdomain.com:8080/securityRealm/finishLogin
Use this for Recipient URL and Destination URL: checked
Audience URI (SP Entity ID): https://yourmachine.yourdomain.com:8080/securityRealm/finishLogin
Name ID Format: EmailAddress
Application username: Okta username
Request compression (Show Advanced Settings): Compressed

Go to the Okta "Sign On" tab and choose "View Setup Instructions". Scroll to the bottom and copy the XML where it says "Provide the following IDP metadata to your SP provider."
Go to Jenkins and choose "Configure Global Security", "SAML 2.0", and paste the XML into the "IdP Metadata" field

It seems that if you don't select Request Compression in Okta that login will work only from the IdP and not the SP, so be sure to select that option.

We got this working using a 3rd party IdP called Identacor.  The SP-initiated scenario seems to be problematic on most IDP's that we tried.

Working with ADFS, I am able to login but after some time it logs out the user. When they try to login, they get this same error. The only fix is for them to use an incognito window and try to relogin. Kind of an odd issue.

@benmccann thanks for the info! Do we have to use HTTPS for it to work with Okta?

I was getting the same error: No valid subject assertion found in response
In my Okta application configuration (for Jenkins SAML) I dropped the / from the hostname, then recopied the iDP xml into JIRA.  Started working.
http://host:port (no trailing /)

Having this issue - tried both Jenkins SAML app and custom SAML app - both ended the same

removed trailing / (Jenkins SAML setup in Okta)
Tried to set up manually SAML - same error , with no option to select "Compression"

Possibly related: I'm running into similar issues with Google for Work SAML IdP.
It does NOT work (in normal mode), after deleting all cookies for my jenkins domain
But it does work in Chrome Incognito/Firefox Private Window

@tgeens Nope, this did not helped, still getting No valid subject assertion found in response

I encountered problems in the past with corrupt config.xml causing similar errors, the security and sign on areas of the config.xml file.  Had to rebuild the config file from scratch, removing saml plugin through GUI was not cleaning up xml elements.

@wifreema Can you tell me the difference (Before rebuild and after rebuild) ?

make a backup of this file to fall back to.  change auth method to be disabled while you remove the saml config elements.
The entire securityRealm attribute was manually cleared.
jenkins.security.s2m.MasterKillSwitchWarning added to disabledAdministrativeMonitors
I went through backup of config.xml and I do not have a accurate before save sorry for the straight diff.

I had a similar issue, however the root cause was that the clock on the
jenkins machine had diverged from the clock used by Okta.  This invalidated
the SAML request before jenkins could process it.  Ensure you're using a
time server to keep your clocks in sync.  Don't know if this is your root
cause, but fixing clock skew resolved my strange SAML related errors.
-Jim
On Thu, Jun 2, 2016 at 6:34 AM, wifreema<EMAIL_ADDRESS>wrote:

make a backup of this file to fall back to. change auth method to be
disabled while you remove the saml config elements.
The entire securityRealm attribute was manually cleared.
jenkins.security.s2m.MasterKillSwitchWarning added to
disabledAdministrativeMonitors
I went through backup of config.xml and I do not have a accurate before
save sorry for the straight diff.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/connectifier/jenkins-saml-plugin/issues/4#issuecomment-223292871,
or mute the thread
https://github.com/notifications/unsubscribe/ACZi_N-YcM9btalAMIyfhR32AAjvoA22ks5qHtvzgaJpZM4DSSOq
.

javax.servlet.ServletException: org.pac4j.saml.exceptions.SamlException: No valid subject assertion found in response
I'm getting the same thing. It seems like a lot of people are having this issue, is it a bug.. or is it resolvable?
The errors being printed aren't very clear what the issue is.

It seems to be rather random ? One day I can log in perfectly fine, the other day I'm getting this exception again.
Could this be an issue with pac4j ?

Did anyone figure this out? I am having the same problem.

no dice here, I'm sticking to ldap over saml until this thread announces a fix. :p

I've only seen this error once.  And it had to do with clock drift between
Okta and my server.  Be sure your synchronized to a time server (not always
enabled by default).  If not, you run the risk of clocks getting far enough
apart to invalidate the request before you have a chance to process it.
Otherwise this plugin does/can work.
On Sat, Jun 25, 2016 at 12:24 AM, JohnTheodore<EMAIL_ADDRESS>wrote:

no dice here, I'm sticking to ldap over saml until this thread announces a
fix. :p
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/connectifier/jenkins-saml-plugin/issues/4#issuecomment-228519112,
or mute the thread
https://github.com/notifications/unsubscribe/ACZi_La4ismCkOYsYXUrp5aQWqNDTewlks5qPNe4gaJpZM4DSSOq
.

Hello everyone,
I've the same problem. Like tgeens, from a private window, i've not this problem :(.
A fix exists?
Thanks.

I have had same issue. So, I debugged this and turned out this fails because plugin keeps assertion expired (actual exception is not on chain). Setting "Maximum Authentication Lifetime" has no effect and default setting (one hour) is used. I filed pull request for fixing setting https://github.com/jenkinsci/saml-plugin/pull/10

I had the same issue when evaluating the saml plugin in a test installation. For me a local build which includes the change by patope fixed the problem. So thanks to patope!
However for production I would prefer to use a released version of the plugin.
So the question is: When do you plan to do a new release which includes this fix?

I see that when I use the incognito window, it is working.

So does anyone know how to fix this?

@KyleGobel This have been fixed in master already. Here https://github.com/jenkinsci/saml-plugin/commit/5b6df3b0ed534b21c0002e73e8fbf1bad33c69ce

Not sure if I had the same exact underlying problem as OP but I did have this same error message. Also using an incognito window did work around the issue. I am using a reverse proxy, and the fix was to rewrite and 301/302 redirect /logout to the IdP logout service url.

Hi, thank you for filing this issue. Apologies for closing this issue, but the right place to track is on https://issues.jenkins-ci.org with component "saml-plugin". We are removing the issue tracker from this repo to avoid further confusion. Please refile on the JIRA


add dAppling Network as a service

What kind of PR is this?
Select only one to speed up review/approval; i.e., don't lump an addition and a removal into a single PR.

[x] Adding something new to awesome-ipfs
[ ] Editing something already listed on awesome-ipfs
[ ] Removing something from awesome-ipfs
[ ] Something else (if so, please explain in the "Additional details" section below)

Pre-submit checklist
Please confirm ALL of the following before submitting your PR.

[x] This PR includes only one addition, removal, or edit.
[x] I edited the /data directory instead of the README.md.
[x] I reviewed the content policy and the and the IPFS Community Code of Conduct to ensure my submission meets the requirements.
[x] I have followed the CONTRIBUTING.md guidelines.

Additional details
Is there anything else we should know about this PR?

dAppling Network documentation
dAppling Network Twitter
For new additions: What is your project's current size/reach?

We just officially launched, so we have 4 users on the current iteration of our platform.
For new additions: What is your project's potential size/reach?

20,000+ potential users
For new additions: How critical is IPFS to your project?

[x] Essential
[ ] Somewhat critical
[ ] Useful, but not critical

For new additions: What core goal(s) does your project address?

[ ] Big-data solutions
[x] Freedom from corporate/government interference
[x] Data integrity
[x] Dev tools or other ways to enable developers
[ ] Disaster resilience/recovery
[x] File storage/retrieval
[ ] File streaming
[ ] Permanent archiving
[ ] Self-sovereign identity
[ ] Platforms that utilize consensus, reputation, or incentivization
[ ] Other (please list)

Is anything about IPFS blocking your project?

Nope!
Thanks for reviewing :)

I am closing this PR as the repo has a new structure, and your project has been added.


Fix client panic

There are situations where a Point can be created with no tags. When that happens, we get a panic: runtime error: slice bounds out of range as in https://play.golang.org/p/dRZGQ4AXeJ
This change adds some protection around invalid data.

A 'put' operation should fail in some way if the input point has zero tags. It is always an error. Quoting http://opentsdb.net/docs/build/html/user_guide/writing.html:

Every time series in OpenTSDB must have at least one tag.

I admit that panicking in SeriesHash is wrong but allowing these points to pass would be even worse. The remote relay has the right to drop these points because of the rule quoted above. So allowing them to pass only makes matters worse by increasing the distance between the location of the failure and its root cause (diagnosis gets harder).
The solution is a better client-side drop. The method Point.append needs to error out when it encounters a tagless point:
if len(p.tags) == 0 {
    return nil, fmt.Errorf("refusing to serialize a tagless point (missing filter rule?): %s", p.String())
}

This changes its signature from:
func (p *Point) append(b []byte) []byte

to:
func (p *Point) append(b []byte) ([]byte, error)

... which means some callers will break. This is a Good Thing because it forces us to think how to adjust these callers. My grep found two call sites.

(easy case) In Encoder.Encode, the append can simply pass the error up:
buf, err := p.append(buf)
if err != nil {
return err
}

(hard case) In Client.Put, we need to drop the point gracefully. I'm thinking this should be good enough:
cmd, err := point.put()
if err != nil {
statClientErrors.Add("type=Input", 1)
log.Print(err)
return
}

It's not perfect because it opens up a possibility of log flooding. But maybe the flooding is a blessing in disguise by urging someone to fix things more quickly :-)


We should not let execute geocoding jobs concurrently

After some problems spotted by @AbelVM we've found that if we call two heavy geocoding tasks we are going to get a deadlock because they're acting on the same table so we need to forbid it.
To forbid this part we need to check for other geocoding jobs in the geocodings table for the same table with an status of [started|running|submitted].
Also we have to check why are we not storing the remote_id from the first time because if the job fails we can use that remote_id to retrieve the finished batched job from nokia.
Last thing is to note that we're truncating the logs in the logs table. Most probably we are reaching the max number of characters.
// @saleiva @rafatower

There has been no activity on this issue for more several months. We are closing it. If you think this still needs to be addressed please open a new issue.


Multiple Authentication Types does not shows normally.

Hello.
RapiDoc doesn't seem to describe the multiple security object normally.
Here is security object, and it required apikeyA and apikeyB at the same time.
"security": [ { "ApikeyA": [], "ApikeyB": [] } ]
Full yaml:
openapi: 3.0.0
info:
  description: Test the securitySchemes and security for two required api keys.
  version: 1.0.0
  title: Test
paths:
  "/test":
    get:
      summary: test api
      security:
        - ApikeyA: []
          ApikeyB: []
      description: ""
      operationId: test
      responses:
        "204":
          description: Success
servers:
  - url: http://test.com/api/
components:
  securitySchemes:
    ApikeyA:
      type: apiKey
      in: header
      name: X-API-A
    ApikeyB:
      type: apiKey
      in: header
      name: X-API-B

But Rapidoc shows it like this: API Key {X-API-A) or API Key (X-API-B)

It must be API Key {X-API-A) and API Key (X-API-B), and Requires all of the following
Here is fiddle: https://jsfiddle.net/cwke4uv6/
I refered swagger document.
https://swagger.io/docs/specification/authentication/#multiple
Thank you.

Yep, you are correct, it is a bug.
thanks for reporting !!!
will take care of it soon

A related issue (I can break this out into its own issue if desired) is that if you have non-default security schemes in the global definitions, those are sent and override the local operation security schemes in "try it" requests for operations they do not apply to.  For example, we have these three security schemes:

Basic (Authorization header)
Bearer (Authorization header)
Api Key (x-api-key header)

The Basic security scheme only applies to one particular operation.  Bearer and Api Key are set to default for all operations with a global entry:
"security":[{"bearer":[],"api_key":[]}]
In operations that do not specify a security scheme (and should receive the defaults), the Try It functionality sends an Authorization header following the Basic scheme (along with the x-api-key header).  The schema validates and works correctly in Swagger UI.

@ShaneBoyer Will be good if you create a separate issue, and provide a minimal spec to recreate it at our end


Clean stale code from early stage includes

Some of the early stage includes (binary.sh, color.sh, config.sh, defaults.sh and output.sh) still contain stale or duplicate code.

Fixed by 9c9c530a6681bc6fd70eaa282590bcab8d1e0900 and e39467e6cd0a12ff3c19784c0245fb1c92e63c30.


Windows Subsystem for Linux (Beta) missing from Build 14316.rs1 Windows 10 Enterprise Insider preview

I have installed Build 14316.rs1 Windows 10 Enterprise Insider preview... which is set to fast in Dev mode  However when i go to enable Windows Subsystem for Linux (Beta) in the Windows features it is not there as an option.....AM i missing something....

Only for Pro's :) :+1:

I use Windows 10 Enterprise Inside Preview (build 14316.rs1_release.160402-2217) and can enable Windows Subsystem for Linux (Beta).

Are you on a 64-bit build?

griffinpa - is your windows in developer mode ?

Mine works.

I think Ijani, has the most Promiseing Lead, I'm reinstalling the OS in 64 bit, will update in 24 hours

Not sure, but is it on Enterprise version? I have Windows 10 Pro build 14316 and I use Bash on it.

@griffinpa that's your problem them. WSL is a 64-bit only feature.

May be Existing features only for 64 should be listed in that list as inactive (x64 only)..

Correct all WSL only runs on x64 OS only, thank you Ijani

I am facing the same problem.  Windows Subsystem for Linux is missing from my Windows Features list.  I am running Windows 10 Pro 64-bit under VMWare.

@IgorGanapolsky Can you verify that you are running at least build 14316?
reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v BuildLabEx

@benhillis HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion                             BildLabEx          REG_SZ        10586.212.amd64fre.th2_release_sec.160328-1908

@IgorGanapolsky - Looks like you're running a build that doesn't have the component in it.  To try Windows Subsystem for Linux you must be running a recent insider build (14316 or later).
More info available here.

I am using OS Build: 10586.218 and my System Type: 64-bit operating system, x64-based processor. I am still not able to find the option in my features

@JHenighan You'll need to install build 14316 or later.  Please see our installation guide for more details.

Is WSL support for Windows 10 x86 planned?

I'm running build 10586.494, on a 64bit installation, with developer mode enabled yet I do not have the option to enable Bash on Ubuntu on Windows.

@RAdamMartin -- to clarify -- what you describe is expected behavior; are you stating it to clarify something on this ticket, or is it not what you expected?
Per @benhillis 's comment, you need at least build 14316.  As you note, you are running build 10586, which is much older.  To get access to Bash on Ubuntu on Windows (aka "WSL", "Windows Subsystem for Linux"), you'll have to use Windows's "Check for Updates" features to install the latest version.

@aseering I was writing because I'm bad at reading and misread the target build as being less than my build.  I was also confused because Windows Update was showing my install as up to date; I've manually downloaded the installer to have it update to the anniversary build now, will remove my previous.

Hi there I haveMicrosoft Windows Version 10.0.10586 Enterprise but cannot find Windows Subsystem for linux
Can anyone help me how to install Linux Bash my windows?
My OS

Developer mode is on

But not found sub system

@Junaid-Farid update your system to 10.0.14393

@Junaid-Farid  I having the same problem

@Sharkrit You are running build 10586, you need at least 14316.

Windows 10 Anniversary Update unable to install on my Windows 10 Enterprise Edition build 10586

I have found the resolution here

To Upgrade the Windows 10 Enterprise Editions, get the 1607 ISO from MSDN/Volume Licensing portal, mount the ISO via double click on it, run the setup.exe on the virtual DVD drive, now select Upgrade


Added CC0 licence

Added CC0 licence after email discussions #3

@all-contributors please add @chrismainey for data
@all-contributors please add @chrismainey for documentation
@all-contributors please add @chrismainey for maintenance
@all-contributors please add @chrismainey for code


Remove check that does not apply Formatters to Collections

Currently there is a check which does not apply any Formatters to Collections passed in Feign Client parameters.  This problem was addressed in https://github.com/OpenFeign/feign/commit/100a9acc64dbf86760b2c55196a9bdb608ed00c0#diff-51b176e568a2cdf4a0174d10f0979da0.  We can now remove the check.
Fixes #1526

LGTM


Enable Renovate and Scala Steward

Currently the we have enabled the Renovate but it seems it doesn't work properly, as @sideeffffect reported that here,

renovate was enabled, but I didn't enabled Scala Steward, as I didn't find any reason to do that.


Unhandled NPE during reconciliation

Step to reproduce:

Clone and open Strimzi sources https://github.com/strimzi/strimzi
Up cluster
$ oc clucter up
Login as admin
$ oc login -u system:admin
Deploy Cluster Controller
$ oc create -f resources/openshift/cluster-controller-with-template.yaml
Deploy Topic Controller
$ oc create -f resources/openshift/topic-controller-with-template.yaml
Login to OpenShift https://<IP_ADDRESS>:8443
Create "Apache Kafka (Persistent storage)"
7.1 Click "Add to project"
7.2 Click "Select from project"
7.3 Select "Apache Kafka (Persistent storage)" and click "Next"
7.4 Use default configurations:
Number of Zookeper cluster nodes: 3
Number of Kafka cluster nodes: 3
7.5 Click "Create" and wait for the message "Apache Kafka (Persistent storage) has been created"
7.6 Open page "Pods" and wait when all pods will have status "Running"
Create "Strimzi Topic Controller"
8.1 Click "Add to project"
8.2 Click "Select from project"
8.3 Select "Strimzi Topic Controller" and click "Next"
8.4 Use default configurations
8.5 Click "Create" and wait for the message "Success Strimzi Topic Controller has been created."
8.6 Open page "Pods" and wait when all pods will have status "Running"
Open page "Config Maps" and open your cluster config
Edit numbers of kafka-nodes
10.1 Click "Actions"
10.2 Click "Edit YAML"
10.3 Set new value (1) for variable kafka-nodes and save
Open page "Pods" and open logs for strimzi-topic-controller and wait 2-3 mins

Actual result:
Log has an unhandled exception:
[2018-02-22 14:01:58,135] WARN  <etworkClient:241> [dminclient-1] [AdminClient clientId=adminclient-1] Connection to node 2 could not be established. Broker may not be available.
--
  | [2018-02-22 14:02:01,206] WARN  <etworkClient:241> [dminclient-1] [AdminClient clientId=adminclient-1] Connection to node 1 could not be established. Broker may not be available.
  | [2018-02-22 14:07:47,274] INFO  <Session     :158> [oop-thread-0] Starting periodic reconciliation
  | Feb 22, 2018 2:07:47 PM io.vertx.core.impl.ContextImpl
  | SEVERE: Unhandled exception
  | java.lang.NullPointerException
  | at io.strimzi.controller.topic.Controller.lambda$reconcile$1(Controller.java:342)
  | at io.vertx.core.impl.CompositeFutureImpl.lambda$all$1(CompositeFutureImpl.java:54)
  | at io.vertx.core.impl.FutureImpl.tryFail(FutureImpl.java:170)
  | at io.vertx.core.impl.FutureImpl.fail(FutureImpl.java:102)
  | at io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:154)
  | at io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:23)
  | at io.strimzi.controller.topic.ZkTopicStore.lambda$read$1(ZkTopicStore.java:71)
  | at io.strimzi.controller.topic.zk.ZkImpl.lambda$null$4(ZkImpl.java:199)
  | at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:344)
  | at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
  | at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
  | at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)
  | at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
  | at java.lang.Thread.run(Thread.java:748)

@serrss I tried but what I see after 15 minutes (x 2) is the following :
[2018-03-08 15:34:18,474] WARN  <etworkClient:241> [dminclient-1] [AdminClient clientId=adminclient-1] Connection to node 1 could not be established. Broker may not be available.
[2018-03-08 15:43:01,744] INFO  <Session     :158> [oop-thread-0] Starting periodic reconciliation
[2018-03-08 15:58:01,740] INFO  <Session     :158> [oop-thread-0] Starting periodic reconciliation

so no exception :-(
It's clear thet in the Controller at line 342 the ar.result() is null as reason for the NPE you saw (so something failed) but I cannot reproduce it right now.

I was able to reproduce the issue but creating a topic before scaling down Kafka is mandatory otherwise no reconcile is started and the code where the mentioned NPE should happen is not involved. I am going into it.

So the problem is the following ...
In the steps provided by @serrss it's needed to create a new topic using a ConfigMap for example (so let's say 8.1 step). Only after that it's possible to scale down the Kafka broker for having the issue.
Scaling down the broker drives the Admin Client having some problems on reconnecting to the last alive broker (maybe it's another issue). If you delete the topic ConfigMap after scaling down the topic, the reconciliation will start.
Tha Admin Client starts to try sending metadata request to the Kafka cluster but this request times out.
So in the Controller around the line 342, the topicStore.read went well but the kafka.topicMetadata went wrong with the following exception :
Timed out waiting to send the call (TimeoutException)
It means that the ar.failed() is true and ar.result() is null.
To fix the NPE we should check that ar.failed() is false before doing what it's done today and eventually tracing the Admin Client exception as well.
In any case the fact that the Admin Client stops to work properly when the cluster is scaled down should be treated as a separate issue.

Closed by #305

@serrss It should be fixed by #305 . Give it a new try.

@ppatierno issue was fixed


The policy controller governance-policy-propagator failed to start

Signed-off-by: myan<EMAIL_ADDRESS>I tried to install the policy propagator from the source on this page. But the controller governance-policy-propagator failed to start with the following error message:
oc describe pod governance-policy-propagator-78dccd9b9f-v5qhq -n open-cluster-management
 ...
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason       Age                 From               Message
  ----     ------       ----                ----               -------
  Normal   Scheduled    38m                 default-scheduler  Successfully assigned open-cluster-management/governance-policy-propagator-78dccd9b9f-v5qhq to hub1-control-plane
  Warning  FailedMount  87s (x26 over 38m)  kubelet            MountVolume.SetUp failed for volume "cert" : secret "propagator-webhook-server-cert" not found

Reference: https://github.com/open-cluster-management-io/governance-policy-propagator/issues/226

/assign @dhaiducek
/assign @JustinKuli


Issue com22

hello when i lunch the script e say this :
[2016-07-14 16:11:01,374] INFO: opening port
[2016-07-14 16:11:01,376] ERROR: exception till port openning: could not open port com22: [Errno 2] No such file or directory: 'com22'
[2016-07-14 16:11:01,377] ERROR: error opening port: exception till port openning: could not open port com22: [Errno 2] No such file or directory: 'com22'
DONE

As you can see - your computer don't have COM22. Please, use correct
correct port name. It's really not an issue, it's just your computer
configuration.
On Jul 14, 2016 17:12, "TimOs1"<EMAIL_ADDRESS>wrote:

hello when i lunch the script e say this :
[2016-07-14 16:11:01,374] INFO: opening port
[2016-07-14 16:11:01,376] ERROR: exception till port openning: could not
open port com22: [Errno 2] No such file or directory: 'com22'
[2016-07-14 16:11:01,377] ERROR: error opening port: exception till port
openning: could not open port com22: [Errno 2] No such file or directory:
'com22'
DONE
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/JFF-Bohdan/sim-module/issues/6, or mute the thread
https://github.com/notifications/unsubscribe/AFVNUS0MVKiIPGafQxjdQr0qBWG1xxWGks5qVkPUgaJpZM4JMeco
.

but how i know the correct port name

and how you find the correct port name

I'm sorry but I even don't know your OS type.
On Thu, Jul 14, 2016, 17:18 TimOs1<EMAIL_ADDRESS>wrote:

and how you find the correct port name
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/JFF-Bohdan/sim-module/issues/6#issuecomment-232678749,
or mute the thread
https://github.com/notifications/unsubscribe/AFVNUb5UJhyRnJe0qqSi7QvUiKBDKRE8ks5qVkUYgaJpZM4JMeco
.

--
Best Regards,
Bohdan Danishevsky
Aminis LLC, CEO
+38-067-509-15-23
http://www.aminis.com.ua

my os is raspiban on my raspberry pi and i have a sim900

You can use built-in UART or USB com port. First, you need find correct COM
port name.
On Thu, Jul 14, 2016, 17:24 TimOs1<EMAIL_ADDRESS>wrote:

my os is raspiban on my raspberry pi and i have a sim900
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/JFF-Bohdan/sim-module/issues/6#issuecomment-232680570,
or mute the thread
https://github.com/notifications/unsubscribe/AFVNUcIHbhTQwSBRRQPuz6VYsaePFeBhks5qVkaVgaJpZM4JMeco
.

--
Best Regards,
Bohdan Danishevsky
Aminis LLC, CEO
+38-067-509-15-23
http://www.aminis.com.ua


redmine: 3.4.9 -> 3.4.10 (18.09 backport)

(cherry picked from commit b6b3287897170386c204e871aba64aaa2ded46e3)

Motivation for this change
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

@GrahamcOfBorg test redmine

The x86_64-linux test fails with machine# [ 462.884785] systemd[1]: redmine.service: Failed with result 'timeout'. on the bot but runs successfully on my local machine.


Add UDIM pattern <UVTILE> (specified by MaterialX)

MaterialX documents a udim pattern that we hadn't previously supported,
<UVTILE>, which is equivalent to our u<U>_v<V>.
Fixes #3275

Looks ok to me save for my 1 minor comment above.


pom.xml file cleanup

I started by removing the docbkx plugin. Marcin also pointed out that I could remove the mojo plugin and the inherited=false lines, so I did that.
NOTE: This PR depends on https://github.com/spring-cloud/spring-cloud-build/pull/84
DO NOT merge this one until that one is merged.

Closing, I think this has been superseded.


Add Bus Selector for Existing data in the database - DriverApp

Add a selector in the profile section to allow drivers to choose from existing buses already stored in the database

Include a search input here also.


Ambiguous use of 'decode' over Dictionary (Xcode8b6)

Hi!
I am having troubles decoding an object that its output is a dictionary ([String : Model])
Let's say I have the following JSON.
        let json = [
            "1" : [
                "id" : "111",
                "name" : "firstName"
            ],
            "2" : [
                "id" : "222",
                "name" : "secondName"
            ]
        ]

What I used to do to get the Decoded objects was:
        let result = try! [String : Model].decode(json)

And everything was working fine in Xcode8b3. But today I migrated to Xcode8b6 and this is not working anymore. Xcode is emitting the following error:

Seems like is finding to definitions for the decode func. But if try to call the decode func from a Decodable object, or even an array of Decodable objects, everything works.
I've created a super dummy project that reproduces it, I'm attaching it.
TestDecodable.zip
Thanks a lot

Thanks for reporting. I've removed the [Decodable: Any].decode overload which were causing the ambiguity since beta 6. (Which creates a new problem – #120, but better something's working.)

Thanks @Anviking , everything is working as before ! 👍


Add sample manifest to README.md

When creating Apps on Slack you can now use App Manifests (a yaml file listing all the necessary config).
This greatly reduces the amount of clicks needed for the initial config,
so with this PR I add a sample manifest.

Thanks, I need some time to read the docs, first


[ci skip] adding user @timkpaine

Hi! This is the friendly automated conda-forge-webservice.
I've added user @timkpaine as instructed in #10.
Merge this PR to add the user. Please do not rerender this PR or change it in any way. It has [ci skip] in the commit message to avoid pushing a new build and so the build configuration in the feedstock should not be changed.
Please contact conda-forge/core to have this PR merged, if the maintainer is unresponsive.
Fixes #10

@conda-forge/arctic if you wouldn't mind adding me, i'd like to get the newer versions of arctic out to condo-forge


Bypass vim/nvim for plugin communications?

Moves discussion from https://github.com/roxma/nvim-completion-manager/issues/197

This would make synchronization even harder. And it does not have much benifit.
Not interested. Closing.


What is stack build on macos

I am new to macos and have been trying to install kmonad to get Extend layout.
I am following the installation steps and am stuck at the final step:
stack build --flag kmonad:dext --extra-include-dirs=c_src/mac/Karabiner-DriverKit-VirtualHIDDevice/include/pqrs/karabiner/driverkit:c_src/mac/Karabiner-DriverKit-VirtualHIDDevice/src/Client/vendor/include
It just says stack is an unknown command. I have tried searching for stack build macos and various iterations and haven't seen any cli tool with that name.
Any help on how to complete this?

You need to install stack using brew install stack.
If you don't have homebrew, you need to install that before then.

@bharathyes You can also try building with Docker and report back, since nobody has tried it on macOS yet. I don't even know if it would work, but it would be great to know.
You might need to customize the Dockerfile, though. I would recommend try building unmodified first to check it works and start tinkering after that.

@bharathyes You can also try building with Docker and report back, since nobody has tried it on macOS yet. I don't even know if it would work, but it would be great to know.
You might need to customize the Dockerfile, though. I would recommend try building unmodified first to check it works and start tinkering after that.

I had very bad experiences with Docker in mac. Unless you already use Docker, or planning to use it, you are better of installing Stack. Still, I haven't used it for a few months, and things might have improved.

You're right, @MuhammedZakir . I've never used macOS, but by experiences from colleagues I've heard mixed opinions, some were bad but also others were OK. Although this is by no means statistically relevant, those experiences were always when running services/apps on Docker, which is relevant here.
Since the build instructions are just for that, ie just building, it's a way easier test, because it will either fail to buld or spit out a working binary, both without leaving any trace on the system. And since the project needs some help in ways to build binaries, the feedback would be very valuable.
Of course, that is true only if @bharathyes has already Docker installed. I'm not expecting him to install just to test it. But since it might help him, it would be a win-win situation.

Seems solved, so I'm closing


libjxl cannot read/write to any file if it contains non-ascii characters in Windows 10

Describe the bug
libjxl cannot read from or write to any file if the path or filename contains non-ascii characters in Windows 10.
To Reproduce
Steps to reproduce the behavior:

Get any image
Use cjxl to convert "θθθθξξξ.jxl"

You will get an error message saying
Failed to write to "???????.jxl"

Alternatively, rename any jpg to "θθθθξξξ.jpg" and try to convert it to JXL.

There will be no output whatsoever
Examples
PS C:\Users\User\Downloads> cjxl .\test.jpg θθθθθθξξξ.jxl
JPEG XL encoder v0.7.0 ab775e2 [AVX2,SSE4,SSSE3,Scalar]
Read 4032x3024 image, 44.6 MP/s
Encoding [Container | JPEG, lossless transcode, squirrel | JPEG reconstruction data | 51646-byte Exif], 16 threads.
Compressed to 6611392 bytes (4.338 bpp).
4032 x 3024, 49.77 MP/s [49.77, 49.77], 1 reps, 16 threads.
Including container: 6665727 bytes (4.374 bpp).
Failed to write to "?????????.jxl"
PS C:\Users\User\Downloads> cjxl .\θθθθξξξ.jpg broken.jxl
JPEG XL encoder v0.7.0 ab775e2 [AVX2,SSE4,SSSE3,Scalar]
PS C:\Users\User\Downloads>

And with djxl:
djxl .\ξξξξθθθ.jxl test.png
JPEG XL decoder v0.7.0 ab775e2 [AVX2,SSE4,SSSE3,Scalar]
Failed to read file: .\???????.jxl.

Environment

OS: Windows 10 21H2
CPU type: x64
cjxl/djxl version string: JPEG XL encoder v0.7.0 ab775e2 [AVX2,SSE4,SSSE3,Scalar]

(Can also reproduce in latest official release)
It appears to be Windows-only, as I had no problem with any character on Fedora.

Likely related: #683


Correct topic for Github YouTube-dl download blocking issues

Hi. I'm new here and I strongly suspect I have posted this in the wrong topic. If so, I hope you will be kind enough to direct me to the proper one. I have used YouTube-DL intensively at times in the past, but I tend to use it a lot, then not touch it for months, or longer. I now wanted to get the latest version for Windows, so I first did an internet search, and discovered the controversy over Github taking it down at one point. It appeared from those searches that Github had ultimately relented, and that YouTube-dl was freely available on Github once more. So I tried to download the windows exe file, from this page:
https://github.com/ytdl-org/youtube-dl
file link:
https://yt-dl.org/latest/youtube-dl.exe
and was shown this error message:
Access denied
Due to a ruling of the Hamburg Regional Court, access to this website is blocked.
Zugriff gesperrt
Aufgrund eines Urteils des Landgerichts Hamburg ist der Zugriff auf diese Website gesperrt.

Did I misunderstand the outcome of the protests against Github for blocking YouTube-dl?
Did GitHub relent and later reinstate the block?
Or is the lock on that exe file possibly a legacy of the rescinded block that was never corrected?
Any suggestions for me to get the latest version installed on my Windows box?

Thank you in advance for any assistance you can provide.
Grima S

There seems to be a reddit post on this topic: https://www.reddit.com/r/youtubedl/s/84gtjjwvYX
And others saying yt-dlp is a better alternative anyways. Here is a source: https://www.reddit.com/r/archlinux/s/LQKlFzc6OQ


gdal not installed with conda install

Trying to run Notebook 1 after conda install...

ImportError                               Traceback (most recent call last)
File ~/anaconda3/envs/m2l3_9/lib/python3.9/site-packages/osgeo/init.py:30, in swig_import_helper()
29 try:
---> 30     return importlib.import_module(mname)
31 except ImportError:
File ~/anaconda3/envs/m2l3_9/lib/python3.9/importlib/init.py:127, in import_module(name, package)
126         level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
File :1030, in _gcd_import(name, package, level)
File :1007, in find_and_load(name, import)
File :986, in find_and_load_unlocked(name, import)
File :666, in _load_unlocked(spec)
File :565, in module_from_spec(spec)
File :1173, in create_module(self, spec)
File :228, in _call_with_frames_removed(f, *args, **kwds)
ImportError: libpoppler.so.126: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 3
1 import time
2 import os
----> 3 from map2loop.project import Project
4 from map2loop.m2l_enums import VerboseLevel, Datatype
5 from map2loop.sorter import SorterAlpha, SorterAgeBased, SorterUseHint, SorterUseNetworkX, SorterMaximiseContacts, SorterObservationProjections
File ~/anaconda3/envs/m2l3_9/lib/python3.9/site-packages/map2loop/init.py:1
----> 1 from .project import Project
3 all = ["Project"]
File ~/anaconda3/envs/m2l3_9/lib/python3.9/site-packages/map2loop/project.py:3
1 import beartype
2 from .m2l_enums import VerboseLevel, ErrorState, Datatype
----> 3 from .mapdata import MapData
4 from .sampler import Sampler, SamplerDecimator, SamplerSpacing
5 from .thickness_calculator import ThicknessCalculator, ThicknessCalculatorAlpha
File ~/anaconda3/envs/m2l3_9/lib/python3.9/site-packages/map2loop/mapdata.py:5
3 import numpy
4 import shapely
----> 5 from osgeo import gdal, osr
6 from owslib.wcs import WebCoverageService
7 import urllib
File ~/anaconda3/envs/m2l3_9/lib/python3.9/site-packages/osgeo/init.py:46
42                 raise ImportError(traceback_string + '\n' + msg)
43         return importlib.import_module('_gdal')
---> 46 _gdal = swig_import_helper()
47 del swig_import_helper
49 version = _gdal.version = _gdal.VersionInfo("RELEASE_NAME")
File ~/anaconda3/envs/m2l3_9/lib/python3.9/site-packages/osgeo/init.py:43, in swig_import_helper()
41         traceback_string = ''.join(traceback.format_exception(*sys.exc_info()))
42         raise ImportError(traceback_string + '\n' + msg)
---> 43 return importlib.import_module('_gdal')
File ~/anaconda3/envs/m2l3_9/lib/python3.9/importlib/init.py:127, in import_module(name, package)
125             break
126         level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_gdal'

I don't know how map2loop could install without gdal as it's a dependency of geopandas which is a dependency of map2loop.
One thing to check is whether you have conda-forge set as a default channel in conda.
If you are still having this problem Mark can you tell me the steps you used to create the conda environment?
General note: gdal installations can be notorious (to the point that some people recommend you only pip install gdal), I have found the conda-forge repos suitable for gdal in most cases however.

How right you are, I must have missed conda-forge on one of the installs
Mark Jessell
Professor/ Western Australian Fellow
Centre for Exploration Targeting/ SES • M006, Perth WA 6009 Australia
T +61 8 6488 5803 • E @.***

From: Roy Thomson @.>
Sent: Thursday, January 25, 2024 7:02:36 AM
To: Loop3D/map2loop @.>
Cc: Mark Jessell @.>; Author @.>
Subject: Re: [Loop3D/map2loop] gdal not installed with conda install (Issue #11)
I don't know how map2loop could install without gdal as it's a dependency of geopandas which is a dependency of map2loop.
One thing to check is whether you have conda-forge set as a default channel in conda.
If you are still having this problem Mark can you tell me the steps you used to create the conda environment?
General note: gdal installations can be notorious (to the point that some people recommend you only pip install gdal), I have found the conda-forge repos suitable for gdal in most cases however.
—
Reply to this email directly, view it on GitHubhttps://github.com/Loop3D/map2loop/issues/11#issuecomment-1909061362, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUBSYD5VBVINAOZLV3EHHTYQGHIZAVCNFSM6AAAAABB256JQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGA3DCMZWGI.
You are receiving this because you authored the thread.Message ID: @.***>


Remove the submodule, reference OpenAI directly rather than running it on the command line, fix logging

In progress
What this does:

Removes the AutoGPT submodule in favor of a cloned version of AutoGPT the user can specify the location of.
Removes the need to specify an OpenAI key anywhere except the AutoGPT .env file.
Sets up a logging dir and record file in a local directory
Runs OpenAI through the pip installed python code directly. This doesn't seem to be the intention of the OpenAI team, but this is a way better dev experience than using the CLI as a CLI.
Builds our own CLI that is runnable directly through python.
Uses the docker pip package instead of using os.system because dear lord please don't use os.system. This also allows us to kill our docker image when we are done with it.
Uses asyncio and aiodocker to print logs in real time while still allowing us to have container management in python
Makes it so ctrl + c works consistently to kill the benchmarking process.
Allows running this in a debugger.
Docker logs are processed asynchronously and printed to the console. This was nightmarish to get working.

I am seeing a bug where occasionally, it intermittently says it saves to output.txt but it never gets the result. I don't know what is going on there since most of the time it works.
The agent tries to shut down and it says it wrote the file, but evals doesn't think it ever got a response.
This works often enough and is better enough I still think I want it to go in, but if anyone sees a reason why that might be the case I'd be very excited by it


List slices are not array slices :-)

I remember reading an exclusive blog on this subject sometimes ago. It was eye opener for me.
Thanks @davorg for the correction.


[Bug] SVG dark mode fix does not work on mobile (iOS only?) browsers

Describe the bug
When navigating any of the existing Bonsai websites in dark mode on mobile browsers, none of the SVGs are responding to the @media (prefers-color-scheme: dark) value. Most clearly visible are the operator text in workflow container images, but also the bonsai logo on the main docs page. Does not seem to matter whether system wide color preference is set (unlike https://github.com/bonsai-rx/docs/issues/98).
Describe the bug

Go to https://bonsai-rx.org/docs/tutorials/acquisition.html on Chrome on desktop, turn on dark mode, verify that the bonsai operator text in workflow images are displayed correctly
Go to the same page on your mobile device (Chrome, Safari, Firefox tested on iOS) and check the workflow images.

Environment
So far I tested Chrome, Safari, Firefox on iOS but would like to see if its also reproducible on android, im guessing it also is.
Cause
The @media (prefers-color-scheme: dark) element in the SVG is not being handled correctly, but seeing how widespread the issue is might be better off just avoiding it (if we want to accomodate mobile viewers). In the course of investigating this issue though, I also discovered #13.
Priority
Low priority, not sure how many people would browse the docs website on mobile (are there analytics available?). In any case light mode is always available. I only stumbled upon this because I wanted to check an update to a docs website I pushed and was too lazy to open my laptop.
Preferred Fix
Given this issue, https://github.com/bonsai-rx/docs/issues/98, and #13 instead of using the @media (prefers-color-scheme: dark) element it might be better to generate a light mode and a dark mode version of each SVG and switch between them as discussed in https://github.com/bonsai-rx/docs/issues/98, but it needs to be tested to see if there are other issues that might crop up along the way.

Fortunately/unfortunately I think this issue may only be iOS specific because chrome (and other browser engines) are forced to use  webkit on iOS. Can someone confirm that this bug is not present on android chrome?

Closing this issue because it turns out to have the same root cause as #13 so moving any discussion there


add prometheus app that works with OCP clusters until we update the community version in fabric8-devops

[merge]


Supporting frameworks other than Exposed like ktorm

Is your feature request related to a problem? Please describe.
It'd be nice to be able to use harmonica with frameworks other than Exposed without having to download extra dependencies.
Describe the solution you'd like
Write an abstraction adapter just like the way JDBC does for different databases.

@ashokgelal
Thank you for your post. I will do that.
As for now, DbAdapter can be the candidate and I will make it usable from outside.

@ashokgelal
I have a question.
Do you want to use ktorm? Or, could you provide a sample code which shows what you want to do?
(I thought I might have misunderstood your request.)

Sure.
Well what I'm trying to achieve is using harmonica programatically via an API. I don't care about Maven/Gradle plugin. This use case is very similar to https://github.com/felipecsl/kales/pull/12
A part of this use case is that since I'm using Ktorm and not Exposed, I'd like to be able to run migrations like so:
override fun up() {
        create(Departments)
}

Where Departments is a Ktorm table object.
I ran into a few of issues trying to use Harmonica programatically via an API:

There is no API
Setup was not only very difficult but for some reason it actually didn't work for me.
I did a fork to create a jar and used it that way.
I tried to do something similar to https://github.com/felipecsl/kales/pull/12 but turns out you have changed some APIs since 1.1.18 by making some functions either internal or private. As a temporary solution I made them public again in my fork.
I'm sort of able to make it work but it all feels hacky. I wish the core was separate and hence I dropped this comment

I hope that makes sense.
I really believe that this library is great but I'm not a big fan the gradle plugin commands. I wish there was a core of harmonica I could use programatically. I was thinking of doing a hard fork and stripping out all the plugin cruft (and some other parts) but then I was too afraid to make that jump :)
Anyway, maybe you could find some time to make another library based on the spirit of Harmonica that is tightly integrated with Ktorm and I then I could make it a core dependency of a framework I'm working on :) I'm more than willing to offer my help and feedback.
Thank you for this awesome library!

I ended up doing a hard fork and tailored it according to my requirements. Thanks to harmonica, I didn't have to do crazy refactoring. And thanks to you.

@ashokgelal
I'm trying to tackle this issue. I think I have time to do this issue this and next week.
This is just an idea.
If the user create KtormMigration which inherits AbstractMigration, and put the method with a parameter of Ktorm class, it may work.
AbstractMigration class has method execute which receives any SQL String.
class KtormMigration : AbstractMigration
  fun create(ktorm: KtormObject) {
    // convert ktorm to SQL
    val sql = ...
    execute(sql)
  }
end

class M123_Migration : KtormMigration
  fun up() { ... }
  fun down() { ... }
end

I'm not familiar with Ktorm, so I have to study it.
This migration tool allows the user to use Exposed, but I think the current structure has a problem, because Exposed is downloaded regardless of whether the user uses Exposed or not.
Related: #91
Gradle command issue is another one. I'm wondering which is better.
As you can see, this library hides most of the innter classes with internal modifier. It is because I thought internal classes are not the business of library users and they may be something annoying.
Thank you for your collaboration.

@KenjiOhtsuka I appreciate you trying to continue to work on it. But like I said, I have hard forked this and customize it according to my needs. If you want to check out how I've customized it, you can check it out here: https://github.com/alpas/alpas/tree/master/core/src/main/kotlin/dev/alpas/lodestar/migration
I don't want you to spend a bunch of time on modifying harmonica to fit my needs, as I'm probably not going to use it. However, if you are interested and have some time, even if it is in future, I'd love to have you collaborate with me on improving https://github.com/alpas/alpas/tree/master/core/src/main/kotlin/dev/alpas/lodestar/migration (I could use some help with tests and supporting Ktorm). I'd be more than happy to mention harmonica in the documentation. I'll let you decide, of course. :)


Edit draft resets the payee to default profile

Describe the bug
When editing an invited expense right after submission, the payee profile is not set to the person who got invited initially.
Note that this does not affect the flow of invited users clicking on the email link (the one that includes a key).
To Reproduce
Steps to reproduce the behavior:

Invite someone to submit an expense
On the expense page, click "Edit"
See issue: default logged in user profiles used in place of invited profile

Screenshots

cc @kewitz

Hey @Betree, I cannot reproduce this locally. Are you sure you're an admin of "test" in this example? Otherwise, you would be trying to submit an expense on behalf of someone else, and that's not allowed.

It's more of a UX issue than a bug; as an expense inviter, I'd like to be able to edit some basic information about the invitation I just submitted. The system lets me "Edit" so you expect this to be possible. Having the payee switched to your personal profile is unexpected in this scenario.


overlapTrigger, xPosition, and yPosition have no effect on mat-menu

Bug
Applying [overlapTrigger]="false" to a mat-menu seems to have no effect.  As a matter of fact, the xPosition and yPosition attributes seem to have no effect either.
What is the expected behavior?
I've got a button that triggers a menu like this:
`

<button mat-button [matMenuTriggerFor]="reportsMenu">Reports <mat-icon>expand_more</mat-icon></button>
<mat-menu class="sub-menu" #reportsMenu="matMenu" [overlapTrigger]="false">
  <button mat-menu-item>Observation Summary Report</button>
  <button mat-menu-item>Raw Excel Report</button>
</mat-menu>

`
According to the docs, the attributes mentioned above should alter the positioning.
What is the current behavior?
In my application, none of the attributes have any effect.  The menu popup always appears directly over the button that triggers it.
What are the steps to reproduce?
I CANNOT reproduce this in a plunker.  I've been trying for hours.  I drop the exact same html into the plunker and it works fine.  I am at a complete loss.
all I can do is post the markup and hope someone just knows what is going on from experience.  It has to be some sort of configuration error
  <button mat-button routerLink="/">

    {{title}}</button>

    <button mat-button [matMenuTriggerFor]="reportsMenu">Reports <mat-icon>expand_more</mat-icon></button>
    <mat-menu #reportsMenu="matMenu" [overlapTrigger]="false">
      <button mat-menu-item>Observation Summary Report</button>
      <button mat-menu-item>Raw Excel Report</button>
    </mat-menu>

    <button mat-button >Users <mat-icon>expand_more</mat-icon></button>

  <button mat-button [matMenuTriggerFor]="menu" fxHide="false" fxHide.gt-sm>
    <mat-icon>more_horiz</mat-icon>
  </button>

  <button mat-button [matMenuTriggerFor]="userMenu" *ngIf="!!user">
    Hello, {{user.firstName}}
  </button>
  <mat-menu #userMenu="matMenu">
    <button mat-menu-item>View Profile</button>
    <button mat-menu-item (click)="logout()">Logout</button>
  </mat-menu>
</mat-toolbar>

Which versions of Angular, Material, OS, TypeScript, browsers are affected?
I updated everything to the latest versions as of yesterday before implementing.  I'm using google chrome.

If it's in the top right corner of the viewport (which it kinda looks like in your markup), then it won't really matter how you set xPosition and yPosition. There is only one position that lands within the viewport: before and below.
That doesn't help with overlapTrigger though. Can you maybe post a screenshot?

it's not quite in the corner.  Here are two shots that show that part of the toolbar and how the menu triggers after clicking the "Reports" button.

Ha, what would you know.  A new day and it only took me 5 minutes to realize what's wrong.  I have another element with the attribute "#reportsMenu" (not in the markup I posted) and a separate trigger for it.  It's meant to be this way since they never show at the same time (the second is essentially a small screen replacement for the first).  As soon as I comment that element out, the original menu behaves correctly.
I guess I need to give them different names is all.  It might be nice if this somehow threw a compiler error or was emphasized more in the documentation, but ultimately this is just user error.  Thanks.

I think datepicker has an error for when you try to reuse one for multiple inputs. Maybe there is an error that can get added.
Can you clarify what it was?

Trying to reuse the sample menu in multiple triggers
Using the same template ref name for multiple menu/trigger pairs

It's the second one, I was using the same ref name, #reportsMenu="matMenu" for two different elements.

I don't think there's any good way for this library to recognize when that's happened, since it's kind of in Angular-land (not much different than redefining a variable in JS). I think a language service extension might be able to detect this but I'm not sure.

The language service doesn't catch it or doesn't think it's wrong.  I'm using it with Webstorm.
On second thought I wonder if this behavior is valid.  Why should a duplicate ref name stop the positioning from working correctly?

Maybe this example can help explain it,
https://stackblitz.com/edit/material2-rc0-mvg4cm?file=app/app.component.html

Oh I see.  It's grabbing the second menu no matter what.  I just didn't notice it because mine were identical.  Thanks.

Closing since this looks like a user error. Also FWIW, we may be able to detect it, but I'd rather avoid it, because it would mean having to store a reference to the trigger on the menu itself.


Tensorflow Roadmap README link broken

Link to 'Tensorflow Roadmap' in README is broken: https://www.tensorflow.org/community/roadmap
This template is for miscellaneous issues not covered by the other issue categories.
For questions on how to work with TensorFlow, or support for problems that are not verified bugs in TensorFlow, please go to StackOverflow.
If you are reporting a vulnerability, please use the dedicated reporting process.
For high-level discussions about TensorFlow, please post to<EMAIL_ADDRESS>for questions about the development or internal workings of TensorFlow, or if you would like to know how to contribute to TensorFlow, please post to<EMAIL_ADDRESS>

@4d55397500,
Please take a look at this comment from a similar issue and let us know if it helps. Thanks!

Ah I see @amahendrakar

@4d55397500,
Hope the above comment answers your query. Please feel free to close the issue if resolved. Thanks!


Fix small typo that was causing the configured "example analyses auth…

…or" to be ignore in local development

I'll be self-merging this because the fix is self-explanatory.


Allow logged-in users to generate persistent share link

Describe your design or art need by answering the questions below:
What are the requirements for the project?
Right now, when users publish their project it generates a URL and saves a copy of the code exactly as it is at the moment that publish was clicked. If they change their code and publish again it will generate a different URL. We want to add the option for logged-in users to be able to "update" a shared version of the project so that the code can be updated without the URL changing.
A possible flow would be:

User clicks the "Share" button
User has the option to publish "anonymous" (current system) or "persistent" (the new feature)
If the user chooses persistent publish, the next time they click "Share" they see the options to publish anonymous or to update the previous shared game

Is there a deadline or date this is needed by?
In 2-3 weeks
Please share any existing references, screenshots, links, etc. here that will help us better understand your requirements
The current share flow:

Not sure where to put this exactly, but while this feature doesn't currently touch the share page, the plan is for it to eventually lead to a bigger share page update (displaying the name of the game creator, view/play stats, etc). Mostly tangential to this request but just for context!
Optional Additional Questions:
Who are the stakeholders that need to sign off on this design? Tag them here.
@shakao @abchatra (might be some more people later? Will update this issue as necessary)
What audience is this request for?
Only logged-in MakeCode users. The feature will be across all targets but will probably start with Arcade
What does success look like?
Users update their games more frequently, more views of persistently shared games (vs one-time share links), maybe more conversion fom the share page to Arcade?
How will we measure if this is successful or not?
Share page view metrics (persistent vs anonymous), share page conversion metrics

+@Jaqster for visibility.

We also need to talk about the Modding flow/behavior for persistent shares.  I'm assuming only the original content author can update the persistent linked project?

Only original author can update the persistent link. Others can import and create new links.

There is a similar issue (with a larger scope) here: https://github.com/microsoft/MakeCode-CD/issues/15

Persistent share is implemented.


TSAN lock-order inversion introduced by shutdown change

This commit (identified by local bisection) introduced a TSAN lock-oder-inversion, as seen in this log. The runner identifies the crash as an infra failure, even though it seems to be just the TSAN violation causing the crash.

Reverted https://dart-review.googlesource.com/c/sdk/+/213561


Add to Cart

When adding a product to the cart I get a perpetual loading spinner overlay. All caching off. Using C5 8.1

You'll need to use something like Chrome's Web Inspector to see what javascript error message you are getting, or what error is being thrown by the call to the server. What you can do is open up the network tab and take a look at the request made when you add the product to the cart - the actual data returned can be investigated


Crash by SIGFPE.

Describe the bug
I'm using the coc.nvim as a rust completion plugin. When the completion list is large (about 30+ items) and quickly tape <C-n>/<C-p>/<TAB> to retrieve these items it would crash by a SIGFPE signal, randomly.
To Reproduce

make a long completion list.
quickly retrieve  these

Expected behavior
Completion list to work fine.
Screenshots

Environment (please complete the following information):

VIM - Vi IMproved 8.1 (2018 May 18, compiled Jul  4 2019 23:02:48)
Included patches: 1-1635
Compiled by Arch Linux
OS: Manjaro 18.0.4 Illyria
Terminal: konsole

Additional context
Here is the full backtrace:
#0  0x00007f4f10019a5b in kill () at /usr/lib/libc.so.6
#1  0x000055a0fbc287f2 in mch_exit ()
#2  0x000055a0fbd4882d in getout ()
#3  0x00007f4f101b5d00 in <signal handler called> () at /usr/lib/libpthread.so.0
#4  0x000055a0fbc344f2 in update_popups ()
#5  0x000055a0fbc71e1d in update_screen ()
#6  0x000055a0fbb7e736 in ex_redraw ()
#7  0x000055a0fbb86045 in do_cmdline ()
#8  0x000055a0fbb49a2d in ex_execute ()
#9  0x000055a0fbb86045 in do_cmdline ()
#10 0x000055a0fbcd72d8 in call_func ()
#11 0x000055a0fbcd7b7c in get_func_tv ()
#12 0x000055a0fbb4f02d in  ()
#13 0x000055a0fbb4f794 in  ()
#14 0x000055a0fbb4fa64 in  ()
#15 0x000055a0fbb49074 in  ()
#16 0x000055a0fbb49213 in eval1 ()
#17 0x000055a0fbb49cf0 in eval0 ()
#18 0x000055a0fbcdaeb2 in ex_return ()
#19 0x000055a0fbb86045 in do_cmdline ()
#20 0x000055a0fbcd72d8 in call_func ()
#21 0x000055a0fbcd7d54 in call_callback ()
#22 0x000055a0fbb74b02 in check_due_timer ()
#23 0x000055a0fbcc8da6 in ui_wait_for_chars_or_timer ()
#24 0x000055a0fbc250b6 in  ()
#25 0x000055a0fbccacf1 in inchar_loop ()
#26 0x000055a0fbcca75c in ui_inchar ()
#27 0x000055a0fbbb19b0 in  ()
#28 0x000055a0fbbb32b5 in  ()
#29 0x000055a0fbbb4b18 in vgetc ()
#30 0x000055a0fbbb4da9 in safe_vgetc ()
#31 0x000055a0fbb3c656 in edit ()
#32 0x000055a0fbbf9307 in  ()
#33 0x000055a0fbbf9e56 in  ()
#34 0x000055a0fbc058a9 in normal_cmd ()
#35 0x000055a0fbd4972c in main_loop ()
#36 0x000055a0fbd4aac9 in vim_main2 ()
#37 0x000055a0fbb16b79 in main ()

Should be fixed by Patch 8.1.1665.  Please reopen if not.


x-vector: mapMaybe, imapMaybe, mapMaybeM, imapMaybeM

This adds the project x-vector with support for mapMaybe, imapMaybe, mapMaybeM, imapMaybeM.
After this will do transpose :: Vector (Vector a) -> Vector (Vector a)
/cc @amosr @tranma @olorin @erikd-ambiata

🐒

Nice. :cat:

Should we have a lazy transpose, which does the index translation as you request a particular value; or just strict transpose? Probably the latter I think


Fix invalid buffer length in logFormat()

Fix invalid buffer length in logFormat()
When the buffer passed to vsnprintf() is too small it actually returns length of the string, not how many characters have been written to the buffer (which is limited by the buffer size).
So bound len by sizeof(buf) - 1 in logFormat().

I'm gonna take a look, I can write also a unit so we can see this in CI.

But it's confusing how doc differs, for example MS says "functions return -1 indicating that output has been truncated" while linux manpage says "Thus, a return value of size or more means that the output was truncated". So I guess that if (len >= sizeof(buf)) is the safest here as -1 would be converted to a very big number that will never satisfy the sizeof(buf) condition.
I will merge this one soon, just wanna check other parts of code for the same issue.

Anyway, looks good to me, merging.


Remove eslint rules about no-deps on useEffect

Looking at this, I guess there's a pattern that we should be using to avoid needing to change the eslint rules. Wish it was something demonstrated in the core docs in a more obvious way though:
https://betterprogramming.pub/why-eslint-hates-your-useeffect-dependencies-react-js-560fcac0b1f

Looking at this, I guess there's a pattern that we should be using to avoid needing to change the eslint rules. Wish it was something demonstrated in the core docs in a more obvious way though:
https://betterprogramming.pub/why-eslint-hates-your-useeffect-dependencies-react-js-560fcac0b1f

@karlolsonuc this is magnificent and a huge learning step toward React Hooks!
Thank you for your due diligence on this issue.


A typo in exporters/onnx/model_configs.py

System Info
-

Who can help?
@lewtun @michaelbenayoun
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction
dyanmic_axes should be dynamic_axes
    @property
    def outputs(self) -> Mapping[str, Mapping[int, str]]:
        common_outputs = super().outputs
        if self._behavior is ConfigBehavior.ENCODER:
            for name, dyanmic_axes in common_outputs.items():
                if name == "last_hidden_state":
                    common_outputs[name][1] = f"{common_outputs[name][1]} / 2"
                else:
                    common_outputs[name] = dynamic_axes
        return common_outputs

https://github.com/huggingface/optimum/blob/334d3cf007914fee60d401919d5d32ce0edf237b/optimum/exporters/onnx/model_configs.py#L919
Expected behavior

Thanks for the ping. Quickly testing, it appears in 1.6.3 that the sole output of the encoder is last_hidden_state. Why was this control flow needed @mht-sharma @michaelbenayoun ? As for the encoder https://github.com/huggingface/optimum/blob/334d3cf007914fee60d401919d5d32ce0edf237b/optimum/exporters/onnx/base.py#L553-L558 is called, the task is default, and the sole output is last_hidden_state?

Hi @fxmarty I think this was added because the sequence length in the last_hidden_state of the Whisper encoder  is half times that was provided as input to the model. So the dynamic axes is modified accordingly.

Yes, that's what I was referring to.


fix: Make ReadWarehouse compatible with quoted resource identifiers

Test Plan

[x] acceptance tests
[x] internal tests
[x] unit tests

References

https://github.com/chanzuckerberg/terraform-provider-snowflake/issues/862
https://github.com/chanzuckerberg/terraform-provider-snowflake/issues/844
https://github.com/chanzuckerberg/terraform-provider-snowflake/issues/791
https://github.com/chanzuckerberg/terraform-provider-snowflake/issues/774

/ok-to-test sha=783dd2b


Extend the existing import-map when using htmlGenerate

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Extending the existing this.traceMap.map with the map from htmlGenerate. So, the htmlGenerate can be used for simple concatenation purposes.
Breaks a test right now, since it's inheriting the this.traceMap.map. I think we might need a clean-up action after generating map or some flag to allow this contactnation.
+ actual - expected ... Lines skipped

  '\n' +
    '<!doctype html>\n' +
...
    '  </script>\n' +
    '  <link rel="modulepreload" href="/react.js" />\n' +
+   '  <link rel="modulepreload"<EMAIL_ADDRESS>/>\n' +
    '  <link rel="modulepreload"<EMAIL_ADDRESS>/>\n' +
    '<script type="module">\n' +
    "  import 'react';\n" +
    '</script>\n'
    at file:///Users/jkrishna/Documents/jspm/generator/test/html/indent.test.js:13:8 {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: '\n' +
    '<!doctype html>\n' +
    '  <!-- Generated by @jspm/generator - https://github.com/jspm/generator -->\n' +
    '  <script async<EMAIL_ADDRESS>crossorigin="anonymous"></script>\n' +
    '  <script type="importmap">\n' +
    '  {\n' +
    '    "imports": {\n' +
    '      "object-assign": "/react.js",\n' +
    '      "react"<EMAIL_ADDRESS>+
    '    }\n' +
    '  }\n' +
    '  </script>\n' +
    '  <link rel="modulepreload" href="/react.js" />\n' +
    '  <link rel="modulepreload"<EMAIL_ADDRESS>/>\n' +
    '  <link rel="modulepreload"<EMAIL_ADDRESS>/>\n' +
    '<script type="module">\n' +
    "  import 'react';\n" +
    '</script>\n',
  expected: '\n' +
    '<!doctype html>\n' +
    '  <!-- Generated by @jspm/generator - https://github.com/jspm/generator -->\n' +
    '  <script async<EMAIL_ADDRESS>crossorigin="anonymous"></script>\n' +
    '  <script type="importmap">\n' +
    '  {\n' +
    '    "imports": {\n' +
    '      "object-assign": "/react.js",\n' +
    '      "react"<EMAIL_ADDRESS>+
    '    }\n' +
    '  }\n' +
    '  </script>\n' +
    '  <link rel="modulepreload" href="/react.js" />\n' +
    '  <link rel="modulepreload"<EMAIL_ADDRESS>/>\n' +
    '<script type="module">\n' +
    "  import 'react';\n" +
    '</script>\n',
  operator: 'strictEqual'
}

We can see a additional react tracing has been added to react
+   '  <link rel="modulepreload"<EMAIL_ADDRESS>/>\n' +

Can you please provide a test case that shows what this is solving in the first place?

@guybedford here is the test-case
https://github.com/jspm/generator/pull/117/files#diff-30b40beb688c9a52f105d884f8aee14ac0515ca1b84b1c0980df6b5f3ea2750eR1

Thanks for adding a test case... what exactly is the issue that the test case doesn't work on current generator? It seems like it should?

It works, but starting to break other tests. Before trying to fix them, I would like to know if this can be a valid use case to solve.

@JayaKrishnaNamburu I mean what is the issue that this PR solves? Looking at the test I can't tell why this test fails against the main branch.

@JayaKrishnaNamburu specifically I'm thinking here - I know of at least two bugs that might cause generation issues with versions and existing maps which I could fix, so knowing the test case and why it's failing in the first place would help to know if this is one of those bugs or indeed a new feature request.

It's the test from indent.test.js that's failing. I am not sure why. We are passing a simple html with module react used. But, it seems to generate two html tags for react. One with production and one with local. I don't know if i am able to explain correctly sorry 😅
<link rel="modulepreload"<EMAIL_ADDRESS>/>\n' +
'  <link rel="modulepreload"<EMAIL_ADDRESS>/>\n' +

It's adding two module preloads instead of just one. Where the import-map is just
 {
    "imports": {
      "object-assign": "/react.js"
    }
  }

It would really help for communication to always include a clear description and test when creating a PR to begin with.
I'm happy to help, I'm just very short on time. I'll take a look in the next couple of days.

Just cloned and ran this which was necessary to get the context, and I finally get the concept that you want to retain the existing map.
Is this because you have a set import map of possible packages that must be retained for dynamic imports that are untraceable by the generator?
If so, do you need to use the map as the source of truth or would it be possible to just rely on generator.install to prepopulate these packages?

I feel, replying on pre-defined import-map provided by the inputMap would be much reliable to eliminate the duplicate than the generator.install

I see, thanks, yes I agree inputMap should be authoritatively embedded without pruning.
So the reason for the test failures then is that they share the generator instance, and thus this.traceMap.map has contents from the previous run.
Let's rather store inputMap in the constructor of the Generator on the instance, and extend from that directly rather than using this.traceMap.map as the inputMap source.

So the reason for the test failures then is that they share the generator instance, and thus this.traceMap.map has contents from the previous run.

Yes, exactly what i was trying to say before 😅

Yes, exactly what i was trying to say before

I see, but you did not mention inputMap or provide an initial description which did, which was why it took me so long to follow and required me to clone the repo and actually work through the code in detail to follow it.

This should now be fully supported by https://github.com/jspm/generator/pull/134.


Choose parsing at render time for Prismic content

We currently store HTML in some of our fields e.g. event.description.
This means we would have to create another parser to parse this into text, where we already have the asText function.
It would be good to start storing the ProseMirror model in the model, and then choose parsing at rendering time.

Generally done in the massive tidy up and move to next and JSX


Non-ASCII URLs seem to be a problem

I'm not sure, since this log doesn't even open for me.

🙏 Will look!

🙏 Will look!

Looks like this isn't actually the unicode chars in the URL, but that Bridgy Fed may not be compatible with Plume. When it asks Plume for ActivityStreams 2 (as part of ActivityPub), Plume returns HTML instead:
$ curl -v -H 'Accept: application/activity+json; q=0.9, application/ld+json; profile="https://www.w3.org/ns/activitystreams"; q=0.8' 'https://blog.wagner.pp.ru/~/%D0%96%D1%83%D1%80%D0%BD%D0%B0%D0%BB%D0%92%D0%B8%D1%82%D1%83%D1%81%D0%B0/%D0%BF%D0%B5%D1%80%D0%B2%D1%8B%D0%B9-%D0%BF%D0%BE%D1%81%D1%82'
...
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=utf-8
< Content-Length: 9203
<
<!DOCTYPE html>
...

Looks like this isn't actually the unicode chars in the URL, but that Bridgy Fed may not be compatible with Plume. When it asks Plume for ActivityStreams 2 (as part of ActivityPub), Plume returns HTML instead:
$ curl -v -H 'Accept: application/activity+json; q=0.9, application/ld+json; profile="https://www.w3.org/ns/activitystreams"; q=0.8' 'https://blog.wagner.pp.ru/~/%D0%96%D1%83%D1%80%D0%BD%D0%B0%D0%BB%D0%92%D0%B8%D1%82%D1%83%D1%81%D0%B0/%D0%BF%D0%B5%D1%80%D0%B2%D1%8B%D0%B9-%D0%BF%D0%BE%D1%81%D1%82'
...
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=utf-8
< Content-Length: 9203
<
<!DOCTYPE html>
...

Yep, I've just mentioned that in #44 — sorry for the trouble.
Still, with ASCII-only URL I can at least view the log, while with non-ASCII it doesn't open, so I think the issue is still valid, if only for the log representation part.

Yep, I've just mentioned that in #44 — sorry for the trouble.
Still, with ASCII-only URL I can at least view the log, while with non-ASCII it doesn't open, so I think the issue is still valid, if only for the log representation part.

Ah! True, good point, wil look.

Ah! True, good point, wil look.

Fixed! Example log: https://fed.brid.gy/log?key=🕸💍&start_time=1615778418


Instruction or methods for uninstallation

I know it is probably as simple as find /usr/local/ -name 'hub*' and remove all files. However, I think a proper documented/supported method for uninstallation should be available for users not familiar with Gem or Unix in general.

We need uninstallation instructions/script for Debian.


Fix invalid regex string syntax

Fixes a crash that happens if you import parse, either on it's own or as the whole module.

Ooh yeah, I was just about to write this PR myself! The ur string prefix has been removed since Python 3.3 in 2012, so kdl-py won't work on any version released in the last almost a decade.

...I think this might be a duplicate PR of #2.

...I think this might be a duplicate PR of #2.

It is in fact :) I forgot to check older PRs


Fix making doom-first-input-hook permanent-local

We were making the value of doom-first-input-hook permanent-local
instead of doom-first-input-hook itself. That value is normally nil at
this point, which seems to be harmless. Reloading core.el from a script
(while doom-first-input-hook is not empty) results in an error.
Fix it by adding the missing quote present in the other calls.

Good catch, thanks!


large String[] create Tensor in java

i use this way to create a tensor by a large String[] in java:

// Valid: Matrix of String tensors.

// Each element might have a different length.
byte[][][] matrix = new byte[2][2][];
matrix[0][0] = "this".getBytes("UTF-8");
matrix[0][1] = "is".getBytes("UTF-8");
matrix[1][0] = "a".getBytes("UTF-8");
matrix[1][1] = "matrix".getBytes("UTF-8");
Tensor m = Tensor.create(matrix, String.class);
}

however,it cost too much time. my String[] length of 6000+,create the tensor will cost 20+ m. how can i deal with it? thanks.

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

It has been 15 days with no activity and the awaiting response label was assigned. Is this still an issue?

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

@gxsaccount If you still have this question please ask on StackOverflow. There is also a larger community that reads questions there.

It has been 14 days with no activity and the awaiting response label was assigned. Is this still an issue?

It has been 31 days with no activity and the awaiting response label was assigned. Is this still an issue?

We are closing this issue for now due to lack of activity. Please comment if this is still an issue for you. Thanks!


Failing to toggle staging/prod API

Hitting the selector today spits out this:
 LOG  Switching to staging environment
 WARN  We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320

I did this recently, it works.


How do I disable HotReload for Release builds?

I am happy to use HotReload for my Project. But it makes bigger size for android apk.
After unzipping the apk, I see  Xamarin.Forms.HotReload.Reloader.dll ,Microsoft.CodeAnalysis.CSharp.dll and Microsoft.CodeAnalysis.dll in assemblies folder.
Any way to remove them? Thanks!

Hi) Yeas, of course it's possible)

can you share csproj file with me?

Well, it looks like:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <DebugType>pdbonly</DebugType>
    <DebugSymbols>true</DebugSymbols>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Xamarin.Forms" Version="<IP_ADDRESS>5618" />
    <PackageReference Include="Xamarin.HotReload" Version="1.4.19" />
  </ItemGroup>

</Project>

You need to put HotReload to Debug ItemGroup section (create new one) like:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <DebugType>pdbonly</DebugType>
    <DebugSymbols>true</DebugSymbols>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Xamarin.Forms" Version="<IP_ADDRESS>5618" />
  </ItemGroup>

  <ItemGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <PackageReference Include="Xamarin.HotReload" Version="1.4.19" />
  </ItemGroup>

</Project>

Does it help?)

I thought it should work.  But unfortunately, it did not disable the HotReload.  I still saw Xamarin.Forms.HotReload.Reloader.dll ,Microsoft.CodeAnalysis.CSharp.dll and Microsoft.CodeAnalysis.dll in assemblies folder.
I just added Xamarin.HotReload nuget to my portable project  and  did the changes.
<ItemGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
  <PackageReference Include="Xamarin.HotReload" Version="1.4.19" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)|$(Platform)'=='Pro_Debug|AnyCPU'">
  <PackageReference Include="Xamarin.HotReload" Version="1.4.19" />
</ItemGroup>
<ItemGroup>
  <PackageReference Include="Acr.UserDialogs" Version="7.0.4" />
  <PackageReference Include="CarouselView.FormsPlugin" Version="5.2.0" />
  <PackageReference Include="dotMorten.Xamarin.Forms.AutoSuggestBox" Version="0.7.0" />
  <PackageReference Include="Flurl.Http" Version="2.4.2" />
<ItemGroup>

After that, I built a new apk by Visual Studio App Center and the apk still contains Xamarin.HotReload.
Any idea?  @AndreiMisiukevich

@TingtingAn try to remove bin/obj and remove HotReload from platform projects (leave it only in portable), then try to build again

@AndreiMisiukevich   Yea, I just kept Xamarin.HotReload in portable project and removed the bin/obj folders.   Still not work.
I created a  demo project.  Could you try to build the apk?

@TingtingAn sure, it will take a look
thanks

@TingtingAn , try ItemGroup Condition="'$(Configuration)' != 'Release'"
Full:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <DebugType>pdbonly</DebugType>
    <DebugSymbols>true</DebugSymbols>
  </PropertyGroup>

  <ItemGroup Condition="'$(Configuration)' != 'Release'">
    <PackageReference Include="Xamarin.HotReload" Version="1.4.15" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Xamarin.Forms" Version="<IP_ADDRESS>5618" />
    <PackageReference Include="Xamarin.Essentials" Version="1.1.0" />
  </ItemGroup>
</Project>

Hm, have you got any ideas how to work around it?

Then try it.
And remember.

You change build target (e.g. from Debug to Release)
You must force to restore packages by right click on solution -> Restore packages

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <DebugType>pdbonly</DebugType>
    <DebugSymbols>true</DebugSymbols>
  </PropertyGroup>

  <Choose>
    <When Condition="'$(Configuration)' == 'Debug'">
      <ItemGroup>
        <PackageReference Include="Xamarin.HotReload" Version="1.4.15" />
      </ItemGroup>
    </When>
  </Choose>

  <ItemGroup>
    <PackageReference Include="Xamarin.Forms" Version="<IP_ADDRESS>5618" />
    <PackageReference Include="Xamarin.Essentials" Version="1.1.0" />
  </ItemGroup>
</Project>

@AndreiMisiukevich   It does not work.  And I got the info here.
https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#adding-a-packagereference-condition
You can use a condition to control whether a package is included, where conditions can use any MSBuild variable or a variable defined in the targets or props file. However, at presently, only the TargetFramework variable is supported.

@TingtingAn agrh.. So, it's problem.
Okay, you for now you may comment this line in csproj and build the apk.. need to investigate

linking assemblies don't solve this?
https://docs.microsoft.com/en-us/xamarin/android/deploy-test/linker

`  ...

`

   ...
    <PackageReference Include="Xamarin.Forms" Version="<IP_ADDRESS>9249" />
  </ItemGroup>

  <ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
	  <PackageReference Include="Xamarin.HotReload" Version="1.4.19" />
  </ItemGroup>

This solution seems to work on my side

   ...
    <PackageReference Include="Xamarin.Forms" Version="<IP_ADDRESS>9249" />
  </ItemGroup>

  <ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
	  <PackageReference Include="Xamarin.HotReload" Version="1.4.19" />
  </ItemGroup>

This solution seems to work on my side.
It is very important because of Microsoft.CodeAnalysis.* dependencies that adds 20Mo on our production apk (aot activated , 2 ABI).

so you don't see useless DLLs in your apk?

Yes. No more libaot-Microsoft.CodeAnalysis.CSharp.dll.so

@rudyspano  In fact, commenting HotReload PackageReference is my only soultion.
https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#adding-a-packagereference-condition
According to the Microsoft documentation, we know only the TargetFramework variable is supported for packagereference condition.
So I think your solution will not work.  I've tried it before and it really doesn't work.
And I am using Visual Studio App Center to build the apk and SDK version is Xamarin.Android 6.4
What is your build environment? Could you try to build the apk by Visual Studio App Center?

@TingtingAn It is working on Visual Studio for Mac "Archive For Publishing" feature (do not forget to manually delete obj and bin folders). And also in our on Premise CI Environment (Jenkins, MSBuild on Mac). In order to view the APK Package content, we use Android Studio.
The condition is set on ItemGroup and not on PackageReference as sent...

Yes, it is working for Archive feature on my local Visual Studio.  So the issue is from Visual Studio App Center.
Let's close this.
Thanks very much! @rudyspano @AndreiMisiukevich