The extension does not activate

Hi,
I have installed Angular Language Service 2022 v1.0 in Visual Studio 2022 17.3.0.
I have an Angular (v13) only project which I open as a Folder. As far as I can see, installing the extension had no effect.
I have no completions, diagnostic messages, etc. The output window does not contain "Angular Language Service Extension" in "Show output from" dropdown. I have tried to open and edit several .ts and .html files.
Is there anything I should do to start the extension?

@transmogrifix Also, you mention opening the project as a folder. Have you tried opening the project/solution instead?

@MariaSolOs Any Angular project will do. Here is a simple one https://github.com/transmogrifix/angular-app
There are no project/solution files to open (sln, csproj, etc).

@transmogrifix thanks for the repro! #42 should fix the issue :)

@MariaSolOs Thank you for a quick response, unfortunately v1.0.1 is behaving the same.
Is there any other information I can provide to help you?

@MariaSolOs Thank you for a quick response, unfortunately v1.0.1 is behaving the same.
Is there any other information I can provide to help you?

Hmmm that's strange, it is working for me. Are you still not seeing anything on the output pane?

I've been trying the extension with the Visual Studio 2022 "Angular" templates ("ASP.Net Core with Angular" / "Standalone Typescript Angular Project"), but was unable to observe any effect. (In particular, I can't get the additional output category to show up.)
I've also been unable to try to build the code locally in order to see, if this makes any difference on the behavior.
(Can't log into the nuget repository, and the "global" repository doesn't contain the packages required.)
Is there anything else (except opening an html- or ts-file in an angular project) that needs to be done for the output category to show up?
Is there any way to generate useful diagnostic output that might help you determine the cause of the difference in behavior between the systems?

Is there anything else (except opening an html- or ts-file in an angular project) that needs to be done for the output category to show up?

@Khyalis yes, the extension will only be activated (and hence you will see the pane in the output window) only after opening a TypeScript or a component.html file.

@MariaSolOs Thank you for a quick response, unfortunately v1.0.1 is behaving the same.
Is there any other information I can provide to help you?

Hmmm that's strange, it is working for me. Are you still not seeing anything on the output pane?
The output window still does not contain "Angular Language Service Extension" in "Show output from" dropdown.
I tried several projects including the one I shared. I even tried reinstalling the extension.

The extension is working for you when you open the project I shared using "Open a local folder"?

@transmogrifix Yep. You can see from the solution explorer that I'm opening your repo using open folder:

For me, the location also was [...]\Microsoft\VisualStudio\17.0_[...]**EXP**\[...], when I tried with the extension compiled locally. (Which also displayed the "Angular Language Service Extension" output pane.)
Could there be a difference between the version on the market place and the version you had been trying which might be worth looking into?

I tried using the Extension with Visual Studio 2022 17.4 Preview.
When complied locally, the extension could be activated.
When using the version from the Market Place, I received a toast message:
Task Failed - Activating language client Angular Language Service Extension: The JSON-RPC connection with the remote party was lost before the request could complete.

For some reason, there does not seem to be a "node_modules" folder in the installation location for the extension installed from the Market Place, while when running a local build, there is.
Maybe this could cause the node process trying to host the angular language service to terminate prematurely?

For some reason, there does not seem to be a "node_modules" folder in the installation location for the extension installed from the Market Place, while when running a local build, there is.
Maybe this could cause the node process trying to host the angular language service to terminate prematurely?

Thanks for the investigation @Khyalis. That seems to be the issue indeed. I'll work on a fix for this soon.

@Khyalis @transmogrifix Please feel free to reopen if the issue persists!

@MariaSolOs Still nothing, I have tried v1.0.2 on two different computers this time just to be sure.

@MariaSolOs Still nothing, I have tried v1.0.2 on two different computers this time just to be sure.

Unfortunately, I only checked whether the extension would initialize. And it did seem to do so with a project based on the "Standalone Typescript Angular Project" template.
But looking into your repo and also looking at my local projects again, it seems like the service would only activate when opening a ".ts"-file, but not when opening a ".component.html" (Which quite frankly I might not have thought about verifying).
Does this agree with your observations, or is there no activation at all in your case?
With a local build / in the debugger, activation also occurs for the ".component.html" file type.
I'm unsure as to what might be the reason behind this difference in behavior.

Interestingly, even if I replace the contents of the live extension folder with the local build results, the behavior does not change: Activation still only occurs for ".ts" files, not for ".component.html".

@Khyalis @transmogrifix Please feel free to reopen if the issue persists!

I don't seem to be capable of reopening the issue.

I don't seem to be capable of reopening the issue.

@Khyalis I just reopened the issue.

But looking into your repo and also looking at my local projects again, it seems like the service would only activate when opening a ".ts"-file, but not when opening a ".component.html"

The LSP client is exported with both .ts and .component.html files, so the extension should activate when opening any of those.

I don't seem to be capable of reopening the issue.

@Khyalis I just reopened the issue.

But looking into your repo and also looking at my local projects again, it seems like the service would only activate when opening a ".ts"-file, but not when opening a ".component.html"

The LSP client is exported with both .ts and .component.html files, so the extension should activate when opening any of those.

I agree.
And while this appears to work just fine inside the Visual Studio Experimental instance, with the "normal" instance and installation via the Market Place, the behavior seems to be different.
Unfortunately, this eludes my understanding, leaving me of no use here.

I agree. And while this appears to work just fine inside the Visual Studio Experimental instance, with the "normal" instance and installation via the Market Place, the behavior seems to be different. Unfortunately, this eludes my understanding, leaving me of no use here.

I'm clueless at this difference in behavior. I'll continue investigating, please bear with me ❤  @Khyalis

I now found an explanation for the difference in behavior:
For the "normal" instance, the "Preview Features" by the name of "HTML LSP-based editor" was enabled, for the "experimental" Instance, it was not.
After enabling it in the experimental instance, and disabling it in the normal instance, the behavior is reversed.
Maybe @transmogrifix can confirm, whether the behavior in their case is also related to this feature, or if the behavior there is entirely different.
Meanwhile I will have to revert to 17.3 to figure out if this is just an issue with 17.4 preview.

For the "normal" instance, the "Preview Features" by the name of "HTML LSP-based editor" was enabled, for the "experimental" Instance, it was not.

OHHH that explains a lot. I can tell you what the difference is: When the HTML LSP editor is enabled, HTML documents have a different content type, and so the .component.html type definition that we define here doesn't have the right base definition.

I don't want to just add the other base definition because at some point the HTML LSP editor will be always enabled and in that moment we'll have to make other changes to this extension.

So for the time being, for the time being, users of 17.4 (Preview) need to be aware they decide whether to use the extension, or the preview feature.
Meanwhile I finished rolling back to 17.3.6.
But with it, the extension does not activate for either .ts- or .component.html-files. (And I made sure the Preview Feature "HTML and CSS LSP editors" is disabled there.)
I will now try if I can make it work with different settings.

I have VS 17.3.0 installed, the extension from market place does not activate for either .ts or .component.html files. I haven't tried building it locally.

I'm so sorry.
Today, the activation did work.
Unfortunately, I had performed a Windows update and installed some Visual Studio Features, so I was unable to tell what may have caused it.
I tried to uninstall the Features, but it still worked.
So now I have uninstalled Visual Studio, rebooted, and reinstalled it again, and currently, the extensions is back to not working.
I will next try to reboot the system without any additional change, to see what happens.

I have VS 17.3.0 installed, the extension from market place does not activate for either .ts or .component.html files. I haven't tried building it locally.

You're not supposed to build the extension locally, so please don't use that as a workaround.

Oh. I may have misinterpreted the "Local Build" section on the Extensions Market Place page as being targeted towards me.
In case any questions come up, I will be around.

Oh. I may have misinterpreted the "Local Build" section on the Extensions Market Place page as being targeted towards me.
In case any questions come up, I will be around.

Those instructions are for contributors (like you) that want to build the extension locally. You're absolutely welcome to do that! What I meant is that people shouldn't need to build the extension this way in order to use it, just downloading it from the market place should be enough :)

@Khyalis I think I know what's wrong. Could you please check if you have any errors in AppData\Local\Microsoft\VisualStudio\XXXX\ComponentModelCache\Microsoft.VisualStudio.Default.err?

@MariaSolOs Yes, see https://gist.github.com/transmogrifix/2c6e2fd4ba7050218f6d1447e9f59697

Yes, I also get the Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

Fantastic, thanks @transmogrifix @Khyalis for confirming! I'll fix the issue first thing tomorrow. Thanks for sticking with me!

@transmogrifix @Khyalis As promised, I just published a new release of the 2022 version of the extension that should hopefully fix this issue.
Please keep me updated! I won't close this for now until I hear back from you.

