text:
SMART on FHIR - 3.3.05 OAuth server sends code parameter : No code parameter received

While testing with Inferno tool (g)(10) section "3 EHR Practitioner App" I'm getting this error
Steps from 3.3.01 to 3.3.04 are ok (3.3.06 also ok)
3.3.05 OAuth server sends code parameter
No code paramater received

Code is a required querystring parameter on the redirect.

https://inferno.healthit.gov/suites/custom/smart/redirect?error=invalid_client&error_description=AADSTS650053%3A+The+application+'fhirproxy-smart-client'+asked+for+scope+'launch'+that+doesn't+exist+on+the+resource+'740cac0e-xxx-450e-afb9-14ef9433c55e'.+Contact+the+app+vendor.
Trace+ID%3A+632ae9f0-xxx-44e8-8d97-7409c55b2d00
Correlation+ID%3A+acfdfb9b-1741-xxx-b7ab-7f4ed42872f5
Timestamp%3A+2022-11-16+14%3A29%3A59Z&state=0addbd03-5c46-xxx-91a7-e91096cffa50
Input: ehr_client_secret          taE8Q~xxxoFPTUwDltBpOVlhE3WoMsiq7VbbV
Output: ehr_code                    ???
To reproduce the error
To reproduce
Run test # 3 on https://inferno.healthit.gov/suites/test_sessions/3294991d-8299-4ea0-86ad-b8d5b1e87af6
Provide your Fhir Proxy Url, client and secret
Use this link to complete test https://inferno.healthit.gov/suites/custom/smart/launch?launch=123&iss=https://sfp-proxyxxx.azurewebsites.net/fhir

Please see the ONC documentation for fhir-proxy here:
https://github.com/microsoft/fhir-proxy/blob/v2.0/docs/ConfigureProxyONCg10.md

There have been code changes and more explicit instructions on passing oncg10 test suite. Please update your code and follow https://github.com/microsoft/fhir-proxy/blob/v2.0/docs/ConfigureProxyONCg10.md

authors: rodriguezrm sordahl-ga

repo: microsoft/fhir-proxy


text:
(#Watch Video#) Jaden Newman L𝚎aked-Video on Twitter

(#Watch Video#) Jaden Newman L𝚎aked-Video on Twitter
Jaden Newman Leaked Video on Twitter. Jaden Newman Leaked Video New collections of  Jaden Newman Leaked Video now being a creator on Fanfix uploading adult contents. Social media star  Jaden Newman Leaked Video been posting short Videoos and naughty pics on Tiktok platform for a while now.
Watch 🟢 ➤ ➤ ➤ 🌐 Click Here To link (Full Viral Video Link)
🔴 ➤►DOWNLOAD👉👉 (Full Viral Video Link)
Jaden Newman Leaked Video New collections of  Jaden Newman Leaked Video now being a creator on Fanfix uploading adult contents. Social media star  Jaden Newman Leaked Video been posting short Videoos and naughty pics on Tiktok platform for a while now.
The purported leak has stirred a maelanage of reactions, from disbelief to morbid curiosity, marking yet another chapter in the saga of celebrity scandals that have dotted the landscape of pop culture. However, this isn't the first rodeo for  Jaden Newman Leaked Videowhen it comes to rumors of a sex tape. In March 2024, similar whispers emerged, only to be debunked as baseless. The rapper, known for hits like In Ha Mood vehemently denied the rumors, critiquing the eagerness of some to believe in such falsehoods.
On Monday March 18, formerly known as Twitter, became abuzz with speculation that a leaked sex tape featuring  Jaden Newman Leaked Videowas readily available online. However, instead of the, there are dozens of pages promising to release the Videoo in exchange for interaction with their post.
The recurrent theme of leaked tapes and the subsequent fallout serves as a reminder of the fragility of reputation in the digital era. As the lines between private and public life continue to blur, celebrities like  Jaden Newman Leaked Videofind themselves at the mercy of internet chatter, where a rumor can ignite a firestorm of speculation and judgment.
In the ever evolving landscape of celebrity culture, the Ishowspeedscandal underscores the relentless pursuit of sensationalism, a pursuit that often comes at the expense of truth and dignity. As we navigate the complexities of the digital age, the line between entertainment and exploitation remains perilously thin.
As the situation unfolds, the truth remains shrouded in mystery, leaving the public to ponder the authenticity of the rumors. In a world where fame and infamy are two sides of the same coin, the saga of Ishowspeedis a testament to the power of social media to shape narratives and challenge the boundaries of privacy and consent.
TAG :
Jaden Newman Leaked Video viral mp4
Jaden Newman Leaked Video di lejja
Jaden Newman Leaked Video viral di lejja
Jaden Newman Leaked Video
Jaden Newman Leaked Video viral
viral  Jaden Newman Leaked Video di lejja
Jaden Newman Leaked Video viral
Videoo viral  Jaden Newman Leaked Video di lejja

📺📱 🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  LEAKED NOW ▶
📺📱 🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  ONLINE ▶
📺📱 🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 1080px 𝗙𝘂𝗹𝗹 𝗛𝗗▶
➤►
▶
➤►

➤►
▶
➤►
➤►
▶
➤►
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  NOW ▶]
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  ONLINE ▶]
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 DOWNLOAD 𝗙𝘂𝗹𝗹 𝗛𝗗▶]
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  NOW ▶]
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  ONLINE ▶]
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 DOWNLOAD 𝗙𝘂𝗹𝗹 𝗛𝗗▶]
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  NOW ▶]
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  ONLINE ▶]
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 DOWNLOAD 𝗙𝘂𝗹𝗹 𝗛𝗗▶]
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  NOW ▶]
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  ONLINE ▶]
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 DOWNLOAD 𝗙𝘂𝗹𝗹 𝗛𝗗▶]
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  NOW ▶]
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 𝗙𝘂𝗹𝗹 𝗩𝗶𝗱𝗲𝗼  ONLINE ▶]
📺📱 [🔴 ➤►𝗪𝗔𝗧𝗖𝗛👉 DOWNLOAD 𝗙𝘂𝗹𝗹 𝗛𝗗▶]
▶
➤►
➤►
▶
➤►
▶
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶
➤►
➤►
▶

Wow

source: gharchive/issue

repo: microsoft/fhir-server

license: MIT

license_type: permissive

license_source: github-api


text:
79 fix

https://microsofthealth.visualstudio.com/Health/_workitems/edit/119320/

/azp run

/azp run

source: gharchive/pull-request

authors: SergeyGaluzo rajithaalurims


text:
fix: Dropdown appears below grid title in FluentSelect

🐛 Bug Report
Select dropdown appears below the sticky grid title.
💻 Repro or Code Sample

🤔 Expected Behavior
Appears above the sticky grid title.
😯 Current Behavior
Appears below the sticky grid title.
💁 Possible Solution

🔦 Context

🌍 Your Environment

Windows
Chrome
.NET 8 and Fluent Blazor 3.1

I'm not seeing this when combining a FluentSelect with a FluentDataGrid sample:

You can see the sample at https://preview.fluentui-blazor.net/Lab/Overview.
Can you share some source (privately) perhaps?

Your test example has overridden the z-index of the select listbox to a huge value:

My listbox has a z-index of 1.

Ah, true but we do that for every FluentSelect but only if it has a value for the Height parameter
From FluentSelect.razor:
if (!String.IsNullOrEmpty(Height))
{
    <style>
        @($"#{Id}::part(listbox) {{ max-height: {Height}; z-index: {ZIndex.SelectPopup} }}")
        @($"#{Id}::part(selected-value) {{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }}")
        @($"fluent-anchored-region[anchor='{Id}'] div[role='listbox'] {{ height: {Height}; }}")
    </style>
}

Adding a height fixed it. The dropdown should probably have a max height anyway.

Closing this. Made a note on the min-height/default behavior

I pushed this PR #774 to fix this issue.

authors: JamesNK dvoituron vnbaaij

repo: microsoft/fluentui-blazor


text:
[Issue]: Does cache still work if extracting one-file graphRAG from a multiple files graphRAG?

Hi, Here is the scenerio I currently confront:
I build a graphRAG based on two distinct .txt file. And later, I want to see if I can build a graphRAG based on one of them.
After I modify the settings file to ensure that only one file gets ingested, I run the following command
python -m graphrag.index --root .
I was expecting that this act will not cost too much if the indexing stage can leverage the cache; however, it still make complete calls to Openai to build the graph.
So, can someone tells me if I did wrong or this scenerio has not been supported yet.
Many thanks.

Here is my settings.yml file

encoding_model: cl100k_base
skip_workflows: []
llm:
  api_key: ${GRAPHRAG_API_KEY}
  type: openai_chat # or azure_openai_chat
  model: ${GRAPHRAG_LLM_MODEL}
  model_supports_json: true # recommended if this is available for your model.
  # max_tokens: 4000
  # request_timeout: 180.0
  api_base: ${GRAPHRAG_API_BASE}
  # api_version: 2024-02-15-preview
  # organization: <organization_id>
  # deployment_name: <azure_model_deployment_name>
  # tokens_per_minute: 150_000 # set a leaky bucket throttle
  # requests_per_minute: 10_000 # set a leaky bucket throttle
  # max_retries: 10
  # max_retry_wait: 10.0
  # sleep_on_rate_limit_recommendation: true # whether to sleep when azure suggests wait-times
  # concurrent_requests: 25 # the number of parallel inflight requests that may be made

parallelization:
  stagger: 0.3
  # num_threads: 50 # the number of threads to use for parallel processing

async_mode: threaded # or asyncio

