Use GitHub Issues for Blog Comments

I want to use GitHub issues to store comments.

Not likely to add support for this for all of the reasons you've stated, but that shouldn't stop you from doing it in your repo.
The theme has support for "custom comments". You'd set the following in your _config.yml file:
comments:
  provider: custom

And then you'd need to edit this _includes/comments.html and _includes/comments-providers/custom.html to suit your needs.

I tried to add "custom" and  "staticman_v2", but the boxes didn't appear!. What shall I do?

@nadaa Verify you're building Jekyll in production mode as described in the documentation.

Note: Comments are disabled by default in development. To enable when testing/building locally be sure to set JEKYLL_ENV=production to force the environment to production.

And that you have comments: true added to the post's front matter along with all the required Staticman configs in _config.yml. If you're missing something they won't show as a few variables are required.

I tried what you suggested, but it is not working?

@nadaa Looks like you didn't add anything for repository... it's required for Staticman to work.

@mmistakes, it works now, thank you :+1:  I got another issue when submitting the comment, where else I need to update?

@nadaa Please open another issue specific to your Staticman problem as it's off topic. This issue is about using GitHub issues as a way to add comments to a Jekyll site.
Thank you.


Syntax of Makefile for Sphinx docs is incorrect

$ make html
Makefile:20: *** missing separator.  Stop.

This happens because there should be a tab (not spaces) in the target:
https://github.com/microsoft/InnerEye-DeepLearning/blob/914a89383d3275cb3304bde9c6cdd6050357f3f7/sphinx-docs/Makefile#L19-L20
AB#4983

Fixed in:

#683


cudahash: Completely failed to build Cuda error in file

During training, I meet the problem below
at epoch 63 with --nproc_per_node=2, samples_per_gpu=6 and workers_per_gpu=6
at epoch 81 with --nproc_per_node=2, samples_per_gpu=4 and workers_per_gpu=4
cudahash: Completely failed to build
Cuda error in file '/root/spconv/src/cuhash/hash_table.cpp' in line 194 : an illegal memory access was encountered.

Please use template

I suspect you might be using spconv-1.1. In that case, you need to add use_hash=False as an additional argument every time you instantiate a sparse convolution operation (or sub-manifold sparse convolution) in scn.py. An easier way out is to follow instructions in INSTALL.md and checkout a specific branch.