Hi, I just installed the version 1.0.3 of the Angular Language Service extension and it's not working. This is the error I have:
----- Catalog construction errors -----
Error #1
Microsoft.VisualStudio.Composition.PartDiscoveryException: Unable to load assembly "C:\Users\Andrea Amoroso\AppData\Local\Microsoft\VisualStudio\17.0_963c871d\Extensions\4xycgkus.l2o\AngularLanguageService.2022.dll" for scanning. ---> System.IO.FileLoadException: Could not load file or assembly 'AngularLanguageService.2022, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
--- End of inner exception stack trace ---
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.b__17_0(AssemblyName assemblyNameParam)
at Microsoft.VisualStudio.ExtensibilityHosting.Utilities.SafeGetOrAdd[TKey,TValue](IDictionary2 dictionary, TKey key, Object lockObj, Func2 valueFactory)
at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.LoadAssembly(AssemblyName assemblyName)
at Microsoft.VisualStudio.Composition.PartDiscovery.<>c__DisplayClass12_0.b__0(String path)
--- End of inner exception stack trace ---
----- CompositionError level 1 ------
Microsoft.CodeAnalysis.ExternalAccess.FSharp.Internal.GoToDefinition.FSharpFindDefinitionService.ctor(service): expected exactly 1 export matching constraints:
Contract name: Microsoft.CodeAnalysis.ExternalAccess.FSharp.GoToDefinition.IFSharpFindDefinitionService
TypeIdentityName: Microsoft.CodeAnalysis.ExternalAccess.FSharp.GoToDefinition.IFSharpFindDefinitionService
but found 0.
part definition Microsoft.CodeAnalysis.ExternalAccess.FSharp.Internal.GoToDefinition.FSharpFindDefinitionService
Microsoft.NodejsTools.TestAdapter.TestMethodResolver.ctor(discoverer): expected exactly 1 export matching constraints:
Contract name: Microsoft.NodejsTools.TestAdapter.TestContainerDiscoverer
TypeIdentityName: Microsoft.NodejsTools.TestAdapter.TestContainerDiscoverer
but found 0.
part definition Microsoft.NodejsTools.TestAdapter.TestMethodResolver
Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.DefaultTypeScriptWorkspace.ctor(typeScriptWorkspaceCore): expected exactly 1 export matching constraints:
Contract name: Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptWorkspaceCore
TypeIdentityName: Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptWorkspaceCore
but found 0.
part definition Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.DefaultTypeScriptWorkspace
Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.ResourceResolver.XamlResourceService.ctor(projectMetadataService): expected exactly 1 export matching constraints:
Contract name: Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.Metadata.IProjectMetadataService
TypeIdentityName: Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.Metadata.IProjectMetadataService
but found 0.
part definition Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.ResourceResolver.XamlResourceService
Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.ResourceResolver.XamlResourceService.ctor(projectService): expected exactly 1 export matching constraints:
Contract name: Microsoft.VisualStudio.DesignTools.DesignerContract.IHostProjectService
TypeIdentityName: Microsoft.VisualStudio.DesignTools.DesignerContract.IHostProjectService
but found 0.
part definition Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.ResourceResolver.XamlResourceService
Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.ResourceResolver.XamlResourceService.ctor(textBufferProvider): expected exactly 1 export matching constraints:
Contract name: Microsoft.VisualStudio.DesignTools.DesignerContract.IHostTextBufferProvider
TypeIdentityName: Microsoft.VisualStudio.DesignTools.DesignerContract.IHostTextBufferProvider
but found 0.
part definition Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.ResourceResolver.XamlResourceService
Microsoft.CodeAnalysis.ExternalAccess.Pythia.PythiaSignatureHelpProvider.ctor(implementation): expected exactly 1 export matching constraints:
Contract name: Microsoft.CodeAnalysis.ExternalAccess.Pythia.Api.IPythiaSignatureHelpProviderImplementation
TypeIdentityName: Microsoft.CodeAnalysis.ExternalAccess.Pythia.Api.IPythiaSignatureHelpProviderImplementation
but found 0.
part definition Microsoft.CodeAnalysis.ExternalAccess.Pythia.PythiaSignatureHelpProvider
Microsoft.CodeAnalysis.Editor.TypeScript.LSP.LSPCommandSupportProvider.ctor(serviceBroker): expected exactly 1 export matching constraints:
Contract name: SVsFullAccessServiceBroker
TypeIdentityName: Microsoft.ServiceHub.Framework.IServiceBroker
but found 0.
part definition Microsoft.CodeAnalysis.Editor.TypeScript.LSP.LSPCommandSupportProvider
Please let me know if you need any additional info. Thanks.

@transmogrifix @Khyalis As promised, I just published a new release of the 2022 version of the extension that should hopefully fix this issue.
Please keep me updated! I won't close this for now until I hear back from you.

@MariaSolOs The extension activates successfully now (for me at least)!
Now that it is active, the only difference I see is when I open a .component.html and make a typo it gets underlined:

But there are no completions, or anything else. Should I report this in a new issue?
Thank you!

@MariaSolOs I'm just trying to not get in the way too much while you're doing all the work.
Using 17.3.6, after updating the extension, it activates for both .component.html files and .ts files for both the project @transmogrifix provided as well as the templates that came with Visual Studio. Thanks a lot.
@transmogrifix When entering an opening "<", for me it also includes existing components (eg. 'app-root') in the suggestion (Except sometimes when trying it the first time after loading).
I think completion for attributes / attribute values / interpolation expressions and inline-templates would be very nice, but currently, support appears to be limited to "children" in the html text.
Is this a regression or more of a feature request?

@transmogrifix When entering an opening "<", for me it also includes existing components (eg. 'app-root') in the suggestion (Except sometimes when trying it the first time after loading). I think completion for attributes / attribute values / interpolation expressions and inline-templates would be very nice, but currently, support appears to be limited to "children" in the html text. Is this a regression or more of a feature request?
I am not sure if this a regression, the old VS2019 extension was far too unstable for me when I tried it several months (or maybe a year) ago.

@amoroso81 could you please open a separate issue? This seems to be a different problem. Please include your Visual Studio version :)

@transmogrifix @Khyalis thanks both for confirming and your patience <3!
Because the original problem linked to this issue seems solved now, I'll close this.
As for things not working properly inside {{ }}, that's sadly to be expected (see #20). Now that you can start the extension, I'll work on this next, but it might need to wait for the HTML LSP editor to be enabled by default (currently is a preview only feature).


[BUG]

Describe the bug
URL's seem to have stopped working when I used the HMTL Content Lite version today after a few months
To Reproduce
Steps to reproduce the behavior:

Go to '...' - Download Sample PBIX File from HTML Content Website - https://www.html-content.com/pbix/HTML-Content-Data-Model-Walkthrough.pbix
Click on '....' - Open the above .pbix file in PowerBI Desktop, the Hyperlink Page is able to open the Country Flags in a browser tab
Scroll down to '....' Now try using the custom visual in a New Page of PowerBI and try opening the same hyperlink there
See error - It doesn't open a Browser Tab! Does nothing in-fact

Expected behavior - It should open a Browser Tab
A clear and concise description of what you expected to happen.
Screenshots/Workbook
If applicable, attach screenshots or a sample workbook with data suitable for public viewing to help explain your problem.
Power BI Setup (please complete the following information):

Platform: [e.g. Power BI Desktop, Power BI Service]
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Visual Information (please complete the following information, available by right-clicking the visual in Power BI and selecting About):

Version: [e.g. <IP_ADDRESS>]

Additional context
Add any other context about the problem here.

User error (facepalm) - Allow opening URLs needs to be toggled on in the Content Formatting section in Visualizations - Middle Tab (the Paint roller icon)


Embed Contributing.md & First_time.md to kodadot web

I guess for a single point of truth (file) and SEO reasons, would be nice to embed currently existing Contributing.md and First_time to help easily onboard developers.
@roiLeo suggests https://content.nuxtjs.org/
The best would be probably to leverage the existing markdown module we are using? vue-markdown-render I guess?
routes could be

kodadot.xyz/contribute
kodadot.xyz/first_time

Ref

#361
#1075
maybe https://github.com/wxsms/vue-md-loader ?

@yangwao I'll check this

Ill check this out

Let me know if help is still needed on this

Hi, I will take this


Should we print a "Using" message when a gem is first added?

Since https://github.com/bundler/bundler/pull/5790, "Using " messages on bundle install are not printed unless the dependency has changed.
However, when you first add a dependency, the "Using " message is also skipped, although I would consider that the dependency has changed in this case (from none to something), so I think I would like the "Using " message to be printed?

Also, on a related note, this feature is not yet enabled and hidden under a feature flag that gets enabled on bundler 3.
However, this seems like a backwards compatible improvement to me, should we remove the feature flag and ship this on the next minor? Say, 2.2.0?


Frontend : HTML Accessibility

Description
 -  In this issue i cover the topic of HTML Accessibility , I would like to work on this issue , in this issue i fully explain the topic accessibility in great detail.
Domain
Frontend Dev HTML/CSS/JS
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign


Any roadmap?

I'm more than happy to participate in this effort, even if it's not much.
But i'm wondering what are we waiting before making this site alive?
I mean, you've pointed out some places where there is absolutely a need for great tutorial.
But this kind of thing can be delivered latter, in my opinion.
So is there some reason not to go live?

Initial release is going to have the following:

home page (100%?)
getting started page (0%)
cheatsheet (90%?)
docs pages (60%?)

Chris has pending work on the docs pages design.  I'm working on the API reference generator, which I hope to wrap up in a week or so.

So we can assume that the site will be release in a week, or a couple of week.
Great


Add CreditBundle model

Add CreditBundle model
Change-type: minor

Contributor checklist

[ ] Includes tests
[ ] Includes typings
[ ] Includes updated documentation
[ ] Includes updated build output

LGTM


from_anndata:  uns fails to be saved

from_anndata/from_h5ad fail to persist the contents of uns.  This is often a critical container of dataset metadata and needs to be retained.
CC @maniarathi

#65 is merged


Image automation with flux

Support other container registries than docker hub.
Take a look at flux implementation:
https://github.com/fluxcd/image-reflector-controller/blob/main/internal/controller/imagerepository_controller.go#L286
https://github.com/google/go-containerregistry

already done in a previous pr


Filter empty balances in omni_getall* RPC calls

This PR serves to filter out empty balance objects from the return results of omni_getall* RPC calls.
To address https://github.com/OmniLayer/omnicore/issues/257.

Perfect! Thanks.
FYI: you can auto-close an issue with something like "this resolves #257".


Create decent looking 404 page

The 404 page needs to be made a little bit more user friendly if possible. Do do this, just edit the file src/main/webapp/404.html and add any necessary css or js if needed

worked on improving the 404 page improve404Page


updating  DisplayName and PackageName in config.xml

Hello, Thanks for providing this module. Really easy and Help ful.
One thing I like to know - is there any way to update DisplayName/Package Name?
The reason I am asking is, I need to provide different apks apks for different environments like DE, PROD etc. while build apk I need to update DisplayName and PackageName to differentiate between environments. Any way we can achieve this?
Thanks again

What tag is that? There is a setName method. Not entirely sure if that would do for your use case?

Looks like setID and setName resolves my issue. Thanks.

:+1:
If you need additional methods, PR more then welcome ;)


get a list of all routes incl. blueprints

hey
how can i get a list of all routes incl. blueprints?
sails.config.routes give only a list of custom routes.
thanks for help

If you turn on the silly log level it should generate a list
-kevin
On Apr 20, 2015, at 07:55, norbu89<EMAIL_ADDRESS>wrote:
hey
how can i get a list of all routes incl. blueprints?
sails.config.routes give only a list of custom routes.
thanks for help
—
Reply to this email directly or view it on GitHub
https://github.com/balderdashy/sails/issues/2849.

thanks for help.
silly log level?

You can do it with $ sails lift --silly.

can i get this list in a controller?
i want to create a app like loopback explorer.

@norbu89 we are working on implementing this feature with swagger: https://github.com/balderdashy/sails/issues/1094. Interested in helping out?