embeddings:
  ## parallelization: override the global parallelization settings for embeddings
  async_mode: threaded # or asyncio
  llm:
    api_key: ${GRAPHRAG_API_KEY}
    type: openai_embedding # or azure_openai_embedding
    model: ${GRAPHRAG_EMBEDDING_MODEL}
    api_base: ${API_BASE}
    # api_version: 2024-02-15-preview
    # organization: <organization_id>
    # deployment_name: <azure_model_deployment_name>
    # tokens_per_minute: 150_000 # set a leaky bucket throttle
    # requests_per_minute: 10_000 # set a leaky bucket throttle
    # max_retries: 10
    # max_retry_wait: 10.0
    # sleep_on_rate_limit_recommendation: true # whether to sleep when azure suggests wait-times
    # concurrent_requests: 25 # the number of parallel inflight requests that may be made
    batch_size: 16 # the number of documents to send in a single request
    # batch_max_tokens: 8191 # the maximum number of tokens to send in a single request
    # target: required # or optional

chunks:
  size: 300
  overlap: 100
  group_by_columns: [id] # by default, we don't allow chunks to cross documents

input:
  type: file # or blob
  file_type: text # or csv
  base_dir: "input"
  file_encoding: utf-8
  file_pattern: ".*0731\\.txt$"
  # file_pattern: ".*\\.txt$"

cache:
  type: file # or blob
  base_dir: "cache"
  # connection_string: <azure_blob_storage_connection_string>
  # container_name: <azure_blob_storage_container_name>

storage:
  type: file # or blob
  base_dir: "output/${timestamp}/artifacts"
  # connection_string: <azure_blob_storage_connection_string>
  # container_name: <azure_blob_storage_container_name>

reporting:
  type: file # or console, blob
  base_dir: "output/${timestamp}/reports"
  # connection_string: <azure_blob_storage_connection_string>
  # container_name: <azure_blob_storage_container_name>

entity_extraction:
  ## llm: override the global llm settings for this task
  ## parallelization: override the global parallelization settings for this task
  ## async_mode: override the global async_mode settings for this task
  prompt: "prompts/entity_extraction.txt"
  entity_types: [product,group,job,feature,case,solution]
  max_gleanings: 0

summarize_descriptions:
  ## llm: override the global llm settings for this task
  ## parallelization: override the global parallelization settings for this task
  ## async_mode: override the global async_mode settings for this task
  prompt: "prompts/summarize_descriptions.txt"
  max_length: 500

claim_extraction:
  ## llm: override the global llm settings for this task
  ## parallelization: override the global parallelization settings for this task
  ## async_mode: override the global async_mode settings for this task
  enabled: true
  prompt: "prompts/claim_extraction.txt"
  description: "Any claims or facts that could be relevant to information discovery."
  max_gleanings: 0

community_report:
  ## llm: override the global llm settings for this task
  ## parallelization: override the global parallelization settings for this task
  ## async_mode: override the global async_mode settings for this task
  prompt: "prompts/community_report.txt"
  max_length: 2000
  max_input_length: 8000

cluster_graph:
  max_cluster_size: 10

embed_graph:
  enabled: false # if true, will generate node2vec embeddings for nodes
  # num_walks: 10
  # walk_length: 40
  # window_size: 2
  # iterations: 3
  # random_seed: 597832

umap:
  enabled: false # if true, will generate UMAP embeddings for nodes

snapshots:
  graphml: Ｔrue
  raw_entities: false
  top_level_nodes: false

local_search:
  # text_unit_prop: 0.5
  # community_prop: 0.1
  # conversation_history_max_turns: 5
  # top_k_mapped_entities: 10
  # top_k_relationships: 10
  # max_tokens: 12000

global_search:
  # max_tokens: 12000
  # data_max_tokens: 12000
  # map_max_tokens: 1000
  # reduce_max_tokens: 2000
  # concurrency: 32

If your settings have not been changed, and the original file is still in the folder, then it should use the cache in several places. For example, the text units (chunks) should be identical, so graph extraction should use the cache for those. However, and new entities and relationships extracted from the second file will trigger re-compute of the communities, and therefore all of the community summarization, which can be much of your overall expense. We're tracking more efficient incremental indexing with #741.

Hi, @natoverse ,
I have changed the file_pattern field in the input setting to deal with the specific file. Does this matter?
Below is how I change:
input:
type: file # or blob
file_type: text # or csv
base_dir: "input"
file_encoding: utf-8
file_pattern: ".*\.txt$"
file_pattern: ".*0731\.txt$"

I don't think it should matter - the key to getting an accurate cache is that we hash all of the LLM params and prompt so that identical API calls are avoided. This is done per step, so individual parameter changes should only affect the steps that rely on them.

Thank you @natoverse for your graphRAG and your answer,
I still have one question that is related to this topic:
Since I generated graphRAG using two files at first; however, I decided to build a graphRAG using one of them later. I am wondering whether the system needs to regenerate the entity summary because the description list may be changed resulting from the reduction of input documents. So as to the summaries of relationships and claims.

The entity/relationship extraction step is separate from the summarization. When extracting, each entity and relationship is given a description by the LLM. This will get the benefit of the cache. Before creating the community reports, the descriptions for each entity are combined into a single "canonical" description. This is also done by the LLMs, and if you have new instances of the entities, it should not use the cache.

Many thanks

authors: Edwin-poying natoverse

repo: microsoft/graphrag


text:
typescript makeStyles  doesn't accept local string css variables | Type 'string' is not assignable to type 'GriffelStyle'.

Hello, Griffle team, under the limitations page is detail that a workaround for runtime styles is to use local CSS variables.
Unfortanely typescript is complaining about makeStyles types Type 'string' is not assignable to type 'GriffelStyle'.
I wonder if this is a bug or am I doing something incorrectly? 🙇♂
const usePixelStyle = makeStyles({
  width: "var(--pkr-pixel-width)",
  height: "var(--pkr-pixel-height)",
})

This is my mistake, I forgot to add a "className"
const usePixelStyle = makeStyles({
	root: {
		width: "var(--pkr-pixel-width)",
  		height: "var(--pkr-pixel-height)",
	}
})

that's valid, forgot to add "root" or any other "className," closing it but keeping it in case someone else makes the same mistake.

@pukingrainbows can you please check #287? Is it clearer now?

authors: layershifter pukingrainbows

repo: microsoft/griffel


text:
Guidance on combining samples.

Hi there 👋🏾!
Is there any guidance on how to combine samples, say proactive notifications and tabs? (Those are the ones we want to combine for our submission).
I'm currently doing it manually, but as I'm about to run it, I'm almost certain I'll be all over the place trying to get them  to play nice.

Hi @irwinwilliams, looking forward to your project submission 😊
There is a sample code that you can take a look as a reference, it shows how bot and a tab work together in a single project: https://github.com/OfficeDev/TeamsFx-Samples/tree/dev/hello-world-bot-with-tab
There is also guidelines about configuring a tab in a bot: https://github.com/OfficeDev/TeamsFx/wiki/How-to-configure-Tab-capability-within-your-Teams-app
Or configuring a bot in a tab: https://github.com/OfficeDev/TeamsFx/wiki/How-to-configure-Bot-capability-within-your-Teams-app
I hope these guidelines help you. Let me know if you have any other questions. Looking forward to see what you;ve build! 🥳

Nice! Thanks, @aycabas!

authors: aycabas irwinwilliams

repo: microsoft/hack-together-teams


text:
[DP-900] 챌린지 완료 인증

깃헙 ID : https://github.com/cumedang

Microsoft Learn 프로필 링크 : https://learn.microsoft.com/ko-kr/users/21973339/

클라우드 스킬 챌린지 토픽/코드 : 애저 데이터 기초 챌린지/DP-900

/ok

authors: cumedang swookjy

repo: microsoft/hackers-ground


text:
Add "Code Structure" documentation

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

Can you fill up the PR description as well when you get a chance?

Can you fill out the description please?

Can you fill up the PR description as well when you get a chance?

@rapoth  Done

authors: imback82 pirz rapoth

repo: microsoft/hyperspace


text:
Generate a file of error detecting during the kiota generation

Log all warning and up to a log file
Name the file kiota.log
We overwrite on every generation

@sebastienlevert I believe that was meant for the 1.2 milestone, correct?
also may I suggest we call the file .kiota.log (dot in front) to standardize with .npm.log ?

Absolutely 1.2. Agree on the naming! Editing the original description.

authors: baywet sebastienlevert

repo: microsoft/kiota


text:
Do not create request builder classes in parallel

This causes quite severe corruption of the CodeModel. Many threads concurrently start creating the same models and start adding properties. The result is undefined for larger models and will be different on every run.
This probably fixes (or at least improves the situation for) #2442.
I ran into this trying to build an SDK with the fix for the renaming of properties, which sometimes worked and sometimes didn't work.

I really do not see any way to guarantee consistency when the CodeModel is built in a concurrent way. At the moment, multiple threads start creating the same CodeClasses and start building on those partly generated classes further on. Getting this to be thread safe will require a lot of explicit locking around building types, which will very likely remove any benefit from running this in parallel. For our API (about 10% the size of the Graph API), I didn't notice any change in performance. Generation is still done in just a few seconds. Generating the Go code does not take any longer than compiling it. IMHO the benefits of parallelism at this point do not outweigh the caveats of all the concurrency issues.