@peiyunh Thanks for apply.
Hey guys, I haven't try @peiyunh suggestion.
I solved this problem by this answer:
[https://github.com/traveller59/spconv/issues/74]

@peiyunh Thanks for reply.
Hey guys, I haven't try @peiyunh suggestion.
I solved this problem by this answer:
[https://github.com/[traveller59/spconv/issues/74](https://github.com/traveller59/spconv/issues/74)]

I suggest you use my version of spconv.


fix unstable tests

Signed-off-by: xufei<EMAIL_ADDRESS>What problem does this PR solve?
Issue Number: close #6072
Problem Summary:
TestMPPTunnel_WriteAfterFinished is unstable.
What is changed and how it works?
The root cause is
https://github.com/pingcap/tiflash/blob/72a21d102f4ab54800562fb07edcc7d5d5b4a05e/dbms/src/Flash/Mpp/tests/gtest_mpptunnel.cpp#L425-L444
In L433, the tunnel is closed but the sender thread is not. In L436 tunnel write throw exception, then writer_ptr is destructed before mpp_tunnel_ptr is destructed, so the sender thread use a invalid pointer.
Check List
Tests

[x] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/merge

/rebuild

/run-integrafion-test

/run-integration-test


Applied the recommendations of MD linter and fixed an example

Applied the recommendations of MD linter and fixed an example #17

Thanks for the contribution!
Which linter did you used?
I changed the README a little so I'll take your changes from here manually

https://github.com/DavidAnson/vscode-markdownlint

Thank you very much! very useful


Error requesting hvac_status data

Version: v3.0.0-rc2
Getting Errror Messages with my Renault Zoe Phase 2
Im not getting any HVAC Informations...
Logger: custom_components.renault.pyzevehicleproxy
Source: helpers/update_coordinator.py:152
Integration: Renault (documentation)
First occurred: 21:55:16 (1 occurrences)
Last logged: 21:55:16
Error requesting VINXXXXXXXXXXXX hvac_status data: 502 Server Error: Bad Gateway for url: https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/ACCOUNTXXXXXXXXXXXXXXX/kamereon/kca/car-adapter/v1/cars/VINXXXXXXXXXXXX/hvac-status?country=DE

Hi,
Can you please confirm:

was it working in v2?
is it a permanent issue or is it an intermittent issue?
does it work in the PyZe CLI?

I'm pretty sure it's an intermittent issue on the Renault side.

Hi, for information i have the same issue. It's not new as Pyze gives me this response too (from Renault side).
I suspect that the problem is related to the configuration of "Planned HVAC" setting in the vehicle, mine was never activated, i will test this one.
However, i am able to start HVAC with service via homeassistant.
- service: renaultze.ac_start
        data:
          entity_id: sensor.zoe

I'm pretty sure 502 error is temporary on the Renault side.
Regarding HVAC start/stop, I would dearly love to have some feedback as I personally don't use it.
Please note also that the new service is designed to use the VIN and not the entity_id

Extra note: if your vehicle doesn't support location and/or hvac status, then I suggest that you simply deactivate the "Zoe Location" and "Zoe HVAC" entities via "Configuration > Integrations >Renault >Entities" menu of home assistant.

So currently, I was able to start a HVAC vie the Service Call out of Homeassistant using version 3.0 of the Renault integration. The climate entity is still unavailed.

I've looked again at the "502 Server Error: Bad Gateway" issue, and I think this would be better discussed on the renault-api repository.

I reopen the issue on Home-Assistant because it seems that even if the "status" endpoint is disabled some users are still able to send requests to use the hvac services, so we need to disconnect the climate entity from the hvac-status endpoint.
And even if the endpoint doesn't work for the status of the hvac, it is still useful to get the outside temperature.

Hi @PysX / @WinkelB / @marciej123
Does it make sense to use a climate entity to start hvac even if there is no feedback on the status?
Or should we keep it only as a service?
For now:

on Zoe40 (with hvac): you have a UI to select the temperature and ability to press "start now"
on Zoe40 (without hvac): you don't have UI
on Zoe50: the UI is not created because it thinks you don't have hvac system

@Quentame / @oncleben31 what is your opinion on this?

I would like to have the climate entity. Even if it's not displaying the
current climate state.
epenet<EMAIL_ADDRESS>schrieb am Do., 17. Dez. 2020, 20:53:

Hi @PysX https://github.com/PysX / @WinkelB https://github.com/WinkelB
/ @marciej123 https://github.com/marciej123
Does it make sense to use a climate entity to start hvac even if there is
no feedback on the status?
Or should we keep it only as a service?
For now:

on Zoe40 (with hvac): you have a UI to select the temperature and
ability to press "start now"
on Zoe40 (without hvac): you don't have UI
on Zoe50: the UI is not created because it thinks you don't have
hvac system

@Quentame https://github.com/Quentame / @oncleben31
https://github.com/oncleben31 what is your opinion on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hacf-fr/hassRenaultZE/issues/51#issuecomment-747663899,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI4656LGWLRJHHR6S5HUAR3SVJOR7ANCNFSM4SD5FMWA
.

I have a Zoe50 and HA does find my hvac entity (just since a few days, therefore I few weeks it didn't have one), unfortunately this entity, and a lot of other entity are unavailable..
Now we know that the Renault app and API isn't the best one and has some stability options but I'm not sure if that's just the issue?

I have created switch and script, so not important to me.
Not tested to start with different temperature than default 21.

Does it work if you simply remove the if on line 49 of climate.py?
https://github.com/hacf-fr/hassRenaultZE/blob/master/custom_components/renault/climate.py#L49
And does someone want to work on a PR?

Dear @epenet,
I have a Twingo ZE, i've tested this component and I've the same error:
2020-12-30 15:58:45 ERROR (MainThread) [custom_components.renault.renault_vehicle] Error fetching VF****6 hvac_status data: This endpoint has been disabled: ('err.func.403', 'Operation not supported Operation not supported for this can (T4VS)')
I've tried to remove the line 49 of climate.py but no climate entity is generated and i've got this error:
2020-12-30 16:05:57 ERROR (MainThread) [homeassistant.components.climate] Error while setting up renault platform for climate Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 197, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/renault/climate.py", line 34, in async_setup_entry entities: List[RenaultDataEntity] = await get_entities(proxy) File "/config/custom_components/renault/climate.py", line 42, in get_entities entities.extend(await get_vehicle_entities(vehicle)) File "/config/custom_components/renault/climate.py", line 50, in get_vehicle_entities entities.append(RenaultHVACController(vehicle, "HVAC")) File "/config/custom_components/renault/renault_entities.py", line 93, in __init__ super().__init__(vehicle, entity_type, "hvac_status") File "/config/custom_components/renault/renault_entities.py", line 28, in __init__ super().__init__(vehicle.coordinators[coordinator_key]) KeyError: 'hvac_status'

@PaoloTo would you mind adding a fixture file to the renault-api module for your Twingo? We don't have any fixture files for Twingo yet...
https://github.com/hacf-fr/renault-api/issues/48
Also, does Twingo support setting HVAC via MyRenault application?

Yes, i could help you integrating this fixture but I need some help, i can test it for you of course!
from MyRenault I've a button to start the ac, if I press it, it takes some  seconds (near 5 seconds, maybe a connection problem?) but then the ac starts!
Even using ac_start service the ac starts. then i tried the ac_cancel but it din't stop.

Yes, i could help you integrating this fixture but I need some help, i can test it for you of course!
from MyRenault I've a button to start the ac, if I press it, it takes some  seconds (near 5 seconds, maybe a connection problem?) but then the ac starts!
Even using ac_start service the ac starts. then i tried the ac_cancel but it din't stop.

Dear @epenet,
using ac_start service the log is:
2021-01-03 15:55:28 DEBUG (MainThread) [custom_components.renault.services] A/C start attempt: None / 20 2021-01-03 15:55:29 DEBUG (MainThread) [renault_api.kamereon] Received Kamereon response 200 on https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/*****/kamereon/kca/car-adapter/v1/cars/***/actions/hvac-start?country=IT: {"data":{"type":"HvacStart","id":"*****","attributes":{"action":"start","targetTemperature":20.0}}} 2021-01-03 15:55:29 INFO (MainThread) [custom_components.renault.services] A/C start result: {'action': 'start', 'targetTemperature': 20.0}
using ac_cancel servis the log is:
2021-01-03 15:58:25 DEBUG (MainThread) [custom_components.renault.services] A/C cancel attempt. 2021-01-03 15:58:25 DEBUG (MainThread) [renault_api.kamereon] Received Kamereon response 200 on https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/*****/kamereon/kca/car-adapter/v1/cars/***/actions/hvac-start?country=IT: {"data":{"type":"HvacStart","id":"*****","attributes":{"action":"cancel"}}} 2021-01-03 15:58:25 INFO (MainThread) [custom_components.renault.services] A/C cancel result: KamereonVehicleHvacStartActionData(raw_data={'action': 'cancel'})

Dear @epenet,
using ac_start service the log is:
2021-01-03 15:55:28 DEBUG (MainThread) [custom_components.renault.services] A/C start attempt: None / 20 2021-01-03 15:55:29 DEBUG (MainThread) [renault_api.kamereon] Received Kamereon response 200 on https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/*****/kamereon/kca/car-adapter/v1/cars/***/actions/hvac-start?country=IT: {"data":{"type":"HvacStart","id":"*****","attributes":{"action":"start","targetTemperature":20.0}}} 2021-01-03 15:55:29 INFO (MainThread) [custom_components.renault.services] A/C start result: {'action': 'start', 'targetTemperature': 20.0}
using ac_cancel servis the log is:
2021-01-03 15:58:25 DEBUG (MainThread) [custom_components.renault.services] A/C cancel attempt. 2021-01-03 15:58:25 DEBUG (MainThread) [renault_api.kamereon] Received Kamereon response 200 on https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/*****/kamereon/kca/car-adapter/v1/cars/***/actions/hvac-start?country=IT: {"data":{"type":"HvacStart","id":"*****","attributes":{"action":"cancel"}}} 2021-01-03 15:58:25 INFO (MainThread) [custom_components.renault.services] A/C cancel result: KamereonVehicleHvacStartActionData(raw_data={'action': 'cancel'})

@PaoloTo
First, regarding fixture file, I was only referring to providing vehicle description sample logs for renault-api, like in this path: https://github.com/hacf-fr/renault-api/tree/main/tests/fixtures/kamereon/vehicles

in the Home Assistant logs, find the vehicle listing from the initialisation routine
add the json file to the correct test/fixtures/kamereon/vehicles folder
ensure that the registration number starts with REG-NUMBER, and that the vin starts with VF1AAAAA555777.
beautify the json (2 spaces indentation) either manually, through pre-commit or through an online tool (eg https://codebeautify.org/jsonviewer)
create a Pull Request

Second, regarding MyRenault application, what does that show when A/C is in progress? As it stands, I am not aware of any way to know when A/C is on, and when it is off.
I am thinking to avoid confusion that we should remove the climate entity altogether, and provide sample scripts only.

@PaoloTo
First, regarding fixture file, I was only referring to providing vehicle description sample logs for renault-api, like in this path: https://github.com/hacf-fr/renault-api/tree/main/tests/fixtures/kamereon/vehicles

in the Home Assistant logs, find the vehicle listing from the initialisation routine
add the json file to the correct test/fixtures/kamereon/vehicles folder
ensure that the registration number starts with REG-NUMBER, and that the vin starts with VF1AAAAA555777.
beautify the json (2 spaces indentation) either manually, through pre-commit or through an online tool (eg https://codebeautify.org/jsonviewer)
create a Pull Request

Second, regarding MyRenault application, what does that show when A/C is in progress? As it stands, I am not aware of any way to know when A/C is on, and when it is off.
I am thinking to avoid confusion that we should remove the climate entity altogether, and provide sample scripts only.

@epenet
Inside MyRenault Application nothing shows me that ac is in progress and this is very annoying. I even don't know when it will stop... after some minutes? when it reaches the target temp? or maybe only if the battery goes under 20%?

@epenet
Inside MyRenault Application nothing shows me that ac is in progress and this is very annoying. I even don't know when it will stop... after some minutes? when it reaches the target temp? or maybe only if the battery goes under 20%?

@PaoloTo thanks for your feedback. This is in line with all the information that we have... it's not possible to know what the real status from Renault servers. @eviollet also has the same issue.
So I think we need to remove the hvac-status endpoint from all vehicles except Zoe phase 1, where it is useful to track the externalTemperature.
Then we need to decide what is the best way to start (and cancel?) A/C from Home Assistant.
Do we keep only the service (like @PysX)? or does someone have an idea for another implementation?

@PaoloTo thanks for your feedback. This is in line with all the information that we have... it's not possible to know what the real status from Renault servers. @eviollet also has the same issue.
So I think we need to remove the hvac-status endpoint from all vehicles except Zoe phase 1, where it is useful to track the externalTemperature.
Then we need to decide what is the best way to start (and cancel?) A/C from Home Assistant.
Do we keep only the service (like @PysX)? or does someone have an idea for another implementation?

@epenet
if we don't have the ability to read out the temperature and neither the active status of the hvac i think that the climate is not suitable for us.
Maybe is useful a simple script that calls the two services, start the pre-conditioning and stops it after some (5-10) minutes.
ac_cancel works? it stops the ac even if we have already start driving?
Another way: what about using hvac sheduling? like adding a schedule that start immediately and ends in some minutes? after that the script could cancel the schedule.

@epenet
if we don't have the ability to read out the temperature and neither the active status of the hvac i think that the climate is not suitable for us.
Maybe is useful a simple script that calls the two services, start the pre-conditioning and stops it after some (5-10) minutes.
ac_cancel works? it stops the ac even if we have already start driving?
Another way: what about using hvac sheduling? like adding a schedule that start immediately and ends in some minutes? after that the script could cancel the schedule.

I have opened this issue on renault-api: https://github.com/hacf-fr/renault-api/issues/138
I'm open to suggestions...

I have opened this issue on renault-api: https://github.com/hacf-fr/renault-api/issues/138
I'm open to suggestions...

Hi.
I've been looking around for some information on how to configure preconditionning remotely without using the phone app.
From what the Renault Zoe user manual says, once you have initiated preconditionning, it stops after 10 minutes if the car isn't plugged in. And no, there is no way to stop it, except from entering the car, or starting it, etc. So it seems totally legit that we can start the service without having any return from the API. The app doesn't return any information either.
So, with a ZOE50, what would I need to call preconditionning in the current plugin state? Is it currently possible?

Hi.
I've been looking around for some information on how to configure preconditionning remotely without using the phone app.
From what the Renault Zoe user manual says, once you have initiated preconditionning, it stops after 10 minutes if the car isn't plugged in. And no, there is no way to stop it, except from entering the car, or starting it, etc. So it seems totally legit that we can start the service without having any return from the API. The app doesn't return any information either.
So, with a ZOE50, what would I need to call preconditionning in the current plugin state? Is it currently possible?

Yes, there is a service called renault.ac_start available (in developer tools > services).
You have to specify the vin and temperature.
If you wish to have a delayed start, you can pass the optional parameter when.

Yes, there is a service called renault.ac_start available (in developer tools > services).
You have to specify the vin and temperature.
If you wish to have a delayed start, you can pass the optional parameter when.

Dear @eviollet,
you can add a lovelace button card with custom code like this:
type: button
tap_action:
  action: call-service
  service: renault.ac_start
  service_data:
    vin: VF**************6
    temperature: 20
hold_action:
  action: none
show_icon: true
name: Start hvac
icon: 'mdi:snowflake'

Dear @eviollet,
you can add a lovelace button card with custom code like this:
type: button
tap_action:
  action: call-service
  service: renault.ac_start
  service_data:
    vin: VF**************6
    temperature: 20
hold_action:
  action: none
show_icon: true
name: Start hvac
icon: 'mdi:snowflake'

@PaoloTo and @epenet , thank you very much for your help.
I guess I managed to get it to work. I'll check this evening when the car comes back. 🤣

@PaoloTo and @epenet , thank you very much for your help.
I guess I managed to get it to work. I'll check this evening when the car comes back. 🤣

Hi all,
I have created PR https://github.com/hacf-fr/renault-api/pull/139 on renault-api to make it clearer.
Does anyone want to check it?
After it is merged there, then I think we'll just completely remove the climate entity from HA, and update the documentation with the notes from @PaoloTo

Hi all,
I have created PR https://github.com/hacf-fr/renault-api/pull/139 on renault-api to make it clearer.
Does anyone want to check it?
After it is merged there, then I think we'll just completely remove the climate entity from HA, and update the documentation with the notes from @PaoloTo

Hi, seems ok to remove climate. As it will avoid “does not work” feeback. May limitations by model could be documented in the readme/wiki ?
@epenet : if ac_cancel service is not working can it be disabled too ?
@eviollet : another implementation to have “fake status” (timer 5min). It avoids myself clicking more than one : https://github.com/PysX/home-assistant-config/blob/master/packages/zoe.yaml
May be not optimised but working.

Hi, seems ok to remove climate. As it will avoid “does not work” feeback. May limitations by model could be documented in the readme/wiki ?
@epenet : if ac_cancel service is not working can it be disabled too ?
@eviollet : another implementation to have “fake status” (timer 5min). It avoids myself clicking more than one : https://github.com/PysX/home-assistant-config/blob/master/packages/zoe.yaml
May be not optimised but working.

@PysX thank you for the 5 minute delay idea. I'd never thought of that. I'm quite new to Home Assistant and loving it.
Have a great evening

@PysX thank you for the 5 minute delay idea. I'd never thought of that. I'm quite new to Home Assistant and loving it.
Have a great evening

Can I get this to work for the ZE50?
My main car is the ZE50, and information is working, only the start of preconditioning isn't.
2nd picture has hvac working of a ze40, car of a Colleague of mine (same account).

Can I get this to work for the ZE50?
My main car is the ZE50, and information is working, only the start of preconditioning isn't.
2nd picture has hvac working of a ze40, car of a Colleague of mine (same account).

Managed to get it working using the call as it was stated before. The automatic entity which is generated for the ZE50 doesn't seem to work..
I've also changed the timer to 10 minutes (600 seconds) which seemed way more stable for me.
This is the script with a notification that the car started the HVAC
start_hvac:
  alias: Start HVAC
  sequence:
  - service: renault.ac_start
    data:
      vin: VF1xxxxxxx
      temperature: 21
  - device_id: xxxxxxxxxxxxx
    domain: mobile_app
    type: notify
    message: Starting HVAC at 21°C
    title: Renault ZOE
  mode: single
  icon: mdi:snowflake

Thanks!

Managed to get it working using the call as it was stated before. The automatic entity which is generated for the ZE50 doesn't seem to work..
I've also changed the timer to 10 minutes (600 seconds) which seemed way more stable for me.
This is the script with a notification that the car started the HVAC
start_hvac:
  alias: Start HVAC
  sequence:
  - service: renault.ac_start
    data:
      vin: VF1xxxxxxx
      temperature: 21
  - device_id: xxxxxxxxxxxxx
    domain: mobile_app
    type: notify
    message: Starting HVAC at 21°C
    title: Renault ZOE
  mode: single
  icon: mdi:snowflake

Thanks!

Hi all,
I have created two PR:

In #113, it should remove the errors at startup regarding "hvac-status" not available.
In #114. I have removed the climate entity altogether to avoid confusion regarding unexpected behaviour.

I will leave them open for a little while for testing/feedback.
Regarding documentation of the scripts and lovelace cards, maybe someone wants to create a new documentation page?

Hi all,
I have created two PR:

In #113, it should remove the errors at startup regarding "hvac-status" not available.
In #114. I have removed the climate entity altogether to avoid confusion regarding unexpected behaviour.

I will leave them open for a little while for testing/feedback.
Regarding documentation of the scripts and lovelace cards, maybe someone wants to create a new documentation page?

Thanks @epenet , will try it tomorrow.
I have submitted a PR for documentation, i don't know how you think it should be, I will adjust it following your feedbacks.

Thanks @epenet , will try it tomorrow.
I have submitted a PR for documentation, i don't know how you think it should be, I will adjust it following your feedbacks.

Hi all
The PRs have been merged, and the documentation has been updated.
It's all included in release v3.0.6
@WinkelB are you happy to close this issue?


tiny_rogue_like

This is a simple abstract runnable roguelike game based on GPT3.5

I only adjusted the width and height of the user pixel in the game and left the rest of the code untouched, it's amazing!

how can i start guys bany help am new here

how can i start guys bany help am new here

I'm not quite sure what you want.
If you are trying to generate a project you can do that:

apply for a chatGPT account and get its API Key
fork and clone the project
Read the readme for the project, which contains instructions and a video.
Have an idea
Most importantly, get your hands dirty.

@NA-Wen please check the replay part

lgtm

Thank you for your contribution! You are the first one to share software! I will mark the status of this roguelike game as Biased since GPT does not fulfill all the requirements in your query and manual, such as the player does not enter the next level when touching a door and there is no monster, but it is a great try!


Change message parsing to be closer to RFC1459

I'm merging this even though there are failures because the .travis.yml is pulled from this branch, not the merge of the two


Fallback to SQL language mode if fail to init python environment and fix log

Why are the changes needed?

Now, if failed to init python environment, we have to re-create the connection.
In this pr, it will fallback to SQL language mode for above case.
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[x] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

thanks, merged to master


Added changes for prompt governance

This PR introduces functionality to call the /promptgov API from Langchain whenever a prompt is sent. This integration ensures enhanced entity extraction and validation against a deny list to improve prompt governance. Initially, this feature is implemented for Pebblo, with plans to extend it to Daxa in future updates.
Changes:
Router Addition:
Added a new router in routers.py for handling /promptgov API requests.
API Endpoint:
Introduced the prompgov function in api.py to facilitate the communication with the /promptgov API.
Business Logic:
Implemented the business logic in prompt_gov.py to extract entities using our entity classifier. The extracted entities are then returned for further processing.
Langchain Integration:
On the Langchain side, the implementation includes matching extracted entities against a deny list. If any entity from the deny list is found, the prompt is blocked.
Output :

Closing this as it is old newer prompt governance can be found here https://github.com/daxa-ai/pebblo/pull/430


[libressl] Update to 3.8.2 and added usage

Fixes https://github.com/microsoft/vcpkg/issues/34869

Update to 3.8.2.
Add usage.

[X] Changes comply with the maintainer guide
[X] SHA512s are updated for each updated download
[ ] The "supports" clause reflects platforms that may be fixed by this new version
[ ] Any fixed CI baseline entries are removed from that file.
[ ] Any patches that are no longer applied are deleted from the port's directory.
[X] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[X] Only one version is added to each modified port's versions file.

Usage test pass with following triplets:
x86-windows
x64-windows
x64-windows-static

/azp run


mobile: Specify the port number for the IPv6 probing code

Since we are probing the Google DNS server, we should specify the DNS port, which is 53.
Risk Level: low
Testing: n/a
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: mobile

/assign @abeyad
cc: @RenjieTang

/retest


Hover tooltips for Tailwind classes show duplicate tips

When hovering over a class, the tooltip shows the same tips four times.

This should be fixed with the latest update. Thank you for reporting this bug!

It's still the same problem for me. I've downloaded your updated version, disabled and enabled the extension, uninstalled and reinstalled it, but the same four duplicate rows still show up when hovering.
I'm using the latest Visual Studio version, 17.7.3.

Sorry, do you think you could provide your tailwind.config.js so I can reproduce this?

Hi again!
For you information, after updating to you latest build this happen:

Ok, thanks for letting me know. I’ll see what I can do once I have some time.

I was unable to reproduce either one of the issues, but I did make some changes to try to fix the issue.
Especially regarding the performance issue, I changed how the package was initialized, but if you still encounter significant performance hits, please let me know.
Thanks!

After installing your new update, everything is fine: no duplicated tooltips when hovering over a class, nor is Visual Studio complaining about slow performance.
Thank you for creating this awesome extension!

No problem! Happy to hear that.


Fade previous days in calendar

Fixes #146
This PR makes calendar days compare their supplied date with the current day, and add an extra fade style if they are previous to today.

Pre-flight check-list
Before raising a pull request

Documentation
[x] Unit tests

Pre-merge check-list

[ ] Link to Trello ticket/GitHub issue (If applicable)
[ ] Any risky areas identified
[ ] Test plan provided
[ ] Tester approved

Tester check-list

[ ] Tested on multiple devices / OS versions (Test on the physical device(s) you have access to, otherwise use BrowserStack):

[x] Galaxy S8 (Android 7.0/8.0)
[x] Galaxy S7 (Android 6.0)
[x] iPhone X (iOS 11.x)
[x] iPhone 8 (11.x)
[ ] iPhone 7 (iOS 10.x)

Optional:

[ ] Google Pixel 2
[ ] Galaxy S8 Plus
[ ] Galaxy S7 Edge
[ ] Galaxy S6
[x] iPhone 7+
[ ] iPhone 6

Accessibility Testing (If applicable)

[ ] Text-to-Voice (Android: Voice Assistant / iOS: Speak Selection)
[ ] Large Text (=<200%)
[ ] Landscape Screen orientation

Weak connection testing (If applicable)

[ ] Airplane mode
[ ] 2G/3G Network Settings

Got some more work to do mentioned in #146.

Hey @robbiemccorkell
Past dates should be not selectable if poss.
Noticed that the current date is also knocked back, but this should be full opacity

Design review comments done

Looks good, didn't see any issues


Spans when using scatter gather are not collected

When using scatter gather in the client it looks like spans are not collected for subsequent calls. Not only are A and B not associated, B is not collected at all. I thought async hooks were used to associated these types of patterns?
If the client requests /foo and /bar in the same promise context i'd expect them to be collected but only /foo is.
Whereas If I have a client request to just /foo and /foo calls /bar in server, i do see both.
In my test i'm using node v9.4, the server is using restify, and the client is using axios for requests.  I do see traces for subcalls just not when the client is making the subcall rather than the server. Also the projectId is i was testing is seventh-odyssey-219220' and last traces are about 24hrs old.
Is this a known issue?
client.js
require('@google-cloud/trace-agent').start()
const axios = require('axios')

axios.get('http://localhost/foo') // A
  .then(() => axios.get('http://localhost/bar')) // B

server.js
require('@google-cloud/trace-agent').start()

const restify = require('restify')
const server = restify.createServer()
const axios = require('axios')

function foo (req, res, next) {
  console.log('foo')
  res.send({random: Math.random()})
  next()
}

function bar (req, res, next) {
  console.log('bar')
  res.send({random: Math.random()})
  next()
}

server.get('/foo', foo)
server.get('/bar', bar)

server.listen(80, function() {
  console.log('%s listening at %s', server.name, server.url)
})

Oh wait would #872 fix this?

@kjin Thanks for the reply. That does now work in the sense foo and bar get traced. But bar is not a child of foo like i thought it should be.

From the server's point of view, the two different requests are completely independent (it has no awareness that the client logically treats one as being a continuation of the other), so the traces from the server reflect this. The client doesn't send any trace data because we don't trace top-level outgoing requests.
To form a true parent-child relationship, the /foo request handler on the server would need to be making an outgoing request to /bar, as ancestry is defined on the graph of requests across network boundaries. But if you are just looking to have /foo and /bar to appear in the same trace in the Stackdriver Trace web UI, you can wrap the client's outgoing requests in a request handler or a custom root span, so that the client would indeed send trace data. In this case /foo and /bar are still "siblings" rather than actual parent/child, but the visual output yields:

This is generated from this alternative client.js, with server.js's sampling rate set to "always sample" (0).

@kjin That makes sense. Thanks for the detailed explanation.


How to build a Java array of strings

Is it possible to build a Java array from rucaja?
I would like to call a Java method that takes an array of strings (eg. void main(String[] args)), but I can't find how to build the `jvalue' of the array.
...

let java_string: JvmString = jvm.new_jvm_string("Hello").unwrap();

let args: Vec<jvalue> = vec![
    // ?
];

// Call the main
jvm.call_static_object_method(
    &main_class,
    &main_method,
    args.as_ptr()
);

No sorry. Such a function does not exist (yet).
You'd need to create a String array using the [type array specifier https://docs.oracle.com/javase/1.5.0/docs/guide/jni/spec/types.html
Then Java strings would have to be created and set using the java methods.
I don't have much time for this but i would be happy to merge such a function if provided.

Thanks


Can not get TPC-C to work

TPC-C doesn't seem to work... Am I doing anything wrong here?
./ermia_SI -verbose -benchmark tpcc -threads 8 -scale_factor 8 -seconds 30 -log_data_dir /dev/shm/yihehuang/ermia-log -log_buffer_mb=128 -log_segment_mb=16384 -parallel_loading
WARNING: benchmark built in DEBUG mode!!!
PID: 19882
CC: SI
  phantom-protection: 0
Settings and properties
  node-memory       : 12GB
  num-threads       : 8
  numa-nodes        : 1
  benchmark         : tpcc
  var-encode        : yes
  print-cpu-util    : 0
  log-dir           : /dev/shm/yihehuang/ermia-log
  tmpfs-dir         : /dev/shm
  log-buffer-mb     : 128
  log-ship-by-rdma  : 0
  logbuf-partitions : 64
  worker-threads    : 8
  total-threads     : 8
  persist-policy    : sync
  command-log       : 0
  command-logbuf    : 16MB
  btree_internal_node_size: 264
  btree_leaf_node_size    : 312
  read_view_stat_interval : 0ms
  read_view_stat_file     : /dev/shm/ermia_read_view_stat
  log_ship_offset_replay  : 0
  parallel-loading: 1
  retry-txns        : 0
  backoff-txns      : 0
  scale-factor      : 8
  group-commit      : 0
  commit-queue      : 25000
  group-commit-size : 4KB
  recovery-warm-up  : none
  log-key-for-update: 0
  enable-chkpt      : 0
  enable-gc         : 0
  null-log-device   : 0
  truncate-at-bench-start : 0
  num-backups       : 0
  wait-for-backups  : 1
tpcc settings:
  random home warehouse (%)    : 0
  cross_partition_transactions : 1
  separate_tree_per_partition  : 0
  new_order_remote_item_pct    : 1
  new_order_fast_id_gen        : 0
  uniform_item_dist            : 0
  order_status_scan_hack       : 0
  microbench rows            : 100000
  microbench wr ratio (%)    : 0
  microbench wr rows         : 0
  number of suppliers : 10000
  workload_mix                 : [45, 43, 0, 4, 4, 4, 0, 0]
timed region log_recovery took 801.636 ms
table customer_0 size 0
table customer_name_idx_0 size 0
table district_0 size 0
table history_0 size 0
table item_0 size 38
table nation_0 size 62
table new_order_0 size 0
table oorder_0 size 0
table oorder_c_id_idx_0 size 0
table order_line_0 size 0
table region_0 size 5
table stock_0 size 69
table stock_data_0 size 69
table supplier_0 size 43
table warehouse_0 size 16
starting benchmark...
Sec,Commits,Aborts
F0208 23:23:00.089686 19887 tpcc.cc:1333] Wrong return value 2
*** Check failure stack trace: ***
F0208 23:23:00.089695 19890 Fp1333] Wrong return value 20208 23:23:00.089699 19889 tpcc.cc:1333] Wrong return value 2F0208 23:23:00.089704 19883 tpcc.cc:1333] Wrong return value 2F020F 23:23:00.089721 19888 00002cc:18 5] 23W23:0002F89722 19885 tpcc.cc:1825] 2Wrong return value 208
23:23:F0.89721 19886 tpcc.cc:2825]Wrong return value 208 23:23:00.089721 19884 tpcc.cc:1825] Wrong return value 2
*** Check failure stack trace: ***
F0208 23:23:00.089695 19890 Fp1333] Wrong return value 20208 23:23:00.089699 19889 tpcc.cc:1333] Wrong return value 2F0208 23:23:00.089704 19883 tpcc.cc:1333] Wrong return value 2F020F 23:23:00.089721 19888 00002cc:18 5] 23W23:0002F89722 19885 tpcc.cc:1825] 2Wrong return value 208
23:23:F0.89721 19886 tpcc.cc:2825]Wrong return value 208 23:23:00.089721 19884 tpcc.cc:1825] Wrong return value 2
Aborted (core dumped)

