Recovery from lost git repo

I removed one repository by mistake and now I want to recovery that repo.
I have used a file recovery tool to find that repo directory back.
For example, I get the directory "XXX.git" back. But under this directory, there is no other files but only config, HEAD, hooks and so on.
How can I get all my source code files back from this directory?
How to make that "XXX.git" directory as a standard git directory?
Thank you very much!

gitbucket git repositories are bare repositories : you do not see their content directly in the file system.
If you recovered the bare repository files then you have all you need to recreate properly the repository in gitbucket.
The cleanest solution would be (in my opinion) to:

move the recovered repository elsewhere on your disk
clone the recovered repository locally
recreate the project & repository in gitbucket (create it EMPTY !)
push the clone to the recreated project

@McFoggy
Thank you for your help! I finally recovered my repo. I record the steps below:

Assuming that I recover the bare repo "XXX.git" into the local directory "E:/XXX.git"
first, clone the recovered repository locally. For example, I want to clone the repo to "D:/workspace", then I can run the command: "cd D:/workspace" && "git clone E:/XXX.git". Then a new directory "XXX" will appear under the "D:/workspace".
Just create a new EMPTY repository in gitbucket.
Follow the guide on gitbucket to "git remote add" and "git push".
Finally, the repo is on gitbucket again!

Cool, close the issue if you have resolved your problem.


IGNORE THIS ONE - Cosmos: Changelog updates for February 2023 release

API change check
API changes are not detected in this pull request.


Link to React Native Testing is broken

Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
The URL for testing in React Native Readme is broken
React Native version:
0.63.4 and all versions
Steps To Reproduce
The link to Testing is broken here
Expected Results
The link to Testing should take user to https://github.com/facebook/react-native/wiki/Tests#writing-tests
Snack, code example, screenshot, or link to a repository:

Closing as the linked file does not exist anymore


React Redux template devDevendencies

I'm getting up to speed with React and everywhere else I've looked at templates/setup there has been usage of devDependencies in packages.json. Would you mind explaining what the reasoning for not using them is in this template?
p.s. was also amused to see a dependency on node-noop.
https://news.ycombinator.com/item?id=13588428
https://github.com/euank/node-noop
Reviews
"Everything that is wrong with the Node ecosystem." — An enlightened Reddit user.

Previously, the server-side prerendering used Webpack and all the other packages there at runtime. So it wouldn't have worked to put them into devDependencies.
However, a couple of months ago, we changed to a simpler and more robust system whereby the server-side prerendering bundle was generated at build time, and all those Node packages aren't required in production.
So, we could (and should) now streamline this by moving packages to devDependencies where possible. It doesn't cause any problem as-is, but would just be better organised that way. I'll rename this issue and leave it open to track that task. Thanks for raising this point!

Awesome, and thanks a lot to all involved for this template. There is no way I'd have got to such a complex config that fits dotnet without it. A lot of moving parts to integrate with all this node ecosystem, but its really coming together now.

Just for clarification: One should move as many dependencies such that dotnet runs in development mode  with already compiled bundles without errors?

Everything's in devDependencies now, because like you pointed out, none of them are needed in the published production build.


PDF fonts (very intermittently) not rendering in IE or Edge

I'm experiencing a very intermittent issue where the fonts for some of our pdf files won't render. Images and shapes are being rendered but not text.
If you try again later ( say 10 minutes ) and refresh, then the document renders fine.
In the console, the following error is being printed: "Load test font never loaded."
If you were to go to the Security Settings in IE11 and set the "Font download" option to "Disable" you'll get the exact same behaviour. The setting is however set to "Enable" so this is not the cause of the problem.
I'm suspecting that the "isFontReady" function in "font_loader.js" might be failing more than 30 times, for some reason. I'm not sure why.
test file.pdf
Configuration:

IE and Edge. IE version: 11.379.17763.0
Operating system and its version: Windows 10 Pro
PDF.js version: 2.0.943

Steps to reproduce the problem:

Open the attached PDF in IE11 with pdf.js
Its intermittent,

What is the expected behavior?
The document should render normally.
What went wrong?
There is no text being rendered

In modern, standards-compliant, browsers the fonts in PDF.js are loaded via the Font Loading API. This has the advantage that it's trivial to detect if/when fonts are successfully loaded, and thus it's also possible to handle any errors.
For older browsers, the font loading is a best-effort hack which simply cannot be guaranteed to always work well; please find additional information in this code: https://github.com/mozilla/pdf.js/blob/bce9ff7347266e18326fff52c201faba04a96bd7/src/display/font_loader.js#L239-L333

I'm experiencing a very intermittent issue where the fonts for some of our pdf files won't render.

Given the "very intermittent" part of the issue description, and the fact that there's no good way to detect/handle errors for fonts that fail to load in e.g. IE11, this issue thus cannot be fixed.

In closing: There's unfortunately nothing that can be done here, and I'd thus suggest closing this issue as wontfix (or even cantfix really).


Chess: Move H6 to G5

Please do not change the title. Just click "Submit new issue".

@MGBoulware88 done! Successfully played move h6g5 for current game.
Thanks for playing!


setting innerhtml in created callback generates infinite loop

see this dartpad, to reproduce my problem:
https://dartpad.dartlang.org/0a21ce69ee45c3772d03
I think this is what happens. When you set the innerhtml of an custom element, then in line 12581 of html_dartium.dart the element is created again:
      contextElement = _parseDocument.createElement(tagName);
      _parseDocument.body.append(contextElement);

So because it is created again, the created callback is called of that element, and in that callback the innerhtml is set, and then the cycle repeats indefinitely...

So this is directly below a comment that says " Workaround for Chrome bug 229142", which says it was fixed in Feb 2014. So it seems like we should just be able to change that.

@alan-knight
I think the workaround was adding this code:
https://github.com/dart-lang/sdk/commit/647d73af0fa81d266414dd1f47edc3be69065306
But the problematic part is I think slightly below. So I set the innerhtml of some element, and this element is added to _parseDocument in this line:
https://github.com/dart-lang/sdk/blob/647d73af0fa81d266414dd1f47edc3be69065306/tools/dom/templates/html/impl/impl_Element.darttemplate#L1249

Ah, right. So this is actually a bit tricky. When you call innerHtml it wants to sanitize the text. It does that by creating a document fragment. But the document fragments wants a context element to put things in, and it can't use the original one or it would be directly modifying the DOM, bypassing the sanitization. So it creates a new one with the same tag... It's not obvious how to avoid this in general. I talked to the Polymer guys, and it might be a reasonable long-term solution that for custom elements we create the context as the first superclass that's a normal element.
For shorter term workarounds there's the obvious "don't do that" in the constructor, wait until later.
Another possibility. Presumably when you're setting this HTML in the constructor it's known and trusted HTML, and you don't really want it sanitized. I just committed something this morning that adds a known null sanitizer, and if you use it it bypasses the fragment creation completely. So you could write it as
 setInnerHtml("This doesn't cause an infinite loop", treeSanitizer: NodeTreeSanitizer.trusted)

See https://codereview.chromium.org/1154423009/
But this won't be in 1.11, so it'll take a while to be generally available.

@alan-knight thanks, this  NodeTreeSanitizer.trusted is something I would like to use in many cases. I tried it with 1.12 dev, but I couldn't get it to work:
https://gist.github.com/kasperpeulen/efc88f08c1ac97af047e

That works for me in bleeding edge. Which 1.12 dev are you using? And if it
fails, how does it fail. Does NodeTreeSanitizer.trusted exist in that
version?
On Thu, Jul 16, 2015 at 11:26 AM Kasper Peulen<EMAIL_ADDRESS>wrote:

@alan-knight https://github.com/alan-knight thanks, this
NodeTreeSanitizer.trusted is something I would like to use in many cases. I
tried it with 1.12 dev, but I couldn't get it to work:
https://gist.github.com/kasperpeulen/efc88f08c1ac97af047e
—
Reply to this email directly or view it on GitHub
https://github.com/dart-lang/sdk/issues/23666#issuecomment-122041518.

@alan-knight I use 1.12.0-dev.3.1. It says NodeTreeSanitizer.trusted doesn't exist, however, Webstorm doesn't give an error, and I can see that it exist if I go to the decleration of NodeTreeSanitizer.trusted in Webstorm.
If I run it using webstorm, I get this error (or if I do pub serve):
Exception: No static getter 'trusted' declared in class 'NodeTreeSanitizer'.

NoSuchMethodError: method not found: 'trusted'
Receiver: Type: class 'NodeTreeSanitizer'
Arguments: [...]

If I do pub version I get:
Pub 1.12.0-dev.3.1
I'm confused ...

I can't think what else it is except something confused with versions. I installed 1.12.0-dev.3.1 using Homebrew on a Mac, ran the appropriate version of pub serve against it and it works, ran pub build and it has it in the compiled code. With WebStorm I find sometimes I have to check my project settings for which version I'm using, then quit and restart to force it to stop any running server bits. But I can't see how a pub serve reporting that version wouldn't find it. At least not without odd environment variables or command-line flags or something telling it to look in the wrong place.

I don't understand it as well... I also use homebrew, just installed the new version, but still nothing.
it works if I add the code to my project, like this:
https://dartpad.dartlang.org/d1261fd870faad2e6972
so I guess it must be something strange going on in my specific case
It is really strange ... the analyser and webstorm are clearly indicitating that the code you added is there...  well, I guess this is only something I can fix myself, probably just need to reinstall/reset some things, thanks for all your help.