ah ok, would be the first time i for me.
swagger looks nice ;-) yes swagger is exactly this that i looking for!
yes i interested -  do you have more inforamations?

@tjwebb how can I help implement this feature? :)

Hey @renanvieira, you're interested in working on the swagger implementation? Let's move over to https://github.com/balderdashy/sails/issues/1094


Add implementation of Breadth-First Search

Add an example implementation of the Breadth-First Search algorithm in SearchingAlgorithms/GraphSearch/breadth_first_search.py

Will do if it is still to be done

May I work on this one please?

@Lagostra Hi, you have been invited as a member, join the org and help out !


Animations

Library
Use GSAP to add some cool animations to the website. Also use CSS animations. Check out scrollmagic, too.
Animations
Here's some I have in my mind:

game images and apps appearing as the user scrolls the webpage
something on the landing page
cool footer
on the game post, animate images

Suggested bezier curve: .62,.28,.23,.99, something like the asymmetric animation in material design.

Loading and animating images in: http://www.google.com/design/spec/patterns/loading-images.html


Update Starburst Presto Version

The Presto version offered is now v302-e.

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

ID: 8c813b82-2890-64ef-8449-1fa13e854848
Version Independent ID: f466b61b-1532-79c0-f4ec-4e336ec9fe70
Content: Install third-party applications on Azure HDInsight
Content Source: articles/hdinsight/hdinsight-apps-install-applications.md
Service: hdinsight
GitHub Login: @hrasheed-msft
Microsoft Alias: hrasheed

Thanks for the feedback and bringing this to our notice . At this time we are reviewing the feedback and will update the document as appropriate .

@Silverlight42 Hello and thanks for bringing that to our attention. I think the best way to handle it for all of the products is just linking to the marketplace page so that customers can see the most current version of each product. I'm submitting a PR now to resolve this issue. Thanks.

Hello!
Thanks for your time and attention.
Regards.
Carlos.
On Mon, 6 May 2019 at 14:17, Hassan Rasheed<EMAIL_ADDRESS>wrote:

@Silverlight42 https://github.com/Silverlight42 Hello and thanks for
bringing that to our attention. I think the best way to handle it for all
of the products is just linking to the marketplace page so that customers
can see the most current version of each product. I'm submitting a PR now
to resolve this issue. Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/30576#issuecomment-489741081,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABRK7ZUWHHAZ2H5HHP723FLPUB72ZANCNFSM4HKWIZ7Q
.

@himanshusinha-msft  the page has been updated. #please-close

I'm getting a 404. Some links are wrong, for example the presto link:
https://azuremarketplace.microsoft.com/marketplace/apps/starburst.starburst-presto
But the url is missing "en-us"
https://azuremarketplace.microsoft.com/**en-us**/marketplace/apps/starburst.starburst-presto

@Silverlight42 Thanks for letting us know. All of the links worked correctly for me without the 'en-us'.
The 'en-us' is normally removed on purpose because including them interferes with the sites localization where it refers users to the appropriate language for their area. But perhaps some of the pages arent localized correctly. I'll add it back for all of the links. THanks


Watcher throws bland message when importing nonexistent module

When mod.ts imports nonexistent.ts:
> deployctl run mod.ts --watch
error: Uncaught (in promise) NotFound: No such file or directory (os error 2)
    const watcher = Deno.watchFs(deps);
^
    at handleError (deno:core/core.js:186:12)
    at jsonOpParseResult (deno:core/core.js:356:9)
    at opSync (deno:core/core.js:259:32)
    at Object.jsonOpSync (deno:core/core.js:372:12)
    at new FsWatcher (deno:runtime/js/40_fs_events.js:13:24)
    at Object.watchFs (deno:runtime/js/40_fs_events.js:49:12)
    at watch (https://deno.land/x/deploy@0.1.0/src/subcommands/run.ts:108:1)
    at async default (https://deno.land/x/deploy@0.1.0/src/subcommands/run.ts:89:1)
    at async https://deno.land/x/deploy@0.1.0/deployctl.ts:61:1

Comparatively, deno cache shows the actual issue:
> deno cache mod.ts
error: Cannot resolve module "file:///work/nonexistent.ts" from "file:///work/mod.ts".
    at file:///work/mod.ts:1:0

This is a trivial example, which can be less obvious when refactoring files in a larger project with the watcher running.

Very interesting... I would have expected our internal call to deno info would expose error: Cannot resolve module "file:///work/nonexistent.ts" from "file:///work/mod.ts". , but it seems not. This will need some more digging then :-)

I also noticed that this Uncaught error then causes the deployctl instance to exit (makes sense given that Deno programs can't catch uncaught exceptions). So a running --watch instance will shut down the first time a bad import is found


[BUG] Cannot execute action on a DM channel code: 50003

Describe the bug
When deleting messages from someone else in a DM this error is received: Cannot execute action on a DM channel code: 50003
To Reproduce
Steps to reproduce the behavior:

Go to a DM
Click on get authorization, copy id from other person, get guild/channel
Start
See error

Affects (Add an X to items that apply)

[X] DMs
[ ] DM Groups
[ ] Channel
[ ] Channel (NSFW)
[ ] Server (All Channels)
[ ] Other (explain)

System:

OS: Windows 10
Browser Chrome 86

read previous bug report


Slow Search in Mezzanine CMS

Slow Search in Mezzanine CMS. I use Mezzanine CMS. I find it too slow when searching for something. The size of blog_blogpost is about 60,000 records.
The example site is www.chinalaw.vip.
Please help!

Can you try the mailing list? Thanks!

Slow Search in Mezzanine CMS. I use Mezzanine CMS. I find it too slow when
searching for something. The size of blog_blogpost is about 60,000 records.
The example site is www.chinalaw.vip
Please help!
[image: 1.png]
[image: 2.png]
Stephen McDonald<EMAIL_ADDRESS>于2018年11月12日周一 上午11:46写道：

Closed #1902 https://github.com/stephenmcd/mezzanine/issues/1902.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/stephenmcd/mezzanine/issues/1902#event-1959290836,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AREMwpFDJ7fJjQkoRVZIIMwwAldHAl33ks5uuO8vgaJpZM4YY5-r
.


unhandled crashes with mscolab verification shenanigangs

Using the "verify-user-token" feature causes unexpected behaviour. it is suggested to disable this by default as a quick fix.
One error:
ERROR: unexpected error: <class 'requests.exceptions.MissingSchema'> Invalid URL 'test_authorized': No scheme supplied. Perhaps you meant https://test_authorized?

looses the server URL in checking after an unsuccessful login attempt.
Another one
Traceback (most recent call last):
  File "/home/icg173/src/mss/mslib/msui/mscolab.py", line 1788, in set_active_op_id
    item.setFont(font)
RuntimeError: wrapped C/C++ object of type QListWidgetItem has been deleted
2024-09-07 19:05:40,314 (qt.excepthook:183): CRITICAL: MSS Version: 9.2.0
2024-09-07 19:05:40,315 (qt.excepthook:184): CRITICAL: Python Version: 3.10.11 | packaged by conda-forge | (main, May 10 2023, 18:58:44) [GCC 11.3.0]
2024-09-07 19:05:40,323 (qt.excepthook:185): CRITICAL: Platform: Linux-6.10.6+bpo-amd64-x86_64-with-glibc2.36 (('64bit', 'ELF'))
2024-09-07 19:05:40,323 (qt.excepthook:186): CRITICAL: Fatal error: Traceback (most recent call last):
  File "/home/icg173/src/mss/mslib/msui/mscolab.py", line 1788, in set_active_op_id
    item.setFont(font)
RuntimeError: wrapped C/C++ object of type QListWidgetItem has been deleted

Traceback (most recent call last):
  File "/home/icg173/src/mss/mslib/msui/mscolab.py", line 1735, in set_active_op_id
    logging.debug('set_active_op_id %s %s %s', item, item.op_id, self.active_op_id)
AttributeError: 'QListWidgetItem' object has no attribute 'op_id'

causes QT related crashes upon the forced logging out, which apparently doesn't clean up properly.
Also restarting the mscolab server (which triggers an unexpected logging out) causes several issues preventing MSUI from being properly used.

The default is to have it disabled, or?

When restarting the mscolab server it gets a random new secret. This invalidates all used tokens.
When diconnecting the internet the client can retry. A short disconnecting should not logout the client.

The default is to have it disabled, or?

Then we do not have a problem in stable. Good.

The new fix should handle both of these issues. As this is not enabled by default, it need not be fixed in stable.


Is there any option about acceleration?

Hi, I have a question about acceleration option on kubesim.
Kubesim is a  simulator of Kubernetes for batch and offline workload. So I can create a hollow node, and create a pod on the node.
But I want the re-scale the running time of jobs.(very shortly)
Is there any options about accelerating the workload running time?
Thank you.

/cc @jinzhejz


EventName LOAD_MORE_CLICKED & GALLERY_CHANGE Question

When using the generated code from the playground with a load more button, & implementing the ProGallery component with some image items passed in, the load more button just console.logs the events but doesn't render more images.
Does the developer have to implement this functionality on their own or is it already included in the npm package.
Thanks.

Hi Raul,
Yes, you need to implement this functionality by your self.
With your own implementation, you can decide if to fetch the next items from a server, load them from a local state or use any other functionality you define.
Good luck!

Hi Raul,
Yes, you need to implement this functionality by your self.
With your own implementation, you can decide if to fetch the next items from a server, load them from a local state or use any other functionality you define.
Good luck!

And if I need to implement the load more functionality for the gallery, would I need the another package from wix like the pro-gallery-lib?

Hey, You dont need anything other than your own implementation.
The gallery sends the NEED_MORE_ITEMS event whenever it reaches the end of the gallery. This only lets you know that the user reached the end of the gallery (with padding) so that you can run your item fetching implementation and set the new items array to the gallery.


wordnet issues

I've made a fresh install of pattern-master yesterday and I'm running into issues with wordnet:

from pattern.en import wordnet
wordnet.synsets("train")

Traceback (most recent call last):
File "<pyshell#2>", line 1, in
wordnet.synsets("train")
File "/usr/local/lib/python2.7/dist-packages/pattern/en/wordnet/init.py", line 95, in synsets
return [Synset(s.synset) for i, s in enumerate(w)]
File "/usr/local/lib/python2.7/dist-packages/pattern/en/wordnet/pywordnet/wordnet.py", line 316, in getitem
return self.getSenses()[index]
File "/usr/local/lib/python2.7/dist-packages/pattern/en/wordnet/pywordnet/wordnet.py", line 242, in getSenses
self._senses = tuple(map(getSense, self._synsetOffsets))
File "/usr/local/lib/python2.7/dist-packages/pattern/en/wordnet/pywordnet/wordnet.py", line 241, in getSense
return getSynset(pos, offset)[form]
File "/usr/local/lib/python2.7/dist-packages/pattern/en/wordnet/pywordnet/wordnet.py", line 1090, in getSynset
return _dictionaryFor(pos).getSynset(offset)
File "/usr/local/lib/python2.7/dist-packages/pattern/en/wordnet/pywordnet/wordnet.py", line 827, in getSynset
return _entityCache.get((pos, offset), loader)
File "/usr/local/lib/python2.7/dist-packages/pattern/en/wordnet/pywordnet/wordnet.py", line 1308, in get
value = loadfn and loadfn()
File "/usr/local/lib/python2.7/dist-packages/pattern/en/wordnet/pywordnet/wordnet.py", line 826, in loader
return Synset(pos, offset, _lineAt(dataFile, offset))
File "/usr/local/lib/python2.7/dist-packages/pattern/en/wordnet/pywordnet/wordnet.py", line 366, in init
(self._senseTuples, remainder) = _partition(tokens[4:], 2, string.atoi(tokens[3], 16))
File "/usr/lib/python2.7/string.py", line 403, in atoi
return _int(s, base)
ValueError: invalid literal for int() with base 16: '@'
this is happening in interactive use in IDLE.
When running 06-example.py from the location of the unzipped download I get an error at a later moment:
Traceback (most recent call last):
File "/home/christiaan/Downloads/pattern-master/examples/03-en/06-wordnet.py", line 46, in
s.append((a.similarity(b), word))
File "../../pattern/text/en/wordnet/init.py", line 272, in similarity
lin = 2.0 * log(lcs(self, synset).ic) / (log(self.ic * synset.ic) or 1)
ValueError: math domain error
by the class function Synset.similarity, probably when it has to calculate the log of a negative number when working with the synsets for the words 'cat' and 'spaghetti'. Unfortunately for me this is exactly the function I'm interested in. I can see a temporary workaround for me by placing the pattern modules on the path of my project and adding in a try... except block to circumvent the ValueError, but it looks like something's broken in the wordnet implementation, although the first issue might just be a problem for my system setup/messy clips-pattern version updates.

For future reference: Done as of https://github.com/clips/pattern/commit/ad3d72cb5ba5d15967efee666526f127b9393b5a, https://github.com/clips/pattern/commit/190cb3de8c42f3ce3c1f6e6a536d25ff8ebe60cd.


Trying to understand how Middleware works.

Hi friends,
I'm trying to fully understand what Camping is doing when it injects Middleware. Camping is rack based, so a middleware should respond to #call. In Camping, Apps are modules with classes that accept routes. Camping defines a function named use:
# Injects a middleware:
#
#   module Blog
#     use Rack::MethodOverride
#     use Rack::Session::Memcache, :key => "session"
#   end
def use(*a, &b)
  m = a.shift.new(method(:call), *a, &b)
  meta_def(:call) { |e| m.call(e) }
end

earlier camping extends Object with meta_def:
class Object
  def meta_def(m,&b)
    (class<<self;self end).send(:define_method,m,&b)
  end
end

This opens the Eigen Class of a module and defines a method, in our case it's Call. The middleware injection code first shifts the first splatted argument:
# if given: use Rack::MethodOverride
a.shift
# => Rack::MethodOverride

This also assumes that it's a class Constant that's given as the first argument. But then we immediately call new which instantiates the object.
What confuses me first are the parameters given to new: method(:call), *a, &b). Does this mean that that we're creating a new object, and then making a new method called call that accepts the splatted arguments and an optional block?
And I'm pretty sure that's right. But then we call meta_def, which is implicitly called on self, which in this case would be whatever module we're currently instantiating.
So how is Camping keeping track of which middleware to call first and which to call next? Where are is the Middleware sequence stored?

So how is Camping keeping track of which middleware to call first and which to call next? Where are is the Middleware sequence stored?

The trick here is that method(:call) returns the currently defined method. Once we call meta_def(:call) again then we overwrite it, but the original method(:call) then returns the "old" call. The whole middleware sequence is stored by those intermediate method-objects being created here.
The first time you call use then method(:call) is the original call-method (as defined in the source code). The second time it's the new one which was created by the previous call to use.

What confuses me first are the parameters given to new: method(:call), *a, &b). Does this mean that that we're creating a new object, and then making a new method called call that accepts the splatted arguments and an optional block?