It worked on my side (both fresh start and recovery), but your database (and the log) seems to be corrupted, e.g., new_order and other tables are of size 0. Have you tried to cleaning up the log dir and re-run? Just in case - you can simply use run.sh tpcc_org 8 8 30 to fire a run.

Thanks, I will try the script.
Is there a way to disable logging completely (no persistence)?

Since log here is the database, so it can't disabled :)
But you can give -null_log_device to disable persistence - it will simply discard the log buffer whenever a flush is needed. This also means recovery won't work.

Okay. But you mentioned that it will still hamper performance when there are a large number of threads running. So there is no way to get rid of this bottleneck?

It is needed for global ordering, ie LSN = timestamp. This is inherent in this kind of systems. You might consider pure OCC like FOEDUS or Silo to remove this bottleneck, but I didn't see it as a problem until at least 60 physical threads. If you're running it on a 500-hw thread machine, then consider OCC and FOEDUS like approaches or some hw clock based approach like Cicada.

Okay I see, thanks for the heads-up.
I'm now getting out-of-memory errors. I already reserved 80G of memory (huge pages) and ulimit -l shows unlimited. I use a two-socket machine with 64GB of memory each, what configuration should I use so that I don't run out of memory?

80G sounds ok, but how many threads are you running, and for how long? One thing to note is that under TPC-C the database grows very fast, especially so with multi-versioning. Also GC is turned off by default, you might try enabling GC (-enable_gc) to see what happens (expect a performance drop of 10% if I remember correctly). But if you're going after raw concurrency control performance, I'd suggest simply make the run shorter and repeat multiple times, because the numbers each second are pretty stable, running longer doesn't really make a difference. Hope that helps!

