Error handling

Hi there.
Before I get onto my issue, a little background about me. (Skip it if you like.) I've developed a small number of Excel VBA API integrations, and I expect to be doing a lot more in the future. So far I've been using ad hoc methods, sometimes using Power Query. But I'd like to settle on a consistent approach, and I think VBA-Web may be it. I'm currently working on a VBA-Web integration with Hubspot, which has very similar authentication to Google. So I've taken the existing Google authenticator as a starting point.
I'm very impressed by VBA-Web. Great job, Tim, if you're reading. Thanks for providing this valuable resource.
My issue is with the way errors are handled in VBA-Web. Some errors are returned to the caller as part of the WebResponse. That's great, as it means I can handle them however I want. But other errors are just re-raised in local error handlers. Unless I'm missing something, that makes it impossible for me to handle them at a higher level.
I'm wondering if there's some logic to this method of error-handling that I can't see. Otherwise, I'm thinking about creating my own private version of the code with different error handling. Obviously I'd rather not branch off with my own version. Maybe I could contribute to a revised method of error-handling in the next official version of VBA-Web. Any thoughts?
Richard.

Oh, silly me. Of course my problem had nothing to do with the code re-raising errors. There's no reason why that should matter. It turns out the reason why my high-level error handler was failing to trap errors was because I had the VBA Error Trapping option set to "Break in Class module". I must have switched to this setting some time in the past, but as I haven't used VBA classes much, I didn't notice until now that it was still set.
I'll close this issue now.

Hi again. I've decided to re-open the issue, because I still think there's a problem with error handling. I may be missing something again, but it seems that the current system isn't designed to handle HTTP errors during authentication. All errors during authentication are trapped by PrepareHttpRequest and re-raised as error 11012. So there seems to be no way for an authenticator to report an HTTP error.
What that means is that, if I get an HTTP error while making a non-authentication API call, I get a specific HTTP error code passed back in my WebResponse. But if I get the same HTTP error while making an authentication API call, I get an unhandled generic error 11012, which I have to trap myself, and then I can't distinguish an HTTP error from a bug.
I'm guessing that this isn't news to you, Tim, but you just haven't got around to doing anything about it. Or maybe I've just missed something again!

I get an unhandled generic error 11012, which I have to trap myself, and then I can't distinguish an HTTP error from a bug.

It isn't an unhandled generic error, it is thrown by the method. You can see their "contract" in the code.
''
' Prepare Http request for given WebRequest
'
' @internal
' @method PrepareHttpRequest
' @param {WebRequest} Request
' @return {WinHttpRequest}
' @throws 11012 / 80042b04 / -2147210492 - Error preparing http request
''
Public Function PrepareHttpRequest(Request As WebRequest, Optional Async As Boolean = True) As Object

web_ErrorHandling:

    Set web_Http = Nothing
    Err.Raise 11012 + vbObjectError, "WebClient.PrepareHttpRequest", _
        "An error occurred while preparing http request" & vbNewLine & _
        Err.Number & VBA.IIf(Err.Number < 0, " (" & VBA.LCase$(VBA.Hex$(Err.Number)) & ")", "") & ": " & Err.Description

I think you are supposed to trap for these kinds of issues in your client code and prompt the user for action in a way that is meaningful for your type of authentication.

Hi zgrose. I meant it's generic in the sense that it's one error code to cover every error that's thrown in or under PrepareHttpRequest, whether that's HTTP errors, bugs or anything else.
To put it another way, there's an inconsistency between the way HTTP errors are handled during ordinary API calls, and how they're handled during authentication.
Anyway, I've now written some code to parse the HTTP error information from Err.Description after I've trapped the error. It's a bit hacky, but it gets the job done.

To put it another way, there's an inconsistency between the way HTTP errors are handled during ordinary API calls, and how they're handled during authentication.

I agree, but I think that's because the library "knows" what to do during ordinary calls while only you know what to do during authentication calls. At least that's my theory. :)

I would put it this way... The user-written custom authenticator hooks into the library at a lower level, using the IWebAuthenticator_BeforeExecute hook. So you have this sandwich:

Application (makes regular API calls)
Library request handler (handles API requests from above, and calls authenticator below))
Custom authenticator (makes authentication API requests)
Library request handler (handles authentication API requests).

When an HTTP error occurs at level #2, the library passes info about the error up to level #1 as part of the WebResponse object, and all is good. But when an HTTP error occurs at level #4, there's no channel provided for the WebResponse to be passed through level #2, from level #3 up to level #1. The only thing that gets passed up through level #2 is an unhandled error, with Err.Number 11012, and some Err.Description text. So, if my level #1 code wants to distinguish between HTTP errors and bugs, it is has to catch the unhandled error and parse the Err.Description to work out whether an HTTP error occurred.
That's my theory. ;-)


Cannot install plugins

Hello,
I just installed micro, but I can't get to install any plugins.
I get this error whenever I try any command starting by micro -plugin or plugin from inside the editor:
Failed to decode channel data:
invalid character '"' after array element
Available Plugins:
I tried installing from source and apt but neither solve the problem.
Do you know how to fix this ?
Thanks.
Specifications
Commit hash: Version: 2.0.6
OS: Debian 10 Testing
Terminal: urxvt

Thank you, this should be fixed now. Let me know if you still have the issue.


Split autocomplete addresses into tabs

-> check this img.
this way much better user friendly ui
also i have wrong send cus not Separation with myaccount and contact
plz change this .

This issue is closed because a different solution has been implemented


docs: update 'Quickstart: Agent interaction using the API'

Updates the documentation for Quickstart: Agent interaction using the API. Current doc uses promises in an old-fashioned and somewhat clunky way.
This new sample code takes advantage of async/await methods while also demonstrating the power of contexts in dialogflow in a better way.

@googlebot I fixed it.

droping this PR


Duckdb can't be built when located within a sub_subdirectory

Hey,
thx for the nice project. I added it as a git submodule, included it via
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/duckdb) but couldn't built duckdb.
Problem:
The include of extension_helper.hpp in https://github.com/cwida/duckdb/blob/master/tools/sqlite3_api_wrapper/sqlite3_api_wrapper.cpp couldn't find it.
Quick solution:
Not sure if worth a PR or you just want to add it as a minimal change in you next commit to master/dev.
https://github.com/tkschmidt/duckdb/commit/ccae3aea48afdc26e245f063551775031340fbb7
I also checked a fresh built from this branch and seems to be fine now for both situations:

duckdb as CMAKE_PROJECT_DIR
duckdb as subdirectory

Do you want also an example project that shows the issue?
Best and thx for everything,
Tobi