Dartium is gone.


Add building of SPIRV-headers and -tools to have GLSL shader support in libvsg

With this merge request applied, you can see the issue mentioned at https://github.com/vsg-dev/VulkanSceneGraph/issues/512.

I used to think SPIR-Tools was part of glslang, at some point this must have changed, or perhaps it was just optional dependency. Looking at glslang CMakeLists.txt files there are references to SPIRV-Tools so perhaps SPIRV-Headers/Tools should be built first.
Ideally there would a cleaner way to build GLSL to SPIRV rather than jumping through the awkwardness of glslang, I'm open to suggestions.

I merged this PR as a libvsg-issue-512 branch, and on build can now recreate the VSG compile error.  I presume we'll need to add some extra compile checks to workaround it.
[ 45%] Performing build step for 'VulkanSceneGraph'
Consolidate compiler generated dependencies of target vsg
[  0%] Building CXX object src/vsg/CMakeFiles/vsg.dir/utils/ShaderCompiler.cpp.o
In file included from /home/robert/Dev/vsgFramework/src/VulkanSceneGraph/src/vsg/utils/ShaderCompiler.cpp:25:
/home/robert/Dev/vsgFramework/src/VulkanSceneGraph/src/vsg/utils/ResourceLimits.cpp:155:10: error: cannot convert ‘’ to ‘int’ in initialization
155 |         }};
|          ^

I used to think SPIR-Tools was part of glslang, at some point this must have changed, or perhaps it was just optional dependency. Looking at glslang CMakeLists.txt files there are references to SPIRV-Tools so perhaps SPIRV-Headers/Tools should be built first

Yes, this is achieved by merging this pr.

Ideally there would a cleaner way to build GLSL to SPIRV rather than jumping through the awkwardness of glslang, I'm open to suggestions.

With https://github.com/KhronosGroup/SPIRV-Tools/commit/9c0ae6bb8ea49ef0c154e65278b973ef226adb9b SPIRV-Tools got cmake find_package, which supports using
find_package(SPIRV-Tools)
find_package(SPIRV-Tools-opt)

directly in the top level CMakeLists.txt of VulkanSceneGraph instead of using vsg_glslang.cmake for that packages. There may be still some add_library(.. ALIAS) settings required to match recently used targets.
Using find_package(glslang) to completely delete vsg_glslang.cmake might also be possible, but probably requires further customization.

Urghgh.   So many hacks in the VSG ShaderCompiler code already.  I've just been reviewing the changes to TBuiltInResouce and see additions we'll need to add.
Perhaps we just need to drop support for older glslang version.  This has it's own consequences though.  This is a bigger topic than is appropriate for this discussion, vsg-users would be a better place.  Could start up such a thread, and provide a link to these discussions.  I would normally do this myself but I'm really struggling to use the keyboard.
Big questions are what minimum version of glslang would give us a better base to work from - would this allow us to remove the vsg_glslang.cmake? What version of glslang do users already have on their systems? Installed from repos?
Thanks.

On Tue, 6 Sept 2022 at 12:25, Ralf Habacker @.***>
wrote:

Perhaps we just need to drop support for older glslang version.
There is a less invasive approach by adding find_package support and using
vsg_glslang.cmake as a fallback for older packages.
Adding more build combinations in the build and source files just
increases the maintenance burden, we've already got different hacks for
different folks in the codebase because of glslang, we can't keep adding
more.

We need to go in the opposite direction and simplify.

Message ID: @.***>

On Tue, 6 Sept 2022 at 13:14, Ralf Habacker @.***>
wrote:

We need to go in the opposite direction and simplify.
I understand - to be ready for 1.0?
Here is a branch with the required changes
https://github.com/rhabacker/VulkanSceneGraph/tree/find-glslang-support
for VulkanSceneGraph that can be used for testing or should I open a pr for
VulkanSceneGraph directly now?
Definitely something to settle for 1.0.

We'll need to establish min versions for glslang, SPIRV-Tools and
SPIRV-Tools-opt.  The later two would also need add to the vsg configs
find_dependency list.
The other big challenge will be figuring out how best to the changes in the
DefaultTBuiltInResource. There is some clunky cmake build tests to
establish what features are available, this will either need to be extended
or if possible use a glslang header version to help with, or find a glslang
function to get this setting for us.

Message ID: @.***>

Big questions are what minimum version of glslang would give us a better base to work from