I figured it out. The default -node_memory_gb value of 12GB per socket was too small. Bumped it up to 20GB and now it works fine. Thanks!

Oh, right. Anyway glad it works for you now!


letsencrypt-win-simple.v<IP_ADDRESS> - System.NullReferenceException: Object reference not set to an instance of an object.

Issue description
For bug reports, A null pointer exception occurred in the latest version.
It worked successfully in the v<IP_ADDRESS> .
Steps to reproduce
PS C:\test\letsencrypt-win-simple.v<IP_ADDRESS>> .\letsencrypt.exe

 [INFO] Let's Encrypt Windows Simple (LEWS)
 [INFO] Software version 198.2.6594.21512 (RELEASE)
 [INFO] IIS not detected
 [INFO] ACME Server https://acme-v01.api.letsencrypt.org/
 [INFO] Please report issues at https://github.com/Lone-Coder/letsencrypt-win-simple

 N: Create new certificate
 M: Create new certificate with advanced options
 L: List scheduled renewals
 R: Renew scheduled
 S: Renew specific
 A: Renew *all*
 V: Revoke certificate
 C: Cancel scheduled renewal
 X: Cancel *all* scheduled renewals
 Q: Quit

 Please choose from the menu: N

 [INFO] Running in Simple mode

 1: Single binding of an IIS site
 2: SAN certificate for all bindings of an IIS site
 3: SAN certificate for all bindings of multiple IIS sites
 4: Manually input host names
 C: Cancel

 Which kind of certificate would you like to create?: 4

 Enter comma-separated list of host names, starting with the primary one: hoge.com

 [INFO] Plugin Manual generated target [Manual] [1 binding - hoge.com]
 [EROR] Invalid installation input