So, in Rack-land then a middleware is a class which accepts an application (i.e. "something which responds to #call") as its first argument. The interesting thing here which makes it work is that Method has a method called #call which invokes the given. Notice that this works as well: method(:something_else).call(123) is the same as something_else(123).
This means that the following code:
use Rack::MethodOverride, something: :bar

Ends up being somewhat similar to to:
prev_app = MyApp.method(:call)
new_app = Rack::MethodOverride.new(prev_app, something: :bar)
MyApp.meta_def(:call) { |env| new_app.call(env) }

Thank you. This makes so much more sense now.
One of the other things that confused me with middleware was that it seems that my middleware was being called in reverse order.
class Middleware1
  def initialize(app)
    @app = app
  end

  def call(env)
    puts "Middleware1 was called"
    @app.call(env)
  end
end

class Middleware2
  def initialize(app)
    @app = app
  end

  def call(env)
    puts "Middleware2 was called"
    @app.call(env)
  end
end

Which would mean my middleware was out of order
=> Middleware2 was called
=> Middleware1 was called

What I didn't realize was that  because of the way #use chained the #call methods Middleware are still initialized and called in the correct order:
class Middleware1
  def initialize(app)
    puts "Middleware1 - initialized"
    @app = app
  end

  def call(env)
    puts "Middleware1 was called"
    status, headers, body = @app.call(env)
    puts "Middleware2 was resumed"
    [status, headers, body]
  end
end

class Middleware2
  def initialize(app)
    puts "Middleware2 - initialized"
    @app = app
  end

  def call(env)
    puts "Middleware2 was called"
    status, headers, body = @app.call(env)
    puts "Middleware2 was resumed"
    [status, headers, body]
  end
end

=> Middleware1 - initialized
=> Middleware2 - initialized
=> Middleware2 was called
=> Middleware1 was called
=> Middleware1 was resumed
=> Middleware2 was resumed

I'm going to keep this in mind when I write some documentation about how to use and write middleware for Camping.


Move away from deprecated oauth2client to new oauth2

We have now moved to mongo, so no need for this