I can give answers from my current experience with openSUSE:
Vanilla glslang 11.11.0 will not be usable in shared build mode (see https://build.opensuse.org/request/show/1001407)
For openSUSE, a corresponding fix has recently been made to the glslang package (see https://build.opensuse.org/package/show/X11:Wayland/glslang), but it cannot be applied to the glslang project.
A corresponding support requires changes to the cmake build system of glslang (all cmake targets installed in shared build mode, which use static libraries, would have to be an alias to the cmake target glslang, since this already contains the exported symbols of the static libraries).
Since a corresponding patch for glslang is still missing, the only thing left to do at the moment is to add SPIRV-tools* to vsgFramework.

Hi Ralf,
I don't know what to do with SUSE package link.
I am spread thin enough that I need to concentrate on the core VSG and try
to steer a path that works across platforms but need members of the
community on those platforms to provide a distillation of what is necessary
to build OK.
It would be worth trying out your changes to the find_package
glsl/spirv-toolsspirv-tools-opt as a PR against vsg-dev/VulkanSceneGraph so
I can merge it as a branch so that others can test it out.  I have a broken
arm and am struggling to work so I need others to take initiative.
Cheers,
Robert.
Message ID: @.***>

FYI, I've just merged by vsgFramework will soon switch to the BuildFlexibility branch that uses FetchContent, so that branch will need to changed as well.


Synchronize date and time between graph and console

Fixes #5030
Signed-off-by: Julien Pivotto<EMAIL_ADDRESS>

@roidelapluie Did you close this PR on purpose?


[Windows] Can not modify the run.exe.manifest file

when I add the uac to  run.exe.manifest, the project will can not be build.

Build failed with the follow error:

<img width="1015" alt="image" src="https://user-images.githubusercontent.com/3991441/124459724-065b3780-ddc1-11eb-8259-8775b1571aed.png">

Steps to Reproduce

create empty project: flutter create .
modify the file : project/windows/runner/runner.exe.manifest, add UAC's code:

  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
        <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
      </requestedPrivileges>
    </security>
  </trustInfo>

Run flutter create bug.
Update the files as follows: ...
...

Expected results:
Actual results:

Logs

If you make changes to a native build it's up to you to make them correctly; Flutter cannot prevent you from breaking your build. See https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/74e362b9-7f48-4046-ac58-6028376b43e5/vs-2008-manifest-tool?forum=windowssecurity and https://stackoverflow.com/questions/56805006/how-to-get-administrator-privilege-with-cmake-in-windows-application which seem relevant.
Closing as there is no Flutter issue here

thanks you


Geometry is not added to pyphenology dataset

Geometry is not added to pyphenology dataset, because in function temperature_only_data_prep, columns longitude and latitude are not selected, see here.
Originally posted by @SarahAlidoost in https://github.com/phenology/springtime/issues/108#issuecomment-1508698611

Refs #140


Advanced protease cleavage

We have a user who wants to run a search where the sample was digested with trypsin and AspN at the same time. It's possible to add a custom protease to get close to the intended behavior (cleave at K,R,D) but either the C or N terminal is required (can't do both separately).
To implement this advanced behavior, we need to pair K,R with C term, and D with N term. Syntax could be:
Sequences inducing cleavage: K,R|D
Cleavage terminus: C|N
A similar problem exists for sequences preventing cleavage, e.g. LysC and trypsin and could be solved with the same syntax. Probably same with cleavage specificity.
Alternatively we could allow combining proteases but this implementation seems more cumbersome.

If I can interfere, it would be useful to have a modified version of the annotation, since we have sometimes proteases that are influenced by both the sequence before and after the cleavage site. more over, it would be useful to allow multiple site protease:
for example, one protease cleaves after double basic residues - KK/KR/RR. I would suggest allowing multiple enzymes using different syntax per enzyme, allowing for multiple positions before and after the cleavage sites. also, allow for a NOT option - for example:
A/S/T,X[P],X,R|[P] - A or S or T 4 positions, before the cleavage site, then any AA that is not P, than any AA, than R and it must not be followed by P after the cleavage site. In this case, you have to have separate rules for each enzyme.
Thanks!
D.

Some of this is done in #1240 . Namely, you can associate a specific residue inducing cleavage with a residue preventing cleavage and a terminus type.
Still to do:
Double residues inducing cleavage (e.g. RR or KK)
Motifs (e.g. RXXXK)


OpenCV arUco ecample with HoLolens2

Hi, I have uploaded all the examples and files associated with this  OpenCVWithHoloLens project However I am interested in working only with the arUco marker detection example. So when I made settings for my project and tried to detect markers with my computer system web cam, the project worked absolutely fine.  But when I am deploying the same solution to HoLolens, it is not detecting the game object, could you please help? do I need to change anything in the main script "HL arUco example" ?? which scripts are important for just detecting arUco marker for my game object which in this case is just a sphere? what procedure should I follow in unity to work only with this example?

Hi, Have you solved the problem? Can you share your experimence?

I have not been able to solve the problem yet. It was too difficult to detect Aruco Markers through HoloLens because I did not find any references for working with HoloLens using OpenCV.

您好，已收到您的来信，祝生活愉快！Having Received Your Mail. Wish All is Best!

Thanks, maybe the error occured in HoloLens2 camera startup process. The code maybe can only be used on HoloLens1.


[Bug] Clicking edit on a downloaded Curse modpack does nothing

When I click "Edit" on a downloaded Curse modpack, nothing happens, but when I click "edit" on my own (created via "Creat instance"), I get options for what to do with the pack.

Turns out it was a bug from an older version.


Selection of best checkpoint without using data labels?

I am trying to train this Outlier Detection model using a custom, unsupervised dataset, using the "SimCLR" training mode. However, I noticed that both validation methods used in the code (knn and baseeval) require data labels.
Is it possible to select the "best" checkpoint from the training dataset without using labelled data?

This is one of most fundamental questions in unsupervised learning: "How to test the quality of learned embeddings?" For eg., let's consider clustering. How do we test if the clustering output is good, if we don't have the ground truth labels. In such cases folks resort to heuristic approaches, e.g., are clusters well separated and dense. So there is no easy solution when there are no ground truth labels and one has to use some domain knowledge to develop a custom proxy test.

How about selecting the checkpoint for which the average anomaly score of the validation data is minimized (assuming there are no anomalies in the validation data)? This would not require any labels. This is the criterion used at test time to determine if the data is typical or an anomaly, so it makes sense that it may be used at validation time.
For the example of clustering, one can assign each validation data point to a training cluster, and verify if the means of each validation cluster is close to the mean of each training cluster.

Ofc. One can design such validation set to determine whether the learned embedding are good for anomaly detection (note that labels are still there but they are just binary labels, i.e., inlier/outlier). Make sure to use a separate validation data for such analyses.


BUG - Default language issue

Describe the bug
After the last PR merged, the default language changed to Polish.
To Reproduce
Steps to reproduce the behavior:

Build and open the app.

Expected behavior
I expect the app's default language to be English.
Screenshots

Option+Command+R when launching simulator, change 'App Language' to 'System Language' and 'App Region' to 'System Region' will not work here?

@maartinj hi, thank you for replying to my concern. I think what you showed me should work. The problem perhaps lies when you also pushed the changes on xcschemes here. Removing this should solve the problem.

Hi @rbennum,
Oh apologize for that. Seems that I left during Option+Command+R when launching simulator, with 'Polish' language in 'App Language' instead of 'System Language'.
I will request new PR to @mikaelacaron for checkout and to merge fix to the dev branch.
Thank you for vigilance and apologize for the confusion.

@maartinj glad to help!

All good @maartinj ! it happens, haha I didn't notice either

@rbennum Thanks for reporting it!

@mikaelacaron you're welcome!


Add cancel transaction and enable parameter-less method

Feat: Add cancel-transaction method in asc sdk
Fix: Enable parameter-less user defined method management in non-interpreted wasm runtime.

This should probably be two separate PR. Otherwise it looks OK. What is the purpose of cancel_transaction ?

MR will be split into two MRs.


gps: avoid hiding errors

It was previously possible for the following to occur:
$ dep ensure
ensure Solve(): remote repository at https://code.googlesource.com/gocloud does not exist, or is inaccessible

This patch exposes the underlying error:
chdir /Users/tamird/src/go/pkg/dep/sources/https---code.googlesource.com-gocloud: no such file or directory

Which is easily fixed:
$ rm -r /Users/tamird/src/go/pkg/dep

What does this do / why do we need it?
What should your reviewer look out for in this PR?
Do you need help or clarification on anything?
Which issue(s) does this PR fix?

@tamird we appreciate the contribution. the error is interesting - deserves its own issue.
please try to utilize the PR template in future.

I think the specific error was to do with other changes I had in-progress. Thanks!


[REQUEST] Add suppress to RichHandler

How would you improve Rich?
Hi. Thanks for the continued work and solving the recent issue (https://github.com/Textualize/rich/issues/1510) for adding suppress to traceback.install. Would it be possible to also add this to RichHandler as well so that the Traceback object there also suppresses modules?
What problem does it solve for you?
Performs the same intended actions as addressed in the previous issue. It would also be convenient to do this in the logging handler too.

I can make a PR for this. One thing to settle though; should RichHandler and traceback.install() have different Traceback objects or should they reference the same object with the ability to overwrite suppress in either call?

Yeah, good idea.
I think that RichHandler should probably grow tracebacks_suppress parameter, which gets passed to emit.
Thanks for the offer of a PR!

Thanks for the PR!


[FEATURE] Pre-commit hook: check your yard documentation coverage

New Feature: Pre-commit hook to check your yard documentation coverage:
Introduction
This pre-commit hook forces the developers to write yard docs in our code before commiting their changes. This is a good way to review the changes before commiting them. Thus, it make sure the code has some minimal quality.
Requirements
yard
Configuration
Default configuration for this hook
Note the 100% minimum documentation coverage required. Setting a 100% of documentation coverage is like the Boy Scouts rule: Leave your code better than you found it.
  CheckYardCoverage:
    enabled: false
    description: 'Checking for yard coverage'
    command: 'yard'
    flags: ['--private', '--protected']
     required_executable: 'yard'
    install_command: 'gem install yard'
    min_coverage_percentage: 100
    include:
      - '/**/*.rb'

Example configuration for this hook
    CheckYardCoverage:
      enabled: true
      flags: ['--private', '--protected']
      min_coverage_percentage: 75
      include:
        - '/app/controllers/*.rb'
        - '/app/facades/*.rb'
        - '/app/libs/*.rb'
        - '/app/models/**.rb'
        - '/app/presenters/*.rb'

Tests
RSpec tests that check the following conditions:

No undocumented code.
Couldn't get the yard stats (only possible if yard stats changes its output format).
Couldn't get the yard stats (only possible if yard stats changes its output format).
Actual coverage value is less than required one, report an error.

Renamed the hook to YardCoverage to simplify the name, as "check" is unnecessary in this context.


add setPlaybackRate

Hey, thanks for the PR. Does this actually work? I remember setting playback speed was not working on mobile last time I tried.

Closing because of inactivity.


Redundant encoding for the URL of the audio source

Describe the bug
Player will always encode the passed-in URL.
CodeSandbox: https://codesandbox.io/p/devbox/polished-surf-3tzsmz
In the sandbox, you can see <audio> can play the file named 喝采　サンプル.mp3 normally, but Tone.Player cannot (after uncommenting player.start()). And inside ToneAudioBuffer.load you can see the requested URL is %25E5%2596%259D%25E9%2587%2587%25E3%2580%2580%25E3%2582%25B5%25E3%2583%25B3%25E3%2583%2597%25E3%2583%25AB.mp3 --- essentially the % has become %25.
I will suggest providing an option to not encode the URL in Player's constructor.

Could you try this with<EMAIL_ADDRESS>I think the fix should be available there, if you can confirm that it's working ok for you, i can promote that version to latest in the near future

Could you try this with<EMAIL_ADDRESS>I think the fix should be available there, if you can confirm that it's working ok for you, i can promote that version to latest in the near future

I need to do a bit more to wait for the loaded flag after creating the player (I have multiple audio tracks and a video track that need synchronization so I cannot use onload directly), but otherwise it plays the audio as expected. Thanks.


[Bug]: Bad sad error occurs when the CompilerPlugin.toml is empty

Description
Steps to reproduce
Create a Ballerina project that contains both Ballerina and native packages with a `CompilerPlugin.toml`.
Commented the content in the `CompilerPlugin.toml`
Then build the project using `./gradlew clean build`

Bad sad error is
ballerina: Oh no, something really went wrong. Bad. Sad.

We appreciate it if you can report the code that broke Ballerina in
https://github.com/ballerina-platform/ballerina-lang/issues with the
log you get below and your sample code.

We thank you for helping make us better.

[2024-02-06 16:51:51,836] SEVERE {b7a.log.crash} - Index 0 out of bounds for length 0
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
        at java.base/java.util.Objects.checkIndex(Objects.java:361)
        at java.base/java.util.ArrayList.get(ArrayList.java:427)
        at io.ballerina.projects.JBallerinaBalaWriter.addCompilerPlugin(JBallerinaBalaWriter.java:121)
        at io.ballerina.projects.BalaWriter.populateBalaArchive(BalaWriter.java:135)
        at io.ballerina.projects.BalaWriter.write(BalaWriter.java:108)
        at io.ballerina.projects.JBallerinaBackend.emitBala(JBallerinaBackend.java:244)
        at io.ballerina.projects.JBallerinaBackend.emit(JBallerinaBackend.java:221)
        at io.ballerina.cli.task.CreateBalaTask.execute(CreateBalaTask.java:79)
        at io.ballerina.cli.TaskExecutor.executeTasks(TaskExecutor.java:40)
        at io.ballerina.cli.cmd.PackCommand.execute(PackCommand.java:256)
        at java.base/java.util.Optional.ifPresent(Optional.java:178)
        at io.ballerina.cli.launcher.Main.main(Main.java:58)

Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

Hi, I already added a PR for a duplicate of this issue.
PR: #43426
Duplicate: #41418
Could you please assign this issue to me and does this still count towards the Hacktoberfest?
Thank you :)

Hi, I already added a PR for a duplicate of this issue. PR: #43426 Duplicate: #41418
Could you please assign this issue to me and does this still count towards the Hacktoberfest? Thank you :)