System.NullReferenceException: Object reference not set to an instance of an object.
   at LetsEncrypt.ACME.Simple.Clients.IISClient.RunningWebsites()
   at LetsEncrypt.ACME.Simple.Plugins.InstallationPlugins.IISInstallerFactory.Aquire(ScheduledRenewal renewal, IOptionsS
ervice optionsService, IInputService inputService, RunLevel runLevel)
   at LetsEncrypt.ACME.Simple.Program.CreateNewCertificate(RunLevel runLevel)

 N: Create new certificate
 M: Create new certificate with advanced options
 L: List scheduled renewals
 R: Renew scheduled
 S: Renew specific
 A: Renew *all*
 V: Revoke certificate
 C: Cancel scheduled renewal
 X: Cancel *all* scheduled renewals
 Q: Quit

 Please choose from the menu:
PS C:\test\letsencrypt-win-simple.v<IP_ADDRESS>>

Client version: <IP_ADDRESS>
Windows version: Windows Server 2012 R2 Datacenter
Relevant part of log file:

I do not see "M" option.  (I am running IIS and LE detects IIS.) I'm having a Null issue also.


midisheetmusic: init at 2.6

Motivation for this change
With this I've got better results converting MIDI to sheet than with rosegarden or musescore, it's also just one button to process. Though I've only tried simple melodies so far
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 nox --run "nox-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)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build midisheetmusic

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: midisheetmusic
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: midisheetmusic
Partial log (click to expand)
glibPreInstallPhase
installing
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/08bg8zghf2pxvnl49wkc2qvrjg9408pj-midisheetmusic
strip is /nix/store/dxf1m7dhc4qb655bdljc1fsd74v1nag3-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/08bg8zghf2pxvnl49wkc2qvrjg9408pj-midisheetmusic/bin
patching script interpreter paths in /nix/store/08bg8zghf2pxvnl49wkc2qvrjg9408pj-midisheetmusic
checking for references to /build in /nix/store/08bg8zghf2pxvnl49wkc2qvrjg9408pj-midisheetmusic...
/nix/store/08bg8zghf2pxvnl49wkc2qvrjg9408pj-midisheetmusic

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: midisheetmusic
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