My simple benchmark on my gigantic machine :grin: (yes, it is and my colleagues think I'm mad carrying such a heavy 'laptop'), gave about the following results:
With parallelism: Total generation for Go takes a little over 30 seconds, of which about 11-12 is spent in step 7.
Without parallelism: Total generation takes about 60 seconds, of which 40 is spent in step 7.
So the speedup on my machine is roughly 30 seconds or 50%. But, the instability also counts. I had several runs with parallelism that crashed with an error. Given the unpredictability, I would blame the concurrency. Also, none of the runs with parallelism produced compiling code. The runs without parallelism did produce working code.
Compiling the Go code takes about 30 seconds. IMHO this must be added to the total build time. This reduces the speed gain to about 33%.

These are the proplems I've spotted for the creation of properties:

KiotaBuilder.CreatePropertiesForModelClass can be run by multiple threads at the same time for the same type. This results CodeClass.AddProperty to start resolving conflicts for identical properties.
CodeClass.AddProperty searches through the type hierarchy for existing properties, but has no guarantee that these types are actually built entirely. This often results in it not picking up properties, because the super type did exist, but its properties hadn't been created yet.

However, during my runs I've also seen problems building inheritance chains and I've got infos about unused types being pruned even though I'm sure they are being used in the API.
Building a complex, highly interconnected data structure concurrently really is asking for trouble if you ask me. I'd much rather have a tool that's highly reliable but a bit slower than a tool that's fast but spits out incorrect results every now and then. These concurrency issues will continue to haunt you and they will be very hard to find and nearly impossible to reproduce.
What's more, the concurrency causes code paths to be executed in unpredictable ways. This can cause Kiota to make different decisions depending on which happens first. Even if all concurrency issues get fixed, this can still cause Kiota to generate different code on subsequent runs on the same input. IMHO this should never happen in a tool like Kiota.

I've spent this morning further troubleshooting inconsistent results and most can be directly related to parallelism. For example, the Parallel.ForEach calls in TrimInheritedModels, GetDerivationIndex and GetInheritanceIndex result in missing types (quite frequent) and even the following stacktrace every now and then:
      System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'key'))
       ---> System.ArgumentNullException: Value cannot be null. (Parameter 'key')
         at System.ThrowHelper.ThrowArgumentNullException(String name)
         at System.Collections.Concurrent.ConcurrentDictionary`2.TryGetValue(TKey key, TValue& value)
         at Kiota.Builder.KiotaBuilder.<>c__DisplayClass91_0.<GetDerivedDefinitions>b__0(CodeClass x) in /home/papegaaij/vscode/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 1750
         at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToArray()
         at Kiota.Builder.KiotaBuilder.GetDerivedDefinitions(ConcurrentDictionary`2 models, CodeClass[] modelsInUse) in /home/papegaaij/vscode/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 1750
         at Kiota.Builder.KiotaBuilder.<>c__DisplayClass91_0.<GetDerivedDefinitions>b__1(CodeClass x) in /home/papegaaij/vscode/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 1751
         at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