Hi @Shadow-Devil
Yes we can apply it for Hacktoberfest :)

Fixed with https://github.com/ballerina-platform/ballerina-lang/pull/43426


[v2 notifications] Succeed to update both fields labels and categories to empty

🐞 Bug Report
Affected Services

 The issue is located in: support-notification
Is this a regression?

 Yes, the previous version in which this bug was not present was: ....
Description and Minimal Reproduction

Create a subscription with the following body.

POST method
[
   {
      "subscription":{
         "name":"subscription-test",
         "description":"Test data for subscription",
         "channels":[
            {
               "recipients":[
<EMAIL_ADDRESS>               ],
               "type":"EMAIL"
            }
         ],
         "categories":[
            "health-check"
         ],
         "labels":[
            "simple"
         ],
         "receiver":"tafuser",
         "resendLimit":0,
         "resendInterval":"24h"
      },
      "apiVersion":"v2"
   }
]

Update the labels and categories to empty with the following body for the above subscription.

PATCH method
[
   {
      "subscription":{
         "name":"subscription-test",
         "categories":[],
         "labels":[]
      },
      "apiVersion":"v2"
   }
]

🔥 Exception or Error

Update successfully.
Expected to update failure and return 400.
🌍  Your Environment
Deployment Environment:
**EdgeX Version:**master
Anything else relevant?

Will fix by the PRs
https://github.com/edgexfoundry/go-mod-core-contracts/pull/570
https://github.com/edgexfoundry/edgex-go/pull/3327


rebase-migration: Make it possible to handle chains of migrations.

Previously, the rebase_migration command was not able to rebase chains of migrations in a single app.
This commit introduces a new flag -- "--new" which basically is used for the first migration you create in a commit , and it wipes out your migration history in max_migration.txt, and writes up that first migration in the first line. Any further migrations added without the flag are simply added under each other in the max_migration.txt.
This would allow the rebase_migration command to access the chain of migrations that need to be rebased in a commit, and will rebase them accordingly.
eg: ./manage.py makemigrations --new in your new commit would wipe out the existing list in max_migration.txt and write up the first migration created in the first line. Subsequent migrations don't require you to add this flag, and they are added under each other in the max_migration.txt.
While rebasing, self.last_migration_number would be initialized to the last merged migration, and based on these rebased migrations are renumbered, and eventually self.last_migration_number is updated.
Fixes #27

@adamchainz we are thinking of using this in @zulip. Since we would be quite often making multiple migrations in same app in a commit this feature would be important for us. Let me know what you think about this PR/approach. Thanks!

Thank you for your work here and in the other PR. I haven't found the time to review it fully yet. Here are some initial thoughts.
I think --new is going to be rather error-prone. It requires the developer to remember the flag right at the start of the PR.
Putting multiple migration names in max_migration.txt is also error prone, I think. If branches have common migration names in the middle, Git will not output an easy-to-parse single merge conflict, but multiple. I think we should instead be able to chain of to-rebase migrations from the conflict information itself, by going backwards to the common ancestor of
the two branches.
Anyway, I will try have a play around with the PR soon. I have been doing some other updates here so a bit more familiar with the code right now.


Bug: Password getting printed in orchestrator logs as plain text

📜 Description
Password getting printed in orchestrator logs for LDAP configuration.
👟 Reproduction steps

Configure SSO login service with LDAP option
Save it and try to log in
Check the orchestrator logs

👍 Expected behavior
Password should not be printed as plain text.
👎 Actual Behavior
Password getting printed in orchestrator logs for LDAP configuration.
☸ Kubernetes version
EKS 1.27
Cloud provider

AWS

🌍 Browser
Chrome
🧱 Your Environment
No response
✅ Proposed Solution
No response
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find any similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

AB#8706

same with the image-scanner


Can you use SID instead of names?

Using SID would solve the language issue.

@officedocsbot assign @mypil

@StevenProvo - May we know which Microsoft document link you used in reference to this issue?
Please share it with us so we can investigate further. Thank you.

@StevenProvo - We appreciate any feedback that improves the content in the Microsoft docs but we haven't had any response from you so we are going to close this issue.
Please feel free to open a new issue if there is a specific area of the docs that we can improve or make better. Thank you.

@officedocsbot close


Remove SendSignalCtrlC.exe dependancy

As you can see here instead of keyboard interrupt (Ctrl + C) you can send letter q to ffmpeg console. This should be cross platform, does not require starting a new process and most importantly - now you don't need SendSignalCtrlC.exe dependency for windows.
It is pretty straightforward to do in java:
Process process =  new ProcessBuilder().command(command).start();
//...
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(process.getOutputStream());
outputStreamWriter.write("q\n");
outputStreamWriter.flush();

I can try and implement it, but I can't test it on my machine for unrelated reasons.

Please provide a pr

Here you go 😃


Using Razor runtime view compiling in standalone application

We want to instantiate the Razor view engine to compile Razor views into strings (essentially we want to use Razor for e-maill templating). On our development machines everything works fine, however, on deployment machines without Visual Studio installed it fails with a TypeLoadException (cannot load Microsoft.CSharp.dll - as soon as you fix this library the next one pops up, and so forth...).
What's the solution to this problem? We've observed that web projects, when published, add an additional "refs" folder with dependencies to the published output. It looks like those are the missing references. How to add those missing dependencies to the build output of a standalone console application?
Hope you can point us out how to use the Razor view engine in a "standalone" way, thanks!

@pranavkm, can you please advice how this can handled? I believe you have also a sample somewhere to do this very thing. Thanks!

You'll need to set <PreserveCompilationContext>true</PreserveCompilationContext> in your project file. This should produce the refs directory along with additional metadata required to compile views when you publish your application. If this doesn't work, could you share more details about how your project's setup? It's likely not using Microsoft.Net.Sdk.Web which usually sets up the property for you.
If you're feeling a bit more adventurous, you could also consider using build-time compilation of Razor we added as part of 2.1.0-preview1. To make it work, you
a) Reference Mvc 2.1.0-preview1 in your project (which you're likely already doing)
b) Add these two properties to your project <RazorCompileOnBuild>true</RazorCompileOnBuild>, <ResolvedRazorCompileToolset>RazorSdk</ResolvedRazorCompileToolset>.
You should see a MyAppName.PrecompiledViews.dll sitting next to your app's build output. This file can be used in lieu of deploying cshtml files and performing runtime compilation.

@pranavkm :

We have PreserveCompilationContext true, however, the build output doesn't change. Maybe we need to publish the project too, however, publishing fails for this non-Web-project. The log output is:
01.03.2018 10:15:08
System.AggregateException: One or more errors occurred. ---> System.Exception: Publishing failed.
(some stack trace here)

So not really helpful. Are you sure that it should be possible to publish non-Web-projects?
In regards to build-time compilation: we want to stay on 1.1.x for now. Also, we don't want build-time compilation as we want to be able to change the mail templates easily. So that is not an option for us.

Are you sure that it should be possible to publish non-Web-projects?

It should work for console apps and web applications. Unfortunately, it's hard to give you further guidance without knowing how your project's set up. Could you share a repro application, that would help.

I've implemented a repro sample console application: https://www.dropbox.com/s/plleqzwycj59ch7/RazorStandaloneRepro.zip?dl=0
Works on machines with VS/.NET SDK installed. Copying the build output to a machine without those assemblies => fails to execute.
It is not possible to publish the project using Visual Studio.
Note: I've added a CopyDeps task to the csproj, so that the deps file is correctly placed in the build output. Otherwise Razor can't find its dependencies even on a machine with VS/.NET SDK installed.

It is not possible to publish the project using Visual Studio.

You can use dotnet publish which should produce the deps file along with the refs directory required to compile the view.

@pranavkm: we cannot use the dotnet CLI right now in our CI system, we're stuck with MSBuild for now. Any ideas how to make it work using MSBuild - or even better, from within Visual Studio?

I'm not entirely sure if there's a gesture, but msbuild /t:Publish should work. I was also able to publish the app if I explicitly specify a RuntimeIdentifier in the project file
<PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net47</TargetFramework>
    <PreserveCompilationContext>true</PreserveCompilationContext>
    <RuntimeIdentifier>win7-x86</RuntimeIdentifier>
</PropertyGroup>

Once I did this, right click -> Publish worked. Having to specify RuntimeIdentifier seems like an odd experience bug, I'd encourage you to create a feedback (top right corner of VS -> Send Feedback) so this could be investigated.

Thank you! Setting the runtime identifier lets me publish the project with MSBuild! Now we're ready to ship our Razor functionality 👍

Uhm, no, still problems : /
@pranavkm : Now view compilation fails due to a different problem. Although a deps file and the refs folder are present and we do not have DLL-not-found problems any more, we now run into the dreaded problem that the views don't compile:
Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationFailedException: One or more compilation failures occurred:
/MailTemplates/ConfirmEmail.cshtml(4,7): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
/MailTemplates/ConfirmEmail.cshtml(5,7): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
/MailTemplates/ConfirmEmail.cshtml(2,3): error CS0518: Predefined type 'System.Object' is not defined or imported
[...]