@joachifm Thanks!


Edits

Docs Build status updates of commit 323e748:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/consume-packages/Package-Restore.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Faster version of the ice flow model

Re-wrote glacier_evolution to be faster
Ran the benchmark againconsequently
New benchmarks on simulation time and on the ice thickness difference between the oggm solution and the 1D_SIA.jl one

Great work Lucille! Thanks!


name vs. id?

There are two concepts for which the terms "id" and "name" are used:

Unique Identifier: A string that uniquely identifies a resource within some namespace.  Examples:  "my-project", "my-instance" or "my-table".
Fully Qualified Identifier: A fully qualified identifier that uniquely describes a resource which includes the full name space.
The node.js client uses inconsistent nomenclature:

Projects use "id" is the unique identifier and "name" as the fully qualified identifier
In instances, "name" to describes the Unique Identifier and "id" describes the Fully Qualified Identifier.  (Instance Code, Table Code).

When converting node.js variables to proto messages, the code looks like:
  var reqOpts = {
    -> name: this.id <-,
    deleteAllDataFromTable: true,
  };

This type of confusion, I believe, lead to bug #126.
I would like to use the protobuf as the standard for naming.
@kolodny, @stephenplusplus, @theacodes: do you have any thoughts on this subject?

I'm okay to stick with what the proto file declares.
As a side note, "id" and "name" don't seem like the best tokens for distinct concepts :man_shrugging: In other libraries, I assume "id" to be the complete name (e.g. projects/{project}/region/{region}/zones/{zone}/{my-server}), and "name" to be the user-friendly portion (e.g. "my-server"). Since people usually remember names: "Hi, Solomon!" as opposed to IDs: "Hi, {state issued ID number}!" 😄

@stephenplusplus: I agree that naming is hard.  If we make this change is going to be a breaking change.  We probably need to do that before Beta, and document the heck out of this change.

What's the breaking part? Instance properties other than metadata are not meant to be accessed by a user.

@stephenplusplus: I didn't know if this would be a breaking change.  If this is just an internal implementation detail or a public facing API.  If this is a public facing API, then we have to change this before a Beta launch.
@JustinBeckwith, FYI.

PR #169 is related to this issue.


Enter-PSsession fails CentOS 7.1 to Win 2012 R2

I have installed OpenSSH and PowerShell <IP_ADDRESS> on my Windows 2012 system and PowerShell <IP_ADDRESS> on my Centos server but SSH works fine to the windows server so I know that is working and I am seeing the authorizations in my sshd.log but I get the following error any time I connect using Enter-PSsession
Enter-PSSession : The background process reported an error with the following
message: "The named pipe target process has ended.".
At line:1 char:1
+ Enter-PSSession -HostName <IP_ADDRESS> -UserName administrator
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [Enter-PSSession], PSRe
   motingTransportException
    + FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemoting
   DataStructureException,Microsoft.PowerShell.Commands.EnterPSSessionCommand

I do have the subsystem for PowerShell defined in SSHD as follows
Subsystem powershell C:/Program Files/PowerShell/<IP_ADDRESS>/powershell.exe -sshs -NoLogo -NoProfile
I did run the Install-PowerShellRemoting.ps1 from an admin level powershell 6 shell
Steps to reproduce
any attempt to use Enter-PSsession
Expected behavior
I should recieve a PS On my windows system
Actual behavior
Session Terminates with the following error
Enter-PSSession : The background process reported an error with the following
message: "The named pipe target process has ended.".
At line:1 char:1
+ Enter-PSSession -HostName <IP_ADDRESS> -UserName administrator
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [Enter-PSSession], PSRe
   motingTransportException
    + FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemoting
   DataStructureException,Microsoft.PowerShell.Commands.EnterPSSessionCommand

Environment data
Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   <IP_ADDRESS>
GitCommitId                    v6.0.0-alpha.11
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

This is a known and could be duplicate issue: https://github.com/PowerShell/PowerShell/issues/2473
Just prove that powershell-v6.0.0-alpha.11 still can't connect Linux to a Windows OS.
:)

The error there is not being able to establish an SSH, as you see I am actually establishing an SSH and then powershell is dying out. Different issues IMO

Agreed!  That's why I said "could be duplicate issue". Still I've seen different error messages with SSH. And, in my case I was trying to connect from Ubuntu.  The end result still is "Linux can't connect to Windows PowerShell using Open-SSH" .
I'm think out loud... I wonder if is some more on the Windows side (some missing settings) than Linux.  I got it almost to the point of connecting but still failed.
:)