The problem seems to be that we use ${CMAKE_SOURCE_DIR} to set include paths for extensions. Rather than changing the include path to a relative one I think a better solution would be to change this to ${PROJECT_SOURCE_DIR}. I have opened a PR (#1117) that makes this change. Could you verify if that also solves the problem for you?

works like a charm 👍

Thanks! In that case I will merge the PR and consider this issue resolved.


Add optional unsafe operations

Context
For messages that contain many string fields (e.g. repeated string with many elements coming in), UnmarshalVT can spend a lot of CPU time in runtime.slicetobytestring. Indeed, when decoding the []byte data, it does a string(bytes) cast (e.g. m.Foo1 = string(dAtA[iNdEx:postIndex])). Since []byte is mutable and string is not, this cast requires an allocation for safety. This allocation, repeated many times, sometimes turns out to be expensive.
Feature request
We could avoid this by using the unsafe package that allows us to perform this cast without an allocation:
func unsafeBytesToString(b []byte) string {
	return *(*string)(unsafe.Pointer(&b))
}

Of course, the user has to be careful because if they overwrite the []byte data they received from the wire, then the string is mutated. So, this feature should be opt-in in my opinion.
This feature is mentioned in another issue: Per Msg/Field Features. I think having per-message / per-field features is not mandatory to implement unsafe casting, though.
Note that this feature applies to bytes fields as well where we could reference data instead of copying it.
Proposal
I think this feature is worth implementing and I'm open to ideas. In my opinion, a simple and pragmatic approach to implement it would be to add unsafe functions, such as UnmarshalVTUnsafe, which perform such operations for all applicable fields. I've actually started such an implementation on my personal fork and it seems to work well (diff for anyone curious, although it doesn't work yet for bytes fields). Now, before spending more time on it, I would love to gauge interest and hear considerations from others!
A few considerations I had on my side:

I think having a different function from UnmarshalVT is mandatory because several applications can use the same generated code for a message and we cannot ask them to all be careful not overwriting data received from the wire.
I considered adding a feature but it sounds weird because it would be transversal to other features.

Either we could just always generate both the safe and unsafe versions of the function;
or I think we could add an --unsafe flag (different from features) to trigger the generation of unsafe functions.

Let me know what you folks think about all this!

This is a perfectly sensible feature, and in fact we already have an open PR for it: https://github.com/planetscale/vtprotobuf/pull/79
It's just missing some cleanup and some better naming. I'm definitely in support of it, by providing a separate API (UnmarshalUnsafe) instead of an --unsafe flag (which would be dangerous IMO).

Ah, I didn't realized there was already a PR. 🤦♂ Thanks for pointing it out, I'll take a look into it!

Regarding the --unsafe flag, I was actually thinking about it this way:

without --unsafe (marshal+unmarshal features): generate UnmarshalVT and MarshalVT only
with --unsafe (marshal+unmarshal features): generate UnmarshalVT, UnmarshalUnsafeVT, MarshalVT, and MarshalUnsafeVT

I actually like the PR's approach more. It would consist in adding new features like unmarshal_unsafe and marshal_unsafe. I'm going to iterate on that. 👍


feat(uiBrNumeroBeneficioMask): Mask for BR social security benefit number.

Implements mask for INSS Benefit Number (NB).

Coverage increased (+0.009%) to 99.065% when pulling 6f9b0d3a9cbc6e4cecf6e6623b97db0c464c5cb8 on vbmendes:feat-nb into 640dda5974285a3d8daf2529e883faa7e9e40b1c on assisrafael:master.


Feedback Clara Hartmann on ARIADNE

"The graphical user interface could be improved. I struggled to find the option to return to the home screen after going down a path. Also, the explanations on what something is should be written below the titles not just appear when hovered over. There is enough space around the icons. Also maybe icons? And increase textsize for accessibility?"

[ ] I struggled to find the option to return to the home screen after going down a path.

We have right mouse click for this. Should we make it more clear?

[x] the explanations on what something is should be written below the titles not just appear when hovered over

This is a design choice, and it will look absolutely chaotic in highly populated sub-graphs. So we have to decline this.

[ ] Also maybe icons? And increase textsize for accessibility?

Both are unclear for me as increased text size might cause problems in highly populated sub-graphs. But, we can maybe introduce a "accessibility" mode with enhanced text etc.


fix: add request validation middleware to the server

Description
This fixes an issue with request validation where requests weren't required to meet validation requirements.
Review Checklist

[X] I have added documentation for new/changed functionality in this PR or in openfga.dev
[X] The correct base branch is being used, if not main

Codecov Report

Merging #53 (b1e664c) into main (ae567aa) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
- Coverage   76.44%   76.39%   -0.05%
==========================================
  Files          72       72
  Lines        8045     8054       +9
==========================================
+ Hits         6150     6153       +3
- Misses       1475     1479       +4
- Partials      420      422       +2

Impacted Files
Coverage Δ

server/server.go
34.23% <100.00%> (+1.63%)
:arrow_up:

server/commands/check.go
84.08% <0.00%> (-1.51%)
:arrow_down:

storage/postgres/utils.go
83.43% <0.00%> (-0.64%)
:arrow_down:

Continue to review full report at Codecov.

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


Test/media pkg connection get file size

Codecov Report

Merging #51 (0b4a07c) into main (f2b9618) will increase coverage by 0.37%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
+ Coverage   37.09%   37.46%   +0.37%
==========================================
  Files          10       10
  Lines         798      798
==========================================
+ Hits          296      299       +3
+ Misses        471      469       -2
+ Partials       31       30       -1

Impacted Files
Coverage Δ

pkg/media/connection.go
51.42% <0.00%> (+1.22%)
:arrow_up:

Continue to review full report at Codecov.

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


add Chai-1 inference example

🧬 🔥
Type of Change

[x] New example

Checklist

[x] Example is testable in synthetic monitoring system, or lambda-test: false is added to example frontmatter (---)

[x] Example is tested by executing with modal run or an alternative cmd is provided in the example frontmatter (e.g. cmd: ["modal", "deploy"])
[x] Example is tested by running with no arguments or the args are provided in the example frontmatter (e.g. args: ["--prompt", "Formula for room temperature superconductor:"]

[x] Example is documented with comments throughout, in a Literate Programming style.
[x] Example does not require third-party dependencies to be installed locally
[x] Example pins its dependencies

[x] Example pins container images to a stable tag, not a dynamic tag like latest
[x] Example specifies a python_version for the base image, if it is used
[x] Example pins all dependencies to at least minor version, ~=x.y.z or ==x.y
[x] Example dependencies with version < 1 are pinned to patch version, ==0.y.z

manually tested this from an environment without the missing client mount and confirmed the preview builds, so merging even though the check fails in CI


ESP32 Httpclient get method works, but not with mfrc522

ESP32 or ESP8266
It seems that there is an incompatibility between the mfrc522 library and the method http.get from HTTPClient.h ?
https://forum.arduino.cc/t/esp32-httpclient-get-method-works-but-not-with-mfrc522/881640

It seems that there is an incompatibility

No. Most ppl have bugs in their code.

ok thanks


RFC: New i18n architecture (may not be based on Zend)

Alternative to RFC: Upgrade Zend Framework - only considers Zend_Locale, Zend_Translate, Zend_Date. Excludes Zend_Cache`.
Context: https://github.com/silverstripe/silverstripe-framework/issues/5359#issuecomment-228306760
TODO Write RFC :) We're keeping this task as a placeholder for our Scrum backlog.

@chillu I felt that the focus of the title wasn't quite right; re-labelled to shift emphasis.

I've drafted up an RFC at https://docs.google.com/document/d/1O3ZLOtIjcV_K4XieyWEHK_akegRvmkcIgPqduuGb5RI/edit#; This will be posted to github pending internal review. :)

Closed with https://github.com/silverstripe/silverstripe-framework/issues/6194


How to use?

I have installed the plugin successfully, but how do we actually use it?  Are there in game commands?  Do we have to edit it manually in the SQL db?

you can manually insert them in a db or use the commands
1173452786562781276

issue fixed


Once raw notebook kernel is in broken state there's no way to recover unless you restart VS COde

VSC Native Notebooks + Raw Kernels

Somehow ended up in a situation where kernel was broken Error: Direct kernel connection broken
Restarting kernel doesn't fix this (it should as we're starting the kernel process again)

However re-loading VSC Fixes this.

WE have telemetry for this. Let's check to see if there's enough people hitting it. If so, maybe there's more telemetry to add to help us figure it out. Or find a repro.

I am seeing this as well.  I can close the interactive pane and restart it without closing vscode.

@rholland this has been fixed here https://github.com/microsoft/vscode-python/pull/13373
Unfortunately this hasn't made it into the current release.
Please feel free to try the insiders version of the Python extension, see here https://github.com/microsoft/vscode-python/blob/master/CONTRIBUTING.md#development-build

Same error here, exactly as described by @DonJayamanne and @rholland. Looking forward for fixes. Thank you.


chore(deps): update devdependency vite to ^5.3.0

This PR contains the following updates:

Package
Type
Update
Change

vite (source)
devDependencies
minor
^5.2.13 -> ^5.3.0

Release Notes

vitejs/vite (vite)
v5.3.0
Compare Source

fix: typo in client log (#17363) (68aa9f8), closes #17363
fix(ssrTransform): handle arbitrary module namespace identifiers (#17446) (0a76652), closes #17446
test: disable isolate for unit test (#17448) (f16fae5), closes #17448
feat: asset type add bmp (#17439) (ec287f8), closes #17439

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Hywax Assistant.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (1a65b4f) to head (554c551).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##              main       #44   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines          146       146
  Branches        26        26
=========================================
  Hits           146       146

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Blazor Server Side .NET Core publishing issues

I've publishing different server side Blazor apps in Windows Server 2008 R2 servers with random dll/pdb file locks that even stay after stopping the application pools.
I publish with these settings to a local folder, and then copy the files to the server:

The ONLY method that worked so far is to enter the servers and stop the pools before overwriting the files with the updated blazor solution.
If I go to the recommended app_offline.htm route....  file locks happen randomly and can stay locked for minutes,  in the worst case having to shutdown the server instance to unlock the files and be able to copy the new ones.
I'm using latest Blazor Preview7, but this has been happening since the first preview.
I come from the old asp.net world, and this was an easy copy/paste procedure, no file locks or similar issues.  Am I missing something?  Thanks & regards!

Thanks for contacting us, @chrdlx.
@shirhatti can you please look into this? Seems like this is app_offline related.

I publish with these settings to a local folder, and then copy the files to the server

This approach will not work as files are expected to be locked by .NET Core.

If I go to the recommended app_offline.htm route.... file locks happen randomly and can stay locked for minutes, in the worst case having to shutdown the server instance to unlock the files and be able to copy the new ones.

That is not the expected behavior. Can you provide more details on how this is failing? What dll/pdb files are locked? Can you share your deploy logs?
The best way for us to diagnose this issue is if you can share your MSBuild bin logs.
You can use this VS extension to capture logs.
Or if you're running from the commandline, try invoking MSBuild as shown below
msbuild /restore /p:RuntimeIdentifier=win-x86 /p:DeployOnBuild=true /p:PublishProfile=publish.pubxml /bl

cc @vijayrkn @jkotalik

Hello @shirhatti , I don't publish using VisualStudio.  this is my workflow:

Publish to folder C:\Solution
Stop AppPool in web server
Copy files from C:\Solution to \publish\Solution (Server path)
Start AppPool in web server

This works fine everytime....   if I don't stop AppPools and instead I put the app_offline.htm in the server path,  then the issues start....
So I don't have deploy logs,  and using msbuild or visualstudio to deploy is not an option sadly... but I don't think it will change much since its a file copying procedure too... isn't it?
---
This can be reproduced with the preview 7 blazor server side default template,  try to publish it with the 4 steps I described before.  It's a Windows Server 2008 R2.
Sadly, I don't know if I can add more details to the issue since I'm new to .NET Core....  and I just migrated from .net framework.
Is there a way to start/stop application pools remotely, maybe a doc you can point to?
So in the meanwhile if this is not fixed, I don't have to connect via remote desktop to manage the app pools...
Thanks & regards!

Are all the files in your app locked or are there specific files that are locked? Also, have you modified any IIS settings like shutdown timeout? Also, I assume you're using the IIS in-proc deployment model (which is the default)?

@anurse
-Just the .dll and the .pdb files.
-The IIS's application pool has been created with default settings.
-InProc hosting
Tomorrow I'll talk with the IT department since they're copying the files.... maybe they're producing this issue somehow....  I'll keep you posted...
Thanks & Regards

-Just the .dll and the .pdb files.

All DLLs and PDBs?

-Just the .dll and the .pdb files.

All DLLs and PDBs?

After searching for this issue I've found
https://github.com/aspnet/AspNetCore/issues/3793
Which is my same issue as mine, experienced by many people, and not fixed from 2016.

Hi. We're closing this issue as no response or updates have been provided   in a timely manner and we have been unable to reproduce it. If you have more   details and are encountering this issue please add a new reply and re-open the issue.


Is mopidy-leftasrain still working?

Hello!
When I run mopidy leftasrain pull, I get:
ERROR    Fetch failed: HTTP Error 404: Not Found Traceback (most recent call last):   File "/usr/local/lib/python2.7/dist-packages/mopidy_leftasrain/remote.py", line 143, in _       fetch_song     result = urllib2.urlopen(url, timeout=self._timeout)   File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen     return opener.open(url, data, timeout)   File "/usr/lib/python2.7/urllib2.py", line 437, in open     response = meth(req, response)   File "/usr/lib/python2.7/urllib2.py", line 550, in http_response     'http', request, response, code, msg, hdrs)   File "/usr/lib/python2.7/urllib2.py", line 475, in error     return self._call_chain(*args)   File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain     result = func(*args)   File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
It tries to reach http://leftasrain.com/getNextTrack.php?shuffle=false&currTrackEntry=0 which is not available.

Hi @lukiasz,
I am so sorry for taking so long to respond but somehow I did not notice this issue.
The guys at leftasrain have changed the way they serve the song MP3s, so now it's required to acquire a time-limited token each time you wan't to play the song. This makes it much harder to implement it as a Mopidy plugin, and I am not really sure it's worth it.
However, I have a minimal Python script which you could use to stream songs one by one.
I'll update the README to mark this as broken and also make a PR to Mopidy to remove this plugin from documentation.


Update cloudbuild.yaml

Correct substitution variable name.

Hi Navie -- this is an artifact registry repo name, not the default substitution available from the GitHub trigger!  Maybe we can change the name to make that clearer?

Ah! :) Thanks for clarifying, Dina. Yes, let's change the name.
What do you think of "_REPO" or "_REPOSITORY_NAME"?

I'd suggest _REGISTRY_NAME.
In my head, "repo" means "repository", not "registry", so being explicit might be useful in this example/

I'd suggest _REGISTRY_NAME. In my head, "repo" means "repository", not "registry", so being explicit might be useful in this example.

Should it be _ARTIFACT_REGISTRY_REPO ?  Since they are called repos?

I'd suggest _REGISTRY_NAME. In my head, "repo" means "repository", not "registry", so being explicit might be useful in this example.

Should it be _ARTIFACT_REGISTRY_REPO ? Since they are called repos?

TIL 😅
Yes, _ARTIFACT_REGISTRY_REPO

I updated the file with the new variable name, but the test seems to be failing. Any suggestions?

I've updated the substitution variable _REPO_NAME to _ARTIFACT_REGISTRY_REPO on the trigger configuration itself, which should resolve the error.

Thanks for the review and updates!


sending keystrokes to inactive window

Hi!
I assume that the library doesn't provide sending keystrokes to an inactive window.
Do you have any idea how can I perform that? You know - any tips, any ideas?
It would really simplify my work, tho.

Hey again.
It's not really possible to "send keystrokes to an inactive window", you can cheat it a little by setting said window active using windows api calls for the duration of the input.
You can hear more about this here https://youtu.be/J3fatZ2OVIU


Not calling lsetup on ALRB_noGridMW=yes

David Cameron noticed that it would have no sense to call "lsetup emi" when ALRB_noGridMW is set

Please check this:
pilot/user/atlas/proxy.py:47:51: W603 '<>' is deprecated, use '!='
if os.environ.get('ALRB_noGridMW', '').lower()<>"yes":
I will close this for now as it seems to block another pull request. Please fix the problem above and then create a new pull request after the next pilot release.

i could reopen the ticket. please fix the flake8 error

Hi Pavlo, please add spaces around the != operator.

Please retry this one

thanks


pip install -I fails to generate correct robot.bat if Robotframework is already installed

When re-installing Robotframework with pip option -I, pip doesn't uninstall old version first. This causes setup.py script line 83 cause problems, if Python is installed on directory which name includes python.
e.g.
default c:\Python27\
Running 'pip install -I robotframework' causes recursive path declaration in robot.bat,
c:\c:\python27\python.exe27\c:\python27\python.exe.exe -m robot.run %*
This should be quite easy to fix in setup.py

This problem occurs only on Windows where our installation system modifies created robot.bat and rebot.bat scripts. That's going to change in RF 3.1 (#2415) when we switch to robot.exe and rebot.exe files and this issue will be fixed as well. The problem could also be fixed in the current installation system, but this isn't severe enough to warrant one more RF 3.0.x minor release.


Fix for twigphp/Twig/issues/3685 (leading linebreaks and indentation)

Reworked the "remove indentation" to properly account for all lines, work with leading linebreaks, and retain codeblocks at start of markdown.
Reworked the tests, to among other things compare with the markdown generated by the markdown library directly.

This PR should be send to the Twig repo itself, as this repo is a read-only subtree split. See the extra folder in the Twig repo.


User chats

Can i get access to my own user chats? and how if possible

I dont think this is possible but if you just want to check subscription here is example to check if user is in chat
bot.api.getChatMember(chat_id:"chat_id",user_id:message.from.id)['result']['status'].to_s=="left"


Prevent robots from indexing GUI

I can see that the current GUI explicitly invites search engine robots to index a firewall:
<meta name="robots" content="index, follow, noodp, noydir">

I don't think anybody wants to have his firewall admin interface listed in any search engine, e.g. one only needs to search for "opnsense" in Google and get all the installations out there having WAN administration enabled.
Even though WAN administration might not be a good idea w/o X509 client-auth or VPN, I think it's a good idea to replace that header with
<meta name="robots" content="noindex, nofollow, noodp, noydir">

Agreed, thanks!


Fix color-theme-solarized

I suspect there is something wrong with the elpa package generator. Emacs'
setup-hook adds the site-lisp directory to load-path, but elpa packages end
up having their code in `site-lisp/elpa/package-version, and thus emacs cannot
load them.
If that worked, adding color-theme as builInput might be better than
explicitly adding its site-lisp to the load-path in the buildPhase

Motivation for this change
Things done

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

[x] NixOS
[ ] macOS
[x] other Linux distributions

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

Notify maintainers
cc @

hmm, how to test something like this? nix-review says no changes :D

What is nix-review supposed to check? There are changes in the PR at least :)

The way I use this is adding it to emacsWithPackages and then loading it like here:
https://github.com/samuelrivas/monorepo/blob/526fa7cb14b9d9f09112b3e28f238640ac53bdc8/src/elisp/emacs-config/src/emacs-config.el#L20
It is dirty, but this PR is just to preserve previous behaviour. The package broke because the new way of creating packages for melpa puts elisp code in site-elisp/elpa/<package> and this derivation was assuming that they would be in site-elisp.
I think there might be something wrong with the setup hook as it doesn't seem that elisp code is properly accessible even when you add the libraries as build dependencies, but I haven't had the time to dig into this to write a proper package for this color theme

So what is the state of this PR? Can anyone reject or approve it?


Useless comment

https://github.com/yahya-abdul-majeed/CodeRefactoring2023/blob/13fd912b300904b6ff8bfb51da2be73ad1126bca/CLabManager-API/Controllers/IssuesController.cs#L37

Why is this code bad? What principles does it violate? What can the existence of such code lead to? 0,1


Classe refatorada.

close #10

Codecov Report

Merging #11 (7bf4166) into main (d19fd7d) will decrease coverage by 23.52%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##             main      #11       +/-   ##
===========================================
- Coverage   85.84%   62.32%   -23.53%
===========================================
  Files           3        3
  Lines         106      146       +40
===========================================
  Hits           91       91
- Misses         15       55       +40

Impacted Files
Coverage Δ

ifrn_estatistica/emparn.py
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


Automation and dashboarding

It would be useful to have current results available in an automated fashion (via GitHub action) and rendered in a nice dashboard. I'm happy to take a stab at it. Please let me know if you think that's useful and if there are any requirements?

This would depend on https://github.com/prometheus/compliance/pull/28 at the least, else we end up testing old versions all the time.
I am torn on where such a running log of results should live; maybe https://github.com/prometheus/compliance-results or some such would make more sense?
If it runs in the main repo, we could look at PRs always triggering a test run to commit per-commit-id test results. One concern of this automation would be if a binary can't be downloaded and erreneous 100% FAIL is reported.
Thoughts?

Thanks for the feedback and questions @RichiH!
I don't have a good answer to where the results should stay but you could have a look at what I so far put together in .github/workflows/generate-results.yml which runs once a day dumping it into a sub-dir results/. Note that I've been running this for a few now to let it soak a little and so far no issues.
What I had in mind as the next step was to consume the generated JSON files in a static HTML page with some custom JavaScript to render a nice table. I tried many available tools to turn Go test results into reports but either they didn't quite work or come with huge dependencies, that's why I thought doing some custom rendering would be the best way forward.

It would be great to generate markdown output, therefore we can integrate it in https://prometheus.io


Move Conditions

Integrate in with traits and other generic entries.  Replace with a dedicated extended conflict section.

Cancelled, don't know what to put in its place. and the conflict pool doesn't fit in this space afterall.

Redesigned layout in v3.0.


Python 3.10 support

Python 3.10 released on Oct 4, 2021 and we have 3.10.1 now. It should be added to tox config and setup.py

closed by #1309


Improve parse error handling and error messages.

Work in progress
Currently if we use any reserved keyword as part of query or as a column name in Pinot, we get back a very cryptic(non-useful) Query Compilation error, e.g.
WITH grouping AS (SELECT 1) select * from grouping;

triggers:
org.apache.pinot.sql.parsers.SqlCompilationException:  Caught exception while parsing query: WITH grouping AS (SELECT 1) select * from grouping Caused by: org.apache.pinot.sql.parsers.parser.ParseException:  Encountered "" at line 1, column 1. Was expecting one of: (empty)
In most cases error's position, token and list of expected tokens are wrong.
This PR improves errors generated by parser so that the sql above triggers :
Encountered \" \"GROUPING\" \"grouping \"\" at line 1, column 6.\n"             + "Was expecting one of:\n"             + "    <BRACKET_QUOTED_IDENTIFIER> ...
The biggest change in the PR is switch from global lookahead value 2 to 1.
Most of the changes in Parser.jj file are fixes for clashes caused by it.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 0.00%. Comparing base (59551e4) to head (2c91edc).
Report is 1187 commits behind head on master.

:exclamation:  There is a different number of reports uploaded between BASE (59551e4) and HEAD (2c91edc). Click for more details.
HEAD has 53 uploads less than BASE

Flag
BASE (59551e4)
HEAD (2c91edc)

integration
7
1

integration2
3
1

temurin
12
1

java-21
7
1

skip-bytebuffers-true
3
0

skip-bytebuffers-false
7
1

unittests
5
0

unittests1
2
0

java-11
5
0

unittests2
3
0

integration1
2
0

custom-integration1
2
0

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #14238       +/-   ##
=============================================
- Coverage     61.75%    0.00%   -61.76%
=============================================
  Files          2436        3     -2433
  Lines        133233        6   -133227
  Branches      20636        0    -20636
=============================================
- Hits          82274        0    -82274
+ Misses        44911        6    -44905
+ Partials       6048        0     -6048

Flag
Coverage Δ

custom-integration1
?

integration
0.00% <ø> (-0.01%)
:arrow_down:

integration1
?

integration2
0.00% <ø> (ø)

java-11
?

java-21
0.00% <ø> (-61.63%)
:arrow_down:

skip-bytebuffers-false
0.00% <ø> (-61.75%)
:arrow_down:

skip-bytebuffers-true
?

temurin
0.00% <ø> (-61.76%)
:arrow_down:

unittests
?

unittests1
?

unittests2
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

We should avoid touching the code copy-pasted from Calcite unless absolutely necessary. Modifying the copy pasted code means extra management overhead going forward, which IMO is not worth it.
Do you see an easier way to fix these parsing errors? If not, I guess we can instead improve our documentation to help users

If babel is the root cause, we can consider using a different config to reduce the non-preserved keyword

I don't think this problem can be addressed with better documentation because errors returned by parsers have:
A. wrong position
B. point to wrong token
C. suggest empty list of tokens or wrong tokens
That means user can't look at the error position and guess that it's caused by use of reserved keyword (see example in issue description).
Switching to lookahead=1 reveals a number of keyword duplicates in config.fmpp and default_config.fmpp (as compilation errors in parser) and a number of clashes, mostly between productions and nonReservedKeywords.
Quick test shows that we could minimize the number of added lookaheads by reducing the number of non-reserved or reserved keywords (the list is definitely too big) .

Given we use a slightly modified version of Apache Calcite parser... is it safe to assume the standard Apache Calcite parser has this issue as well? If that is the case I think we should ask in their email list/open an issue there. What do you think?

I've just verified this is an issue for Calcite as well. I've executed sqlline as specified in https://calcite.apache.org/docs/tutorial.html and then I've queried SELECT * FROM emps as current and the returned error is:
> SELECT * FROM emps as current;
Error: Error while executing SQL "SELECT * FROM emps as current": parse failed: Encountered "current" at line 1, column 23.
Was expecting one of:
    <BRACKET_QUOTED_IDENTIFIER> ...
    <QUOTED_IDENTIFIER> ...
    <BACK_QUOTED_IDENTIFIER> ...
    <BIG_QUERY_BACK_QUOTED_IDENTIFIER> ...
    <HYPHENATED_IDENTIFIER> ...
    <IDENTIFIER> ...
    <UNICODE_QUOTED_IDENTIFIER> ... (state=,code=0)

@bziobrowski can you ask in Apache Calcite about that?

Yes, calcite's babel parser has the same issue (core parser is better). It comes mainly from using nonReservedKeywords and fixing it with lookahead=2 setting, not from babel sql conformance . With current parser grammar Lookahead=2 greatly expands the list of 'expected' tokens and breaks error position and token.


CMake can't find c-ares in some projects

What version of gRPC and what language are you using?
I am using latest grpc for C++
What operating system (Linux, Windows,...) and version?
Linux- Ubuntu 22.04
What runtime / compiler are you using (e.g. python version or version of gcc)
c++
What did you do?
I use cmake for my drogon app as that is default for that. It all worked fine but when I gRPC, the problem started. As both use c-ares.
First when I added gRPC. This showed up..
CMake Error at CMakeLists.txt:21 (add_executable):
  Target "auth-api" links to target "c-ares::cares" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

So I added find_package(c-ares) before linking gRPC. Now this comes up...
CMake Error at /usr/local/lib/cmake/Trantor/Findc-ares.cmake:14 (add_library):
  add_library cannot create imported target "c-ares_lib" because another
  target with the same name already exists.
Call Stack (most recent call first):
  CMakeLists.txt:51 (find_package)

I tried adding gRPC at the top. But then it says,
CMake Error at /usr/lib/cmake/c-ares/c-ares-config.cmake:29 (add_library):
  add_library cannot create imported target "c-ares::cares_static" because
  another target with the same name already exists.
Call Stack (most recent call first):
  /usr/local/lib/cmake/grpc/modules/Findc-ares.cmake:18 (find_package)
  /usr/share/cmake-3.22/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /usr/local/lib/cmake/Trantor/TrantorConfig.cmake:41 (find_dependency)
  /usr/share/cmake-3.22/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /usr/local/lib/cmake/Drogon/DrogonConfig.cmake:40 (find_dependency)
  CMakeLists.txt:33 (find_package)

What did you expect to see?
It should have compiled successfully like in other projects
What did you see instead?
Shown Above

@veblush @markdroth any updates?

It's not exactly clear what you are trying to do here. Can you provide a reproduction please?

@yashykt My issue is fixed now. Thanks

@yashykt My issue is fixed now. Thanks

How did you solve it? I am also just looking for the problem of drogon integrating grpc

Same problem with Drogon and gRPC.

I am hitting this as well on OSX 12 (GH Action) - suspect its related to cmake 3.29.1


Azure Kinect Depth Camera can not be found in device manager

Describe the bug
After plugging the cables in USB3.0, I only find the Azure Kinect 4k Camera in the device manager.
Azure Kinect Depth Camera is missing.
In addition, the Kinect is blinking amber, although using USB3.0.
I don't know if there is a relation between the two issues.
Desktop (please complete the following information):

OS with Version: Windows 1903
SDK Version:  1.4.1

The blinking amber led means there is not enough power to depth camera (hence the depth camera is missing). You do not say but I assume you are plugging the camera into a USB3.0 interface which cannot provide the necessary power. You have two options:
Also connect the included power supply (you may be able to use just the cable plugged into a second USB3 interface on your computer)
Purchase a USBC power+data cable and connect the Azure connect to a USB3.1 (usually uses a USBC female connector) interface. USB3.1 Gen 1 interfaces can provide the necessary power.

The blinking amber led means there is not enough power to depth camera (hence the depth camera is missing). You do not say but I assume you are plugging the camera into a USB3.0 interface which cannot provide the necessary power. You have two options:
Also connect the included power supply (you may be able to use just the cable plugged into a second USB3 interface on your computer)
Purchase a USBC power+data cable and connect the Azure connect to a USB3.1 (usually uses a USBC female connector) interface. USB3.1 Gen 1 interfaces can provide the necessary power.

I have tried both power caple + data caple and USBC power+data caple, but it still not works.
I contacted the after-sales technical personnel and they said that the problem might be caused by the equipment failure.

I have tried both power caple + data caple and USBC power+data caple, but it still not works.
I contacted the after-sales technical personnel and they said that the problem might be caused by the equipment failure.

I bought a new typec usb3.0 data cable, and now the camera is working properly.
Note that the charging cable of most mobile phone and mac is typec usb2.0.

I bought a new typec usb3.0 data cable, and now the camera is working properly.
Note that the charging cable of most mobile phone and mac is typec usb2.0.


💢Azure/static-web-apps-deploy@v1 behavior changed today! Leading to deploy failed.

Describe the bug

I have a nuxt3 project which is deployed on azure swa by github action. In the past few months, this workflow worked well. But! today, it doesn't work.
Finally I figured out that I have to change my output_location field in my yml workflow file as this:
 - name: Deploy
   id: deploy
   uses: Azure/static-web-apps-deploy@v1
   with:
     production_branch: 'main'
     azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LEMON_HILL_017D62D10 }}
     repo_token: ${{ secrets.GITHUB_TOKEN }}
     action: 'upload'
     skip_app_build: true
     skip_api_build: true
     app_location: 'apps/dalle-nuxt3/.output/public'
     api_location: 'apps/dalle-nuxt3/.output/server'