Any ideas? We thought that this problem says that we do not have the deps/refs present, but they are!

Weird observation: we experience the same problem on our local dev machines as long as the refs folder is present. If we remove the refs folder locally, the application is running again.

We observed that publishing didn't copy all our deps files to the output and therefore also didn't copy all the necessary refs to the publishing output. View compilation actually happens in a library project referenced by our console application. How to instruct "MSBuild Publish" to also consider the deps files of project references?

PreserveCompilationContext should include all transitive references to the application. To get the scenario right, you have App (which is a net47 exe), that references Library which is a netstandard class library and you notice the app's refs directory on publish does not include transitive references, is that right?

It's a little bit different:
Library is a class library project, using the new csproj format, but targetting net47 full framework. It contains the Razor view engine code and the Razor templates.
App is a console app project, also using the new csproj format, also targetting net47 full framework, PreserveCompilationContext and now RuntimeIdentifier is set, publishing this project creates only a single deps file (for the App) and includes only those deps in the refs folder.

Is there any new information regarding this issue?

I adjusted the reproduction sample provided by my colleague with our current situation and problem:
RazorStandaloneRepro.zip
The application runs fine when run directly, but when it is published and the *.exe file from the publish output is run we get the following error:
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationFailedException: One or more compilation failures occurred:
lyet1vxc.gg4(4,11): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(5,11): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(6,11): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(7,11): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(8,11): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(9,11): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(10,11): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(12,39): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(12,80): error CS1980: Cannot define a class or member that utilizes 'dynamic' because the compiler required type 'System.Runtime.CompilerServices.DynamicAttribute' cannot be found. Are you missing a reference?
lyet1vxc.gg4(12,80): error CS0518: Predefined type 'System.Boolean' is not defined or imported
lyet1vxc.gg4(20,16): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(20,16): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(20,110): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(22,16): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(22,16): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(22,63): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(24,16): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(24,16): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(24,79): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(26,16): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(26,16): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(26,75): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(28,16): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(28,16): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(28,63): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(28,63): error CS1980: Cannot define a class or member that utilizes 'dynamic' because the compiler required type 'System.Runtime.CompilerServices.DynamicAttribute' cannot be found. Are you missing a reference?
lyet1vxc.gg4(28,63): error CS0518: Predefined type 'System.Boolean' is not defined or imported
lyet1vxc.gg4(28,84): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(33,36): error CS1983: The return type of an async method must be void, Task or Task<T>
lyet1vxc.gg4(33,31): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(33,31): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(33,36): error CS0115: '_MyTemplate_cshtml.ExecuteAsync()': no suitable method found to override
lyet1vxc.gg4(15,9): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(19,10): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(19,10): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(21,10): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(21,10): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(23,10): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(23,10): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(25,10): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(25,10): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(27,10): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(27,10): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(35,26): error CS0518: Predefined type 'System.Int32' is not defined or imported
lyet1vxc.gg4(35,29): error CS0518: Predefined type 'System.Int32' is not defined or imported
lyet1vxc.gg4(35,33): error CS0518: Predefined type 'System.Boolean' is not defined or imported
lyet1vxc.gg4(35,13): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(35,13): error CS0103: The name 'BeginContext' does not exist in the current context
lyet1vxc.gg4(36,26): error CS0518: Predefined type 'System.String' is not defined or imported
lyet1vxc.gg4(36,13): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(36,13): error CS0103: The name 'WriteLiteral' does not exist in the current context
lyet1vxc.gg4(37,13): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(37,13): error CS0103: The name 'EndContext' does not exist in the current context
lyet1vxc.gg4(33,36): error CS0161: '_MyTemplate_cshtml.ExecuteAsync()': not all code paths return a value
   at Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult.EnsureSuccessful()
   at Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.CreateCacheEntry(String relativePath, String normalizedPath, Func`2 compile)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.GetOrAdd(String relativePath, Func`2 compile)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorPageFactoryProvider.CreateFactory(String relativePath)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.CreateCacheResult(HashSet`1 expirationTokens, String relativePath, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.LocatePageFromPath(String executingFilePath, String pagePath, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.GetView(String executingFilePath, String viewPath, Boolean isMainPage)
   at Library.RazorHtmlRenderer.<RenderAsync>d__5.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at App.Program.Main(String[] args)

I adapted the reproduction sample created by my colleague to our new problem (with App/Library as mentioned above by @drauch):
RazorStandaloneRepro.zip
The App.exe works perfectly when run directly from the build output, however, when publishing and running the App.exe from the publish folder we get the following error:
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationFailedException: One or more compilation failures occurred:
lyet1vxc.gg4(4,11): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(5,11): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(6,11): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(7,11): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(8,11): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(9,11): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(10,11): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(12,39): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(12,80): error CS1980: Cannot define a class or member that utilizes 'dynamic' because the compiler required type 'System.Runtime.CompilerServices.DynamicAttribute' cannot be found. Are you missing a reference?
lyet1vxc.gg4(12,80): error CS0518: Predefined type 'System.Boolean' is not defined or imported
lyet1vxc.gg4(20,16): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(20,16): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(20,110): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(22,16): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(22,16): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(22,63): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(24,16): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(24,16): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(24,79): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(26,16): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(26,16): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(26,75): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(28,16): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(28,16): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(28,63): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(28,63): error CS1980: Cannot define a class or member that utilizes 'dynamic' because the compiler required type 'System.Runtime.CompilerServices.DynamicAttribute' cannot be found. Are you missing a reference?
lyet1vxc.gg4(28,63): error CS0518: Predefined type 'System.Boolean' is not defined or imported
lyet1vxc.gg4(28,84): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(33,36): error CS1983: The return type of an async method must be void, Task or Task<T>
lyet1vxc.gg4(33,31): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(33,31): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(33,36): error CS0115: '_MyTemplate_cshtml.ExecuteAsync()': no suitable method found to override
lyet1vxc.gg4(15,9): error CS0518: Predefined type 'System.Void' is not defined or imported
lyet1vxc.gg4(19,10): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(19,10): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(21,10): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(21,10): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(23,10): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(23,10): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(25,10): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(25,10): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(27,10): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(27,10): error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)
lyet1vxc.gg4(35,26): error CS0518: Predefined type 'System.Int32' is not defined or imported
lyet1vxc.gg4(35,29): error CS0518: Predefined type 'System.Int32' is not defined or imported
lyet1vxc.gg4(35,33): error CS0518: Predefined type 'System.Boolean' is not defined or imported
lyet1vxc.gg4(35,13): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(35,13): error CS0103: The name 'BeginContext' does not exist in the current context
lyet1vxc.gg4(36,26): error CS0518: Predefined type 'System.String' is not defined or imported
lyet1vxc.gg4(36,13): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(36,13): error CS0103: The name 'WriteLiteral' does not exist in the current context
lyet1vxc.gg4(37,13): error CS0518: Predefined type 'System.Object' is not defined or imported
lyet1vxc.gg4(37,13): error CS0103: The name 'EndContext' does not exist in the current context
lyet1vxc.gg4(33,36): error CS0161: '_MyTemplate_cshtml.ExecuteAsync()': not all code paths return a value
   at Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult.EnsureSuccessful()
   at Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.CreateCacheEntry(String relativePath, String normalizedPath, Func`2 compile)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.GetOrAdd(String relativePath, Func`2 compile)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorPageFactoryProvider.CreateFactory(String relativePath)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.CreateCacheResult(HashSet`1 expirationTokens, String relativePath, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.LocatePageFromPath(String executingFilePath, String pagePath, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.GetView(String executingFilePath, String viewPath, Boolean isMainPage)
   at Library.RazorHtmlRenderer.<RenderAsync>d__5.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at App.Program.Main(String[] args)

We assume that the error occurs since Razor apparently expects a Library.deps.json file. The problem can be circumvented

by copying the App.deps.json file and renaming it to Library.deps.json or
by copying the App.deps.json file from the build output to the publish folder.

However, both seem like pretty hacky solutions and we're not really sure if either workaround works in all cases. Is there a better way to fix the problem?

We assume that the error occurs since Razor apparently expects a Library.deps.json file.

Razor looks for the deps file for the hosted application given by IHostingEnvironment.ApplicationName. In your sample, you have it pointing to the Library which is why it's looking for the Library's deps file. Change it to point to the app and things should work:
services.AddSingleton<IHostingEnvironment>(new HostingEnvironment { ApplicationName = "App" });

Yeah, that worked :-) 👍
Thanks for your support!


ensure context __exit__ is called during shell completion

The necessary modifications will ensure that the context's __exit__ function is called during shell completion, addressing the issue of unclosed file options.
fixes #2644

@akhil-vempali if you have some time available, we could hopefully get this into 8.2.0. If you do, could you make sure to:

Fix the now broken tests.
Add a test to prevent this from regressing.

@akhil-vempali thank you for your work. I continued in #2800 and merged it. I added you as a co-author as you already did great work identifying where the issue was and almost fixed it as well. There was a confusion of context objects that I rectified and I added a test case so we can prevent a regression.


[style]:

What's the style idea?
We need to improve  the home page looks off we can add the shadow effect and the blur effect instead of the color theme and a better background color as well as the filter
Add screenshots
Add screenshots

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Please assign this to me under GSSOC'23

assigned @DhyanShah22


nested paginate support

Is it possible to have nested paginate() calls?
I am trying to use X-ray to crawl from one paginated source to a 2nd paginated source, but I am not having any luck getting it to work.  Is this a known limitation?
const x = Xray()
x('some_url', "#table-designer > tbody > tr", [{
        id: "td",
        data: x("td > a@href", {
          title: "h1",
          photo: "#content > img@src",
          models: x("#content > div > div > div > table.table.table-striped > tbody > tr", [{
              name: "td > a",
              url: "td > a@href"
          }])
          // inner paginated content
          .paginate("#content > div > div > ul.pagination > li:last-child > a@href")
        }),
      }
    ])
    // outter paginated content
    .paginate("#content > div > ul.pagination > li:last-child > a@href");

can you send me a private gist of the nonworking code?
<EMAIL_ADDRESS>


A number of small tweaks to the MVP.

Master protocol defaults to https if not specified
Removed upload driver extra classpath functionality
Added ability to specify main app resource with container:// URI
Shut down the REST server and thus the driver pod once the application completes
Updated docs to reflect all of the above
Add examples to Docker images, mostly for integration testing but could be useful for easily getting started without shipping anything to the cluster

@foxish @ash211 @erikerlandson bunch of small things here, though in retrospect each of these should be its own pull request.

@mccheah can you please handle merge conflicts?
@foxish anything else you'd want to see changed here before merging?

I still haven't gone over this change completely as I do not completely understand some parts of it. I'd like to go over it once tonight. Can we merge this tomorrow?

LGTM

@foxish @ash211 fixed merge conflicts. Integration tests were also failing from the pod and service name change, so fixed those also.

LGTM


[vite:dts] Cannot read properties of undefined (reading 'length')

Describe the bug
When I use dts according to documentation.
import dts from "vite-plugin-dts";
plugins: [dts()]

I'm try to fix the bug. Add a ? can resove.

Reproduction
no url
Steps to reproduce
No response
System Info
System:
    OS: macOS 15.0.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 71.48 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
  Browsers:
    Chrome: 129.0.6668.91
    Safari: 18.0.1
  npmPackages:
    vite: ^5.4.8 => 5.4.8
    vite-plugin-dts: ^4.2.3 => 4.2.3

Validations

[X] Read the FAQ.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] The provided reproduction is a minimal reproducible example of the bug.