2
         at System.Linq.Enumerable.UnionIterator`1.MoveNext()
         at System.Linq.Enumerable.OfTypeIterator[TResult](IEnumerable source)+MoveNext()
         at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
         at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
         at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)
         at System.Linq.Enumerable.DistinctIterator`1.ToArray()
         at Kiota.Builder.KiotaBuilder.GetRelatedDefinitions(CodeElement currentElement, ConcurrentDictionary`2 derivedIndex, ConcurrentDictionary`2 inheritanceIndex, ConcurrentDictionary`2 visited, Boolean includeDerivedTypes) in /home/papegaaij/vscode/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 1757
         at Kiota.Builder.KiotaBuilder.<>c__DisplayClass86_0.<TrimInheritedModels>b__1(CodeClass x) in /home/papegaaij/vscode/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 1695
         at System.Linq.Parallel.SelectManyQueryOperator`3.SelectManyQueryOperatorEnumerator`1.MoveNext(TOutput& currentElement, Pair`2& currentKey)
         at System.Linq.Parallel.HashRepartitionEnumerator`3.EnumerateAndRedistributeElements()
         at System.Linq.Parallel.HashRepartitionEnumerator`3.MoveNext(Pair`2& currentElement, Int32& currentKey)
         at System.Linq.Parallel.UnionQueryOperator`1.UnionQueryOperatorEnumerator`2.MoveNext(TInputOutput& currentElement, Int32& currentKey)
         at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()
         at System.Linq.Parallel.SpoolingTaskBase.Work()
         at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
      --- End of stack trace from previous location ---
         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
         at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
         --- End of inner exception stack trace ---
         at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)
         at System.Linq.Parallel.AsynchronousChannelMergeEnumerator`1.MoveNextSlowPath()
         at System.Linq.Parallel.QueryOpeningEnumerator`1.MoveNext()
         at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
         at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)
         at System.Linq.Enumerable.ToHashSet[TSource](IEnumerable`1 source, IEqualityComparer`1 comparer)
         at Kiota.Builder.KiotaBuilder.TrimInheritedModels() in /home/papegaaij/vscode/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 1695
         at Kiota.Builder.KiotaBuilder.CreateSourceModel(OpenApiUrlTreeNode root) in /home/papegaaij/vscode/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 588
         at Kiota.Builder.KiotaBuilder.GenerateClientAsync(CancellationToken cancellationToken) in /home/papegaaij/vscode/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 207
         at Kiota.Builder.KiotaBuilder.GenerateClientAsync(CancellationToken cancellationToken) in /home/papegaaij/vscode/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 228
         at kiota.Handlers.KiotaGenerationCommandHandler.InvokeAsync(InvocationContext context) in /home/papegaaij/vscode/kiota/src/kiota/Handlers/KiotaGenerationCommandHandler.cs:line 124

Other points of parallelism cause errors like duplicate properties and descriptions being different. For us, parallelism is only a hindrance. We really do not want those inconsistencies in the output. Actually, we don't want Kiota to run things in parallel at all, because we will mainly be running it on our CI/CD environment where runtime is less of an issue but high CPU usage is. Also, for our case the actual speedup isn't even measurable.
I decided to take a different approach: allow the number of threads to be specified via an environment variable. This gives the user the freedom to choose stability or speed. It also allows for easy testing of some of the bugs regarding unstable results.

Thank you for taking the time to collect the metrics and for sharing your experience.
Our vision with kiota is that it's fast enough to be added as part of a local build tool chain (e.g. gradle task) without impacting the experience negatively. Part of that is achieved through the lock file and skipping unnecessary generations, part of that is achieved through ensuring we use resources efficiently.
I can tell your machine is powerful without knowing the specs, on my machine the parallels version for beta takes about 2.5 minutes. Goes in the 10+ minutes without it. And my machine is far from being substandard.
For properties getting added twice: this is something I solved, at least partially in this PR if defects are remaining, let's iron them out.
Again, removing parallelization will reduce the likeliness of race conditions, but not eliminate them. That's because the OpenAPI.net parsing library doesn't guarantee any kind of order in the object model when parsing a document. The better thing to do is to implement the generation in such a way it doesn't assume order when it's reading some information.
Yes, kiota right now has some race conditions going on (especially for TypeScript) which I'm trying to fix before our upcoming release. But Microsoft Graph (v1) has 2000+ models, with multiple levels of inheritance, interconnected properties all over the place, used in over 5000 endpoints. And we use the main line (not the public release) to generate our full SDKs every week.
As you can see in the latest Go pull request the vast majority of changes come from comments (which are scrapped from our public docs). Other than that we get a couple of changes from metadata changes, but we're not getting radical differences from one week to another that'd indicate a major race condition in the code.
Now, I'm not saying the current race conditions cannot have a larger impact on different descriptions, but rather than overhauling the parallels processing and seriously degrading performance, let's instead go after them.
I hope that lengthy explanation helps providing context.

The biggest problems that still remain with the parallelism are with the property conflict resolution, which will really require some form of locking on the CodeClasses. A thread must only start building properties on a CodeClass when properties on all super classes are completely built. I think this can be implemented in AddModelDeclarationIfDoesntExist and AddModelDeclaration. These methods must both not return incomplete existing classes, but block instead. I do fear a potential for deadlocks though.
Another major issue is in the generation of the inheritance tree (see my previous comments). This algorithm either misses out on types or crashes.
Can this change please be merged. That would at least allow me to continue my work on my own product without having to work on a branch of Kiota. Our OpenAPI spec is smaller than the Graph spec, but a lot more interconnected. This results in totally incorrect results all the time, making Kiota completely unusable. The changes in this PR should not affect the parallelism by much. You can tweak the default of 5, maybe -1 for unlimited? The change to drop AsParallel() in TrimInheritedModels didn't seem to impact performance on my machine, but maybe you know of a way to have it follow the configured number of threads?
BTW. I'm also working on more changes to get the output more stable. I've already identified a spot where a type name was incorrectly capitalized, which could result in changes in comments, like in models/group.go in the PR you linked. At the moment I'm tracking down a changing type description. My goal is to have Kiota generate fully stable code and I'm quite close.

Also for context this comment was written at about the same time of your prior one, and I had not seen it when I posted mine :) (GitHub still doesn't do systematic refresh...)

Thanks for wrapping this up. I had to go out running yesterday.

authors: baywet papegaaij


text:
Regex match IB NICs

Recent changes to the ip show regex made IB devices no longer show up in node.nics.

@squirrelsc What was the goal of the last change for this regex expression? Was it important to match only ethernet devices?

Example Output:
6: ib0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2044 qdisc mq state UP group default qlen 256
link/infiniband 00:00:09:27:fe:80:00:00:00:00:00:00:00:15:5d:ff:fd:33:ff:7f brd 00:ff:ff:ff:ff:12:40:1b:80:76:00:00:00:00:00:00:ff:ff:ff:ff
inet 172.16.1.118/16 brd 172.16.255.255 scope global ib0
valid_lft forever preferred_lft forever
inet6 fe80::215:5dff:fd33:ff7f/64 scope link
valid_lft forever preferred_lft forever

link/infiniband 00:00:09:27:fe:80:00:00:00:00:00:00:00:15:5d:ff:fd:33:ff:7f brd 00:ff:ff:ff:ff:12:40:1b:80:76:00:00:00:00:00:00:ff:ff:ff:ff
inet 172.16.1.118/16 brd 172.16.255.255 scope global ib0
valid_lft forever preferred_lft forever
inet6 fe80::215:5dff:fd33:ff7f/64 scope link

It fixed an '\n' is not optional, so it's failed in some formats. But the original one doesn't like to include infiniband.

authors: kamalca squirrelsc

repo: microsoft/lisa


text:
Demo time - How to run / try it yourself

Is demo from "Demo time - How to run / try it yourself" still relevant? I can't find those tools in code. As I understand I have to have the EventHub (with capture) and Azure blob storage to test the solution.

Hi mawasak, you're right, we'll provide a longer video walkthrough to demonstrate the overall setup. In which scenario are you planning to use the accelerator? Managed app, or SaaS?

@chgeuer - A deep dive video is becoming a common ask...

authors: chgeuer code4clouds mawasak

repo: microsoft/metered-billing-accelerator


text:
MediaTransportControls progress is not updated when changing PlaybackSession.Position while playback is paused

Describe the bug
When the media playback is paused, the progress bar and the time information in the MediaTransportControls seek bar are not updated. The video content changes but not the other element of the MTC.
Steps to reproduce the bug
Repro app: MediaPlayerPositionChanged.zip
Steps to reproduce the behavior:

Create a basic app with a media player element:

<MediaPlayerElement
    x:Name="player"
    Grid.Row="1"
    AreTransportControlsEnabled="True"
    AutoPlay="True" />

Add a button to change the position of the media

private void OnAddThirtySeconds(object sender, RoutedEventArgs e)
{
    var newPosition = player.MediaPlayer.PlaybackSession.Position + TimeSpan.FromSeconds(30);
    if (newPosition > player.MediaPlayer.PlaybackSession.NaturalDuration)
    {
        newPosition = TimeSpan.Zero;
    }
    player.MediaPlayer.PlaybackSession.Position = newPosition;
}

Launch the application, open a media and pause it.
Change the playback position by calling OnAddThirtySeconds()

Expected behavior
The video frame displayed is the one at the new position, the seek bar and the elapsed duration text block have the new position value.
Actual behavior
The video image is the expected one but the seek bar and the elapsed duration are still displaying the time when the video was paused (1second in my screenshot):

As soon as I press play, the seek bar and the elapsed duration are updated with their expected value:

Additional information
This is working fine while playback is running.

@Austin-Lamb and @codendone I forget which team owns MPE, I think its reach?

I'm finding myself in the very same problem. Is there any update on this or a workaround you've found @vgromfeld ?

I know that an OS fix is coming but I don't know in which build it will be delivered.

Closing stale external bug. If you are still seeing this issue, please open a new issue in the Feedback Hub so that it may gather related logs/diagnostics.

authors: BladeXR StephenLPeters bpulliam vgromfeld

repo: microsoft/microsoft-ui-xaml


text:
ColorPicker's  selection pointer and tooltip updated inversely (mirrored) in ring shaped color spectrum

Describe the bug

While using ColorSpectrumComponents value as either ValueHue or SaturationHue  in ring shaped color spectrum , location of selection pointer and tooltip are mirrored to the location of mouse pointer
Sample:
ColorPicker_Issues.zip
Steps to reproduce the bug

Steps to reproduce the behavior:

Run the Sample
Select color from first and second ColorPicker's color spectrum.
Note:  Selection pointer and tooltip updated inversely(mirrored) in both ColorPickers.

Expected behavior

Selection pointer and tooltip should updated properly on where the color region is selected (based on current mouse pointer location).
Screenshots

Location of Selection pointer and tooltip are mirrored to the location of mouse pointer in the highlighted section.

Version Info

NuGet package version:

[WinUI 3 - Project Reunion 0.5 Preview: 0.5.0-prerelease]

Windows app type:

UWP
Win32

Yes

Windows 10 version
Saw the problem?

Insider Build (xxxxx)

October 2020 Update (19042)
Yes

May 2020 Update (19041)

November 2019 Update (18363)

May 2019 Update (18362)

October 2018 Update (17763)

April 2018 Update (17134)

Fall Creators Update (16299)

Creators Update (15063)

Device form factor
Saw the problem?

Desktop
Yes

Xbox

Surface Hub

IoT

Additional context

likely present in winui2 as well. I think we are likely just doing math wrong when these combinations of setting are used...

I'll take a look and see if we can fix this in WinUI 2.


text:
ColorPicker eating a lot of CPU and preventing App from closing when outside of the debugger

Describe the bug
When the application is compiled and executed outside of the debugger showing a color picker will prevent that application from closing normally and increase CPU usage drastically once you try to close it. For my machine it will rise from 0% usage to hover around 20%.
Steps to reproduce the bug

Compile the included project.
Open the executable outside of the debugger.
Change the color.
Close the application by clicking the X in the menu bar.
Observe a rise in cpu usage and a task that is not closing in the Task-Manager.

Expected behavior
Simply having a ColorPicker in the application should not prevent it from closing nor increase the cpu load drastically when trying to close it.
Screenshots
Application screenshot:

Usual CPU load:

CPU load when trying to close the application:

NuGet package version
WinUI 3 - Windows App SDK 1.2.2: 1.2.221209.1
Windows version
Windows 10 (21H2): Build 19044
Additional context
Here is some example code which is the packaged sample project from the Visual Studio integration that I changed to a basic unpackaged and self contained application only showing a ColorPicker.
ColorPickerExample.zip
The outlined line is the only code change:

The outlined lines are the 2 options added to the csproj:

This closing issue may be related to the crash at the exit caused by the colorpicker under Windows 10 as reported in https://github.com/microsoft/microsoft-ui-xaml/issues/7239. See also details in https://github.com/microsoft/microsoft-ui-xaml/issues/7239#issuecomment-1320957451.

#7239 was resolved with 1.2.3, is this also fixed?

I updated the WindowsAppSDK Nuget package to 1.2.230118.102 and this seems to be fixed.

authors: danielgruethling gabbybilka jschwizer99


text:
How to redirect the output of mimalloc to a file?

Hi, may I output these mimalloc's infomation to a file?
mimalloc: option 'show_errors': 1
mimalloc: option 'show_stats': 1
mimalloc: option 'eager_commit': 1
mimalloc: option 'eager_region_commit': 0
mimalloc: option 'reset_decommits': 0
mimalloc: option 'large_os_pages': 0
mimalloc: option 'reserve_huge_os_pages': 6
...

Looks like I can use mi_register_output:
    mi_output_fun(*output_handler) = [](const char* msg, void* arg)
    {
        // output to a file named "mimalloc.log"
        FILE* fp;
        if (0 != fopen_s(&fp, "mimalloc.log", "a"))
        {
            fprintf(fp, "%s\n", msg);
            fclose(fp);
        }
    };
    mi_register_output(output_handler, nullptr);

But it will open/close the file every time when mimalloc flushes the buffer, which may harm the performance. Could you please provide a demo on how to use it?

Would this work?
mi_output_fun(*output_handler) = [](const char* msg, void* arg)
{
    // output to a file named "mimalloc.log"
    static FILE* fp;
    static int initialized
    if (!initialized)
    {
        initialized = 1;
        if (!fopen_s(&fp, "mimalloc.log", "a"))
            fp = NULL;
    }

    if (fp)
    {
        fprintf(fp, "%s\n", msg);
        fflushfp);
    }
};
mi_register_output(output_handler, nullptr);

repo: microsoft/mimalloc


text:
Add an option to enable CORS for the editor css file

When the editor.main.min.css is loaded from CDN, a crossorigin': 'anonymous attribute need to be added to the link node in order to allow CORS. Otherwise the css file considered as un-trusted by the browser.
Is it possible to add the attribute to the link node, or to add a boolean option to add it?
Thanks,
Violet.

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!

authors: hediet sigalvo

repo: microsoft/monaco-editor


text:
wordBasedSuggestions: false does not turn off word-based completion

monaco-editor version: 0.13.1
Browser: Version 66.0.3359.139
OS: Mac OS X 10.12.6
Though the original issue #334 is resolved, setting wordBasedSuggestions: false still does not turn off word-based completion.
The issue can be reproduced in the playground:

When I hit Ctrl+Space after // I expect to not see word-based completion items such as Hello.

The bug is fixed, we just need to ship a new version of the editor.

Hi, I can still repro this problem in 0.17
suppressing the word based suggestions works in typescript but not in javascript.
Any ideas for a workaround?

authors: FintechOS alexandrudima aromanovich


text:
Support other SQL Collations

It would be very useful if images where published for each major SQL collation.
In the meantime, I'm having to support my own image for Latin1_General_CI_AS and SQL_Latin1_General_CP1_CI_AS: https://hub.docker.com/r/christianacca/mssql-server-windows-express/tags/

You can configure the collation for the mssql-server-linux image for now.  Once we complete the improvement for Windows containers they will have most or all of the same configuration settings as the Linux container image.

Hello, are there any updates on when this will actually happen? Has it happened?

Please sign up for SQL Server on Windows Containers EAP to receive the latest updates in this space.

authors: RaphHaddad amitmsft christianacca twright-msft

repo: microsoft/mssql-docker


text:
Calling Get-BCArtifactUrl for NextMinor returns the NextMajor artifact

Describe the issue
When running the Get-BCArtifactUrl for the nextminor artifact, it returns the nextmajor version instead.
Scripts used to create container and cause the issue
Get-BCArtifactUrl -country w1 -select NextMinor -sasToken $sasToken

Additional context

It happens all the time since 9th June 2022 3.20pm UK time.
It used to return the 20.2 artifact when the current version was 20.1

It looks like the 20.3 didn't start publishing - I have reported this to the team, who should look into this tomorrow first thing.

I see that 20.3 is now available. I'll close this ticket.

repo: microsoft/navcontainerhelper


text:
What does MutableScope mean?

what does mutables.MutableScope  mean? when should we use this class? I see that it is only used in ENAS example, but enter_mutable_scope method is not overrided. Could you explain it, thx!

Thanks @marsggbo for asking. The detailed document for the design of NNI NAS interface and how to write a NAS algorithm on NNI is still ongoing, and will be complete in release v1.4
For your question, we introduce MutableScope in the interface because some NAS algorithms require structural/hierarchical information, for example, which LayerChoices and InputChoice are within a cell. So a MutableScope is like a tree, it tells which LayerChoice, InputChoice, MutableScope are under it.
For ENAS controller, it adds one more time step in every boundary of cells, whose hidden state represents the corresponding cell. Some NAS algorithms do not care about the structural information, then they can simply ignore them.
For your last question, @ultmaster will give you detailed answer.

For this extra step, I think it's not mentioned in the paper, you can refer to enas code for details.
Writing your own mutator is experimental and not written in docs yet, but FYI, to implement a new mutator, there are two ways:

Inherit BaseMutator and implement a bunch of callbacks, like on_forward_layer_choice, enter_mutable_scope, each will be triggered at some place during the forward place. This is the way #1863 adopted. As the control flow is implemented in a callback manner, this is for advanced users only. For your question, enter_mutable_scope and exit_mutable_scope is triggered on the enter and exit event of mutable scope. Implement them if your mutator can leverage that knowledge.
Inherit Mutator and implement only sample_search and sample_final, which corresponds to sampling an architecture for search, and reporting an architecture for export, respectively. In this case, you need to implement none of the callback functions. In this case, forward method is automatically based on your selected architecture. As the information of mutable scope is already embedded in the tree-structured search space, you can leverage that information when traversing this tree.

TLDR: in ENAS example, the mutable scope is used to construct the structured search space, and overriding callback functions is not needed.

authors: QuanluZhang marsggbo ultmaster

repo: microsoft/nni


text:
NNI can't quantize bias?

Recently, i tried to apply NNI to my model(with biases), but i found that NNI only support ['weight', 'input', 'output'] quantitation, is that NNI do not support bias quantization(in QAT)?

@wZuck thanks for pointing it out. bias has not been supported in the current implementation of quantization. We will support it in the next release soon.

authors: QuanluZhang wZuck


text:
Marshalling: Events

.NET events should be projected to JS, somehow.
There is no universal standard API or pattern for JS events; there are slightly different approaches taken for DOM events, Node.js, VS Code, and other projects. (I personally prefer the VS Code events model.)

Personally, I like a lot the Deno's general concept of trying to preserve web standards - a thing that Node broadly neglected til more recently, but seems to be "adjusting its route" to it.
So, just giving an opinion (just theoric) here, I would try to find the most standard way possible in JS that adheres to the .NET standards (like going with delegates or something that could mimic technically the JS behavior).
For reference:

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
https://nodejs.org/api/events.html#nodejs-eventtarget-vs-dom-eventtarget

Thanks for all the great work, @jasongin!

authors: jasongin luanmm

repo: microsoft/node-api-dotnet


text:
support non-x86_64 targets

It would be useful to support fuzzing non-x86_64 targets on existing Azure VMs.
For fully self-contained targets, such as AARCH64-based libfuzzer targets, we can get away with running within qemu-user.
Fully-featured QEMU VMs would be required for anything more complex.

We're moving forwards with qemu-user for now.  If users have a need for fully featured qemu based fuzzing, we can revisit this.

repo: microsoft/onefuzz


text:
feat(atenlib): establish the aten-lib directory

Stack from ghstack (oldest at bottom):

#208
#223
#212
-> #202

@fatcat-z please approve if it looks good. thanks!

repo: microsoft/onnx-script


text:
jinja2==2.11.3 conflict with newest markupsafe, which cause init tensorboard crash.

+ python /usr/local/pai/init.d/initializer.py /usr/local/pai/runtime.d/job_config.yaml /usr/local/pai/secrets/secrets.yaml /usr/local/pai/user-extension-secrets/userExtensionSecrets.yaml /usr/local/pai/token-secrets/token /usr/local/pai/plugins /usr/local/pai/runtime.d taskrole
2022-04-14 11:30:23,269 - INFO - initializer.py:235 - loading yaml from /usr/local/pai/runtime.d/job_config.yaml
2022-04-14 11:30:23,284 - INFO - initializer.py:173 - Starting to prepare plugin ssh
2022-04-14 11:30:23,466 - INFO - initializer.py:52 - 2022-04-14 11:30:23,466 - INFO - init.py:118 - Ssh runtime plugin perpared
2022-04-14 11:30:23,481 - INFO - initializer.py:173 - Starting to prepare plugin teamwise_storage
2022-04-14 11:30:23,933 - INFO - initializer.py:52 - This plugin is deprecated, will ignore this plugin
2022-04-14 11:30:24,071 - INFO - initializer.py:173 - Starting to prepare plugin tensorboard
2022-04-14 11:30:24,129 - INFO - initializer.py:52 - Traceback (most recent call last):
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - File "/usr/local/pai/plugins/tensorboard/init.py", line 23, in <module>
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - from jinja2 import Template
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - File "/usr/local/lib/python3.7/site-packages/jinja2/__init__.py", line 12, in <module>
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - from .environment import Environment
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 25, in <module>
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - from .defaults import BLOCK_END_STRING
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - File "/usr/local/lib/python3.7/site-packages/jinja2/defaults.py", line 3, in <module>
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - File "/usr/local/lib/python3.7/site-packages/jinja2/filters.py", line 13, in <module>
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - from markupsafe import soft_unicode
2022-04-14 11:30:24,130 - INFO - initializer.py:52 - ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.7/site-packages/markupsafe/__init__.py)
2022-04-14 11:30:24,135 - ERROR - initializer.py:56 - failed to run /usr/local/pai/plugins/tensorboard/init.py, error code is 1

I created a hotfix for this issue. To use the hotfix. Please run kubectl edit ds rest-server-ds first,
Then change the env LAUNCHER_RUNTIME_IMAGE to siaimes/openpai-runtime:v0.1.12-hp3
- name: LAUNCHER_RUNTIME_IMAGE
  value: siaimes/openpai-runtime:v0.1.12-hp3

If you want to persist the configuration, please follow this:
https://github.com/microsoft/openpai-runtime/issues/33#issuecomment-730818664

repo: microsoft/openpai-runtime


text:
[Question] How to import an SSL certificate?

Hi! I'm targeting a host that requires SSL certificate validation, so I've installed the certificate on the machine that I'm running the tests from, and that works just fine in headed mode, however, in headless mode, I am unable to connect to the host (using Chromium, for this particular implementation). I've extracted the CRT and KEY files and attempted to import them programmatically, but I've reached a bit of a roadblock and I'm not entirely sure how to feed these to the browser context. Any suggestions that might point me in the right direction, please?

This sounds like a duplicate of https://github.com/microsoft/playwright/issues/1799 to me.

This sounds like a duplicate of microsoft/playwright#1799 to me.

Hi @mxschmitt. As far as I can tell, and please correct me if I'm wrong, the referenced issue seems to me to be slightly different from this one, in the sense that it seems to refer to the popup that you get for selecting a certificate, which I've already worked out by creating a registry entry for the browsers I'm using.
e.g.
[HKEY_CURRENT_USER\SOFTWARE\Policies\Chromium\AutoSelectCertificateForUrls]
"1"="{\"pattern\":\"https://example.net/\",\"filter\":{\"ISSUER\":{\"CN\":\"CERT-NAME\"}}}"

Don't get me wrong, having the ability to do this programmatically without having to resort to registry hacks would be amazing, but this particular issue is not a blocker for my organization, whereas not being able to import a certificate currently is.
That being said, the answer seems to be more related to the issue I'm having so I will try to port that solution to C# code hoping it's a straightforward port. The implementation of a feature to support this at the API level would be really nice, though.
Thank you very much for the help, Max, I hope the solution from your referenced issue gets me back on track.

Hi @mxschmitt, unfortunately I've hit a roadblock again, as I am unable to find an equivalent for...
agentOptions: {
    ca: fs.readFileSync('./certs/ca.pem'),
    pfx: fs.readFileSync('./certs/user_cert.p12'),
    passphrase: fs.readFileSync('./certs/user_cert.p12.pwd'),
}

...which I assume would need to be part of a RouteContinueOptions object passed as the argument to a ContinueAsync(options) call, or maybe set an IRequest property?
Any help you could provide with this issue would be greatly appreciated, as I've invested a significant amount of time and staff resources on this particular automation project and this issue is completely blocking us from going live at the moment.

If I understand your issue correctly, this  is related to https://github.com/microsoft/playwright/issues/1799. I suggest that you upvote that issue so that we have an effective way of gauging interest.
As a workaround, can you try having the user certificate imported on the OS level?

Brilliant, thank you very much, I've upvoted the related issue and I'll give this snippet a try!

Just to clarify one thing, did you make sure you're importing to the right cert store? I think My is correct, but I'm not 100% sure at the moment.

Hi @avodovnik. Yeah, I've tried all permutations of StoreName and StoreLocation. When I do it manually I normally import the certificate in the Personal store for the Current User.

Closing since we track this feature request upstream.

There doesn't seem to be any progress on https://github.com/microsoft/playwright-dotnet/issues/1601 yet.

authors: Xen0byte avodovnik mxschmitt

repo: microsoft/playwright-dotnet


text:
[Bug]: .NET Framework 4.8 Driver not found in Temporary ASP.NET Files

Playwright version
1.17.2
Operating system
Windows
What browsers are you seeing the problem on?
Chromium
Other information
Project type : ASP.NET Web Application (.NET Framework)
Target framework: .NET Framework 4.8
What happened? / Describe the bug
Steps to Reproduce

Create an ASP.NET Web Application (Web Forms or MVC) on .NET 4.8
Install Microsoft.Playwright package via NuGet Package Manager
Copy sample code from Getting started page into default page code-behind (via Page_Load event or default controller's action)
Visit default page to trigger sample code

Expected
Screenshot generated successfully with HTTP 200 OK response.
Actual
Display YSOD with following information:
Source Error:
var playwright = await Microsoft.Playwright.Playwright.CreateAsync();

Stack Trace:
[PlaywrightException: Driver not found: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\77619d23\815ed4b7\assembly\dl3\.playwright\node\win32_x64\playwright.cmd]
   Microsoft.Playwright.Helpers.Paths.GetExecutablePath() +299
   Microsoft.Playwright.Transport.StdIOTransport.GetProcess() +38
   Microsoft.Playwright.Transport.StdIOTransport..ctor() +77
   Microsoft.Playwright.<CreateAsync>d__0.MoveNext() +61
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +29
   Zephyr.TestDrive.Playwright.Web.<GenerateScreenshot>d__6.MoveNext() in D:\VS\Zephyr.TestDrive.Playwright.Web\Index.aspx.cs:34
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Runtime.CompilerServices.TaskAwaiter.GetResult() +27
   Zephyr.TestDrive.Playwright.Web.Index.Page_Load(Object sender, EventArgs e) in D:\VS\Zephyr.TestDrive.Playwright.Web\Index.aspx.cs:28
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853

Remarks

.playwright folder was not found under bin folder after rebuilding project as in Console Application

Copying .playwright folder to web app bin folder didn't help
Copying .playwright folder to location reported in stack trace will cause page load to wait indefinitely

Same behaviour was observed when installing browser locally or via custom ExecutablePath with BrowserTypeLaunchOptions

Code snippet to reproduce your bug
// Invoke method in web page with following statement:
GenerateScreenshot().GetAwaiter().GetResult();

private async Task GenerateScreenshot()
{
    var playwright = await Microsoft.Playwright.Playwright.CreateAsync();
    var browser = await playwright.Chromium.LaunchAsync();
    var page = await browser.NewPageAsync();

    await page.GotoAsync("https://playwright.dev/dotnet");
    await page.ScreenshotAsync(new PageScreenshotOptions
    {
        Path = "screenshot.png"
    });
}

Relevant log output
No response

Folding into #1842.

authors: Zephyr-Koo mxschmitt


text:
[BUG] Playwright 1.29.0 is not yet available on Maven Central

Context:
Playwright 1.29.0 is not yet available on Maven Central, latest version available right now is 1.28.1 released Nov 29, 2022
That cause compilation issues while following  the Getting Started, Installation, Usage section here.  The page is referencing the 1.29.0 version in the pom.xml
A temporal solution is using 1.28.1
https://mvnrepository.com/artifact/com.microsoft.playwright/playwright

Code Snippet
    <dependency>
      <groupId>com.microsoft.playwright</groupId>
      <artifactId>playwright</artifactId>
      <version>1.29.0</version>
    </dependency>

Describe the bug
Missing artifact com.microsoft.playwright:playwright:jar:1.29Java(0)

1.29.0 is now available.

authors: emecas yury-s

repo: microsoft/playwright-java


text:
[BUG]: Power BI Admin Dashboard

Describe the bug
When I try to load data in Power BI, I receive the below error.
Screenshots

Hello. I'm afraid we need more infromation:

What version of Core do you have installed?
What version of the PBI desktop are you using?
What is the name of the PBI template you are trying to open?

Core - 1.85
PBI Desktop - 2.88.1385.0 latest version]
PBI Template - 2021-02-01

Would you mind trying with the version just shipped today?
2021-02-02.pbit
I dont repro the issue but perhaps someone else did and already fixed wit that update.

Issue resolved. Thank You @JeneferM-MSFT

repo: microsoft/powerapps-tools


text:
Importing solution with deployment settings file does not update environment variable

We have a model-driven Power App that we move from DEV/TEST to STAGING to PROD using Azure pipelines.
The solution is exported as "managed" and this managed solution is then deployed to STAGING subsequently to PROD.
We have a single environment variable that needs to be updated when importing to STAGING/PROD. We have created a deployment settings file with this content:
{
    "EnvironmentVariables": [
      {
        "SchemaName": "gp_WebAPIURI",
        "Value": "https://org0_staging.api.crm4.dynamics.com"
      }
    ]
  }

We have configured the "Solution Import" task like this:
- task: PowerPlatformImportSolution@2
  inputs:
    authenticationType: 'PowerPlatformSPN'
    PowerPlatformSPN: 'app STAGING'
    SolutionInputFile: 'D:\a\1\s\solution_managed.zip'
    #SolutionInputFile: '$(Pipeline.Workspace)/app_managed/solution_managed.zip'
    AsyncOperation: false
    ConvertToManaged: false
    UseDeploymentSettingsFile: true
    DeploymentSettingsFile: 'D:/A/1/app_managed/s/pipelines/deployment-settings_staging.json'
- task: PowerPlatformPublishCustomizations@2
  inputs:
    authenticationType: 'PowerPlatformSPN'
    PowerPlatformSPN: 'app STAGING'
    #Environment: '$(BuildTools.EnvironmentUrl)'
    AsyncOperation: true
    MaxAsyncWaitTime: '60'

The Import task is finished successfully and we can see in the logs that the deployment settings file is loaded
##[debug]UseDeploymentSettingsFile=true
##[debug]DeploymentSettingsFile=D:\A\1\app_managed\s\pipelines\deployment-settings_staging.json

  'Calling pac cli inputs: solution import --path D:\\a\\1\\s\\app_managed.zip --async false --force-overwrite false --publish-changes false --skip-dependency-check false --convert-to-managed false --max-async-wait-time 60 --activate-plugins true --skip-lower-version false --settings-file D:\\A\\1\\app_managed\\s\\pipelines\\deployment-settings_staging.json --log-to-console'
[ 'info: bolt.cli.CommandProcessor[0]' ]
[ '      StartExecutingVerb (Verbs: ["solution","import"])' ]
[ 'info: bolt.cli.Verb[0]' ]

[
  "      Executing verb 'solution import' with arguments --path,--async,--force-overwrite,--publish-changes,--skip-dependency-check,--convert-to-managed,--max-async-wait-time,--activate-plugins,--skip-lower-version,--settings-file."
]

But nothing happens - the environment variable is not updated with the new value.
I am kind of at a loss here - I cannot figure out why it is not updated as per the configuration.
What am I doing wrong here?
Thanks 😊

@jrossstocholm Can you try setting the OverwriteUnmanagedCustomizations parameter to true on your solution import task. I'm guessing you have an unmanaged layer on your Environment Variable component

@jrossstocholm Can you try setting the OverwriteUnmanagedCustomizations parameter to true on your solution import task. I'm guessing you have an unmanaged layer on your Environment Variable component

I do not have any unmanaged layers on my environment variables. However - I have have been able to fix the issue by clearing the environment variable before exporting the solution. This enables me to supply the correct value for my staging environment. I know that this is not a permanent fix - but it works for now 😊.
I will close this ticket now and revert to it when I have time to look into the real issue again.
Thank you.

authors: jrossstocholm parvezghumra

repo: microsoft/powerplatform-build-tools


text:
Missing info for numpy

Environment data

Language Server version: v2020.7.2
OS and version: macOS
Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.10

Expected behaviour
When I hover over np.ndarray I expected to see (class) ndarray
Actual behaviour
When I hover over np.ndarray it says (import) ndarray: Unknown
Code Snippet / Additional information

import numpy as np

def f(n: np.ndarray):
    pass

numpy 1.18.1

Much of numpy is compiled. We currently don't have a scraper that will create type stubs for compiled modules. Therefore, for now, a fix would be for numpy to ship stubs / annotations to describe their code, which I believe that they have merged. I'd be curious if this works better in numpy 1.19 (which I think has the stubs, but I'm unsure).

Thanks for the tip @jakebailey ! I've upgraded to numpy 1.19.1 but unfortunately, I'm still encountering the above.

I'm going to retitle this and use this to deduplicate numpy issues.

Note: there's already been a PR merged into numpy (https://github.com/numpy/numpy/pull/16515) that adds type stubs (these used to be in a separate repo), but the commit isn't in a release yet. So, this should be working better soon.

There are other packages with this same problem (i.e. Pysam). Is it possible to add a setting to disable is not a known member of module to Pylance?

Is this issue also including the problem that doc strings are not displayed for some numpy functions such as numpy.arange? Note: for other functions like numpy.zeros_like the doc strings are displayed correctly.

Yes. These functions are from compiled modules; there's no source code we can read to obtain them. Some of these functions are showing up only because numpy has declared they exist in their __all__ expression, but we aren't able to actually find the definition (so assume Unknown).
Numpy's next release is supposed to include stubs, which will make these functions known, however the docstrings are still only going to be in the compiled module where we can't access them without actually running Python and live importing the module to extract it.

Looks like the stubs are coming in NumPy 1.20. It's not clear to me if this will help with auto-completion in situations such as the following:
def test() -> np.ndarray:
    return np.arange(5)

x = test()
# x. <tab> doesn't give me any ndarray completions and the hover-text for test() says it returns Any

When I select jedi as the language server I don't have this problem, but I guess jedi must do this by

actually running Python and live importing the module to extract it.

Perhaps this issue is relevant? ENH: Add annotations to ndarray and generic

I forgot to update this, but as of the most recent release we should be able to find many more things in numpy than previously; we'd appreciate feedback about other things that you're seeing in numpy, however.

I have upgraded to the newest version. But it alse can't catch the type returned by frequently-used api like:
`a = np.array(1)
Pylance think the type of a is Any`
May the support for numpydoc handle more problems?

The stubs are generated directly from the compiled numpy code; we don't know anything more than that and just assume Any past there. Better types will come from numpy's new stubs. Parsing docstrings is a lot tricker and not something I would expect us to try for return types.

@jakebailey Since you said feedback about problems we see in numpy is appreciated...
np.linspace(1, 2, 3).tolist()

causes Pylance to report
Cannot access member "tolist" for type "tuple[Any, Any | float]"
  Member "tolist" is unknownPylance (reportGeneralTypeIssues)

The next release includes some improvements to our source mapper which should help get numpy docs and navigation:

The next release includes some improvements to our source mapper which should help get numpy docs and navigation:

Does that release shows np.logical_and, np.logical_or, etc.  as well?
Current version lacks it:

Are you on at least numpy 1.20? That function is defined in their stubs and should appear, but may not on older versions of numpy without type info.

thanks. upgrading to 1.20 version helped!

Much of numpy is compiled. We currently don't have a scraper that will create type stubs for compiled modules. Therefore, for now, a fix would be for numpy to ship stubs / annotations to describe their code, which I believe that they have merged. I'd be curious if this works better in numpy 1.19 (which I think has the stubs, but I'm unsure).

Hi @jakebailey , I am new to vscode, and also encounter this issue. I understand that these compiled packages are hard to get the type info. But I notice that Pycharm can detect those types accurately, any idea how they make this? Thanks in advance!

Not sure if this will be of any help, but the next 1.21 release should improve many of the annotations.
Notably this includes replacing all Any-based placeholders with explicit function definitions: https://github.com/numpy/numpy/issues/18838.

Much of numpy is compiled. We currently don't have a scraper that will create type stubs for compiled modules. Therefore, for now, a fix would be for numpy to ship stubs / annotations to describe their code, which I believe that they have merged. I'd be curious if this works better in numpy 1.19 (which I think has the stubs, but I'm unsure).

Hi @jakebailey , I am new to vscode, and also encounter this issue. I understand that these compiled packages are hard to get the type info. But I notice that Pycharm can detect those types accurately, any idea how they make this? Thanks in advance!

Without reading their implementation, either by running the library to obtain info at runtime (scraping), or by hardcoding, both of which we do not do. We have prescraped stubs for some info, but largely rely on numpy itself to provide types.

Not sure if this will be of any help, but the next 1.21 release should improve many of the annotations.
Notably this includes replacing all Any-based placeholders with explicit function definitions: numpy/numpy#18838.

Hm, I could have sworn this was to be there for 1.20.3, but maybe only a small subset was backported.

Hm, I could have sworn this was to be there for 1.20.3, but maybe only a small subset was backported.

These were two different, albeit related, issues:

The annotations for a few functions weren't picked up.
Most objects were annotated as Any.

The first issue was indeed fixed in 1.20.3, the second one is scheduled for 1.21.

new numpy release with improved annotations https://github.com/numpy/numpy/releases/tag/v1.21.0rc1

In my case, if a numpy array A is not created with "A=np.zeros()" or "A=np.empy()", then pylance can't recognize the property A.shape. For example, if A is created with "np.frombuffer()".

If you select "Go to Declaration" for frombuffer, you'll be taken to the place where this function is defined in numpy. I have the latest version installed, and it looks like that function isn't properly annotated with a return type.
def frombuffer(buffer, dtype=..., count=..., offset=..., *, like=...): ...

So this is bug (an omission) within the numpy library. You can report the bug (or better yet, submit a PR) in the numpy repo.

@erictraut  Thanks. I see now.

FYI, annotations for from_buffer were added back in https://github.com/numpy/numpy/pull/19237.
They'll be available on pypi with the 1.22 release in a few months, but they are already on the master branch.

original issue fixed.
new numpy pre-release is out https://github.com/numpy/numpy/releases/tag/v1.22.0rc1
any further missing numpy type annotations should be logged there.

authors: BvB93 aboettcher bschnurr dcervenkov erictraut ggydush-fn jakebailey kong13661 neighthan randallpittman sweettyler tekumara vandesa003 wvolkov

repo: microsoft/pylance-release


text:
Pytorch Backends Module Cannot Be Detected

In the code below, I can successfully import the torch package, but when I use torch.backends, Pylance gives me an error that the backends module cannot be found. However, the strange thing is that my code can run correctly, and I can directly import torch.backends, where Pylance does not give me an error. I wonder how to solve this problem.
# -*- coding: utf-8 -*-
import torch
from torch.backends import cudnn

if __name__ == '__main__':
    torch.backends.cudnn.benchmark = torch.backends.cudnn.is_available()
    cudnn.benchmark = cudnn.is_available()

Environment
Windows 10 Pro 21H2
Python 3.10.4
Visual Studio Code 1.19.1 (System Setup)
Python Extension v2022.10.1
Pylance Extension v2022.7.30
Python Virtual Environment Packages
Package                 Version       |  Package                 Version
----------------------- ------------  |  ----------------------- ------------
absl-py                 1.1.0         |  tqdm                    4.64.0
asttokens               2.0.5         |  traitlets               5.1.1
autopep8                1.6.0         |  typing_extensions       4.3.0
backcall                0.2.0         |  urllib3                 1.26.10
cachetools              5.2.0         |  visdom                  0.1.8.9
certifi                 2022.6.15     |  pyasn1-modules          0.2.8
charset-normalizer      2.1.0         |  pycodestyle             2.8.0
colorama                0.4.5         |  pydocstyle              6.1.1
cycler                  0.11.0        |  pyflakes                2.4.0
debugpy                 1.5.1         |  Pygments                2.11.2
decorator               5.1.1         |  pyasn1                  0.4.8
entrypoints             0.4           |  pyasn1-modules          0.2.8
executing               0.8.3         |  pycodestyle             2.8.0
fonttools               4.34.4        |  pydocstyle              6.1.1
google-auth             2.9.1         |  pyflakes                2.4.0
google-auth-oauthlib    0.4.6         |  Pygments                2.11.2
grpcio                  1.47.0        |  pylama                  8.3.8
idna                    3.3           |  pyparsing               3.0.9
IProgress               0.4           |  python-dateutil         2.8.2
ipykernel               6.9.1         |  pytz                    2022.1
ipython                 8.3.0         |  pywin32                 302
jedi                    0.18.1        |  pyzmq                   22.3.0
jsonpatch               1.32          |  requests                2.28.1
jsonpointer             2.3           |  requests-oauthlib       1.3.1
jupyter-client          7.2.2         |  rsa                     4.8
jupyter-core            4.10.0        |  scipy                   1.8.1
kiwisolver              1.4.3         |  seaborn                 0.11.2
Markdown                3.3.7         |  setuptools              61.2.0
matplotlib              3.5.2         |  six                     1.16.0
matplotlib-inline       0.1.2         |  snowballstemmer         2.2.0
mccabe                  0.7.0         |  stack-data              0.2.0
nest-asyncio            1.5.5         |  tensorboard             2.9.1
numpy                   1.23.0        |  tensorboard-data-server 0.6.1
oauthlib                3.2.0         |  tensorboard-plugin-wit  1.8.1
packaging               21.3          |  tensorboardX            2.5.1
pandas                  1.4.3         |  toml                    0.10.2
parso                   0.8.3         |  torch                   1.12.0+cu116
pickleshare             0.7.5         |  torch-tb-profiler       0.4.0
Pillow                  9.2.0         |  torchaudio              0.12.0+cu116
pip                     21.2.4        |  torchfile               0.1.0
prompt-toolkit          3.0.20        |  torchvision             0.13.0+cu116
protobuf                3.19.4        |  tornado                 6.1
pure-eval               0.2.2         |  wcwidth                 0.2.5
pyasn1                  0.4.8         |  websocket-client        1.3.3
pyasn1-modules          0.2.8         |  Werkzeug                2.1.2
pycodestyle             2.8.0         |  wheel                   0.37.1
pyasn1                  0.4.8         |  wincertstore            0.2

Your code is relying on fragile side effects of the Python import mechanism.
You're first importing torch, which does not import the submodule backends. If you were to access torch.backends after the first import, your code would likely crash. You're then importing the submodule torch.backends.cudnn and assigning the module to the local symbol cudnn. Later, your code is relying on the side effect that the backends attribute of the torch module was populated as a side effect of the second import statement.
Pylance intentionally does not model such side effects. In general, they cannot be modeled statically. Code should not rely on such side effects, so it is intentionally flagged as an error.
If your code is going to depend on accessing torch.backends.cdnn, it should include the statement import torch.backends.cdnn. Or if you would prefer to stick with the statement from torch.backends import cdnn, then you should use the local symbol cdnn to access the cdnn submodule.

Thank you for your reply. It is very helpful to me.
You mentioned in your reply that

If you were to access torch.backends after the first import, your code would likely crash.

But It seems that there are no similar statements in the official documents of PyTorch. In the doucuments, torch.backends seems to be used directly such as GPU specific optimizations and TensorFloat-32(TF32) on Ampere devices.
Besides, I wrote the following testing code, and no crash occurred:
# -*- coding: utf-8 -*-

import torch

if __name__ == '__main__':
    print(torch.backends.cuda.is_built())
    print(torch.backends.cudnn.is_available())
    print(torch.backends.cudnn.version())
    print(torch.backends.cudnn.enabled)
    print(torch.backends.cudnn.allow_tf32)
    print(torch.backends.mps.is_available())
    print(torch.backends.mps.is_built())
    print(torch.backends.openmp.is_available())
    print(torch.backends.mkldnn.is_available())

Could you please explain more on this to me so that there will be less potential problems in my code. Thank you so much!

Pytorch is a "py.typed" library, which means that it includes a "py.typed" file within its root directory. When such a file is present, a library indicates that it has type information. It also means that the library must follow certain conventions that indicate which symbols are meant to be part of the public interface contract and which are meant to be private implementation details. For details, refer to this documentation.
In the case of Pytorch, the torch/__init__.py file indicates that the backends submodule is not re-exported from the top-level module. Therefore, you need to import it with an explicit import torch.backends statement within your code. If the backends submodule is intended to be re-exported from the top-level module, the torch/__init__.py file will need to be updated to indicate this. You could file a bug report in the Pytorch github project.

Got it! Thank you very much for your reply.

Hi @erictraut, thanks for your explanation. However, I'm still kind of confused how I should deal with this kind of "error" messages.
The very begining
import torch

torch.backends.cuda.matmul.allow_tf32 = False
      ^^^^^^^^
torch.backends.cudnn.allow_tf32 = False
      ^^^^^^^^

If I import torch.backends, then
import torch.backends

torch.backends.cuda.matmul.allow_tf32 = False
               ^^^^
torch.backends.cudnn.allow_tf32 = False
               ^^^^^

and then
import torch.backends.cuda
import torch.backends.cudnn

torch.backends.cuda.matmul.allow_tf32 = False
torch.backends.cudnn.allow_tf32 = False
                     ^^^^^^^^^^

The last of those code blocks is correct. It works for me without any type errors. If you're seeing an error here, I suspect it's because you have an older version of torch that has a bug. If you upgrade to torch 1.12.1, it should work fine.

Thank you. You are right, I'm using torch 1.11.0.

authors: erictraut fang-d yzhang-gh


text:
Pylance not working at all.

Language Server version: v2020.9.6
OS and version: ArchLinux, Kernel 5.8.10-arch1-1
Python version (& distribution if applicable, e.g. Anaconda): 3.8.5
VSCode version: 1.49.0

Hi, it's not working at all whatsoever. I did change the languageServer to pylance in settings, I have python pacakge installed
Logs

python ~/.vscode-oss/extensions/ms-python.python-2020.9.111407/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
python ~/.vscode-oss/extensions/ms-python.python-2020.9.111407/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Error 2020-09-24 20:27:45: Listing Nuget Packages, Class name = d, completed in 1ms, has a falsy return value, Arg 1: "https://pvsc.blob.core.windows.net", Arg 2: "-stable", Arg 3: "", Arg 4: "https://pvsc.azureedge.net", Arg 5: Uri:/tmp/test.py, Return Value: undefined [SyntaxError: Container name format is incorrect.
at f (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:184960)
at v.t.containerNameIsValid (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:185222)
at /home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:410066
at Object.t.validateArgs (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:189467)
at z._listBlobsOrDircotriesSegmentedWithPrefix (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:409993)
at z.listBlobsSegmentedWithPrefix (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:367960)
at /home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:47:313790
at new Promise ()
at listBlobStoreCatalog (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:47:313768)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async listPackages (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:47:313474)]
Error 2020-09-24 20:27:45: Get latest language server nuget package version, Class name = d, completed in 1ms, has a falsy return value, Arg 1: Uri:/tmp/test.py, Arg 2: "0.0.0", Return Value: undefined [SyntaxError: Container name format is incorrect.
at f (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:184960)
at v.t.containerNameIsValid (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:185222)
at /home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:410066
at Object.t.validateArgs (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:189467)
at z._listBlobsOrDircotriesSegmentedWithPrefix (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:409993)
at z.listBlobsSegmentedWithPrefix (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:367960)
at /home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:47:313790
at new Promise ()
at listBlobStoreCatalog (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:47:313768)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async listPackages (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:47:313474)] {
vslsStack: [
CallSite {}, CallSite {},
CallSite {}, CallSite {},
CallSite {}, CallSite {},
CallSite {}, CallSite {},
CallSite {}, CallSite {},
CallSite {}, CallSite {}
]
}
Error 2020-09-24 20:27:45: Get latest version of language server, Class name = f, completed in 2ms, has a falsy return value, Arg 1: Uri:/tmp/test.py, Return Value: undefined [SyntaxError: Container name format is incorrect.
at f (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:184960)
at v.t.containerNameIsValid (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:185222)
at /home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:410066
at Object.t.validateArgs (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:189467)
at z._listBlobsOrDircotriesSegmentedWithPrefix (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:409993)
at z.listBlobsSegmentedWithPrefix (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/node_modules/azure-storage.js:211:367960)
at /home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:47:313790
at new Promise ()
at listBlobStoreCatalog (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:47:313768)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async listPackages (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:47:313474)] {
vslsStack: [
CallSite {}, CallSite {},
CallSite {}, CallSite {},
CallSite {}, CallSite {},
CallSite {}, CallSite {},
CallSite {}, CallSite {},
CallSite {}, CallSite {}
]
}
Error 2020-09-24 20:27:45: Get language server folder name, Class name = f, completed in 5ms, has a falsy return value, Arg 1: Uri:/tmp/test.py, Return Value: undefined [TypeError: Cannot read property 'version' of undefined
at getLanguageServerFolderName (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:24:193095)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:94:5)]
Error 2020-09-24 20:27:45: Failed to start language server, Class name = r, completed in 9ms, has a falsy return value, Arg 1: Uri:/tmp/test.py, Arg 2: {"architecture":3,"path":"/usr/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.5-final","major":3,"minor":8,"patch":5,"prerelease":["final"],"build":[],"version":"3.8.5-final"},"sysPrefix":"/usr","fileHash":"1464759c31e1da69bb7f6ffdb3bb22a39cfef12e58f642c2c193cd404a009bde8f52ade67fd62c17898def6a05c9dc9c3496101e0d1b200a7097d22d98f8f80e","envType":"Unknown","displayName":"Python 3.8.5 64-bit"}, Arg 3: {"documentSelector":[{"scheme":"file","language":"python"},{"scheme":"untitled","language":"python"},{"scheme":"vscode-notebook","language":"python"},{"scheme":"vscode-notebook-cell","language":"python"}],"synchronize":{"configurationSection":"python"},"outputChannel":{"name":"Python Language Server","_channel":{}},"revealOutputChannelOn":4,"middleware":{"configService":{"serviceContainer":{"container":{"options":{"autoBindInjectable":false,"defaultScope":"Transient","skipBaseClassChecks":false},"guid":"f396513f-11a8-c16b-a909-ba29840f2997","_bindingDictionary":{"_map":{}},"_snapshots":[],"_middleware":null,"parent":null,"_metadataReader":{}}},"workspaceService":{}},"lastCaptured":{},"nextWindow":0,"eventCount":0,"workspace":{},"connected":false,"eventName":"LANGUAGE_SERVER.REQUEST"},"connectionOptions":{"cancellationStrategy":{"_sender":{"folderName":"e9f61e331a2b997e6c7e60d9406fd9c97ff531926e"}}}}, Return Value: undefined [TypeError: Cannot read property 'version' of undefined
at getLanguageServerFolderName (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:24:193095)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:94:5)] {
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2020-09-24 20:27:45: Starting language server, Class name = r, completed in 11ms, has a falsy return value, , Return Value: undefined [TypeError: Cannot read property 'version' of undefined
at getLanguageServerFolderName (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:24:193095)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:94:5)] {
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2020-09-24 20:27:45: Restarting language server, Class name = r, completed in 12ms, has a falsy return value, , Return Value: undefined [TypeError: Cannot read property 'version' of undefined
at getLanguageServerFolderName (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:24:193095)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:94:5)] {
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2020-09-24 20:27:45: Failed to restart language server, Class name = r, completed in 12ms, has a falsy return value, , Return Value: undefined [TypeError: Cannot read property 'version' of undefined
at getLanguageServerFolderName (/home/behzad/.vscode-oss/extensions/ms-python.python-2020.9.111407/out/client/extension.js:24:193095)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:94:5)] {
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}

Pylance is only supported in official builds of VS Code; you appear to be using "VS Code - OSS" from the Arch repos. See https://github.com/microsoft/pylance-release/issues/135#issuecomment-662607952.

authors: Bezmehrabi jakebailey


text:
Python Django objects manager override not referenceable with intellisense

Type: Bug

Behaviour
Expected vs. Actual
Django objects override doesn't hint intellisense like it should. Related VSCode ticket: https://github.com/microsoft/vscode/issues/199917
Steps to reproduce:
Steps to Reproduce:
This used to function in an older version of VSCode (not sure which one -- has been quite a few updates).

Create a Django ParentModel with a objects manager override

from django.db import models
class ParentModelManager(models.Manager[ModelType]):
  def get_foo(self) -> str:
    return "foo"

class ParentModel(models.Model):
  objects = ParentModelManager()

  class Meta:
        abstract = True

Create a child model that inherits from ParentModel

class ChildModel(ParentModel):
  name = models.TextField()

Attempt to reference newly defined function

# will get "No definition found for 'get_foo'" when attempting to drill into function
ChildModel.objects.get_foo()
# can find any native object manager functions like below
ChildModel.objects.filter(...)

Switching the override in ParentModel to any other name will make it viewable.

class ParentModel(models.Model):
  elements = ParentModelManager()

# can now find new function
ChildModel.elements.get_foo()
# can find any native object manager functions like below
ChildModel.elements.filter(...)

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): 3.11.1
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Poetry
Value of the python.languageServer setting: Pylance

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings

languageServer: "Pylance"

Extension version: 2023.20.0
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:57.054Z)
OS version: Darwin arm64 22.5.0
Modes:

System Info

Item
Value

CPUs
Apple M1 Pro (8 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
3, 3, 3

Memory (System)
16.00GB (0.03GB free)

Process Argv
--crash-reporter-id 06169d5a-1e47-452b-90c5-74b0abe89e19

Screen Reader
no

VM
0%

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30899288
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
3biah626:30602489
f6dab269:30613381
a9j8j154:30646983
showlangstatbar:30737416
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialogc:30910334
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementsc:30887149
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232
dsvsc019cf:30909685

This fixed it. Thanks!


text:
When a class inherits from something that is not a class, give a diagnostic error

same as inherit-non-class for pylint

Failing analysis tests to do with inheritance, so you'll have to figure out what's going on there before we can merge.

Reverted. Broke ClassBase test in reference tests - no matter what class derives from AddReference must be called on the base. Also, it is possible to derive from functions, etc so more specific checks are needed.

authors: CTrando MikhailArkhipov jakebailey

repo: microsoft/python-language-server


text:
Fix typo

Description

Fix typo.
Motivation and Context

#1300

How Has This Been Tested?

[ ] Pass the test by running: pytest qlib/tests/test_all_pipeline.py under upper directory of qlib.
[ ] If you are adding a new feature, test on your own test scripts.
Fix typo in comments.

Screenshots of Test Results (if appropriate):

Pipeline test:
Your own tests:

Types of changes

[x] Fix bugs
[ ] Add new feature
[ ] Update documentation

@you-n-g
This is a typo patch.
You can review it very quick.

@you-n-g
The errors are not related to my commit. How do I fix it?

Thanks for your contribution.
This CI error may be caused by an issue in windows.
I'll merge it first.

authors: ChiahungTai you-n-g

repo: microsoft/qlib


text:
[ASK] Python version support

Want to know if python 3.9 and 3.10 are supported for recommenders package(NAML algo specially)

duplicate to https://github.com/microsoft/recommenders/issues/1724

authors: miguelgfierro satsaras

repo: microsoft/recommenders