-     output_location: 'apps/dalle-nuxt3/.output/public'
+     output_location: '/'

But it did  work well before, and is there any change by github or azure-swa?

The error output in github action was:
Run Azure/static-web-apps-deploy@v1
  with:
    production_branch: main
    azure_static_web_apps_api_token: ***
    repo_token: ***
    action: upload
    skip_app_build: true
    skip_api_build: true
    app_location: apps/dalle-nuxt3/.output/public
    api_location: apps/dalle-nuxt3/.output/server
    output_location: apps/dalle-nuxt3/.output/public
/usr/bin/docker run --name b531[2](https://github.com/developer-zmo/frontend-monorepo/actions/runs/6230611477/job/16910899558#step:7:2)6acf40c141ba8067f67[3](https://github.com/developer-zmo/frontend-monorepo/actions/runs/6230611477/job/16910899558#step:7:3)905ac9[4](https://github.com/developer-zmo/frontend-monorepo/actions/runs/6230611477/job/16910899558#step:7:4)e_9[5](https://github.com/developer-zmo/frontend-monorepo/actions/runs/6230611477/job/16910899558#step:7:5)e88a --label 94351b --workdir /github/workspace --rm -e "INPUT_PRODUCTION_BRANCH" -e "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN" -e "INPUT_REPO_TOKEN" -e "INPUT_ACTION" -e "INPUT_SKIP_APP_BUILD" -e "INPUT_SKIP_API_BUILD" -e "INPUT_APP_LOCATION" -e "INPUT_API_LOCATION" -e "INPUT_OUTPUT_LOCATION" -e "INPUT_API_BUILD_COMMAND" -e "INPUT_APP_ARTIFACT_LOCATION" -e "INPUT_APP_BUILD_COMMAND" -e "INPUT_ROUTES_LOCATION" -e "INPUT_CONFIG_FILE_LOCATION" -e "INPUT_DEPLOYMENT_ENVIRONMENT" -e "INPUT_IS_STATIC_EXPORT" -e "INPUT_DATA_API_LOCATION" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/frontend-monorepo/frontend-monorepo":"/github/workspace" 94351b:5312[6](https://github.com/developer-zmo/frontend-monorepo/actions/runs/6230611477/job/16910899558#step:7:6)acf40c141ba806[7](https://github.com/developer-zmo/frontend-monorepo/actions/runs/6230611477/job/16910899558#step:7:7)f673905ac94e
DeploymentId: b6e3[8](https://github.com/developer-zmo/frontend-monorepo/actions/runs/6230611477/job/16910899558#step:7:8)c1e-d55d-4231-[9](https://github.com/developer-zmo/frontend-monorepo/actions/runs/6230611477/job/16910899558#step:7:9)f9a-3731c7b335ba

Try to validate location at: '/github/workspace/apps/dalle-nuxt3/.output/public'.
App Directory Location: 'apps/dalle-nuxt3/.output/public' was found.
Try to validate location at: '/github/workspace/swa-db-connections'.
Looking for event info
Skipping step to build /github/workspace/apps/dalle-nuxt3/.output/public with Oryx
Try to validate location at: '/github/workspace/apps/dalle-nuxt3/.output/public/apps/dalle-nuxt3/.output/public'.
App artifact folder location `apps/dalle-nuxt3/.output/public` is invalid. Could not detect this directory. Please verify your configuration reflects your repository structure.

For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting

Got the same results with Azure Devops pipeline.
Try to validate location at: '/working_dir/app'.
App Directory Location: 'app/' was found.
Try to validate location at: '/working_dir/swa-db-connections'.
Looking for event info
Skipping step to build /working_dir/app with Oryx
Try to validate location at: '/working_dir/app/dist'.
App artifact folder location 'dist' is invalid. Could not detect this directory. Please verify your configuration reflects your repository structure.

For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting

Having the same results / issues from Azure DevOps Pipeline
2023-09-19T08:22:56.6212330Z App Directory Location: '14342' was found.
2023-09-19T08:22:56.6212639Z Try to validate location at: '/working_dir/swa-db-connections'.
2023-09-19T08:22:56.6217828Z Looking for event info
2023-09-19T08:22:56.6225187Z Could not get event info. Proceeding
2023-09-19T08:22:57.5597699Z Skipping step to build /working_dir/14342 with Oryx
2023-09-19T08:22:57.5625383Z Try to validate location at: '/working_dir/14342/home/vsts/work/r1/a/14342'.
2023-09-19T08:22:57.5625732Z ##[error]App artifact folder location `/home/vsts/work/r1/a/14342` is invalid. Could not detect this directory. Please verify your configuration reflects your repository structure.
2023-09-19T08:22:57.6900870Z
2023-09-19T08:22:57.6901790Z ##[warning]For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
2023-09-19T08:22:57.6902279Z ##[warning]If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
2023-09-19T08:22:57.6902516Z ##[warning]Exiting
2023-09-19T08:22:57.8253259Z ##[error]Error: The process '/usr/bin/bash' failed with exit code 1

We're also having the same issue;
App artifact folder location /dist/apps/host is invalid. Could not detect this directory. Please verify your configuration reflects your repository structure.

@e-knaake-covadis , you changed the "outputPath": "dist/", in angular json tp empty?

We are experiencing the same issues in all out Azure DevOps release pipelines.
2023-09-19T13:52:32.7119924Z Try to validate location at: '/working_dir/./public/./public'.
2023-09-19T13:52:32.7120164Z ##[error]App artifact folder location `./public` is invalid. Could not detect this directory. Please verify your configuration reflects your repository structure.
2023-09-19T13:52:32.8318086Z
2023-09-19T13:52:32.8319195Z ##[warning]For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
2023-09-19T13:52:32.8319640Z ##[warning]If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
2023-09-19T13:52:32.8320078Z ##[warning]Exiting
2023-09-19T13:52:32.9852424Z ##[error]Error: The process '/usr/bin/bash' failed with exit code 1

Maybe related:
Since this issue arose and we set the output location the default mime types did not work any more for our application. .js files where being served as text/html instead of text/javascript as they used to.
This is fixed for now by updating the staticwebapp.config.json mimeTypes section

Maybe related: Since this issue arose and we set the output location the default mime types did not work any more for our application. .js files where being served as text/html instead of text/javascript as they used to. This is fixed for now by updating the staticwebapp.config.json mimeTypes section

I don't think this is related to mime types when serving files. This seems to be pipeline deployments breaking.

Hi folks, I'm looking into these reports and trying to reproduce the issue, I can't immediately reproduce it, so there may be something specifically related to your resources. Please create support issues for this issue so we can properly gather the information we need and have a reliable channel to communicate.

Hi all, we've looked into this and are planning to roll back changes. Can you provide successful builds with the details of the configuration in the workflow file? If you cannot share here, please open a support ticket

Thanks!  the release pipelines work again

I've verified that builds with the StaticSitesClient that have skip_app_build enabled treat the output_location as absolute paths, as had previously been the case.
The new changes (which have since been rolled back) began treating the output_location as relative paths when skip_app_build was enabled. This was rolled back and we'll be rectifying this behavior.
The problem should now be mitigated and your builds should work correctly

Our release pipelines are working again!

Our pipeline is working again, but I'm having another weird issue. We have a gatsby site and haven't changed the code but now gatsby is generating duplicate images in the static folder. I am going to try tweaking the plugins as I suspect it's something to do with the gatsby-plugin-sharp or gatsby-transformer-sharp but was curious if anyone else has ran into this?

Hi @PolarFox and @serhatkepez, I'm investigating the issue though it worked after rolling back. I would appreciate it if you could share the type of your swa framework (like angular, react) and how you deployed them (like using github action, ot swa-cli, etc). Feel free to reply, thanks : )


UI: Refine trip planner spacing and typography

TL;DR
Refined the visual design of the trip planner UI components and updated the Usual Ride screen layout.
What changed?

Adjusted padding and spacing in the Origin/Destination component
Modified the vertical spacing between stops in the SavedTripCard
Updated the Usual Ride screen text styling and content
Changed bottom button positioning to use navigation bar padding
Removed redundant spacer in the bottom button section
Updated "Let's set the vibe." to "Let's set the vibe!"
Enhanced typography for the "Select a color" text

How to test?

Navigate to the Usual Ride screen
Verify the updated text and styling changes
Check the bottom button alignment with the navigation bar
Confirm the Origin/Destination component spacing looks correct
Review the SavedTripCard vertical spacing between stops

Why make this change?
These UI refinements improve the visual consistency and user experience across the app. The adjusted spacing and padding create a more polished look, while the updated text styling and navigation bar handling ensure better compatibility across different devices.

#399  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Merge activity

Nov 29, 8:06 PM EST: A user merged this pull request with Graphite.


Error on build android

version of react-native: 0.62.2
i get issue on build android (idk for iphone because i have not an mac to test)
`* What went wrong:
Execution failed for task ':react-native-locale-detector:javaPreCompileDebug'.

Could not resolve all files for configuration ':react-native-locale-detector:debugCompileClasspath'.
Failed to transform react-native-0.12.0.aar (com.facebook.react:react-native:0.12.0) to match attributes {artifactType=android-classes, org.gradle.category=library, o
rg.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}.
Execution failed for AarToClassTransform: C:\Users\Biagio.gradle\caches\transforms-2\files-2.1\756cbd50e19f8021e1e2e54151374b58\jetified-react-native-0.12.0.aar.
duplicate entry: META-INF/MANIFEST.MF

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.`

this is the error code that it return, i has check in some post, and on a post i see this comment:

This looks like an AndroidX migration failure though and, how ironic, it appears that a library I am maintaining is not following my jetifier package's advice

If need more information please tell me it :) i need use it with i18next ^_^ thanks

just got this error now, did you manage to fix it?


viz tweak: transparent outlines on choropleth

I find the gray borders on the choropleth to be really noisy. Especially when zoomed out, areas with a high density of admin boundaries (e.g. county borders in the eastern US) almost acquire an unintended additional map shade.
Before:

After:

Yeah it's noisy, but it's hard to tell areas apart without it. @NateBaldwinDesign @alangwilson?

Oh that is a good point. We don’t want to imply coloration where there is none. However at a zoomed in level those borders are important— is there a way we could have the borders disappear under certain conditions (ie zoom level)?

@NateBaldwinDesign I bet we can make them go away at a given zoom level, we should investigate that!

Can/should we close this now we have country/state/county toggles?

I think the borders are quite nice! Also, a lot has changed since 23 days, we have the toggles now as @camjc said. I recommend closing this.

Agreed with @hyperknot and @camjc, closing this.  Thanks for the PR though, @HerbCaudill .


RuboCop icon in GitHub README is not clearly visible

This is the icon that we are using in GitHub readme:

But that icon is not clearly visible in dark mode. We should add a light-coloured backgroud to the icon:
How do these look?

PR that may be related for reference:
https://github.com/rubocop/rubocop/pull/10440

PR welcome!

This issue was fixed by https://github.com/rubocop/rubocop/pull/12554.


Vehicle image is not downloaded

Suddenly, the vehicle image is not downloaded anymore. This seems to be an issue with bimmer_connected or even the API. I opened an issue here: https://github.com/bimmerconnected/bimmer_connected/issues/603

Resolved within bimmer_connected.


[DB2] Show duplicates only doesn't work in Grouping panel

Description
Show duplicates only doesn't work in Grouping panel because the generated sql uses alias in having section, which is not supported by DB2. Count(*) should be used instead of count_.
Example generated sql:
SELECT A, B, COUNT(*) AS count_ FROM AB.CD x
GROUP BY A, B
HAVING count_ > 1
Resulting error:
SQL Error [42703]: COUNT_ IS NOT VALID IN THE CONTEXT WHERE IT IS USED. SQLCODE=-206, SQLSTATE=42703, DRIVER=4.31.10
DBeaver Version
Community edition <IP_ADDRESS>306041918
Operating System
Win 10
Database and driver
DB2 10
Driver: <IP_ADDRESS>
Steps to reproduce

Create a groupping on groupping pane
Click Show duplicates only button

Additional context
No response

Hello @rroliee
I can't reproduce it for DB2 LUW.
And we have a special condition for this case:
https://github.com/dbeaver/dbeaver/blob/0d22eeead97734858fbc10b8ab8eec66800c641d/plugins/org.jkiss.dbeaver.ext.db2/src/org/jkiss/dbeaver/ext/db2/DB2SQLDialect.java#L167-L170
What provider do you use?

Hello @LonwoLonwo
I use DB2 for z/OS provider.

Thanks for the answer and for the bug report!

I've checked in the Early Access version and it is working! :)
Thank you!

Thanks for the answer!


String / u8[] input and output

I am trying to make a web-service which renders rasterizes SVG to PNG and resvg looks promising. However, the API only provides from_file and to_file. This makes it difficult to include into a webservice.
Doesn't it make more sense to abstract it a bit to have a from_bytes / from_str and to_bytes / to_str and have the file API use that?

resvg supports Tree::from_data, Tree::from_str and Tree::from_file.
As for to_bytes, it was already discussed in #133. The only way to implement to_vec is via copying, which is unfortunate.

Ah thanks. I see now indeed

I will add to_vec later.


remove project token & fork token; advertise direct pushes

it doesn't make sense for us to support fork/project tokens since it would not scale and the workflow is catastrophic
let's remove this functionality and advertise direct pushes to dist-git instead
let's support dist-git PRs once src.fp.o has a sensible interface

https://pagure.io/fedora-infrastructure/issue/8115


Terraform plan/apply fail with invalid count/for_each if compartment or VCN created in same configuration but outside module

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

$ terraform -v
Terraform v1.6.5 on darwin_amd64
Affected Resource(s)

data.oci_core_vcn.oke
module.iam.data.oci_identity_tags.oke
module.network.oci_core_subnet.oke
module.network.oci_core_security_list.oke
data.oci_identity_availability_domains.all
module.workers.data.oci_identity_fault_domains.all

Terraform Configuration Files

https://github.com/oracle-terraform-modules/terraform-oci-oke/blob/main/module-network.tf#L4-L5
data "oci_core_vcn" "oke" {
  count  = coalesce(var.vcn_id, "none") != "none" ? 1 : 0
...

https://github.com/oracle-terraform-modules/terraform-oci-oke/blob/main/modules/iam/tagging.tf#L16-L17
data "oci_identity_tags" "oke" {
  count            = var.create_iam_resources && local.tag_namespace_id_found != null ? 1 : 0
...

https://github.com/oracle-terraform-modules/terraform-oci-oke/blob/main/modules/network/subnets.tf#L147-L151
resource "oci_core_security_list" "oke" {
  for_each = {
    for k, v in local.subnets_to_create : k => v
    if tobool(lookup(v, "create_seclist", false))
  }
...

https://github.com/oracle-terraform-modules/terraform-oci-oke/blob/main/modules/workers/data-faultdomains.tf#L4-L5
data "oci_identity_fault_domains" "all" {
  for_each            = var.ad_numbers_to_names
...

Debug Output

╷
│ Error: Invalid count argument
│
│   on .terraform/modules/oke/module-network.tf line 5, in data "oci_core_vcn" "oke":
│    5:   count  = coalesce(var.vcn_id, "none") != "none" ? 1 : 0
│
│ The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many
│ instances will be created. To work around this, use the -target argument to first apply only the resources that the count
│ depends on.
╵
╷
│ Error: Invalid count argument
│
│   on .terraform/modules/oke/modules/iam/tagging.tf line 17, in data "oci_identity_tags" "oke":
│   17:   count            = var.create_iam_resources && local.tag_namespace_id_found != null ? 1 : 0
│
│ The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many
│ instances will be created. To work around this, use the -target argument to first apply only the resources that the count
│ depends on.
╵
╷
│ Error: Invalid for_each argument
│
│   on .terraform/modules/oke/modules/network/subnets.tf line 148, in resource "oci_core_security_list" "oke":
│  148:   for_each = {
│  149:     for k, v in local.subnets_to_create : k => v
│  150:     if tobool(lookup(v, "create_seclist", false))
│  151:   }
│     ├────────────────
│     │ local.subnets_to_create is a object, known only after apply
│
│ The "for_each" map includes keys derived from resource attributes that cannot be determined until apply, and so Terraform
│ cannot determine the full set of keys that will identify the instances of this resource.
│
│ When working with unknown values in for_each, it's better to define the map keys statically in your configuration and place
│ apply-time results only in the map values.
│
│ Alternatively, you could use the -target planning option to first apply only the resources that the for_each value depends on,
│ and then apply a second time to fully converge.
╵
╷
│ Error: Invalid for_each argument
│
│   on .terraform/modules/oke/modules/workers/data-faultdomains.tf line 5, in data "oci_identity_fault_domains" "all":
│    5:   for_each            = var.ad_numbers_to_names
│     ├────────────────
│     │ var.ad_numbers_to_names is a map of string, known only after apply
│
│ The "for_each" map includes keys derived from resource attributes that cannot be determined until apply, and so Terraform
│ cannot determine the full set of keys that will identify the instances of this resource.
│
│ When working with unknown values in for_each, it's better to define the map keys statically in your configuration and place
│ apply-time results only in the map values.
│
│ Alternatively, you could use the -target planning option to first apply only the resources that the for_each value depends on,
│ and then apply a second time to fully converge.
╵

Panic Output

Expected Behavior

Terraform builds the plan successfully
Actual Behavior

Terraform exits during planning with an error
Steps to Reproduce
resource "oci_identity_compartment" "this" {
...
}

module "oke" {
  source    = "oracle-terraform-modules/oke/oci"
  version   = "5.1.0"
...
  compartment_id = oci_identity_compartment.this.id
...
}

terraform apply

Important Factoids

References

resolved in #884

I have updated the module to the last version, the vcn_id is fixed, but still have the same issues with items like subnets and kms
Is there any fix for that?
│ Error: Invalid count argument
│
│   on .terraform/modules/k8s.oke/modules/network/subnets.tf line 103, in resource "null_resource" "validate_subnets":
│  103:   count = anytrue([for k, v in local.subnet_cidrs_new : contains(["netnum", "newbits", "cidr"], v.type)
│  104:     if lookup(v, "create", "auto") != "never"
│  105:   ]) ? 1 : 0
│
│ The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many instances will be created. To work around this, use the -target argument to first apply only the resources that
│ the count depends on.
╵
╷
│ Error: Invalid for_each argument
│
│   on .terraform/modules/k8s.oke/modules/network/subnets.tf line 148, in resource "oci_core_security_list" "oke":
│  148:   for_each = {
│  149:     for k, v in local.subnets_to_create : k => v
│  150:     if tobool(lookup(v, "create_seclist", false))
│  151:   }
│     ├────────────────
│     │ local.subnets_to_create will be known only after apply
│
│ The "for_each" map includes keys derived from resource attributes that cannot be determined until apply, and so Terraform cannot determine the full set of keys that will identify the instances of this resource.
│
│ When working with unknown values in for_each, it's better to define the map keys statically in your configuration and place apply-time results only in the map values.
│
│ Alternatively, you could use the -target planning option to first apply only the resources that the for_each value depends on, and then apply a second time to fully converge.

@houseinh I believe I also noticed those introduced in either version 5.1.1 or 5.1.2, can't remember exactly. Probably worth opening a separate issue for those


Splitting tutorials into user auth and app auth

Learn Build status updates of commit 59e8688:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.vscode/settings.json
:white_check_mark:Succeeded

tutorials/dotnet.yml
:white_check_mark:Succeeded

tutorials/dotnet-app-only.yml
:white_check_mark:Succeeded

tutorials/go.yml
:white_check_mark:Succeeded

tutorials/go-app-only.yml
:white_check_mark:Succeeded

tutorials/includes/dotnet/01-intro.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/02-register-app.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/03-create-app.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/04-add-user-auth.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/05-get-user.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/06-get-inbox-messages.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/07-send-mail.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/08-configure-app-only.md
:white_check_mark:Succeeded
n/a (file deleted or renamed)

tutorials/includes/dotnet/08-extend-app.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/09-add-app-only-auth.md
:white_check_mark:Succeeded
n/a (file deleted or renamed)

tutorials/includes/dotnet/09-completed.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/10-get-all-users.md
:white_check_mark:Succeeded
n/a (file deleted or renamed)

tutorials/includes/dotnet/11-extend-app.md
:white_check_mark:Succeeded
n/a (file deleted or renamed)

tutorials/includes/dotnet/12-completed.md
:white_check_mark:Succeeded
n/a (file deleted or renamed)

tutorials/includes/dotnet/app-only/01-intro.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/app-only/02-register-app.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/app-only/03-create-app.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/app-only/04-add-app-only-auth.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/app-only/05-get-all-users.md
:white_check_mark:Succeeded

tutorials/includes/dotnet/app-only/06-extend-app.md
:white_check_mark:Succeeded

This comment lists only the first 25 files in the pull request.
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


loader: Do not enumerate extensions from disabled implicit layers

This patch adds a check to vkEnumerateInstanceExtensionProperties to
omit extensions provided by disabled implicit layers. Per section 31.2
(1.0.51), "When pLayerName parameter is NULL, only extensions provided
by the Vulkan implementation or by implicitly enabled layers are
returned." Arguably, implicit layers that have been disabled are not
"implicitly enabled".

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

@jfroy, @MarkY-LunarG, these changes look fine to me as well, but we'll need a clean rebase (without the merge) in order to take this automatically.  Or, Mark can do this manually -- it's up to you guys.

I can certainly rebase.


prometheus-cups-exporter: init at unstable-2019-03-17

Motivation for this change
init at unstable-2019-03-17
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

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

Setting as unfree until https://github.com/ThoreKr/cups_exporter/issues/2 is resolved.


WARNING: Excluding '.git' based on default ignore rules

Describe the bug
am trying to access my git repo and perform some git commands inside the docker machine I built using az acr build. The machine builds correctly. But I get these warnings:
WARNING: The login server endpoint suffix '.azurecr.io' is automatically omitted.
WARNING: Packing source code into tar to upload...
WARNING: Excluding '.git' based on default ignore rules
WARNING: Excluding '.gitignore' based on default ignore rules
And as you would expect, later when I try and copy files from my working directory to the docker machine via the COPY task, the .git folder is not there. It seems like the default ignore settings for az acr build ignores the .git folder when it builds the docker machine. This seems abit weird because I didnt add .git to my dockerignore. So not sure why its being ignored or how to undo it
To Reproduce
Run this command:
az acr build
-t $(docker_repository_name)/$(docker_image_name):$(Build.BuildNumber)
--registry $(docker_registry_host)
--file src/Dockerfile /home/vsts/work/1/s/
--platform $(docker_platform)
The warnings will show
Expected behavior
My expectation was that .git would be available to docker since it wasnt in the dockerignore file

route to service team

Does it help? https://docs.microsoft.com/en-us/azure/container-registry/container-registry-faq#how-do-i-include-the--git-folder-in-az-acr-build-command-

Hi Team ,
Even I'm facing this issue
WARNING: The login server endpoint suffix '.azurecr.io' is automatically omitted.
how to remove from my pipeline logs

How to remove un nessary warnings in the Azure devops pipeline logs..Any commands we should use for that
Please help me on this


feat(client): Add shortuct for overriding single datasource URL

Syntax: new PrismaClient({ datasourceUrl: '...'}).
Old API with explicit datasource name still works. If both ways of
overriding URL are used at the same time, exception is thrown.
Shortuct allows tools built around client to instantiate a client
without knowing what datasource name is specified in schema.
Part of prisma/team-orm#270

Approved with optional question and suggestion.


Fix panic when constructing a PointAdapter with a degenerate rect

The following codes was panic when executed.
It is panic when the shape contains only one point or when it is degenerate to one point.
fn main() {
    let mut overlay = FloatOverlay::new();
    overlay.add_path(&[F64Point::new(10.0, 10.0)], ShapeType::Subject);
    let graph = overlay.build_graph(FillRule::NonZero);  // panic!
    let shapes = graph.extract_shapes(OverlayRule::Subject);
    println!("shapes: {:?}", shapes);
}

fn main() {
    let mut overlay = FloatOverlay::new();
    overlay.add_path(
        &[
            F64Point::new(10.0, 10.0),
            F64Point::new(10.0, 10.0),
            F64Point::new(10.0, 10.0),
            F64Point::new(10.0, 10.0),
        ],
        ShapeType::Subject,
    );
    overlay.add_path(
        &[
            F64Point::new(10.0, 10.0),
            F64Point::new(10.0, 10.0),
            F64Point::new(10.0, 10.0),
            F64Point::new(10.0, 10.0),
        ],
        ShapeType::Clip,
    );
    let graph = overlay.build_graph(FillRule::NonZero);  // panic!
    let shapes = graph.extract_shapes(OverlayRule::Subject);
    println!("shapes: {:?}", shapes);
}

If the shape of the overlay is degenerated to one point, the size of union_rect is 0x0 in FloatOverlay::build_graph_with_solver(), and the calculation of log2 in PointAdapter::new() fails and overflows in the calculation of e. calculation fails and overflows in the calculation of e.

I fixed the panic by avoiding the overflow by giving special treatment to the case where the max value of the size of the rect passed to PointAdapter::new is 0.0.
Even if only f64::EPSILON is different as shown below, the above handling did not cause overflow.
fn main() {
    let mut overlay = FloatOverlay::new();
    overlay.add_path(
        &[F64Point::new(10.0, 0.0), F64Point::new(10.0, f64::EPSILON)],
        ShapeType::Subject,
    );
    let graph = overlay.build_graph(FillRule::NonZero);
    let shapes = graph.extract_shapes(OverlayRule::Subject);
    println!("shapes: {:?}", shapes);  // => "shapes: []"
}

Yes, it's a good idea to use some kind of empty adapter in this degenerate case. Well done!


Installation bug on Windows 10

Hello CellRank,
I created a totally new python 3.8 environment and conda install -c conda-forge -c bioconda cellrank-krylov
The errors came as below:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working...
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

Note: you may need to restart the kernel to use updated packages.

Building graph of deps:   0%|          | 0/4 [00:00<?, ?it/s]
Examining @/win-64::__win==0=0:   0%|          | 0/4 [00:00<?, ?it/s]
Examining @/win-64::__archspec==1=x86_64:  25%|██▌       | 1/4 [00:00<?, ?it/s]
Examining python=3.8:  50%|█████     | 2/4 [00:00<?, ?it/s]
Examining cellrank-krylov:  75%|███████▌  | 3/4 [00:00<00:00,  3.87it/s]
Examining cellrank-krylov: 100%|██████████| 4/4 [00:00<00:00,  5.16it/s]

Determining conflicts:   0%|          | 0/4 [00:00<?, ?it/s]
Examining conflict for python cellrank-krylov:   0%|          | 0/4 [00:00<?, ?it/s]

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Then I tried to install the dependencies first, conda install -c conda-forge openmpi, still errors:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Note: you may need to restart the kernel to use updated packages.
PackagesNotFoundError: The following packages are not available from current channels:

openmpi

Current channels:

https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org

and use the search bar at the top of the page.
Windows 10 21H1 x64, Anaconda 2.1.0, Python 3.8
Thanks!
Best,
YJ

One interesting thing is that, everytime I run the conda install -c conda-forge -c bioconda cellrank-krylov, conda-script.py will be open automatically by my VS Code.

ERROR: Command errored out with exit status 1:
command: 'C:\Users\Yuanjian.conda\envs\Py38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4\setup.py'"'"'; file='"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Yuanjian\AppData\Local\Temp\pip-wheel-nhetse4p'
cwd: C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4
Complete output (1 lines):
petsc: this package cannot be built as a wheel
ERROR: Failed building wheel for petsc
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Yuanjian.conda\envs\Py38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-mo9hrdf\petsc4py_6af1e6d7a93442ffa9c5cef9376abe34\setup.py'"'"'; file='"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-mo9hrdf\petsc4py_6af1e6d7a93442ffa9c5cef9376abe34\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Yuanjian\AppData\Local\Temp\pip-wheel-h2j64_sg'
cwd: C:\Users\Yuanjian\AppData\Local\Temp\pip-install-mo9hrdf\petsc4py_6af1e6d7a93442ffa9c5cef9376abe34
Complete output (27 lines):
running bdist_wheel
PETSC_DIR not specified
running build
running build_src
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\petsc4py
copying src\PETSc.py -> build\lib.win-amd64-3.8\petsc4py
copying src_init.py -> build\lib.win-amd64-3.8\petsc4py
copying src_main.py -> build\lib.win-amd64-3.8\petsc4py
creating build\lib.win-amd64-3.8\petsc4py\lib
copying src\lib_init.py -> build\lib.win-amd64-3.8\petsc4py\lib
creating build\lib.win-amd64-3.8\petsc4py\include
creating build\lib.win-amd64-3.8\petsc4py\include\petsc4py
copying src\include\petsc4py\numpy.h -> build\lib.win-amd64-3.8\petsc4py\include\petsc4py
copying src\include\petsc4py\petsc4py.h -> build\lib.win-amd64-3.8\petsc4py\include\petsc4py
copying src\include\petsc4py\petsc4py.PETSc.h -> build\lib.win-amd64-3.8\petsc4py\include\petsc4py
copying src\include\petsc4py\petsc4py.PETSc_api.h -> build\lib.win-amd64-3.8\petsc4py\include\petsc4py
copying src\include\petsc4py\petsc4py.i -> build\lib.win-amd64-3.8\petsc4py\include\petsc4py
copying src\include\petsc4py\PETSc.pxd -> build\lib.win-amd64-3.8\petsc4py\include\petsc4py
copying src\include\petsc4py_init_.pxd -> build\lib.win-amd64-3.8\petsc4py\include\petsc4py
copying src\include\petsc4py_init_.pyx -> build\lib.win-amd64-3.8\petsc4py\include\petsc4py
copying src\PETSc.pxd -> build\lib.win-amd64-3.8\petsc4py
copying src\lib\petsc.cfg -> build\lib.win-amd64-3.8\petsc4py\lib
running build_ext
error: PETSc not found
ERROR: Failed building wheel for petsc4py
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Yuanjian.conda\envs\Py38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\slepc_3ad72095b3ce492dbdfc24a19ff71468\setup.py'"'"'; file='"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\slepc_3ad72095b3ce492dbdfc24a19ff71468\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Yuanjian\AppData\Local\Temp\pip-wheel-4hlof6jm'
cwd: C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\slepc_3ad72095b3ce492dbdfc24a19ff71468
Complete output (1 lines):
slepc: this package cannot be built as a wheel
ERROR: Failed building wheel for slepc
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Yuanjian.conda\envs\Py38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-mo9hrdf\slepc4py_9aea1bc4e0454cd8aba98d48e8be6b5f\setup.py'"'"'; file='"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-mo9hrdf\slepc4py_9aea1bc4e0454cd8aba98d48e8be6b5f\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Yuanjian\AppData\Local\Temp\pip-wheel-zqt4iih1'
cwd: C:\Users\Yuanjian\AppData\Local\Temp\pip-install-mo9hrdf\slepc4py_9aea1bc4e0454cd8aba98d48e8be6b5f
Complete output (27 lines):
running bdist_wheel
PETSC_DIR not specified
SLEPC_DIR not specified
running build
running build_src
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\slepc4py
copying src\SLEPc.py -> build\lib.win-amd64-3.8\slepc4py
copying src_init.py -> build\lib.win-amd64-3.8\slepc4py
copying src_main.py -> build\lib.win-amd64-3.8\slepc4py
creating build\lib.win-amd64-3.8\slepc4py\lib
copying src\lib_init.py -> build\lib.win-amd64-3.8\slepc4py\lib
creating build\lib.win-amd64-3.8\slepc4py\include
creating build\lib.win-amd64-3.8\slepc4py\include\slepc4py
copying src\include\slepc4py\slepc4py.h -> build\lib.win-amd64-3.8\slepc4py\include\slepc4py
copying src\include\slepc4py\slepc4py.SLEPc.h -> build\lib.win-amd64-3.8\slepc4py\include\slepc4py
copying src\include\slepc4py\slepc4py.SLEPc_api.h -> build\lib.win-amd64-3.8\slepc4py\include\slepc4py
copying src\include\slepc4py\slepc4py.i -> build\lib.win-amd64-3.8\slepc4py\include\slepc4py
copying src\include\slepc4py\SLEPc.pxd -> build\lib.win-amd64-3.8\slepc4py\include\slepc4py
copying src\include\slepc4py_init_.pxd -> build\lib.win-amd64-3.8\slepc4py\include\slepc4py
copying src\include\slepc4py_init_.pyx -> build\lib.win-amd64-3.8\slepc4py\include\slepc4py
copying src\SLEPc.pxd -> build\lib.win-amd64-3.8\slepc4py
copying src\lib\slepc.cfg -> build\lib.win-amd64-3.8\slepc4py\lib
running build_ext
error: PETSc not found
ERROR: Failed building wheel for slepc4py
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Yuanjian.conda\envs\Py38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4\setup.py'"'"'; file='"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Yuanjian\AppData\Local\Temp\pip-record-o74r87d6\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Yuanjian.conda\envs\Py38\Include\petsc'
cwd: C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4
Complete output (32 lines):
running install
PETSc: configure
configure options:
--prefix=C:\Users\Yuanjian.conda\envs\Py38\Lib\site-packages\petsc
PETSC_ARCH=arch-python-win-amd64
--with-shared-libraries=1
--with-debugging=0
--with-c2html=0
--with-mpi=0
===============================================================================
Configuring PETSc to compile on your system
===============================================================================
===============================================================================
*** Windows python detected. Please rerun ./configure with cygwin-python. ***
===============================================================================
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Yuanjian\AppData\Local\Temp\pip-install-mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4\setup.py", line 294, in
setup(name='petsc',
File "C:\Users\Yuanjian.conda\envs\Py38\lib\site-packages\setuptools_init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Yuanjian.conda\envs\Py38\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Yuanjian.conda\envs\Py38\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\Yuanjian.conda\envs\Py38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4\setup.py", line 230, in run
config(prefix, self.dry_run)
File "C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4\setup.py", line 166, in config
if status != 0: raise RuntimeError(status)
RuntimeError: 3
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Yuanjian.conda\envs\Py38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4\setup.py'"'"'; file='"'"'C:\Users\Yuanjian\AppData\Local\Temp\pip-install-_mo9hrdf\petsc_beeb58ac6adc4b68b671c9a13bde12b4\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Yuanjian\AppData\Local\Temp\pip-record-o74r87d6\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Yuanjian.conda\envs\Py38\Include\petsc' Check the logs for full command output.

pip install cellrank, succeed.
But when
import scvelo as scv
import scanpy as sc
import cellrank as cr
import numpy as np

ImportError                               Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_10804/1598530259.py in
----> 1 import scvelo as scv
2 import scanpy as sc
3 import cellrank as cr
4 import numpy as np
5
~.conda\envs\Py38\lib\site-packages\scvelo_init_.py in
1 """scvelo - RNA velocity generalized through dynamical modeling"""
----> 2 from anndata import AnnData
3 from scanpy import read, read_loom
4
5 from scvelo import datasets, logging, pl, pp, settings, tl, utils
~.conda\envs\Py38\lib\site-packages\anndata_init_.py in
5 if not within_flit():
6     del within_flit
----> 7     from ._core.anndata import AnnData, ImplicitModificationWarning
8     from ._core.merge import concat
9     from ._core.raw import Raw
~.conda\envs\Py38\lib\site-packages\anndata_core\anndata.py in
15 from typing import Tuple, List  # Generic
16
---> 17 import h5py
18 from natsort import natsorted
19 import numpy as np
~.conda\envs\Py38\lib\site-packages\h5py_init_.py in
31         raise
32
---> 33 from . import version
34
35 if version.hdf5_version_tuple != version.hdf5_built_version_tuple:
~.conda\envs\Py38\lib\site-packages\h5py\version.py in
13
14 from collections import namedtuple
---> 15 from . import h5 as _h5
16 import sys
17 import numpy
h5py\h5.pyx in init h5py.h5()
ImportError: DLL load failed while importing defs

here are the packages i installed

Package
Version

-----------------------------
--------------------

alabaster
0.7.12

anndata
0.7.8

anndata2ri
1.0.6

annoy
1.17.0

anyio
2.2.0

argon2-cffi
20.1.0

async-generator
1.1

attrs
21.2.0

Babel
2.9.1

backcall
0.2.0

backports.zoneinfo
0.2.1

bbknn
1.5.1

bleach
4.0.0

brotlipy
0.7.0

cached-property
1.5.2

cellrank
1.5.1.dev10+g10479a9

certifi
2021.10.8

cffi
1.15.0

charset-normalizer
2.0.4

click
8.0.3

colorama
0.4.4

cryptography
35.0.0

cycler
0.11.0

Cython
0.29.24

debugpy
1.4.1

decorator
5.1.0

defusedxml
0.7.1

docrep
0.3.2

docutils
0.17.1

dunamai
1.7.0

entrypoints
0.3

future
0.18.2

future-fstrings
1.2.0

get-version
3.5.3

h5py
3.5.0

idna
3.2

igraph
0.9.8

imagesize
1.3.0

importlib-metadata
4.8.1

ipykernel
6.4.1

ipython
7.29.0

ipython-genutils
0.2.0

ipywidgets
7.6.5

jedi
0.18.0

Jinja2
3.0.2

joblib
1.1.0

json5
0.9.6

jsonschema
3.2.0

jupyter-client
7.0.1

jupyter-core
4.9.1

jupyter-server
1.4.1

jupyterlab
3.2.1

jupyterlab-pygments
0.1.2

jupyterlab-server
2.8.2

jupyterlab-widgets
1.0.2

kiwisolver
1.3.2

legacy-api-wrap
0.0.0

leidenalg
0.8.8

llvmlite
0.37.0

loompy
3.0.6

MarkupSafe
2.0.1

matplotlib
3.4.3

matplotlib-inline
0.1.2

mistune
0.8.4

mock
4.0.3

mpi4py
3.1.2

natsort
8.0.0

nbclassic
0.2.6

nbclient
0.5.3

nbconvert
6.1.0

nbformat
5.1.3

nest-asyncio
1.5.1

networkx
2.6.3

notebook
6.4.5

numba
0.54.1

numexpr
2.7.3

numpy
1.20.3

numpy-groupies
0.9.14

olefile
0.46

packaging
21

pandas
1.3.4

pandocfilters
1.4.3

parso
0.8.2

patsy
0.5.2

pickleshare
0.7.5

Pillow
8.4.0

pip
21.0.1

progressbar2
3.53.1

prometheus-client
0.11.0

prompt-toolkit
3.0.20

pycparser
2.21

pygam
0.8.0

Pygments
2.10.0

pygpcca
1.0.2

pynndescent
0.5.5

pyOpenSSL
21.0.0

pyparsing
3.0.4

pyrsistent
0.18.0

PySocks
1.7.1

python-dateutil
2.8.2

python-igraph
0.9.8

python-utils
2.5.6

pytz
2021.3

pytz-deprecation-shim
0.1.0.post0

pywin32
228

pywinpty
0.5.7

pyzmq
22.2.1

requests
2.26.0

rpy2
3.4.5

scanpy
1.8.2

scikit-learn
1.0.1

scipy
1.7.2

scvelo
0.2.4

seaborn
0.11.2

Send2Trash
1.8.0

setuptools
58.0.4

sinfo
0.3.4

six
1.16.0

sniffio
1.2.0

snowballstemmer
2.1.0

Sphinx
4.3.0

sphinxcontrib-applehelp
1.0.2

sphinxcontrib-devhelp
1.0.2

sphinxcontrib-htmlhelp
2.0.0

sphinxcontrib-jsmath
1.0.1

sphinxcontrib-qthelp
1.0.3

sphinxcontrib-serializinghtml
1.1.5

statsmodels
0.13.1

stdlib-list
0.8.0

tables
3.6.1

terminado
0.9.4

testpath
0.5.0

texttable
1.6.4

threadpoolctl
3.0.0

tokenize-rt
4.2.1

tornado
6.1

tqdm
4.62.3

traitlets
5.1.0

typing-extensions
<IP_ADDRESS>

tzdata
2021.5

tzlocal
4.1

umap-learn
0.5.2

urllib3
1.26.7

wcwidth
0.2.5

webencodings
0.5.1

wheel
0.37.0

widgetsnbextension
3.5.2

win-inet-pton
1.1.0

wincertstore
0.2

wrapt
1.13.3

xlrd
1.2.0

zipp
3.6.0

Hi @hyjforesight ,
re the 1st error: afaik our meta.yml conda doesn't specify a build for Windows (afaik openmpi is not built for Windows based on this).
re the 2nd error: seems like PETSc installation problems; unfortunately I don't a Windows machine at my disposal, but
it looks like you might need to installing PETSc manually (hinted by the message:
     *** Windows python detected. Please rerun ./configure with cygwin-python. ***

Here are the official installation instructions, hopefully they are of help.
re the 3rd error: h5py issue, please take a look at the following comment whether it can fix it or now.

Hello @michalk8,
I realize that i cannot install the cellrank[krylov], which requires openmpi but doesnt support Windows. So I just use pip install cellrank. It works well.
Is there any plan to make cellrank[krylov] support Windows?
Thanks!
Best,
YJ

Is there any plan to make cellrank[krylov] support Windows?

I've had a quick look, seems for Windows, we can use MS-MPI impl. (it's both on conda and mpi4pi supports it, so it shouldn't be problem, will take a stab at it.

I've had a quick look, seems for Windows, we can use MS-MPI impl. (it's both on conda and mpi4pi supports it, so it shouldn't be problem, will take a stab at it.

I've tried updating pygpcca to Windows, however, there are many problems (PETSc can be installed on Windows, but it's not as easy [e.g. can't use MS-MPI and other difficulties] and it doesn't provide a conda package).
If you have large data and want to use cellrank-krylov on Windows, the best way would be running the analysis inside a Docker container.

Hello @michalk8 ,
Thanks for the solution! Until now, it works fine by using cellrank without krylov. We'll try Docker once needed.
Thanks!
Best,
YJ

Ok, if you encounter any problems, feel free to (re-)open; closing this.