Could you show how did you trigger this error?

just
import dts from "vite-plugin-dts";

plugins: [dts()]

tsconfig
{
  "compilerOptions": {
    "target": "ES2020",
    "useDefineForClassFields": true,
    "module": "ESNext",
    "lib": ["ES2020", "DOM", "DOM.Iterable"],
    "skipLibCheck": true,

    /* declaration */
    "declaration": true,
    "declarationDir": "./types",

    /* Bundler mode */
    "moduleResolution": "bundler",
    "allowImportingTsExtensions": true,
    "isolatedModules": true,
    "moduleDetection": "force",
    "noEmit": true,

    /* Linting */
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noFallthroughCasesInSwitch": true
  },
  "include": ["src"]
}

I've encountered the same exact experience as described by @webkong. editing the transformAlias function as he did with the optional chaining null check resolved the issue and the build completed successfully. But, if I publish my repo, anyone else who runs the build will fail. Seems like an easy fix for a vite-plugin-dts version update...


Implement OpenCSG in ThreeFAB

I like the way ThreeFAB handles created models with hierarchy and Transform/Materials controls. I would like to ask if it could really implement OpenCSG as well? I want to integrate openCSG with ThreeFAB system so user can generate features based models as well.

@saugat i'm not sure.  ThreeFAB is using webgl through the three.js library to render.  Has there been a successful port of openscg for the browser?  I'm assuming it would require something like Emscripten to make that happen.

@blackjk3 Yes there is one ThreeCSG particularly developed for Three.js
https://github.com/chandlerprall/ThreeCSG
I am trying to implement this into ThreeFab and upto some point I am getting some success. I would be happy if we do this together. I think this can be a new feature based modelling tools based on browser with so much of user interaction.


feat: RPC Versioning

Pull Request type

Please add the labels corresponding to the type of changes your PR introduces:

Feature

What is the current behavior?

Resolves: #NA
What is the new behavior?

Introduction of versions for our RPC API.
Versions are defined in the mc-rpc::versions module, organized as follow:
versions
├── mod.rs
└── v0_7_1
    ├── mod.rs
    ├── api.rs               # contains the API definition of the current version
    └── methods              # contains all the methods implementation
         ├── mod.rs
         ├── read/
         ├── trace/
         └── write/

All the implementations are then merged in our RpcModule in the versioned_rpc_api function.
Methods will be version-prefixed to avoid collisions, for example:

starknet_V0_7_1_blockNumber,
starknet_V0_8_0_blockNumber
etc...

The "routing" is done in the VersionMiddlewareLayer middleware, where depending on the version provided in the route by the request's user, we forward to the right method.
If no version is provided, the latest RPC version available is used, defined in RpcVersion::RPC_VERSION_LATEST.
Does this introduce a breaking change?
No

Possible improvement
I don't like the current process of adding a new version ; it is:

Create a new constant in the RpcVersion primitive, like: pub const RPC_VERSION_0_7_1: RpcVersion = RpcVersion([0, 7, 1]);
Add it in the SUPPORTED_RPC_VERSIONS  array,
Add the version API + implementation in the mc-rpc::versions module,
Add the module when merging the API methods:

pub fn versioned_rpc_api(starknet: &Starknet, read: bool, write: bool, trace: bool) -> anyhow::Result<RpcModule<()>> {
    let mut rpc_api = RpcModule::new(());

    merge_rpc_versions!(
        rpc_api, starknet, read, write, trace,
        v0_7_1, // We can add new versions by adding the version module below
        // , v0_8_0 (for example)
    );
// ...

Lot of dependency between objects, the middleware also uses the SUPPORTED_RPC_VERSIONS array for routing.
It is fine though because we don't have new versions everyday, that's an uncommon event.
But happy to hear your suggestions!

i like the approach quite a lot though, it's very good :partying_face:

Closed in favor of:
https://github.com/madara-alliance/madara/pull/247
Because this branch is coming from our fork the CI doesn't work properly.


node & npm version

Hi , you used node & npm what version?   node v7.6.0 is error

Hi,
I am sure it works on node v9 & npm v6
Install node and npm as follows
sudo apt install nodejs npm
Install node version control tool "n"
sudo npm install n -g
install node v9
sudo n v9
Install npm
sudo npm install npm -g
Delete old nodejs and npm
sudo apt purge -y nodejs npm
Create symbolic link
sudo ln -sf /usr/local/bin/node /usr/bin/node
sudo ln -sf /usr/local/bin/npm /usr/bin/npm
Check your node & npm version
node -v
npm -v
Try it

good to know! thanks


Timeseries chart issue

http://c3js.org/samples/timeseries.html
When we have a date time specified in the format "2014-05-14 21:05:00" it does not generate the chart in IE / Safari. it shows up as NaN.

As of version 0.3.0 data.x_format is changed to data.xFormat. Reference:
https://github.com/masayuki0812/c3/releases/tag/0.3.0

Without this option, the date string must be able to be parsed by Date.parse().

@masayuki0812 My datestring in ISO 8601 format can be parsed by Date.parse but is not being recognized by C3 time series chart.
From a quick look at the source, the issue seems to be that if the date value is a string, then you always run it through d3.time.format.parse, which strictly enforce the format specified that you pass in from xFormat.
See: https://github.com/c3js/c3/blob/223404a79246c61d150d8a209dbdc81f6955083b/src/core.js#L1037
I would expect the correct behavior to try new Date(date) as a fallback in all cases, not just when date is of type number.
Let me know if you'd like me to submit a PR.


Prevent connection awaiting from blocking Source's process

This should allow to terminate the pipeline gracefully when connection
listening has to be interrupted

The code looks fine but there is probably one use case missing.
Currently, we are handling a case where the parent process exits then we shutdown the native process. There is a case where the native rtmp listens for a connection and the socket gets closed (before the media starts to flow), this results in a raise in the await_connection function (which is controlled by us), is the intended behavior or should we just stop the element as with do with the former case?


[Update Obsidian Extension] Append to Daily Note Command, several fixes, update API

Description

Add Append to Daily Note Command which can append text to a daily note. Text can be appended to the end of the note or to a specific heading. It supports all templates. Contributed by @iancanderson.
Fixed dropdown menu preventing search to function in newer Raycast versions
Update to Raycast API v1.44.0

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

This includes several fixes but it did not solve #3622.


Fix high cpu load due to log capture thread not release

We will create a new log capture thread when open a new session, but we forgot release the thread after session opened success or failure.
Note that, we don't need to wait sub process finished because the log capture lifecycle is SESSION_CREATE  -> SESSION_OPEN. After SESSION_OPEN the log is controled by session.

cc @yaooqinn

cc @yaooqinn

thanks! merge to master for 1.1 and branch 1.0 for 1.0.2

thanks! merge to master for 1.1 and branch 1.0 for 1.0.2


#105 view on map

Closes #105.
I wanted to implement it using navigation, but using navigation to change state (selected tab) instead for just replacing widgets seems not possible without hacking ugly stuff.

======== Exception caught by gesture ===============================================================
The following NoSuchMethodError was thrown while handling a gesture:
The method 'showAcceptingStore' was called on null.
Receiver: null
Tried calling: showAcceptingStore(Instance of 'PhysicalStoreFeatureData')

When the exception was thrown, this was the stack:
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      _HomePageState._goToMap (package:ehrenamtskarte/home/home_page.dart:86:30)
#2      DetailContent._showOnMap (package:ehrenamtskarte/map/detail/detail_content.dart:84:33)
#3      DetailContent.build.<anonymous closure> (package:ehrenamtskarte/map/detail/detail_content.dart:74:46)
#4      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:993:19)
...
Handler: "onTap"
Recognizer: TapGestureRecognizer#7671a
  debugOwner: GestureDetector
  state: possible
  won arena
  finalPosition: Offset(210.7, 563.0)
  finalLocalPosition: Offset(87.2, 20.0)
  button: 1
  sent tap down
====================================================================================================

======== Exception caught by widgets library =======================================================
The following assertion was thrown building DetailContent(dirty, dependencies: [_LocalizationsScope-[GlobalKey#589a9], _InheritedTheme]):
Failed assertion: boolean expression must not be null

The relevant error-causing widget was:
  DetailContent file:///Users/Roman/git/eak/ehrenamtskarte/frontend/lib/map/detail/detail_view.dart:41:17
When the exception was thrown, this was the stack:
#0      DetailContent.build (package:ehrenamtskarte/map/detail/detail_content.dart:62:18)
#1      StatelessElement.build (package:flutter/src/widgets/framework.dart:4701:28)
#2      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4627:15)
#3      Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
#4      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
...
====================================================================================================

@RoAnBu Hm, I merged main in case it was fixed there already, and did some other small changes. Can you try again? At least I can not reproduce it now.


low hanging grammar fixes

Also, h isn't a function that returns references, it builds a structure and augments it with methods collect, etc, so I've change it to read that way.
Cheers :)

Thank you)


newsletterDetailContent() don't work

$params = array(
"method" => "GET",
"ID" => 41,
);
$mj->newsletterDetailContent($params);
I have this error:

Unknown resource: "newsletterDetailContent" (cf picture)

Hello,
It's probably because you don't have the last wrapper.
Please download the class again and keep me informed.
By the way, we are setting up a composer / packagist to make it clearer.

Yes, it's work. Thanks.
mailjet class php is commited 2 days ago. I haven't seen this. Sorry :D

No problem!
Can you please close this issue if your problem is solved?
Thanks!


404 error downloading sandbox-16.5.15922.0-gb

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
The container helper gets a 404 error downloading current "SecondToLastMajor" platform artifact.
Looks like someone has let you down.
Scripts used to create container and cause the issue
$navurl = (Get-BCArtifactUrl -select SecondToLastMajor -country $country -storageAccount bcinsider -sasToken $sasToken)

New-NavContainer `
          -verbose `
          -alwaysPull `
          -accept_eula `
          -containerName navserver `
          -useBestContainerOS `
		  -updateHosts `
          -Credential $creds `
          -assignPremiumPlan `
          -AdditionalParameters @(
            "-v c:\temp:c:\temp", "-v c:\tvt:c:\tvt"
            "--network=tlan", "--ip <IP_ADDRESS>"
            ) `
          -auth NavUserPassword `
          -licenseFile 'C:\tvt\tvtfin.flf' `
          -imagename navimage `
          -artifactUrl $navurl

Full output of scripts
Fetching artifact name
URL  [REMOVED]
Set user as TVision
Calling nav-containerhelper to create new container
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' =
root\cimv2,'className' = Win32_OperatingSystem'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' =
root\cimv2,'className' = Win32_OperatingSystem'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
NavContainerHelper is version <IP_ADDRESS>
NavContainerHelper is running as administrator
Host is Microsoft  - 1909
Docker Client Version is 19.03.12
Docker Server Version is 19.03.12
ArtifactUrl and ImageName specified
Fetching all docker images
Image navimage:sandbox-16.5.15922.0-gb doesn't exist
Building image navimage:sandbox-16.5.15922.0-gb based on https://bcinsider.azureedge.net/sandbox/16.5.15922.0/gb
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' =
root\cimv2,'className' = Win32_OperatingSystem'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' =
root\cimv2,'className' = Win32_OperatingSystem'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
Pulling latest image mcr.microsoft.com/dynamicsnav:10.0.18363.1016-generic
10.0.18363.1016-generic: Pulling from dynamicsnav
Generic Tag: <IP_ADDRESS>
Container OS Version: 10.0.18363.1016 (1909)
Host OS Version: 10.0.18363.1016 (1909)
Downloading platform artifact /sandbox/16.5.15922.0/platform
Downloading C:\Users\TVision\AppData\Local\Temp\2da0748d-a30c-468d-863b-327f7384a6fb.zip
Retrying download...
Downloading C:\Users\TVision\AppData\Local\Temp\2da0748d-a30c-468d-863b-327f7384a6fb.zip
Download-File : Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not
Found."
At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\<IP_ADDRESS>\Misc\Download-Artifacts.ps1:173 char:29
+ ...             Download-File -sourceUrl $platformUrl -destinationFile $p ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Download-File], MethodInvocationException
    + FullyQualifiedErrorId : WebException,Download-File

$
...

Additional context

Works with other versions.

I can see that that build has a problem - there are newer builds available, which are working - if you re-run you will likely get 15931 or 15935

For DE, I am still getting 15922. Do you know when the newer builds will be available?

Yes, The last GB version is also still 15922.
I was waiting 24 hours in the hope that it would build again, though it looks like my (sacrificial) Window Docker PC has died again so I'm probably going to have to wait til Monday.

I have deleted the faulty version 15922 (the one without a platform)
I will fix Get-BcArtifactUrl to only return versions where country (and platform) is present - next version.
I have emailed our build team (who are responsible for publishing artifacts) that all country versions are not present.
Grabbing w1 gives you 15952, but de and gb are now 15905.

Confirmed, thank you Freddy.

As I am propably experiencing the same problem, I will write it here. I was testing the Download-Artifacts and the -includePlatform will regularly give you a 404 Not found  error.
So for instance:
Download-Artifacts -artifactUrl (Get-BCArtifactUrl -country dk -type OnPrem -version <IP_ADDRESS> -select Closest) runs fine, while
Download-Artifacts -artifactUrl (Get-BCArtifactUrl -country dk -type OnPrem -version <IP_ADDRESS> -select Closest) -includePlatform gives you error
Download-File : Exception calling "DownloadFile" with "2" argument(s): "Fjernserveren returnerede en fejl: (404) Ikke fundet."
At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\<IP_ADDRESS>\Misc\Download-Artifacts.ps1:206 char:45

...             Download-File -sourceUrl $url -destinationFile $path -tim ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Download-File], MethodInvocationException
FullyQualifiedErrorId : WebException,Download-File

I will fix Get-BcArtifactUrl to only return versions where country (and platform) is present - next version.

@freddydk if you do this change - are there any other routine in place that will catch these kind of issues with the builds? At least now you get notified by partners if something fails. We do not want to run our pipelines on old build for weeks without someone being notified that the builds are failing.
You shouldn't need to email the build team about these kinds of problem, they should know already and be working on a fix. :)
btw, still get 404 error for platform for Swedish nextminor.
https://bcinsider.azureedge.net/sandbox/16.5.15946.0/se
https://bcinsider.azureedge.net/sandbox/16.5.15946.0/platform

The error with 15946 and the missing platform should be fixed with the checkin I just made.
The problem occured Wednesday evening - this issue was reported Thursday morning - I don't know when the build team would have discovered this without this issue - but it wouldn't take weeks.

@Rukkulakki  - the issue you are facing here is probably what I talk about here: https://freddysblog.com/2020/08/18/one-of-these-days/
update the containerhelper and it should work

p

The issue sounds much like the one I am facing, but unfurtunately an update did not help
PS C:\Windows\system32> Update-Module navcontainerhelper
PS C:\Windows\system32> Download-Artifacts -artifactUrl (Get-BCArtifactUrl -country dk -type OnPrem -version <IP_ADDRESS> -select Closest) -includePlatform
Downloading application artifact /onprem/15.3.40074.40822/dk
Downloading C:\Users\sh\AppData\Local\Temp\66fe41c0-0f8f-4316-adce-a71aeec8b2b3.zip
Unpacking application artifact to tmp folder using Expand-Archive
c:\bcartifacts.cache\onprem\15.3.40074.40822\dk
Downloading platform artifact /onprem/15.3.40074.40822/platform
Downloading C:\Users\sh\AppData\Local\Temp\33e68813-ff18-481d-9948-afa7fce716d6.zip
Unpacking platform artifact to tmp folder using Expand-Archive
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\onprem\15.3.40074.40822\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
Downloading c:\bcartifacts.cache\onprem\15.3.40074.40822\platform\Prerequisite Components\Microsoft Report Viewer 2015\ReportViewer.msi
Downloading c:\bcartifacts.cache\onprem\15.3.40074.40822\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Download-File : Exception calling "DownloadFile" with "2" argument(s): "Fjernserveren returnerede en fejl: (404) Ikke fundet."
At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\<IP_ADDRESS>\Misc\Download-Artifacts.ps1:206 char:45

...             Download-File -sourceUrl $url -destinationFile $path -tim ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Download-File], MethodInvocationException
FullyQualifiedErrorId : WebException,Download-File

PS C:\Windows\system32> get-installedmodule navcontainerhelper
Version    Name                                Repository           Description

<IP_ADDRESS>   navcontainerhelper                  PSGallery            PowerShell module

Works in the bccontainerhelper.
PS C:\Windows\system32> install-module bccontainerhelper -AllowClobber
PS C:\Windows\system32> Download-Artifacts -artifactUrl (Get-BCArtifactUrl -country dk -type OnPrem -version <IP_ADDRESS> -select Closest) -includePlatform
c:\bcartifacts.cache\onprem\15.3.40074.40822\dk
c:\bcartifacts.cache\onprem\15.3.40074.40822\platform

Thanks @freddydk, The fix seems to work as intended 👍
Now 16.5.15905.0 is used as Next Minor instead of 16.5.15946.0 that failed on platform.
Lets hope that the build team has some routine for securing this going forward. ;-)

@Rukkulakki  did you remember to restart containerhelper after update - else it won't work.
Potentially also Flush-ContainerHelperCache (even though your issue seems not to be this)

@freddydk I think I even tried restarting the entire powershell application, but something must have gone wrong at my end.
Went to try it again to recreate, but now after uninstalling bccontainerhelper, navcontainerhelper was at version <IP_ADDRESS>.
Update-Module navcontainerhelper -> Restart application -> Retry -> And platform works like a charm.

I do recommend using bccontainerhelper though:-)
navcontainerhelper is "parked"


cvs: Fix for Linuxbrew

There were two problems with cvs:
1. It depends on vim, which isn't necessarily installed by default on Linux (Slackware uses elvis instead, but I noticed because I actually manually removed it from my Ubuntu system!)
checking for vim... no
configure: error:
   Failed to find a text file editor.  CVS cannot be compiled
   without a default log message editor.  Searched for
   vim'.  Try configure --with-editor'.

2. There was a patch which added an unsupported gcc flag.
make[2]: *** Waiting for unfinished jobs....

[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Have you included a log of the failed build without your patch using brew gist-logs <formula>?
[ ] Does your submission pass
brew audit --strict <formula> (where <formula> is the name of the formula you're submitting)?
[x] Have you built your formula locally prior to submission with brew install <formula>?

It depends on vim

That is shocking. Oi. I'd rather not make this a hard dependency, since most systems provided vi. Can you make this dep a Requirement instead? See #953
class ViRequirement < Requirement
  fatal true
  default_formula "vim"
  satisfy { which "vi" }
end

Try to avoid changing the formatting where possible. Large changes like this tend to create merge conflicts when I do the weekly merge of Homebrew into Linuxbrew. A one-line change is always preferred where possible. Try something like
    apply "patches/PR5178707.diff",
          "patches/ea.diff",
          "patches/endian.diff",
          "patches/fixtest-client-20.diff",
          "patches/fixtest-recase.diff",
          "patches/i18n.diff",
          "patches/initgroups.diff",
          ("patches/nopic.diff" if OS.mac?),
          "patches/remove-libcrypto.diff",
          "patches/remove-info.diff",
          "patches/tag.diff",
          "patches/zlib.diff"

If apply doesn't like the nil value, it could be removed with compact, but I'd suggest patching apply instead to ignore nil values.

If apply doesn't like the nil value, it could be removed with compact, but I'd suggest patching apply instead to ignore nil values.

IMO, patching apply is something that should probably happen upstream (unless we do it for just the cvs formula, but that sounds heavy-handed to me). I think the path of least resistance in this case is probably compact.
Nevertheless, I'll try to avoid invasive changes to the formatting in the future. Thanks for the help while I get used to this!

Let's use compact here then. If a similar case comes up again in a different formula, I'd be inclined to patch apply. It would be nice for it to be merged upstream, but they'd be unlikely to accept it, because the issue of nil arguments being passed to apply doesn't affect Mac.

There was a similar case before - for sip.
(No pr because im on my Android phone, sorry)
On March 23, 2016 10:15:04 AM PDT, Shaun Jackman<EMAIL_ADDRESS>wrote:

Let's use compact here then. If a similar case comes up again in a
different formula, I'd be inclined to patch apply. It would be nice
for it to be merged upstream, but they'd be unlikely to accept it,
because the issue of nil arguments being passed to apply doesn't
affect Mac.

You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub:
https://github.com/Linuxbrew/linuxbrew/pull/969#issuecomment-200447637

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

https://github.com/Linuxbrew/linuxbrew/blob/master/Library/Formula/sip.rb#L35
      system python, *["configure.py",
                     ("--deployment-target=#{MacOS.version}" if OS.mac?),
                     "--destdir=#{lib}/python#{version}/site-packages",
                     "--bindir=#{bin}",
                     "--incdir=#{include}",
                     "--sipdir=#{HOMEBREW_PREFIX}/share/sip"].compact

Similar yes. I'm not suggesting that we monkey patch system though. Now that I say it though… it would actually get rid of a lot of these somewhat ugly calls to compact. Seems a bit drastic though.
Passing nil values to system configure is fine, the nil values get converted to empty strings "" and configure just ignores the empty strings. Passing empty strings to make though makes it unhappy.

I think issue #946 was to add a pam formula. That might do it.

Alternatively, we could disable pam as you suggest.

I'm fine with either solution (if you're volunteering for #946). =)

I'm happy to merge this PR as is. We can tackle the PAM dependency another day.

Cool. I'll merge it later tonight.


Please show the differences between Python2 and Python3 AND Qt4 and Qt5

Is it possible to show the differences between Py3Qt5 and Py2Qt4? It's a good example but i need little bit more info.
Thanks a lot
Roman

I wrote this with Python3 and Qt4 so I can guarantee that that setup works. If you have any problems with Python3 + Qt5 or Python2 + Qt4/5 it'd be easier to open those as issues and we can just tackle those problems directly.
If you want it to work with Python2 and it doesn't out of the box, you may want to give python-future a try (untested).


Add polish language

I've actually provided direct translations but also alternatives. For example 'Test cases' directly translated is 'Przypadki testowe' but it sounds a bit stiff so most people would just say 'Testy' or 'Scenariusze' (with BDD).
But it could be good to have way to add alternatives to some of the markers, such as 'Keyword Tags'. In this case 'Keyword -> 'Słowo kluczowe' but good alternative is 'Funkcja' so 'Keyword Tags' could be 'Znaczniki słowa kluczowego' or 'Znaczniki funkcji'. WDYT @pekkaklarck ? (I think only headers allow to define sets, not string values).

@bhirsz Would you be able to update Crowdin as well? I'd like to avoid discrepancies between github and crowdin. Thank you

We could easily allow multiple translations for setting names but I'm not sure would it be a good idea. It's easier to learn the syntax both for humans and for external tools if there's only way way to do it. I know headers already support this simply because you can define them as a set. I'm not sure is that a good idea either, but it was the easiest way to support singular and plural headers that we have historically supported in English. Anyway, I'm not totally against adding alternatives also for settings. That's nevertheless something that requires its own issue and probably a discussion on Slack or elsewhere.

Thanks for the translation @bhirsz! Hopefully you can still update Crowdin to make @leeuwe's work easier.


update regex-redux for c#

general cleanup
change manual match counting to Regex.Count, which is more efficient.
I updated both the singleproc and multiproc ones although numbers seem to be for singleproc, which is much slower.

cc @stephentoub fyi. hopefully this will give us updated numbers on https://programming-language-benchmarks.vercel.app/

Your project is very popular among my team - we're considering using it for our next one.

sure thing @hanabi1224  -- appreciate you running this  -- it's more user friendly than the original CLBG. I like the idea of being able to submit PR's and the results automatically updated on the page.
my other PR enables more C# scenarios and switches to .NET 8.


Codecov.io support

API looks pretty similar to Coveralls, so should be easy enough.

Can you show me an example json coverage output that I can parse server side. Thanks!

We currently just export in the Coveralls.io JSON format. The raw coverage data is in the form of lines where the first 9 columns are a count and the rest is the actual line. This package reads that in, and currently mangles it into Codecov.io's JSON format if its different. It looks mostly the same

https://twitter.com/iaindunning/status/595235822804275201

OK, I have this ALMOST working but I'm still getting HTTP 200 when I try to POST the results to codecov with the repo token included.

Http200 means success - is there a message?

Yeah! I got it to work!

Wow neat.
@stevepeak we should be getting a released version soon, and a lot of Julia packages will instantly be able to start using CodeCov.io. BTW, your badge format isn't really the same as the other ones, might need to generate new ones using shield.io?

NB: Right now, submit_token expects that you are NOT running on CI, and scrapes the branch and commit info directly from git. I did that because that's how the Coveralls version works right now too. If people want it some other way I am happy to add more other CI services in!

If you've got any more Coverage.jl time, could you update the README with how to use Codecov instead of Coveralls?

Yes!

There may still be a problem with codecov support. The current HTTP return code is 400, with the message data: ASCIIString "template not found at html/errors/400.html" (see the build reports of travis: https://travis-ci.org/IainNZ/Coverage.jl/jobs/69379891). Also the codecov summary page does not show new commits, the last one shown is two months old: https://codecov.io/github/IainNZ/Coverage.jl.