Always check the error record for exception and inner exceptions as they can many times provide more detailed information of the problem.
$err = $error[0]
$err.Exception
$err.Exception.InnerException
If Linux -> Windows SSH remoting broke recently it may be related to this issue (#2531), where a recent change in Win32-OpenSSH breaks Windows as a target for SSH remoting.  But it still works as a client for Windows -> Linux remoting.  I'll try to submit a PR this week that fixes the problem.  The workaround is to not install the latest release of Win32-OpenSSH.

To expand on my comment some, PowerShell remoting uses SSH as a secure transport and any errors that SSH reports are wrapped in a transport/remoting exception.  So you need to look for the contained inner exception to get the original SSH error message.
I have been running PS remoting  Linux (Ubuntu 14) -> Windows successfully for weeks now as long as I can make an SSH connection to the target Windows machine.  The only exception is the recent issue I describe above when I installed the latest version of Win32-OpenSSH.

Thanks Paul, I'll rollback to a previous Open-SSH version, I am also
running the Win64 build of OpenSSH. I have no issues directly SSHing to the
windows box the issue is solely with remoting.
On Tue, Oct 25, 2016 at 11:45 AM, Paul Higinbotham<EMAIL_ADDRESS>
wrote:

To expand on my comment some, PowerShell remoting uses SSH as a secure
transport and any errors that SSH reports are wrapped in a
transport/remoting exception. So you need to look for the contained inner
exception to get the original SSH error message.
I have been running PS remoting Linux (Ubuntu 14) -> Windows successfully
for weeks now as long as I can make an SSH connection to the target Windows
machine. The only exception is the recent issue I describe above when I
installed the latest version of Win32-OpenSSH.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/2525#issuecomment-256074401,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGKvCD79l408-sm5R9ZaOmbHFqrP507lks5q3iQGgaJpZM4KeBkS
.

Could be. I'll try ubuntu when I get off this plane :)
On Monday, October 24, 2016, Maximo Trinidad<EMAIL_ADDRESS>wrote:

Agreed! That's why I said "could be duplicate issue". Still I've seen
different error messages with SSH. And, in my case I was trying to connect
from Ubuntu. The end result still is "Linux can't connect to Windows
PowerShell using Open-SSH" .
I'm think out loud... I wonder if is some more on the Windows side (some
missing settings) than Linux. I got it almost to the point of connecting
but still failed.
:)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/2525#issuecomment-255815059,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGKvCI6PlOJwek1ulKM_jWevkgOtGdAsks5q3PC2gaJpZM4KeBkS
.

One quick question could you send me a copy of your sshd.config from the
OpenSSH-Win32 directory, I've seen several different ways to format the
subsystem lines and I am wondering if that is what is breaking mine. I have
tried both Win32 and Win64 and both 010 and 020 builds but no joy on
powershell remoting over SSH from Linux to Windows :(
Robert
On Tue, Oct 25, 2016 at 11:45 AM, Paul Higinbotham<EMAIL_ADDRESS>
wrote:

To expand on my comment some, PowerShell remoting uses SSH as a secure
transport and any errors that SSH reports are wrapped in a
transport/remoting exception. So you need to look for the contained inner
exception to get the original SSH error message.
I have been running PS remoting Linux (Ubuntu 14) -> Windows successfully
for weeks now as long as I can make an SSH connection to the target Windows
machine. The only exception is the recent issue I describe above when I
installed the latest version of Win32-OpenSSH.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/2525#issuecomment-256074401,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGKvCD79l408-sm5R9ZaOmbHFqrP507lks5q3iQGgaJpZM4KeBkS
.

Ahhh I saw a video of some MS guys showing Linux connecting to Windows in
just this fashion.
On Sun, Oct 23, 2016 at 4:49 PM, Maximo Trinidad<EMAIL_ADDRESS>wrote:

This is a known and could be duplicate issue: #2473
https://github.com/PowerShell/PowerShell/issues/2473
Just prove that powershell-v6.0.0-alpha.11 still can't connect Linux to a
Windows OS.
:)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/2525#issuecomment-255613468,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGKvCEzxIjB4Ju5dC7AjyQ_h1CFffqACks5q28h2gaJpZM4KeBkS
.

Closing as a dupe of #2473

Has anyone got his working yet? Setting DEBUG3 LogLevel seems to show the named pipe is disconnected (109), accompanied by an invalid handle error (6):
3792 12:30:21 608 agent_start pid:3792, dbg:0, child:0, pipe:0
3792 12:30:55 109 client pid 4804 connected
3792 12:30:55 109 debug1: spawned worker 2436 for agent client pid 4804
2436 12:30:55 109 agent_start pid:2436, dbg:0, child:1, pipe:512
2436 12:30:55 109 debug3: connection io 000001FCDAE0C530 #bytes:0 state:0
2436 12:30:57 577 debug3: connection io 000001FCDAE0C530 #bytes:4 state:1
2436 12:30:57 577 debug3: connection io 000001FCDAE0C530 #bytes:44 state:2
2436 12:30:57 577 debug2: client type: 3
2436 12:30:57 577 debug1: process agent request type 200
2436 12:30:57 609 debug3: connection io 000001FCDAE0C530 #bytes:8 state:3
2436 12:30:57 843 debug1: iocp error: 109 on 000001FCDAE0C530 \n
2436 12:30:57 843 debug1: connection 000001FCDAE0C530 clean up
2436 12:30:57 843 debug1: iocp error: 6 on<PHONE_NUMBER>000000 \n