\( becomes \\(

Locating the problem

Please test the new version. If a problem occurs, please reopen this issue


No spaces for tags.

Codecov Report

Merging #37 into master will not change coverage.
The diff coverage is n/a.


Float8Linear does not support autocast

The issue is caused due to the fact that Float8Linear captures the input dtype (via -> https://github.com/pytorch-labs/float8_experimental/blob/main/float8_experimental/float8_linear.py#L303) , And later we have this assert (during sync_float8_amax_and_scale_history - https://github.com/pytorch-labs/float8_experimental/blob/main/float8_experimental/float8_linear_utils.py#L247) that causes the failure.
One trivial solution would be to use https://pytorch.org/docs/stable/amp.html#torch.cuda.amp.custom_fwd (with cast_inputs=torch.get_autocast_gpu_dtype())
The following script reproduces the issue (run without args) and the trivial solution (add --wrap_linear_layer)
import torch
from float8_experimental.float8_linear_utils import (
    sync_float8_amax_and_scale_history,
)
from float8_experimental.float8_linear_utils import (
    swap_linear_with_float8_linear
)
from float8_experimental.float8_linear import Float8Linear as BaseFloat8Linear
from torch import get_autocast_gpu_dtype
from torch.cuda.amp import custom_fwd
import argparse

def get_args():
    p = argparse.ArgumentParser()
    p.add_argument('--wrap_linear_layer', dest="wrap_linear_layer", action="store_true")
    return p.parse_args()

class SimpleModel(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.l1 = torch.nn.Linear(16, 16)
        self.l2 = torch.nn.Linear(16, 32)
        # norm layer is just an example - but can be any layer that outputs float32 regardless of autocast settings
        self.norm_layer = torch.nn.LayerNorm(32)
        self.l3 = torch.nn.Linear(32, 16)

    def forward(self, x):
        # x is still float32
        x = self.l1(x)
        # x is now bfloat16
        x = self.l2(x)
        # x is still bfloat16
        x = self.norm_layer(x)
        # x is now float32 (since the output of norm layer is float32 regardless of autocast settings)
        x = self.l3(x)
        # x is now bfloat16
        return x

if __name__ == '__main__':
    args = get_args()
    m = SimpleModel().to('cuda')
    if args.wrap_linear_layer:
        class Float8Linear(BaseFloat8Linear):
            @custom_fwd(cast_inputs=get_autocast_gpu_dtype())
            def forward(self, *args, **kwargs):
                return super().forward(*args, **kwargs)
    else:
        Float8Linear = BaseFloat8Linear

    swap_linear_with_float8_linear(m, Float8Linear)
    b = torch.rand([17, 16]).to('cuda')
    with torch.amp.autocast(enabled=True, device_type='cuda', dtype=torch.bfloat16):
        out = m(b)
        sync_float8_amax_and_scale_history(m)
    print('Done !')

https://github.com/pytorch/ao/issues/568


Generate Client using OpenAPI spec, Update Setup Guide and Quickstart

Purpose
Examples
Checklist

[ ] Linked to an issue
[ ] Updated the changelog
[x] Added tests
[x] Updated the spec
[ ] Checked native-image compatibility

 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.


LRU DashMap to cache objectMeta

Which issue does this PR close?
part of #9964

Closes #.
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@Lordworms i added one comment, i plan to review more later / tomorrow.


Make slice bound safe

Fixes WAR-1432
Info
This PR does not change how we load the font -- the cause for the panic is probably because users have corrupted / non-standard font header files which do not report accurate length of the font collection. The font-kit library current loads files assuming these length information will be correct and thus when these assumptions turn out to be false, the loading will panic because of the out of bounds error on slicing.
Change
Add type safe slicing which returns an error when index out of bounds rather than panicking.

Some suggestions to make this a little more idiomatic.
Is this something that we can upstream? It seems like a poor experience for everyone if it can panic (rather than returning an error) when the Font file isn't in an expected format. Or is this related to code that we added in the fork in the first place?

+1 to trying to fix this upstream (as well as the other fixes we've made in this library)


failed to apply kotlin-android plugin and compileSdkVersion is not specified

Bug description:

sorry am new to creating apps with react native so i might sound dumb but
am not exactly sure why but the error/bug is happening is when i try to run npm run android
To Reproduce:

Expected behavior:

i expect it to successfully go through the build process of the android app
Screenshots/Videos:

Environment:

OS: Android
OS version: 11
react-native version: 0.67.2
react-native-webview version: 11.23.0

same issue

Same issue here. Any workaround available?

still searching for solutions

same issue


Replay feature : api and backend

CHANGES:
Ctrl-Engine:
Support for Replay Manager that plays Replay files
REST API updates (Replay endpoint added) :

get all replay files (shown by name)
get a replay file by name
delete all replay files
delete a replay file by name
create a replay file based on body of a request
create a replay file based on history of events that happened during a scenario execution
play a replay file once
play a replay file in an infinite loop
stop a replay file

CouchDB package::
Modified to return docs by name (ID)

This PR will be included in PR #65


add ES6 module index and expose as jsnext:main

This PR adds an additional ES6 module that defines the API and exposes it via the jsnext:main field. The purpose of jsnext:main is to allow ES6 module bundlers to work with the modules natively, rather than via the prebuilt UMD bundle. Currently there isn't much tooling that can take advantage of it, largely because of chickens and eggs, but it's future-proof ('official' package.json fields can't contain colons) and unobtrusive (it doesn't affect browserify/webpack et al).

Do I understand correctly that the main advantage here is a level of indirection in how file names are mapped to named exports? Or is it more about a better import syntax?
Assuming you’ve run npm install d3-selection, if you wanted to import namespace and selection with Esperanto, you could say:
import namespace from "./node_modules/d3-selection/src/namespace";
import selection from "./node_modules/d3-selection/src/selection";

With this change and with Rollup, you would instead say:
import { namespace, selection } from "d3-selection";

The syntax is certainly nicer.
I wonder whether we should just make the named exports the default in index.js, and then change how d3-bundler decorates the d3 global accordingly. (We could use underscores to solve the nesting problem for things like mapping layout_voronoi to d3.layout.voronoi.) I suppose this is roughly what you’ve done with d3-jsnext.
Alternatively, I could imagine giving Esperanto some smarts about node_modules, so you could say:
import namespace from "d3-selection/src/namespace";
import selection from "d3-selection/src/selection";

But my guess is that using named exports is more idiomatic ES6?

The main advantage of named imports is essentially that it makes bundles less opaque to tooling. I'm thinking specifically of Rollup but I'm hoping that eventually all bundlers work this way: if I want to do import a specific bit of functionality from d3, then this...
import { linear } from 'd3-scale';
var myScale = linear(...);

...is much better than this...
import scale from 'd3-scale';
var myScale = scale.linear(...);

...because I can omit all the bits I'm not using. If all the exports live on a single object then it's basically impossible to eliminate unused code - essentially where we are today with Browserify et al.

I could imagine giving Esperanto some smarts about node_modules

Esperanto and Rollup can both import from external modules, the main difference being that Rollup does it out-of-the-box whereas Esperanto requires cumbersome resolvePath configuration. They can also both used named imports, though it requires strict mode to be enabled in Esperanto's case. I think it's worth avoiding things like d3-selection/src/namespace - I'm not an authority, but my understanding is that it's essentially forbidden by the ES6 spec, and I think there are lots of good reasons why that should be the case. I could imagine there being appetite for that approach among CommonJS consumers, though it would probably be much easier to automatically generate a package for that purpose (i.e. creating a folder structure that matches the API) rather than authoring it that way - I believe this is what Lodash does. It also means you can lose the src subdirectories.
Anyway, I tried a different approach to the problem of having two index.js files, and the unfinished results are here: https://github.com/Rich-Harris/d3-selection/blob/jsnext-main-alt/d3-selection.js. Note that it assigns directly to exports (i.e. d3) along the way. This part is obviously wrong - the requirement to augment an existing d3 object or create it poses some interesting challenges that I hadn't previously considered. I think it'd be worth providing for this scenario in a more 'official' way - will try and fix that tomorrow. For convenience I put the build script in the same branch, rather than forking d3-bundler, so it's a bit messy and not PR ready (even without the fact that it obviously doesn't work).

I just thought of a filthy hack that works around the current limitations relating to existing global objects. Unfortunately I can't test it right now because I'm running iojs, which jsdom 3 won't run on (jsdom 4 has a different API)

Yeah. I buy in to the named exports now; seems like the most idiomatic approach.
If it helps, I think it’s sufficient for d3-bundler to only decorate a single object. For example, d3-selection would decorate the d3 object, but d3-layout-voronoi would decorate the d3.layout object (creating the d3 object if it doesn’t yet exist). The d3-layout-voronoi module would have a export named “voronoi”, and it would pass --name=d3.layout to d3-bundler. Thus, we don’t need any magic regarding underscores as I imagined previously.
This means that mbostock/d3 wouldn’t have a ES6 API, though. The expectation would be that ES6 clients would depend on the new smaller modules and use the ES6 code (in src) directly.
One thing I’m unsure about is how to handle external dependencies in this new world. For example, the d3-selection-multi module doesn’t export anything, it just decorates d3-selection’s selection class. I’m currently implementing this using the d3.selection global. (See index.js.) That seems sort of hokey, but I have no idea how to declare a dependency on the “d3-selection” module in a manner that works across AMD, CommonJS and vanilla.

If it helps, I think it’s sufficient for d3-bundler to only decorate a single object

With that constraint if becomes fairly straightforward - the UMD bundle just needs this.d3 || this.d3 = {} or something equivalent at the top (plus polyfills, as appropriate), then Esperanto generates a UMD export with name: 'd3.layout' and so on. Everything sort of takes care of itself from there. I've implemented this on my jsnext-main-alt branch.

That seems sort of hokey, but I have no idea how to declare a dependency on the “d3-selection” module in a manner that works across AMD, CommonJS and vanilla.

I guess the solution depends on how concerned you are about code duplication. With this...
import { selection } from "d3-selection";
import selection_attrs from "./selection_attrs";
import selection_styles from "./selection_styles";
import selection_properties from "./selection_properties";

selection.prototype.attrs = selection_attrs;
selection.prototype.styles = selection_styles;
selection.prototype.properties = selection_properties;

export default selection; // or export { selection }

...the UMD bundle would contain everything you needed, so it could be used in all environments. (With Rollup, the UMD bundle would contain only what was needed; with Esperanto or any other bundler it would contain the whole of d3-selection.) The downside is that anybody using RequireJS or a CommonJS bundler...
var namespace = require( 'd3-selection' ).namespace;
var selection = require( 'd3-selection-multi' );

...could end up with two copies of Selection in their bundle, one of which was decorated with the selection-multi extras and one that wasn't. This is a fairly common problem with anything resembling 'plugins' and I'm not sure that anyone's found a truly universal solution that isn't based on a) globals or b) always including the extras. Will this be a widespread pattern in d3 4.0 or is selection-multi a special case?
Just to throw out another idea:
import { selection } from 'd3-selection';
import selection_attrs from "./selection_attrs"; // etc...

selection.prototype.attrs = selection_attrs; // etc...

export * from 'd3-selection';

I'm not certain that this syntax will work as-is, will have to test it (and fix if it doesn't), but that could be a solution - re-export everything from d3-selection and ask AMD/CommonJS consumers to always require from d3-selection-multi:
var namespace = require( 'd3-selection-multi' ).namespace;
var selection = require( 'd3-selection-multi' ).selection;

(Am so looking forward to the end of this chapter of JavaScript's history. I miss the <script> tag days.)

Well, of course code duplication would negate a major benefit of the take-only-what-you-need approach. But it’s more subtle than that: it’s a question of how I expect people to use the small modules. Do I  expect people to use a CommonJS bundler, and to concatenate the built files for vanilla? Or do I require an ES6 bundler like Esperanto or Rollup?
The point may be moot because I intend to implement a point-and-click web page for custom builds. (See Bootstrap’s customizer for precedent.) But it would still be nice if things worked out of the box in the simplest manner, and I think relying on the global d3 is a reasonable compromise to make that happen.

Will this be a widespread pattern in d3 4.0 or is selection-multi a special case?

Both. :grin: The pattern of extending an existing prototype is fairly rare, but it will always be used by d3-transition (which defines d3.selection.prototype.transition) and by other plugins like d3-jetpack. And more generally, there will be many plugins that depend on other parts of D3. For example chart plugins are high-level objects with many dependencies on selections, scales, axes, etc.
I think this also means that you can’t take the re-export approach, because you might want to include multiple chart plugins, and you don’t each of them to duplicate their dependencies.
In any case, people can always roll their own build on top of the ES6 modules, regardless. Right?

(Am so looking forward to the end of this chapter of JavaScript's history. I miss the

Ah yes, I think I see the problem a bit more clearly now. Essentially, a plugin could declare granular dependencies, and could guarantee that it was decorating the right objects, as long as it were somehow possible to guarantee that a) the plugin was authored in the same way as the apps that consume it (CJS+CJS, or ES6+ES6, etc) and b) the package manager and resolver joined forces to ensure that d3-selection-multi used the same copy of d3-selection as the app, rather than the copy in its local node_modules folder (which would be NPM's default behaviour, ditto JSPM I believe. Bower is the exception which is one of the reasons not many people use it!)
All of which is clearly untenable. I'm reminded at times like these of Welcome to My Emo Hellscape. Faced with that, globals are the only practical solution. Maybe the landscape will be different in time for d3 5.0.
That does leave people who want to use a subset of d3 and plugins (whether that's via ES6 named imports or requireing individual CommonJS files) with a harder job. I think that's okay as long as there's some way to do it, since those are more sophisticated users. (I definitely don't think people should be forced to use an ES6 or CommonJS bundler - novice-friendly tools are a drum I spend a lot of time banging.) One possible approach:
75% of users
<script src='d3.js'></script>
<script src='d3-jetpack.js'></script> <!-- auto-decorates global -->

20% of users
var d3 = require( 'd3' );
require( 'd3-jetpack' )( d3 ); // non-global setting, so we pass in d3 for decoration

5% of users
import { select, selection, namespace, otherThings } from 'd3';
import jetpack from 'd3-jetpack';

// no `d3` object in the conventional sense, so we fake one
let jetpacked = { selection, namespace };
jetpack( jetpacked );

select( 'svg' )
  .append( 'text#my-id.my-class' )
  .tspans( jetpacked.wordwrap( /*...*/ ) );

That's a general pattern that could work well if plugin authors bought in (how prescriptive are you willing to be?!). Even if they didn't, the 95% would still be catered for if the standard d3 UMD builds created a global regardless of the module environment.

Aside from a few bugs (and the lack of nesting in named exports), I’m pretty excited about the way Rollup & d3-bundler is taking shape. In theory it lets you concisely specify what code you need:
import {event, select, selectAll} from "d3-selection";
import "d3-selection-multi";
export {event, select, selectAll};

And then you build that into a UMD (or whatever), and have a nice day.
It behooves us to take the most forward-looking approach, while making sure that today’s environments are still served gracefully. In my view, this means that the D3 submodules should only provide an ES6 API, and not pre-built UMD’s that can be composed the Old Way. Instead, composition happens through ES6, with the precision offered by Rollup, and then you lock down what parts you need by running d3-bundler to build a UMD (or whatever).
Probably most people will do this through a web interface and remain blissfully unaware of the underlying machinery of ES6 modules and transpilation—they’ll just get a d3 global that has what they need. It’ll work, which is all that matters. And the D3 default build in the CDN will still be a UMD as it is today. But this is still a big improvement over SMASH: not only does it offer the cleaner ES6 syntax and smarter code elimination, but it also means the code can be published in separate repositories that merely need to be npm install’d.

Closing, since these ideas have been incorporated, hooray.


BAD_KEY Exception

is it possible to detect bad key exception in ios

Currently in iOS it returns nil

Closing issue due to inactivity


Save release id to project root for use in deploy step

I had naively assumed that WERCKER_BUILD_ID would available to the deploy step, given that deploys are executed for specific builds. However, it turns out that this is not the case, and so the deploy step has nothing look for when querying Distelli.
This change uses the 'push' step to immediately query the list of releases for the release id, and saves the release id to the project directory for later use by the deploy step. This more closely matches how this would be handled if the Distelli CLI returned the release id as output from push.
Note that the Git commit, which is available to both environments, is not a useful disambiguation for release, as it is possible for multiple Distelli releases to be make from the same commit.
cc @jreichhold @theazureshadow

lgtm


creating a react app with proper nav bar with elements

can you assign this to me, I want to work on this under GSSoC'23

I am proficient in React and basically MERN stack technology. I can implement the described task. Please can you assign me the task?

@purnima143

@LegendSumeet Can you work on other components, Navbar one is already assigned


BUG question about path

I have created a new project folder with a static folder for saving my static resource files.as shown below.

Then, the structure inside the static folder is as follows.

My vscode editor is configured as shown below.

So, the problem is: when I compile with easysass, I can't generate css and min.css files in the css folder under the corresponding current folder.

After testing, I found that if I use vscode to open my project folder directly and then edit it, I can't compile it. If I first enter the directory where the sass file is located, it is feasible to open the folder for editing and compiling through vscode.
Can you make some improvements?


Keep typeahead open if even the user tabs away.

This seems to be a recent regression.  On FF if I start a compose typeahead, then alt-tab to another application and back, without doing anything else of substance, the typeahead disappears.  This seems like it might be annoying if you're trying to do something like check another app (gmail, github, etc.) to find somebody's user name when you're in the middle of the typeahead.
And it definitely feels like new behavior.  The way it manifests for me is that I can no longer create screenshots of typeahead.

We should fix the root issue, but @showell on Linux, you should try Ctrl+Shift+PrtScn to draw a screenshot without tabbing away.  I use this all the time :)

That's what I always use to print screenshots, @timabbott.  And it's suddenly failing, which is perplexing.  (I focused the issue on the alt-tab issue, which is also reproducible, since I think that's the more generally interesting failure.)

I closed #8106 and opened #8340.

I'm closing this, since I've seen other apps with the same behavior, and this might be a tricky/risky fix for something that's not a huge problem (and if it comes up again, the issue is pretty easy to describe).


BotConfiguration.ConnectService Bug

In the BotConfiguration.ConnectService method, found here, there is a bug.
We see this in "occasional" unit test failures, such as in this build run:
Failed   DisconnectServicesByNameOrId_UsingId
Error Message:
 Test method Microsoft.Bot.Configuration.Tests.ConnectionTests.DisconnectServicesByNameOrId_UsingId threw exception:
System.Exception: service with 12 is already connected
Stack Trace:
    at Microsoft.Bot.Configuration.BotConfiguration.ConnectService(ConnectedService newService) in d:\a\1\s\libraries\Microsoft.Bot.Configuration\BotConfiguration.cs:line 267
   at Microsoft.Bot.Configuration.Tests.ConnectionTests.DisconnectServicesByNameOrId_UsingId() in d:\a\1\s\tests\Microsoft.Bot.Configuration.Tests\ConnectionTests.cs:line 78

The problem is:

When a service is "connected", it's checked (by id) to see if it's already in the set.
If the Id is present already, an exception is thrown.
If the Id is NOT present, then it's assigned a random id from 0-255.

In the case where there are 2 services, consider the following:

Service 1 is passed.
The check passes.
The RANDOM number is "12", and the service is added.
Service 12 is passed in.
Service 12 FAILES (with the above exception) as that service id already exists.

This causes both random test failures and random BOT STARTUP failures.
Problem #2: The code has an infinite loop if >255 services are added.
Note: The JS Codebase uses the Random function still, but verifies the id isn't taken or picks a new random. That is subject to an infinite loop, which is tracked in https://github.com/microsoft/botbuilder-js/issues/928.

@cleemullins I've been taking a look at this issue. Given that the connected service ID is of string, is there any reason why we couldn't have the random ID be generated as a GUID instead of a number <= 255?  Doing this should allow services that have a specific ID already set (e.g. service 12 in the scenario above) use their explicitly set ID, but service 1 will get a random GUID.
This should hopefully still allow a user to use the method 'DisconnectServicesByNameOrId' (passing in an ID) predictably to remove services where they have explicitly added them with a given ID, because we are maintaining the IDs if they are set by the user initially, whilst still also allowing for IDs to be generated if not supplied.
We could switch to the JS method, but this means that the user can never be sure that a service ID they have supplied will actually be used.
I might be missing something, obviously, but just an initial look at this and thought I would drop a note.

Hello, @cleemullins, hello, @garypretty.
I want to contribute. I have never did it before.
So, should I change this
// Assign a unique random id between 0-255 (255 services seems like a LOT of services
var rnd = new Random();
do
{
    newService.Id = rnd.Next(byte.MaxValue).ToString();
}
while (this.Services.Where(s => s.Id == newService.Id).Any());

to this
do
{
    newService.Id = Guid.NewGuid().ToString();
}
while (this.Services.Where(s => s.Id == newService.Id).Any());

?

The real problem is that we are checking for duplicates in the case where we want a new auto assigned id.  I have changed the logic to only do duplicate detection in case where there is a user supplied id, and then not use random (which requires multiple scans) and instead simply detect high water mark id in single scan. (see #2069)
Thanks @dmitresky and @garypretty for engaging on this issue.  I literally ran into this random behavior on a unit test this morning and was scratching my head, so your discussion and contributions were timely.


RadialGaugePlot: OutOfMemoryException

Bug Report
Issue: an "OutOfMemoryException" is fired whenever the SweepAngle property in any of the gauges's is equal or below 0.01.

Explanation: according to this post it seems that DrawArc doesn't handle very well the combination of pen width and small sweep angles.
https://github.com/ScottPlot/ScottPlot/blob/6c1a99837a5a412a69d463c2adde564941a080f5/src/ScottPlot/Plottable/RadialGauge.cs#L152-L159
Reproducing: using these values, the DrawArc function fails for sweep angles equal of below 0.01. However, using less values (less gauges, which result in a wider pen width does modify the 0.01 threshold limit.
var plt = new ScottPlot.Plot(600, 400);
double[] values = { 505, 590, 0.005, 0.005, 0.0005, 0.005, 0.005, 0.0005 };
plt.AddRadialGauge(values);

Solution: either check for values lower than 0.01 when creating the plot's RadialGauge instances
https://github.com/ScottPlot/ScottPlot/blob/6c1a99837a5a412a69d463c2adde564941a080f5/src/ScottPlot/Plottable/RadialGaugePlot.cs#L289-L308
SweepAngle = sweepAngles[index] <= 0.01 ? 0 :  sweepAngles[index],

or make the checking when calling DrawArc inside the RenderGaugeForeground function (it might be wiser to do the same inside RenderBackground):
gfx.DrawArc(
                pen,
                (center.X - radius),
                (center.Y - radius),
                (radius * 2),
                (radius * 2),
                (float)StartAngle,
                SweepAngle <= 0.01 ? 0 : (float)SweepAngle);

These suggestions are GDI+ dependant, meaning that they might not be needed whenever ScottPlot is ported to other graphics library.
System Details

ScottPlot Version: 4.1.27
Operating System: Windows 11
Application Type: WinForms
.NET Version: .NET 6.0

Hi @arthurits, thanks for opening this issue. I may not have ever noticed this but wow, a hard exception in the render loop is not good!
For the fix I'd favor doing the angle check in the render method just before gfx.DrawArc and perhaps in a comment note that the check is specific to System.Drawing. When the rendering engine is replaced I'll certainly search the code base for the string "System.Drawing" so if it shows up in a comment I'll know to change it appropraitely.
Would you be up for making this change and opening a PR I can merge-in? If not, no worries, I can get to it in a few days. Thanks!

Sure. No problem!
Although it's highly unlikely that very low sweep angles are passed to gfx.DrawArc, it could be the case when reading and plotting data from a sensor (that's certainly my case). So, it makes sense fixing this issue while the library relies on System.Drawing.
I'll open the PR with the suggested fix and comment note.


When I try to load pdf from online it return me this error

I'm getting error when I try to load pdf from online. I attatched my code and error below. Please check and let me know the solution
code
import 'package:advance_pdf_viewer/advance_pdf_viewer.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class TestDetail extends StatefulWidget {
  String path;
  TestDetail(this.path);
  @override
  _TestDetailState createState() => _TestDetailState();
}

class _TestDetailState extends State<TestDetail> {
  bool _isLoading = true;
  PDFDocument document;

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    loadDocument();
  }

  loadDocument() async {
    print(widget.path);
    document = await PDFDocument.fromURL(widget.path);
    setState(() => _isLoading = false);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Test Detail'),
      ),
      body: Container(
          child: _isLoading
              ? Center(
                  child: CupertinoActivityIndicator(),
                )
              : PDFViewer(
                  document: document,
                  zoomSteps: 1,
                )),
    );
  }
}

Error
#0      List.[] (dart:core-patch/array.dart:26:52)
#1      _PDFViewerState._loadPage (package:advance_pdf_viewer/src/viewer.dart:140:15)
#2      _PDFViewerState.didChangeDependencies (package:advance_pdf_viewer/src/viewer.dart:119:5)
#3      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4705:12)
#4      ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
#5      Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
#6      Element.updateChild (package:flutter/src/widgets/framework.dart:3255:20)
#7      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4571:16)
#8      Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
#9      StatelessElement.update (package:flutter/src/widgets/framework.dart:4627:5)
#10     Element.updateChild (package:flutter/src/widgets/framework.dart:<…>

Is this a complete error? Don't see what's the problem from the error message
Have you verified the url is a valid PDF? can you share the URL?

Is this a complete error? Don't see what's the problem from the error message
Have you verified the url is a valid PDF? can you share the URL?

I have the same issue, have you any solution?


Add recommended email setup

Currently civiform has multiple email addresses you need to provide during deployment. It can be confusing/unclear how many different email addresses should be used. We should update docs to provide recommended email setup.
Email addresses required today:
CIVIC_ENTITY_SUPPORT_EMAIL_ADDRESS - email visible on the site
SENDER_EMAIL_ADDRESS/SES_SENDER_EMAIL - used for the "from" field in emails sent from CiviForm
STAGING_* addresses - email that receives notifications for submitted programs when civiform runs in staging mode
Things to consider:

Have different addresses for staging and prod instances.
Have one or two different addresses for tech support and to use in "from" field.
Should civic entities use dedicated tech support email for civiform or use one of their existing.

Done in https://github.com/civiform/docs/pull/130


Docker secrets support

PR to start a discussion around a config provider for the secrets features being added to Docker 1.13.
The implementation is somewhat unusual for a few reasons:

The files are never going to be with your application, so it is probably never correct for it to use a FileProvider that is common with the other file based config sources
The files cannot change while the application is running, so no ReloadChange capability.
By definition the data stored is going to be sensitive.

Because of its nature I am considering changing the provider so that it doesn't eagerly load all the secrets into memory like the other config providers, but instead reads the requested key on-demand. That way we will not be loading every single configured secret into memory. People may, for example, want to use the secrets system to flow an SSH key into the container that isn't needed to be read by the config system. In the future features such as read-once secrets are going to be enabled by the system. So it also seems better to not put ourselves into a situation where we fight with that.
What do people think?
Docker PR for those that are interested: https://github.com/docker/docker/pull/27794

@frissm @muratg @blowdart @davidfowl

cc @divega

Closing after some discussion. Will add some tweaks to make sure it works with Kubernetes and an extra test or two. Then do a PR after we know how this will work on Windows.

What's the release plan for this? Released as part of 2.0? Will it be back ported to 1.1, if so when? I suppose we could just copy the four classes in the source for now.


[Apache] h264 decoder DPB implement not follow the h264 spec

Now h264 decoder DPB management is not follow the h264 spec, and always used 16 surfaces, it's not a good action in the low memory system.

We already followed the h264 DPB management spec, else it can't be decoded.
16 decoded surfaces are the max value as spec. Yeah, we will optimize it to reduce DPB surfaces as h264 level value.

Hi Donging:
Let's discuss how to do it before you start to do it. I can give you some guideline.

Thanks LiZhong, ok.

merged as e0a5f44da3c08637e0833eb0e32e1c284c90dc11


Automate manifest update

One of the many steps we need to automate our release.
Create a new action to auto-update manifests when given a version number, it will then PR the changes.
Example PR:
https://github.com/storageos/operator/pull/106

If there are now automated can we not add those files to .gitignore? We can now forget to update them locally before pushing and it's deal with plus if we care about having those we still have makefile rules to do it...

If these are now automated can we add those files to .gitignore? Since we won't have to run it locally and in cases where you need those we still have makefile rules to do it...

There is one disadvantages of generating it, it tooks a long time.

There is one disadvantages of generating it, it tooks a long time.

They would exist on the repo at all times and always the most up to date they can be.
Although with my limited experience I don't know how much we usually rely on those so it's up to you entirely 👍


Fix deprecations notices for Rails 5.0.0beta1

DEPRECATION WARNING: around_filter is deprecated and will be removed in Rails 5.1. Use around_action instead.

But then it won't work in rails 3?

Well Rails 3 hits end of life as soon as Rails 5 is released.  Maybe the next version needs to be Rails 4+ and anyone who uses Rails 3 needs to use an older version of the gem.

Good call!


fix incorrect colorsForBackground detection

Closes #6936
One line fix for the bug, but this highlighted a gap in our test coverage which I have addressed.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @chris48s!

  Generated by :no_entry_sign: dangerJS against eec94adefea2c2411865f18e01fef517ccc1b9fe


Enhancement: Apply Github Action

Type of PR:
Enhancement

PR Description:
This PR enhances the functionality of the Github Action runner by improving error handling and logging. It also updates the Dockerfile reference in the action.yaml file.

PR Main Files Walkthrough:

pr_agent/servers/github_action_runner.py: Added error handling for JSON parsing and logging for unknown commands. Removed the check for 'RUNNER_DEBUG' environment variable.
Dockerfile.github_action_dockerhub: New file added, which is a Dockerfile for the Github Action.
action.yaml: Updated the Dockerfile reference to 'Dockerfile.github_action_dockerhub'.

/describe

/review

/ask suggest a title for this PR


Game crashes/hangs when moving the king behind the horizon

I managed to reproduce this twice already at the beginning of the first level that contains bishops.
At this sections very beginning, there is a nice free area to quickly walk straight to gain some space and time for the coming obstacles.
So I repeatedly hit the ↑ button until I run in a check. But when this happens and I'm far enough away from the camera to be completely covered in the shadow behind the horizon, the game stops. The chessboard road just does not move on and I can't react any more. Had to refresh the page to restart a new game.

Reproduced.

not playable on both desktop and mobile device. game hangs up just before the first move of black king

Uncaught TypeError: Cannot read property 'style' of null
    at t (game.js:formatted:784)
    at j (game.js:formatted:501)

Line: Fa.threateningPiece.shape.style.filter = "url(#" + Za + ")"

Uncaught TypeError: Cannot read property 'style' of null
    at t (game.js:formatted:784)
    at j (game.js:formatted:501)

Line: Fa.threateningPiece.shape.style.filter = "url(#" + Za + ")"


mWeb - VBA -  Address suggestion not displayed for company info

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Issue found when executing the PR #5643
Action Performed:

Launch the URL and login
Click get started in workspace to add bank account
In the company information page enter random number in the company address field(42 in this case)

Expected Result:
Address suggestion displayed
Actual Result:
No address suggestion displayed
Workaround:
Unknown
Platform:

Where is this issue occurring?

Web
Mobile Web

Version Number: <IP_ADDRESS>
Reproducible in staging?: yes
Reproducible in production?: Feature not available
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

https://user-images.githubusercontent.com/43996225/136494560-31780125-3bb2-4e19-92d3-40cb8bd72f91.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

@Luke9389 any ideas on this one?

Hmm, this should be addressed by this PR which is on staging. I wonder if this is sending the request to the production API.
Let's wait for that PR I just linked to hit production to see if this fixes itself.

Resolved that the above suggestion is indeed the cause of the issue here: https://expensify.slack.com/archives/C07J32337/p1633718444462700


How to create an index.html at root level via getStaticPaths()

See issue here: https://github.com/withastro/astro/issues/3990
What kind of changes does this PR include?

New or updated content

Description

What does this PR change? Give us a brief description.

Issue is discussed here: https://github.com/withastro/astro/issues/3990

Thanks for this @jablonski. Was there a reason you closed this PR? I'm seeing it documented the recommended technique from https://github.com/withastro/astro/issues/3990

I've closed #3990, because I'm totally fine with undefined as value instead of an empty string to create a top level index.html route, so nothing needs to be fixed. It was just a lack of documentation.

Now I understand the problem. This PR got closed automagically by Github because I've closed #3990. I cannot reopen it, but IMHO it should be merged to the docs.