```I'd really like removing to work properly from Linux to Windows. ;)


Bug in Slots

Check that I have no day with a combination of Compiler Design and Virtualization on the same day.
But I still see this combination on 4th August
While making the Schedule

Screenshot of 4th August

Is this issue only on the first day of the sem?

The issue is probably here, which was a hacky way to fix #3
https://github.com/arpit-saxena/schedule-maker/blob/2d73ce5c4bdbd34087f7e7152893c33878edc265/main.js#L126-L134


Doc: improve azure/dotnet-frontend README

What do you want to improve?
azure/dotnet-frontend
What is the current documentation?
N/A
What is the new documentation?
Add a basic README that includes the following information:

Description of the GPT
How to use the GPT with a description on each field input
How to test the GPT

replaced by https://github.com/janus-idp/software-templates/issues/193


Find a way to resize or split staves

Currently there is no way resize or split staves. Sometimes, two staves can be read as one and the only way to correct this error is to delete the entire staff (and elements), insert the two staves, and reinsert all the elements. This can be quite a long process so there should be a way to make it faster, either by splitting ore resizing.

I think we need to support resizing and splitting staves. If we only support resizing, then the elements we want to put on the newly inserting staff will still be on the old resized staff. If we only support splitting, we'd need to essentially have the backend for resizing anyway since one staff will remain the same and just include a different bounding box and at most as many children.
Splitting seems to me to be the priority since a frontend for resizing might take a lot of work.


The signature help information shown to users for class constructors in Pylance version v2024.8.1 is less useful that in Pylance version v2024.7.1.  This also breaks parameter code completion for those methods.

Type: Bug

Behaviour
Code completion for class constructors is broken in Pylance v2024.8.1 (was working in v2024.7.1), and the method signature pop-up displayed to the end user for a class constructor is unhelpful.
Pylance v2024.8.1:

Pylance v2024.7.1:

Steps to reproduce:
Given the following class: FxForwardCurveDefinition
Defined in: https://pypi.org/project/lseg-analytics/
Installed via: pip install lseg-analytics==1.0.0b2
Attempt to obtain code completion for the constructor of FxForwardCurveDefinition using Pylance v2024.8.1 and Pylance v2024.7 using the following snippet:
from lseg_analytics.market_data import fx_forward_curves

fx_forward_curves.FxForwardCurveDefinition(
 # attempt to trigger intellisense here
)

Diagnostic data

Output for Python in the Output panel - when Pylance v2024.8.1 is installed

2024-08-22 12:11:50.095 [info] Experiment 'pythonaa' is active
2024-08-22 12:11:50.095 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-08-22 12:11:50.095 [info] Experiment 'pythonREPLSmartSend' is active
2024-08-22 12:11:50.096 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-08-22 12:11:50.096 [info] Experiment 'pythonTestAdapter' is active
2024-08-22 12:11:50.096 [error] Reading directory to watch failed [Error: ENOENT: no such file or directory, scandir 'd:\Users\vmosor\Desktop\Work\CWD\.pixi\envs'
	at Object.readdirSync (node:fs:1509:26)
	at t.readdirSync (node:electron/js2c/node_init:2:11418)
	at d:\Users\vmosor\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\out\client\extension.js:2:586747
	at d:\Users\vmosor\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\out\client\extension.js:2:586938
	at Array.map (<anonymous>)
	at d.initWatchers (d:\Users\vmosor\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\out\client\extension.js:2:586656)
	at async d.ensureWatchersReady (d:\Users\vmosor\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\out\client\extension.js:2:543067)] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'scandir',
  path: 'd:\\Users\\vmosor\\Desktop\\Work\\CWD\\.pixi\\envs'
}
2024-08-22 12:11:50.096 [error] Dir "d:\Users\vmosor\Desktop\Work\CWD\.pixi\envs" is not watchable (directory does not exist)
2024-08-22 12:11:50.097 [info] Default formatter is set to null for workspace d:\Users\vmosor\Desktop\Work\CWD
2024-08-22 12:11:50.097 [info] Python interpreter path: C:\Program Files\Python310\python.exe
2024-08-22 12:11:50.161 [info] > pyenv which python
2024-08-22 12:11:50.161 [info] cwd: .
2024-08-22 12:11:53.644 [info] > pixi --version
2024-08-22 12:11:53.646 [error] [Error: spawn pixi ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:286:19)
	at onErrorNT (node:internal/child_process:484:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn pixi',
  path: 'pixi',
  spawnargs: [ '--version' ]
}
2024-08-22 12:11:53.646 [warning] could not find a pixi interpreter for the interpreter at C:\Program Files\Python310\python.exe
2024-08-22 12:11:54.614 [warning] could not find a pixi interpreter for the interpreter at C:\Program Files\Python310\python.exe
2024-08-22 12:11:56.089 [info] Starting Pylance language server.

Output for Python in the Output panel - when Pylance v2024.7.1 is installed

2024-08-22 12:16:33.354 [info] Experiment 'pythonaa' is active
2024-08-22 12:16:33.354 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-08-22 12:16:33.354 [info] Experiment 'pythonREPLSmartSend' is active
2024-08-22 12:16:33.354 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-08-22 12:16:33.354 [info] Experiment 'pythonTestAdapter' is active
2024-08-22 12:16:33.354 [error] Reading directory to watch failed [Error: ENOENT: no such file or directory, scandir 'd:\Users\vmosor\Desktop\Work\CWD\.pixi\envs'
	at Object.readdirSync (node:fs:1509:26)
	at t.readdirSync (node:electron/js2c/node_init:2:11418)
	at d:\Users\vmosor\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\out\client\extension.js:2:586747
	at d:\Users\vmosor\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\out\client\extension.js:2:586938
	at Array.map (<anonymous>)
	at d.initWatchers (d:\Users\vmosor\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\out\client\extension.js:2:586656)
	at async d.ensureWatchersReady (d:\Users\vmosor\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\out\client\extension.js:2:543067)] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'scandir',
  path: 'd:\\Users\\vmosor\\Desktop\\Work\\CWD\\.pixi\\envs'
}
2024-08-22 12:16:33.355 [error] Dir "d:\Users\vmosor\Desktop\Work\CWD\.pixi\envs" is not watchable (directory does not exist)
2024-08-22 12:16:33.355 [info] Default formatter is set to null for workspace d:\Users\vmosor\Desktop\Work\CWD
2024-08-22 12:16:33.355 [info] Python interpreter path: C:\Program Files\Python310\python.exe
2024-08-22 12:16:34.997 [info] > pyenv which python
2024-08-22 12:16:34.998 [info] cwd: .
2024-08-22 12:16:37.617 [info] > pixi --version
2024-08-22 12:16:37.618 [error] [Error: spawn pixi ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:286:19)
	at onErrorNT (node:internal/child_process:484:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn pixi',
  path: 'pixi',
  spawnargs: [ '--version' ]
}
2024-08-22 12:16:37.619 [warning] could not find a pixi interpreter for the interpreter at C:\Program Files\Python310\python.exe
2024-08-22 12:16:39.414 [warning] could not find a pixi interpreter for the interpreter at C:\Program Files\Python310\python.exe
2024-08-22 12:16:43.127 [info] Starting Pylance language server.

Extension version: 2024.8.1
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info

Item
Value

CPUs
Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz (8 x 2500)

GPU Status
2d_canvas: unavailable_softwarecanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onopengl: disabled_offrasterization: disabled_softwareraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: disabled_softwarevideo_encode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_softwarewebgpu: unavailable_softwarewebnn: disabled_off

Load (avg)
undefined

Memory (System)
31.65GB (20.26GB free)

Process Argv
--crash-reporter-id 9c9a4e49-5556-426b-8325-03382243022b

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
g316j359:31013175
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31111718
wkspc-ranged-t:31118572
ei213698:31121563

Thanks for the issue. I can reproduce. Definitely a regression.

I think this is being caused by a change in Pyright. This code here is returning false when checking if the type returned by __new__ is a subclass of the class FxForwardCurveDefinition.

function shouldSkipInitEvaluation(evaluator: TypeEvaluator, classType: ClassType, newMethodReturnType: Type): boolean {
    const returnType = evaluator.makeTopLevelTypeVarsConcrete(newMethodReturnType);

    let skipInitCheck = false;
    doForEachSubtype(returnType, (subtype) => {
        if (isUnknown(subtype)) {
            return;
        }

        if (isClassInstance(subtype)) {
            const inheritanceChain: InheritanceChain = [];
            const isDerivedFrom = ClassType.isDerivedFrom(subtype, classType, inheritanceChain);

            if (!isDerivedFrom) {
                skipInitCheck = true;
            }

            return;
        }

        skipInitCheck = true;
    });

    return skipInitCheck;
}

Specifically changing this line in lseg_analytics_basic_client\_model_base.py
    def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> "Model":  # pylint: disable=unused-argument <-- This return type should say Self
        # we know the last three classes in mro are going to be 'Model', 'dict', and 'object'
        mros = cls.__mro__[:-3][::-1]  # ignore model, dict, and object parents, and reverse the mro order
        attr_to_rest_field: typing.Dict[str, _RestField] = {  # map attribute name to rest_field property
            k: v for mro_class in mros for k, v in mro_class.__dict__.items() if k[0] != "_" and hasattr(v, "_type")
        }

@erictraut for the other issue tied to this one:
https://github.com/microsoft/pylance-release/issues/6297
User is calling the aws_cdk.aws_lambda.Function constructor which has a MetaClass. The MetaClass __call__ method looks like so:
    def __call__(cls: Type[M], *args: Any, **kwargs) -> M:

Internally that M does not come out as the same as the Function class so we don't use the __init__ for function to find the signature.
AFAICT, the __call__ function on the MetaClass looks correct to me. Isn't that returning the original class?

#6297 is a different issue, although I can see why you might think they're related. You're correct that the __call__ function on the metaclass is correctly annotated, and this is indeed a bug in pyright. A fix will be included in the next release.

Closing as design.

Thanks @rchiodo and @erictraut for investigating and identifying the real issue.
FYI we followed up with the lseg_analytics package authors, and they traced the issue back to a problem in autorest.python which they use to generate their Python package. Apparently the change in Pyright caused a breaking change in autorest.python which has now been fixed.