Thanks so much for this @jablonski! I followed your thread in Discord, and the Issue you created at withastro/astro for this. I think this is a great addtion to the docs, but maybe this could be expanded to be a bit more than a "tip" to really make sense in context. (And, it means we don't need two "tips" right next to each other.
I like how you presented your discovery of "undefined" in https://github.com/withastro/astro/issues/3990 . Would you be prepared to change this content from a tip to an actual, simple, small code example to illustrate creating the index.html route? I think that would be more clear for the reader of Docs. I think just the export default getStaticPaths() function that shows setting a parameter to "undefined" alongside some other params?
Let me know what you think! Don't be afraid to just write and suggest something, and we can all discuss further from there!

@sarah11918 I totally agree.
Just a general thought: maybe it would help people to see self-contained examples in the docs which they can copy/paste to StackBlitz to try out things?
I've created an example, which should show how it should work in general. I'm not so sure about the wording (or the best place to put this example in the docs, because the example shows how to create the index.html at root level, but demonstrates also how to render content with dynamic paths (e.g. from a headless CMS).
Maybe this kind of content should be stored under a "recipes category" and linked from the docs?
---
export async function getStaticPaths() {
  const pages = [
    {
      slug: undefined,
      title: "Astro Store",
      text: "Welcome to the Astro store!",
    },
    {
      slug: "products",
      title: "Astro products",
      text: "We have lots of products for you",
    },
    {
      slug: "products/astro-handbook",
      title: "The ultimative Astro handbook",
      text: "If you want to learn Astro, you must read this book.",
    },
  ];
  return pages.map(({ slug, title, text }) => {
    return {
      params: { slug },
      props: { title, text },
    };
  });
}

const { title, text } = Astro.props;
---

    <title>{title}</title>

{title}

{text}

I've created a new PR because I've deleted my fork already, so couldn't update it anymore:
https://github.com/withastro/docs/pull/1389
Sorry for the mess...


Fix IME composition bug on Firefox

See also https://forums.zotero.org/discussion/100416/note-editor-cant-continue-to-use-input-method-editor-after-entering-inline-math
See also https://forums.zotero.org/discussion/101947/crash-when-writing-math-together-with-chinese-input-一起写数学公式和中文时崩溃
See also https://forums.zotero.org/discussion/118104/inability-to-input-chinese-characters-after-latex-formula-rendering-in-notes

Windows
Test on Firefox 135:
Before:

After:

Test on Zotero (fx128):
Before:

After:

MacOS
It's even broken on MacOS before this fix:

And now the IME popup is correctly positioned.

It looks good. I think you can merge it and update the package.json in the note-editor to install it directly from this fork’s GitHub repository.


Storing two Physics2DDirectBodyState as var from Physics2DServer.body_get_direct_state in GDScript overwrites the first var

Sorry for the long title, didn't know how to make it shorter.
Godot version:

3.2.3.stable
OS/device including version:

N/A
Issue description:

When storing the output of Physics2DServer.body_get_direct_state to a var in GDScript, it gets overwritten when you call this function again with another input.
Steps to reproduce:
# there exist vars nodeA and nodeB of type RigidBody2D
func _physics_process(delta):
	var stateA = Physics2DServer.body_get_direct_state(nodeA.get_rid())
	print("A before: ", stateA.transform.origin)
	var stateB = Physics2DServer.body_get_direct_state(nodeB.get_rid())
	print("A after: ", stateA.transform.origin)
	print("B: ", stateB.transform.origin)

This prints:
A before: <some value A>
A after: <some different value B>
B: <value B again>

Minimal reproduction project:

Reading through I see that Physics2DDirectBodyStateSW is a singleton, so everytime you call body_get_direct_state() it just returns the same object, with an updated body property though. So that's what you are seeing.
Can anyone shed some light into the need for a singleton here? I couldn't find any comments or commits that talked about it.


Cite rule command

Sends the rule specified by rule number in chat as an embed to remind users of a particular rule.

Implemented


Easy Installation     Upload all Bootflat files and paste one line of code at the bottom of your head tag. That’s it!

sorry, how?

yeah, not at all like this.
I just attempted using it through bower, but the bower.json has no proper dependencies listed. Apparently it also needs jquery. Not much fun.

Yeah? What is that 'one line of code'? And this (http://bootflat.github.io/documentation.html) is not documentation.


Change OCA Bundle server location

The location where OCA Bundles are loaded should be updated to: https://bcgov.github.io/aries-oca-bundles/. This is the location where the OCA Bundle files are now published by a GitHub Action. Links:

The index: https://bcgov.github.io/aries-oca-bundles/ocabundles.json
The bundles, such as https://bcgov.github.io/aries-oca-bundles/OCABundles/schema/bcgov-digital-trust/LCRB/selling-it-right-showcase/OCABundle.json that are listed in the index.

The index file in the location being used now is only being manually updated.

I've updated my local .env and it works as expected. I see branding for the Student card and Person credential. So I went ahead and updated in our build. The change should come out with the next 1.0.21 beta.
@bryce-mcmath FYI.

Tested, is working as expected

@bryce-mcmath — thanks for getting this done.  We’re going to follow on with an update to the OCA Bundle repository to remove the generated files from the repository main branch — having them only on the gh-pages branch/site.
Could you please summarize for us how the resolving/caching works in BC Wallet/Bifold with the OCA Bundles?  If an OCA Bundle moves, for example, will the wallet detect such a change and load the bundle dynamically?

Also — add a comment here when the feature is in the released BC Wallet, so we know when we can start to adjust the repo GitHub Actions.

@swcurran I just tested that it was working in Testflight, @jleach is the one that made the change. But we haven't done a release since this change, so existing release wallets will still be using the old URL until then. So please hold off from removing that for the time being.
The way it works is there is a BC Wallet OCA_URL env var that the app makes a GET to and caches the response from, and then checks on app startup if the response is any different or stale, and if so, refetches. But it doesn't dynamically search different URLs.

Confirming what @bryce-mcmath said above. It will "refresh" when it checks the new URL as needed. But, any version prior to 1.0.21 will still need the old URL to apply branding. My though is you can "archive" the old OCA repo once 1.0.21 is out and over time it will just become less and less used as version upgrade. If you actually want to delete it maybe give it several weeks / months.

When you say “on app startup” — I assume that means each time the user opens the app?
What does the app cache — only the JSON list of identifiers/bundles, or does it also retrieve and cache all the bundles referenced in the JSON list?
Thanks

When you say “on app startup” — I assume that means each time the user opens the app?

Yes, in the splash screen it does a check.

What does the app cache — only the JSON list of identifiers/bundles, or does it also retrieve and cache all the bundles referenced in the JSON list?

It caches the index file since that links a schema or cred deff to the related bundle. It does so based on the etag. If the etag changes will will re-fetch a bundle (or the index).
As a side note we may need to extend the cache to include graphical assets.

What we are planning is that the repo hold only the source files, and the generated files (OCA Bundles, the JSON List of Bundles) are only in the new location.  That will make it much easier on those managing OCA Bundles.
By the way, does Bifold/BC Wallet have the capability of having multiple OCA_URLs?  That might be useful.

To confiorm — we have waited the necessary few weeks and can confirm the new URL is being used in the released BC Wallet — and we won’t break anything if we remove the files in the old places?

To confirm — we have waited the necessary few weeks and can confirm the new URL is being used in the released BC Wallet — and we won’t break anything if we remove the files in the old places?

Confirmed.


Remove ng-invalid red border styling on homepage search input

I noticed that this also shows up when adding crops to gardens:

And it shows up when searching for a crop in the create guide page.

Everywhere! So what's wrong here is that our .ng-invalid rule in the CSS should probably only apply on some inputs, rather than having a global rule. Thoughts?

@simonv3 Agreed. How about we create a new class like .input-invalid-notify or something similar, and then the css rule would be:
.input-invalid-notify.ng-invalid
for the inputs we want to highlight with a red border when invalid. How's that sound?

That sounds good to me.

How do I get started on this issue?

Hey @Katy310! How I would get started on this issue is by getting the app up and running and then adding a rule to the scss in this file:
https://github.com/openfarmcc/OpenFarm/blob/2a3052105758c918a17aea4cf4cf8697b4fc2e5c/app/assets/stylesheets/styles/ui/inputs/inputs.scss#L19
which would specifically overwrite the $alert-color for the home screen.
Possibly something like:
input#search_crop_name.ng-invalid {
  border: none;
}

Yeah, sure.

From my understanding, the invalid CSS should add to the input box only when the user tries to make an invalid query. Hence the .ng-invalid class should be added to the input boxes dynamically through javascript. Thoughts and advice?
Also, where should I look for the js code that governs the search boxes?

@Katy310 .ng-invalid gets automatically added by Angular when a search box and form is invalid.
It's managed by the ng-form directive: https://docs.angularjs.org/api/ng/directive/form
Right now it's attaching the ng-invalid class because the input field is technically invalid. Should the blank input field be seen as invalid or not? It's possible to do a blank search, but it's not ideal (we just return the most popular crops and guides). So it depends!
I personally think your PR https://github.com/openfarmcc/OpenFarm/pull/871 is good! It would just be nice to follow our CSS style guide and not use #id tags.

I've given it another shot. Any feedback?

@Katy310 Awesome. It's now live. Thanks so much for your work on this!
https://openfarm.cc/

@Katy310 great job!
On Tue, Dec 20, 2016 at 10:17 AM, Simon<EMAIL_ADDRESS>wrote:

@Katy310 https://github.com/Katy310 Awesome. It's now live. Thanks so
much for your work on this!
https://openfarm.cc/
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openfarmcc/OpenFarm/issues/846#issuecomment-268301741,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMeiWKvlMsLx22ApA9U3j4uO4RpnWMhFks5rKA2RgaJpZM4KPXus
.


Appstudio update mvp-test-component

Pipelines as Code configuration proposal

Pipelines as Code CI/mvp-test-component-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
7 seconds
init

✅ Succeeded
18 seconds
clone-repository

✅ Succeeded
2 minutes
build-container

✅ Succeeded
12 seconds
deprecated-base-image-check

✅ Succeeded
14 seconds
sanity-inspect-image

✅ Succeeded
58 seconds
clamav-scan

✅ Succeeded
16 seconds
clair-scan

✅ Succeeded
11 seconds
sbom-json-check

✅ Succeeded
13 seconds
sanity-optional-label-check

✅ Succeeded
13 seconds
sanity-label-check

✅ Succeeded
4 seconds
show-summary

Pipelines as Code CI/mvp-test-component-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
7 seconds
init

✅ Succeeded
18 seconds
clone-repository

✅ Succeeded
2 minutes
build-container

✅ Succeeded
12 seconds
deprecated-base-image-check

✅ Succeeded
14 seconds
sanity-inspect-image

✅ Succeeded
16 seconds
clair-scan

✅ Succeeded
58 seconds
clamav-scan

✅ Succeeded
11 seconds
sbom-json-check

✅ Succeeded
13 seconds
sanity-label-check

✅ Succeeded
13 seconds
sanity-optional-label-check

✅ Succeeded
4 seconds
show-summary


Add new attribute mappings

Adds support for new attributes defined in more recent semantic conversion schema versions. This initial set is needed to support attributes emitted by the .NET Elasticsearch client instrumentation, which conforms to https://opentelemetry.io/schemas/1.21.0. The go.opentelemetry.io/collector/semconv/v1.5.0 package does not include these attributes, and the latest version only includes up to 1.18.0. For now, I've included the new attributes directly in our mapping code and updated them to ensure both old and new attribute names are supported. In the long term, we need to discuss how we handle other new attributes and have a strategy for mapping new schema versions as they are made stable and released.

Thanks for the approval, @kruskall. I rebased this so that the commit was signed. What's the process for getting this merged?


Replace IllegalStateException with log messages.

When no attributes are returned for the user or
when configured role attribute  can not be found,
instead of throwing IllegalStateException, log the
appropriate message and return the (unmodified) profile.
(That's, also, how generateAuthorizationForLdapEntry in
LdapUserGroupsToRolesAuthorizationGenerator handles
similar cases.)
With this change, cas-management shows correctly the
authorizationFailure view istead of throwing

The CAS management webapp is unavailable.

 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.Pavlos Drandakis seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Numpy bitwise count

https://github.com/dleemiller/WordLlama/issues/10
https://github.com/dleemiller/WordLlama/issues/38