Inference demo

Hi,
Is there a inference demo in the code base? Try to init model follow test/test_apis/test_inference.py.
result = inference_detector(model, img_path) show_result_pyplot(model, img_path, result, wait_time=1, score_thr=0.7, palette=(72, 101, 241))
The terminal shows model and checkpoints loaded state dict do not match exactly.
The bbox painted on image is not correct, and every time is different.
However, I'm sure the mAP tested by test.py is correct.

Thanks for your attention.
Can you show the warning message during load state dict?

@pppppM Hi, as below
 load checkpoint from local path: work_dirs/detnas_subnet_retinanet_sfv2_fpn_1x_coco_1121_n8h8f8_16_32_64_96_hgrhead_3anchors_conv8/epoch_15.82.3.pth The model and loaded state dict do not match exactly unexpected key in source state_dict: architecture.model.backbone.conv1.conv.weight, architecture.model.backbone.conv1.bn.weight, architecture.model.backbone.conv1.bn.bias, architecture.model.backbone.conv1.bn.running_mean, architecture.model.backbone.conv1.bn.running_var, architecture.model.backbone.conv1.bn.num_batches_tracked, architecture.model.backbone.layers.0.0.choices.shuffle_3x3.branch1.0.conv.weight, architecture.model.backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.weight, architecture.model.backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.bias, architecture.model.backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.running_mean, architecture.model.backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.running_var, architecture.model.backbone.layers.0.0.choices.shuffle_3x3.branch1.0 ........ anaconda3/envs/mmrazor/lib/python3.8/site-packages/mmdet/datasets/utils.py:66: UserWarning: "ImageToTensor" pipeline is replaced by "DefaultFormatBundle" for batch inference. It is recommended to manually replace it in the test data pipeline in your config file.
eval mAP shows:
2022-05-24 10:15:36,442 - mmdet - INFO -  Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.419  Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=1000 ] = 0.830  Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=1000 ] = 0.348  Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.015  Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.408  Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.453  Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.510  Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=300 ] = 0.510  Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=1000 ] = 0.510  Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.078  Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.521  Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.513
use --show-dir to save, result has no problem. FYI
Thanks :)

Are there only unexpected keys, not missing keys?

Are there only unexpected keys, not missing keys?

I check the whole information, there is missing keys warning:
missing keys in source state_dict: backbone.conv1.conv.weight, backbone.conv1.bn.weight, backbone.conv1.bn.bias, backbone.conv1.bn.running_mean, backbone.conv1.bn.running_var, backbone.layers.0.0.choices.shuffle_3x3.branch1.0.conv.weight, backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.weight, backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.bias, backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.running_mean, backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.running_var, backbone.layers.0.0.choices.shuffle_3x3.branch1.1.conv.weight, backbone.layers.0.0.choices.shuffle_3x3.branch1.1.bn.weight, backbone.layers.0.0.choices.shuffle_3x3.branch1.1.bn.bias, backbone.layers.0.0.choices.shuffle_3x3.branch1.1.bn.running_mean, backbone.layers.0.0.choices.shuffle_3x3.branch1.1.bn.running_var, backbone.layers.0.0.choices.shuffle_3x3.branch2.0.conv.weight, backbone.layers.0.0.choices.shuffle_3x3.branch2.0.bn.weight ......

Are there only unexpected keys, not missing keys?

I check the whole information, there is missing keys warning:
missing keys in source state_dict: backbone.conv1.conv.weight, backbone.conv1.bn.weight, backbone.conv1.bn.bias, backbone.conv1.bn.running_mean, backbone.conv1.bn.running_var, backbone.layers.0.0.choices.shuffle_3x3.branch1.0.conv.weight, backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.weight, backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.bias, backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.running_mean, backbone.layers.0.0.choices.shuffle_3x3.branch1.0.bn.running_var, backbone.layers.0.0.choices.shuffle_3x3.branch1.1.conv.weight, backbone.layers.0.0.choices.shuffle_3x3.branch1.1.bn.weight, backbone.layers.0.0.choices.shuffle_3x3.branch1.1.bn.bias, backbone.layers.0.0.choices.shuffle_3x3.branch1.1.bn.running_mean, backbone.layers.0.0.choices.shuffle_3x3.branch1.1.bn.running_var, backbone.layers.0.0.choices.shuffle_3x3.branch2.0.conv.weight, backbone.layers.0.0.choices.shuffle_3x3.branch2.0.bn.weight ......

@pppppM Any advice?

Is the ckpt you loaded trained with mmrazor?
Normally, all keys should be prefixed with architecture.model

@pppppM FYI :)

The checkpoint should be loaded in init_mmdet_model.
https://github.com/open-mmlab/mmrazor/blob/2dad24044d7f1dad88f20221f8fc071dd40fdd4f/mmrazor/apis/mmdet/inference.py#L13-L16
This function's motivation is to export a detector that is consistent with mmdet, so the returned model will be inconsistent with razor's ckpt.
We load ckpt inside init_mmdet_model
https://github.com/open-mmlab/mmrazor/blob/2dad24044d7f1dad88f20221f8fc071dd40fdd4f/mmrazor/apis/mmdet/inference.py#L45-L56

Sorry, I didn't notice the last question because the issue was closed.
The algorithm in razor is more like a wrapper around the detector. In order to better reuse the various tools in mmdet, the algorithm needs to be converted to a detector.
Since a detector is trained with the algorithm in razor, the module name will have the prefix algorithm.model than the original detector.
So there needs to load ckpt before converting the algorithm to the detector.


feat(resourcemanager): change checknameavailabilty request/response to type reference type

Previously CheckNameAvailabilityRequest and CheckNameAvailablityResponse are declared as x-ms-propertyReferenceType, which cannot replace types thoroughly in cases like the type is used as parameters. Thus in DeviceUpdate we have to skip type replacement for CheckNameAvailabilityRequest.
This commit will enable type replacement for check name availability definitions by:

Declare CheckNameAvailabilityRequest and CheckNameAvailablityResponse are declared as x-ms-typeReferenceType, so that they will be totally replaced.
Modify the x-csharp-usage of CheckNameAvailabilityRequest to model,input, since it should not be used as output model. This is optional.
Modify the x-csharp-usage of CheckNameAvailabilityResponse to model,output, since it should not be used as input model. This is REQUIRED, otherwise we cannot replace the type in each targer RP due to accessibility mismatch.

resolve https://github.com/Azure/autorest.csharp/issues/1651
resolve https://github.com/Azure/autorest.csharp/issues/1701
All SDK Contribution checklist:
This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] Please open PR in Draft mode if it is:

Work in progress or not intended to be merged.
Encountering multiple pipeline failures and working on fixes.

[ ] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[ ] I have read the contribution guidelines.
[ ] The pull request does not introduce breaking changes.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[ ] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code. (Track 2 only)
[ ] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK. Please double check nuget.org current release version.

Additional management plane SDK specific contribution checklist:
Note: Only applies to Microsoft.Azure.Management.[RP] or Azure.ResourceManager.[RP]

[ ] Include updated management metadata.
[ ] Update AzureRP.props to add/remove version info to maintain up to date API versions.

Management plane SDK Troubleshooting

If this is very first SDK for a services and you are adding new service folders directly under /SDK, please add new service label and/or contact assigned reviewer.

If the check fails at the Verify Code Generation step, please ensure:

Do not modify any code in generated folders.
Do not selectively include/remove generated files in the PR.
Do use generate.ps1/cmd to generate this PR instead of calling autorest directly.
Please pay attention to the @microsoft.csharp version output after running generate.ps1. If it is lower than current released version (2.3.82), please run it again as it should pull down the latest version.

Note: We have recently updated the PSH module called by generate.ps1 to emit additional data. This would help reduce/eliminate the Code Verification check error. Please run following command:
  `dotnet msbuild eng/mgmt.proj /t:Util /p:UtilityName=InstallPsModules`

Old outstanding PR cleanup
Please note:
If PRs (including draft) has been out for more than 60 days and there are no responses from our query or followups, they will be closed to maintain a concise list for our reviewers.

The changes in DeviceUpdate are just for preview. I'll roll back them after the PR is approved. They will be applied later.

close this, since check name availability definitions will be removed from ResourceManager.


Question, how do I launch app.py?

I run

gradio app.py

But I get this error message after clicking on the link. Why?

This site can’t be reached

I'm not sure about Gradio, but it seems like it needs *.app.
I ran the demo with python app.py, but I recently found that our Docker base image is having trouble with Gradio version 3.20.1.
Could you please check the requirements in the Hugging Face space?

I installed all the new modules from the requirements.txt file in hugging face space. I get this error message after running app.py with python.

python app.py
Traceback (most recent call last):
File "/home/user/Downloads/pits/app.py", line 5, in
import utils
File "/home/user/Downloads/pits/utils.py", line 8, in
from omegaconf import OmegaConf
File "/usr/lib/python3.10/site-packages/omegaconf/init.py", line 1, in
from .base import Container, DictKeyType, Node, SCMode, UnionNode
File "/usr/lib/python3.10/site-packages/omegaconf/base.py", line 11, in
from ._utils import (
File "/usr/lib/python3.10/site-packages/omegaconf/_utils.py", line 34, in
from .grammar_parser import SIMPLE_INTERPOLATION_PATTERN, parse
File "/usr/lib/python3.10/site-packages/omegaconf/grammar_parser.py", line 12, in
from .grammar_visitor import (  # type: ignore
File "/usr/lib/python3.10/site-packages/omegaconf/grammar_visitor.py", line 25, in
from omegaconf.grammar.gen.OmegaConfGrammarLexer import OmegaConfGrammarLexer
File "/usr/lib/python3.10/site-packages/omegaconf/grammar/gen/OmegaConfGrammarLexer.py", line 204, in
class OmegaConfGrammarLexer(Lexer):
File "/usr/lib/python3.10/site-packages/omegaconf/grammar/gen/OmegaConfGrammarLexer.py", line 206, in OmegaConfGrammarLexer
atn = ATNDeserializer().deserialize(serializedATN())
File "/home/user/.local/lib/python3.10/site-packages/antlr4/atn/ATNDeserializer.py", line 60, in deserialize
self.reset(data)
File "/home/user/.local/lib/python3.10/site-packages/antlr4/atn/ATNDeserializer.py", line 90, in reset
temp = [ adjust(c) for c in data ]
File "/home/user/.local/lib/python3.10/site-packages/antlr4/atn/ATNDeserializer.py", line 90, in
temp = [ adjust(c) for c in data ]
File "/home/user/.local/lib/python3.10/site-packages/antlr4/atn/ATNDeserializer.py", line 88, in adjust
v = ord(c)
TypeError: ord() expected string of length 1, but int found

I am not sure about using omegaconf==2.1.0 with python3.10.
Omegaconf might contains some bug for python3.10.
I recommend to use lower version of python.
I am currently using python 3.9 and 3.8 in different machines and they are working well without error.

I just check that Hugging face space is using python 3.8.9.
FROM docker.io/library/python:3.8.9@sha256:49d05fff9cb3b185b15ffd92d8e6bd61c20aa916133dca2e3dbe0215270faf53

It seems that I have to provide Dockerfile for demo...
Thank you for your reports.

I installed python 3.9 on windows and I get this error message.

python app.py
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data]     C:\Users\user\AppData\Roaming\nltk_data...
[nltk_data]   Unzipping taggers\averaged_perceptron_tagger.zip.
[nltk_data] Downloading package cmudict to
[nltk_data]     C:\Users\user\AppData\Roaming\nltk_data...
[nltk_data]   Unzipping corpora\cmudict.zip.
Traceback (most recent call last):
File "C:\Users\user\Desktop\pits\app.py", line 142, in
app = GradioApp(args)
File "C:\Users\user\Desktop\pits\app.py", line 33, in init
_ = utils.load_checkpoint(args.checkpoint_path, model_g=self.net_g)
File "C:\Users\user\Desktop\pits\utils.py", line 22, in load_checkpoint
assert os.path.isfile(checkpoint_path)
AssertionError

The assertion error mentions that you haven't downloaded the checkpoint file.
Please note that the checkpoint is not uploaded to GitHub, it's only available on Hugging Face.
If you're having trouble setting it up locally, I recommend using the Hugging Face space instead of local inference.

Another question, is there a way to use the git command on hugging face. Something like this

git clone https://huggingface.co/spaces/anonymous-pits/pits/tree/main


Russian translation

I would like to help with that, what files do i need to translate?

Thank you for your support. I am sorry that the game itself will not add languages other than English, Simplified Chinese, and Traditional Chinese.
Because I cannot confirm the text content and there are currently many versions of translation documents in the workshop, I cannot choose to make one of them an official translator.
You can upload to steam workshop and add [Human Translation] in title that let everyone know the advantages of your translation.
You can also post it in the discussion. Let everyone know that there is a Russian translation available
I will also release a special announcement in the future to inform everyone of the existing community translation content and location
In the future, if I understand and start to use the translation platform, I will notify you separately.
Thank you for support of VPET project.

Thank you for your support. I am sorry that the game itself will not add languages other than English, Simplified Chinese, and Traditional Chinese.
Because I cannot confirm the text content and there are currently many versions of translation documents in the workshop, I cannot choose to make one of them an official translator.
You can upload to steam workshop and add [Human Translation] in title that let everyone know the advantages of your translation.
You can also post it in the discussion. Let everyone know that there is a Russian translation available
I will also release a special announcement in the future to inform everyone of the existing community translation content and location
In the future, if I understand and start to use the translation platform, I will notify you separately.
Thank you for support of VPET project.

Understadable. Can i translate Store Page and Workshop main page & tags on Steam then?

Of course, thank you for your translation
This is workshop tag of russian and englisn
workshop_tags_1920960_russian.json
workshop_tags_1920960_english.json

Of course, thank you for your translation
This is workshop tag of russian and englisn
workshop_tags_1920960_russian.json
workshop_tags_1920960_english.json

What do you think of localizing this?
TF2 has this custom workshop item translated for their workshop.

Of course, thank you for your translation
This is workshop tag of russian and englisn
workshop_tags_1920960_russian.json
workshop_tags_1920960_english.json

What do you think of localizing this? TF2 has this custom workshop item translated for their workshop.

It seems that Steam did not prepare a translation for the module name

can you give me some more info about "lowtext", "clicktext" and "selecttext"? what do they stands for?

clicktext#Click text:|
lowtext#Low status text:|
selecttext#Options Chat Text:|

Can you describe Low status text? Like it's a feature that shows text when you minimize VPet?

main page text is same as https://github.com/LorisYounger/VPet/blob/main/README_en.md#introduction

Okay but can you export this text to translation file?

main page text is same as https://github.com/LorisYounger/VPet/blob/main/README_en.md#introduction

It has no short description of store page that contains Feeling like the computer desktop is too dull? Need something cute to heal oneself? Come and try this new completely free and open source V-Pet simulator. A cute and adorable pet that supports various feeding interactions to accompany you in game learning is definitely your best choice!

and most of file is not as steam store page description... it would be awesome if you just export localization files of your pages on github

I took a look and it seems like I updated the description of Steam later on.
This is what Steam originally described
VPet is a desktop pet software(game) that supports various interactive. it is open source, free and support Steam workshops

This game is independent from the built-in desktop pet (tutorial) program of VUP Simulator, if you like it, you can also add VUP Simulator to your wishlist
[url]https://store.steampowered.com/app/1352140/_/[/url]

[h2]Lots of interactions and animations[/h2]

More than 200 Type of Animation,

[b]Some Animation Examples[/b]:
[b]touch the head & Body[/b]
[img]{STEAM_APP_IMAGE}/extras/ss2.gif[/img]
[img]{STEAM_APP_IMAGE}/extras/ss1.gif[/img]
[b]bring up[/b]
[img]{STEAM_APP_IMAGE}/extras/ss8.gif[/img]
[b]dance[/b]
[img]{STEAM_APP_IMAGE}/extras/ss19.gif[/img]
[b]climb the wall[/b]
[img]{STEAM_APP_IMAGE}/extras/ss7.gif[/img]

See more image resources details in open source docs

[h2]Free[/h2]

The game is completely free!
The main purpose of the game is to promote the VUP-Simulator, and the character in the game is the protagonist of the virtual anchor simulator.

[h2]Open Source[/h2]

The game is open source on github, welcome to put forward your own ideas, ideas or participate in the development!
You can also modify the code to make your own table pet! (Although most of the content supports the workshop, is no need to modify the code)
project address: [url=https://github.com/LorisYounger/VPet]github-LorisYounger/VPet[/url]

[h2]Support Steam Workshop[/h2]

The game supports the Steam Workshop, you can make animations or interactions with other characters and table pets, and upload them to the creative workshop to share with more people.

The creative workshop supports adding/modifying the following content
The creative workshop supports adding/modifying the following content
[list] [*] Table pet animation
[*] Items/food/beverages, etc
[*] Table pet work
[*] Speech text
[*] Theme
[*] Code plugin - Add content to desktop pets by writing code
[list] [*] Add new animation logic/display scheme (eg: l2d/spin, etc.)
[*] Add new features (alarm clock/dashboard, etc.)
[*] Almost omnipotent [/list]
[/list]

[h2]Feedback & Suggestions & Contact Us[/h2]

If you have any suggestions or comments, you can contact me in Steam store Comments/Community, Github Issue or email me

Okay but can you export this text to translation file?

I took a look and it seems like I updated the description of Steam later on. This is what Steam originally described
VPet is a desktop pet software(game) that supports various interactive. it is open source, free and support Steam workshops

This game is independent from the built-in desktop pet (tutorial) program of VUP Simulator, if you like it, you can also add VUP Simulator to your wishlist
[url]https://store.steampowered.com/app/1352140/_/[/url]

[h2]Lots of interactions and animations[/h2]

More than 200 Type of Animation,

[b]Some Animation Examples[/b]:
[b]touch the head & Body[/b]
[img]{STEAM_APP_IMAGE}/extras/ss2.gif[/img]
[img]{STEAM_APP_IMAGE}/extras/ss1.gif[/img]
[b]bring up[/b]
[img]{STEAM_APP_IMAGE}/extras/ss8.gif[/img]
[b]dance[/b]
[img]{STEAM_APP_IMAGE}/extras/ss19.gif[/img]
[b]climb the wall[/b]
[img]{STEAM_APP_IMAGE}/extras/ss7.gif[/img]

See more image resources details in open source docs

[h2]Free[/h2]

The game is completely free!
The main purpose of the game is to promote the VUP-Simulator, and the character in the game is the protagonist of the virtual anchor simulator.

[h2]Open Source[/h2]

The game is open source on github, welcome to put forward your own ideas, ideas or participate in the development!
You can also modify the code to make your own table pet! (Although most of the content supports the workshop, is no need to modify the code)
project address: [url=https://github.com/LorisYounger/VPet]github-LorisYounger/VPet[/url]

[h2]Support Steam Workshop[/h2]

The game supports the Steam Workshop, you can make animations or interactions with other characters and table pets, and upload them to the creative workshop to share with more people.

The creative workshop supports adding/modifying the following content
The creative workshop supports adding/modifying the following content
[list] [*] Table pet animation
[*] Items/food/beverages, etc
[*] Table pet work
[*] Speech text
[*] Theme
[*] Code plugin - Add content to desktop pets by writing code
[list] [*] Add new animation logic/display scheme (eg: l2d/spin, etc.)
[*] Add new features (alarm clock/dashboard, etc.)
[*] Almost omnipotent [/list]
[/list]

[h2]Feedback & Suggestions & Contact Us[/h2]

If you have any suggestions or comments, you can contact me in Steam store Comments/Community, Github Issue or email me

Here's translation of it:
VPet - это настольная программа (игра) с питомцами, поддерживающая различные виды интерактивного общения.
Основная цель игры - продвижение VUP-Simulator, а персонаж игры - главная героиня из неё.

[h2]Открытый исходный код[/h2]

Игра имеет открытый исходный код на Github, приглашаем выдвигать свои идеи, задумки или участвовать в разработке!
Вы также можете модифицировать код, чтобы сделать своего собственного настольного питомца!

Here's translation of it:
Мастерская симулятора VPET
Опробуйте больше питомцев!

also there's duplicated  text at the end of steam store page description

and send here short description of store page please

and send here short description of store page please

Feeling like the computer desktop is too dull? Need something cute to heal oneself? Come and try this new completely free and open source V-Pet simulator. A cute and adorable pet that supports various feeding interactions to accompany you in game learning is definitely your best choice!

and send here short description of store page please

Feeling like the computer desktop is too dull? Need something cute to heal oneself? Come and try this new completely free and open source V-Pet simulator. A cute and adorable pet that supports various feeding interactions to accompany you in game learning is definitely your best choice!

i had to simplify and remove some text to fit 300 characters limit,
but here's translation to it:
Рабочий стол слишком скучен? Или же вам просто одиноко? Опробуйте этот новый совершенно бесплатный симулятор V-Pet с открытым исходным кодом. Милый и очаровательный питомец с различными взаимодействиями при кормлении, который будет постоянно вместе с вами, определённо изменит вашу жизнь!

ah and i did typo in text formatting, please copy and paste fixed text:
[b]Примеры анимации[/b]:
[b]прикосновение к голове и телу[/b]
[img]{STEAM_APP_IMAGE}/extras/ss2.gif[/img]
[img]{STEAM_APP_IMAGE}/extras/ss1.gif[/img]
[b]поднимание[/b]
[img]{STEAM_APP_IMAGE}/extras/ss8.gif[/img]
[b]танец[/b]
[img]{STEAM_APP_IMAGE}/extras/ss19.gif[/img]
[b]карабканье по стене[/b]
[img]{STEAM_APP_IMAGE}/extras/ss7.gif[/img]


#155 Don't auto complete identifiers on first list/tuple element

Adds support to FuzzyCompletionSet to opt-out of committing by default.
Opts-out of committing by default for single element collections in case they are going to become a comprehension.
(The existing tests cover this case fine.)

:+1:

:+1:


[language] Add move-lang support for hex strings

This adds Move support for hexadecimal strings with a syntax of x"...". This is not necessarily the final syntax. The rest of the compiler seems to handle these vector literals already, so only the parser needed to be changed.
Motivation
Provide the ability to specify literal byte arrays as hexadecimal strings.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
I added tests for various corner cases in the lexer and parser, along with a basic functional test.

This error message looks wrong. Shouldn't it be complaining about the g?

Due to @sblackshear's error message complaint. I think its actually going to be easier to also add b"" at the same time. We parse both as strings. Then restrict the encoding as necessary. Then convert to hex.
The current approach makes that difficult by trying to force into the lexer

But I'm not going to block the land for that. I think we should do these things, but I don't care too much about the timetable

I think its actually going to be easier to also add b"" at the same time. We parse both as strings. Then restrict the encoding as necessary. Then convert to hex.

My hesitation on b"" was twofold: (1) if we decided to go with a completely different syntax for the hex strings, then b""" might not make sense, and (2) it seems like a good implementation would need to allow escapes for things like double quotes, newlines, etc. and I didn't want to deal with that.
Another option would be to implement only x"" (and now X"") but move the logic out of the lexer. How sure are we that b"" will be a useful addition to the language?
I'll go ahead and land this for now but I'll plan to follow up soon to improve this.

@bors-libra r=sblackshear

:pushpin: Commit ab7d5b9 has been approved by sblackshear

:hourglass: Testing commit ab7d5b9e896129d234edaf335b8d86d0f08c67c0 with merge 67c9b899054c16b8e4a89e377e9f0c52763f47c3...

Hmm. I'm getting lint errors about the missing newlines (intentional) in my EOF tests:
language/move-lang/tests/move_check/parser/hexstring_token_eof1.move: missing a newline at EOF
language/move-lang/tests/move_check/parser/hexstring_token_eof2.move: missing a newline at EOF
Maybe there's a way to override those?

:broken_heart: Test failed - checks-circle_commit_workflow

I reimplemented this using Todd's suggestion. I didn't actually implement support for b"..." yet, but it would be easier to do that now. This is overall a better way to do it, and it also avoids the need for those "noeol" test files.

@bors-libra r=sblackshear

:pushpin: Commit a89f03c has been approved by sblackshear

:hourglass: Testing commit a89f03c281e6c6c48c071404587f263dfd8a4bfe with merge 6771e99c0f80e631e387640b0ebe1f2092a8f834...

I'm going to go ahead and land this to unblock Sam's testing, but I welcome any more comments on the revised PR.

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: sblackshear
Pushing 6771e99c0f80e631e387640b0ebe1f2092a8f834 to master...


InvalidArgumentException Action Kordy\Ticketit\Controllers\TicketsController@index not defined.

Illuminate\Routing\UrlGenerator::action
:422
C:\xampp\htdocs\ticketit-app-master\vendor\laravel\framework\src\Illuminate\Routing\UrlGenerator.php
what is the solution a this problem ?
i dont know what do :(

i also encounter this error

ok,already been solved
you need open chrome visit url: youurl.com/tickets-install
install you script


Add estimated fees to order ticket

Be aware it's in a slightly smaller type size
https://www.figma.com/file/6y4nvjfeVZwzwKcoXB0neq/Simplified-UI?node-id=319%3A4398

Closing as looks already done

Closing as looks already done


ruby: 2.2.3 -> 2.2.5 and 2.1.7 -> 2.1.10

Motivation for this change
Things done

[ ] Tested using sandboxing
(nix.useChroot on NixOS,
or option build-use-chroot in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Error on travis was  No space left on device

Needs a rebase

I will update with a rebase soon. I am currently in a location with very sporadic internet access with limited bandwidth budget.

@joachifm I have updated the PR

@joachifm Ruby 1.x and 2.0.0 is EOLed Can they be removed from the pkgs/development/interpreters/ruby/default.nix? What are the guidelines for Nix packaging on removing old versions packages?

We usually remove software versions that are not maintained upstream anymore. One exception would be when there are still packages in nixpkgs depending on old versions that can't be fixed. As you're stepping up as maintainer (thanks btw!) I'll guess it's your decision now. ;)
Either way, this should be merged. :+1:


Add initial stdlib

Depends on #332.

We still need to fix https://github.com/polarity-lang/polarity/pull/332#issuecomment-2426443995 in the prettyprinter of arguments.


Eve weather data gaps

Sometimes there are gaps in the history of the temperature, airpressure and humidity. Is there something I can do about it? Is the data stored on the iOS device or inside of homebridge?

Now I see how it works. I think restarting homebridge without having opened the Eve app is not a good idea. Can you confirm this?

Yes sorry for the late answer. After a restart homebridge no longer holds the history. This will be fixed with the upcoming update :) .

nice. waitig for it and syncing each time before restarting until the update brings the feature! :)


Remove the need to import anchor-lang as dependency for components and systems

Is your feature request related to a problem? Please describe.
Currently, components and systems import both anchor-lang and bolt-lang
Describe the solution you'd like
Since bolt-lang has a dependency to anchor-lang, needed functions and macros can be re-exported to avoid the anchor-lang dependency on components and systems

Would it be related to #114?


Error while installing llvmlite on Windows

I'm trying to add numba as a dependency on my project but it's failing to install llvmlite. I tried the solutions in https://github.com/astral-sh/uv/issues/6281 namely adding "llvmlite >=0.43.0" to constraint-dependencies, but even with the newest version of llvmlite, the installation fails. I've tried clearing the uv cache and updating Visual Studio with no change in the result. Any help is greatly appreciated.
> uv add llvmlite
Resolved 51 packages in 231ms
  × Failed to download and build `llvmlite==0.43.0`
  ╰─▶ Build backend failed to build wheel through `build_wheel` (exit code: 1)

      [stdout]
      running bdist_wheel
      C:\Users\gobbo\AppData\Local\uv\cache\builds-v0\.tmpTdaGAp\Scripts\python.exe
      C:\Users\gobbo\AppData\Local\uv\cache\sdists-v6\pypi\llvmlite\0.43.0\FEFslMc92T44SRRD8uayn\src\ffi\build.py
      Trying generator ('Visual Studio 16 2019', 'x64', 'v142')
      Running: cmake -G Visual Studio 16 2019 -A x64 -T v142
      C:\Users\gobbo\AppData\Local\uv\cache\sdists-v6\pypi\llvmlite\0.43.0\FEFslMc92T44SRRD8uayn\src\ffi\dummy

      [stderr]
      Traceback (most recent call last):
        File "C:\Users\gobbo\AppData\Local\uv\cache\sdists-v6\pypi\llvmlite\0.43.0\FEFslMc92T44SRRD8uayn\src\ffi\build.py", line 235, in
      <module>
          main()
          ~~~~^^
        File "C:\Users\gobbo\AppData\Local\uv\cache\sdists-v6\pypi\llvmlite\0.43.0\FEFslMc92T44SRRD8uayn\src\ffi\build.py", line 222, in
      main
          main_windows()
          ~~~~~~~~~~~~^^
        File "C:\Users\gobbo\AppData\Local\uv\cache\sdists-v6\pypi\llvmlite\0.43.0\FEFslMc92T44SRRD8uayn\src\ffi\build.py", line 103, in
      main_windows
          generator = find_windows_generator()
        File "C:\Users\gobbo\AppData\Local\uv\cache\sdists-v6\pypi\llvmlite\0.43.0\FEFslMc92T44SRRD8uayn\src\ffi\build.py", line 91, in
      find_windows_generator
          try_cmake(cmake_dir, build_dir, *generator)
          ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\gobbo\AppData\Local\uv\cache\sdists-v6\pypi\llvmlite\0.43.0\FEFslMc92T44SRRD8uayn\src\ffi\build.py", line 36, in
      try_cmake
          subprocess.check_call(args)
          ~~~~~~~~~~~~~~~~~~~~~^^^^^^
        File "C:\Users\gobbo\AppData\Roaming\uv\python\cpython-3.13.1-windows-x86_64-none\Lib\subprocess.py", line 414, in check_call
          retcode = call(*popenargs, **kwargs)
        File "C:\Users\gobbo\AppData\Roaming\uv\python\cpython-3.13.1-windows-x86_64-none\Lib\subprocess.py", line 395, in call
          with Popen(*popenargs, **kwargs) as p:
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\gobbo\AppData\Roaming\uv\python\cpython-3.13.1-windows-x86_64-none\Lib\subprocess.py", line 1036, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
          ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                              pass_fds, cwd, env,
                              ^^^^^^^^^^^^^^^^^^^
          ...<5 lines>...
                              gid, gids, uid, umask,
                              ^^^^^^^^^^^^^^^^^^^^^^
                              start_new_session, process_group)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\gobbo\AppData\Roaming\uv\python\cpython-3.13.1-windows-x86_64-none\Lib\subprocess.py", line 1548, in _execute_child
          hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                             ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
                                   # no special security
                                   ^^^^^^^^^^^^^^^^^^^^^
          ...<4 lines>...
                                   cwd,
                                   ^^^^
                                   startupinfo)
                                   ^^^^^^^^^^^^
      FileNotFoundError: [WinError 2] The system cannot find the file specified
      error: command 'C:\\Users\\gobbo\\AppData\\Local\\uv\\cache\\builds-v0\\.tmpTdaGAp\\Scripts\\python.exe' failed with exit code 1

  help: `llvmlite` (v0.43.0) was included because `arpes-uv` (v0.1.0) depends on `llvmlite`

You may want to use an older version of Python, like Python 3.12. llvmlite doesn't ship Python 3.13 wheels yet, so you have to build from source.


RBAC issue with helm install

I am using the chart version 8.0.1 and looks like it's missing the right RBAC rule for Daemonset workloads.
When I submit an Ingress with Daemonset as the workload type I see the following log on the operator:
daemonsets.extensions "voyager-test-tcp-sni" is forbidden: User "system:serviceaccount:default:voyager-voyager-operator" cannot get daemonsets.extensions in the namespace "default"

However, after patching the clusterrole with the following:
...
- apiGroups:
  - extensions
  resources:
  - ingresses
  - daemonsets #  <-- ADDED
  verbs:
  - '*'
...

Everything proceeds as normal. I'm guessing this clause should be added to the chart?
I'm on Kubernetes 1.10.5 (According to the docs Voyager 8.0.1 is compatible with 1.9.x+)

The exact same issue happens with Voyager 10 deployed with the script so this is not just an issue with Helm deployment.

@rajiteh can you provide your helm install command?

@kfoozminus sorry, I no longer have access to that. It was a standard helm install iirc.

This has been fixed in latest release https://github.com/appscode/voyager/releases/tag/v12.0.0-rc.0


Modernize server list ping event determinations

Modernize server list ping event determinations
Sorry for misunderstanding the previous feature request haha.
This PR is just a duplicate of my previous one (#2584) but without the NUM_PLAYERS determination.
😅

Done


chore(TDI-39141): add more flexible date pattern use (#884)

What is the current behavior? (You can also link to an open issue here)
https://jira.talendforge.org/browse/TDI-39141
What is the new behavior?
(cherry picked from commit 317d117)
Please check if the PR fulfills these requirements

[X] The commit message follows Talend standard
[X] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features) ?
[X] The code coverage on new code >75%
[ ] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[X] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results


Robot Framework does not run outside Windows if signal.setitimer is not available (affects e.g. Pyodide)

As described by @Snooz82  in Slack:

Pyodide 0.23 and newer runs Python 3.11.2 which officially supports WebAssembly as a PEP11 Tier 3 platform. #3252, #3614
That causes incompatibility to Robot Framework… :sob:
RF uses setitimer and this seems not be included anymore, because it never worked on JavaScript…
That means we can not update to Pyodide 0.23.0 from March 30 2023…
current Version is 0.25.0
I updated it on the code playground now from 18.1 to 22.1 which caused RF 3.1 to die, due to missing python 3.10 support.
We could refactor the code so, that depending on the selected Robot Version we do use a different Pyodide Version.
And in the next Release of Robot Framework, we could actively check if we can support running on newest Pyodide version.
Maybe that mean, that some timer signals are not working, but i think that would be ok.
Pekka: if you think there is a possibility to patch robot/running/timeouts/posix.py so that RF could still live without it, this would be an option too.

When I tried Robot Framework in a Jupyter Lite Notebook using Pyodide, I received the error below:
ImportError: cannot import name 'setitimer' from 'signal' (/lib/python311.zip/signal.py)

I believe setitimer is only used for implementing timeouts. In that case we can workaround this issue by disabling timeouts on platforms that don't support it.

I was right that setitimer is only used by timeouts. The signal module is also imported to register a handler for CTRL-C and in the Process library. According to the docs, WebAssembly platforms have emulated signals so I assume these imports are fine. Anyway, this needs to be tested once the setitimer issue is resolved.
It's easy to replace the normal timeout implementation with a dummy implementation if setitimer isn't available. We just need to decide what to do in that case if timeouts are actually used. Alternatives include:

Fail tests/keywords using timeouts with a message telling that timeouts are not available. This is easy to implement, but has a problem that also tests where timeouts wouldn't exceed will fail.
Emit a warning telling that timeouts are not available, but run keywords normally otherwise. This has a benefit that tests not hitting a timeout will succeed, but timeouts not actually being used can cause bad problems. Another problem is that this is more complicated to implement, because we probably didn't want to emit a warning with all keywords if a test timeout is used.
Run keywords normally without warnings. This would be easy to implement, but tests not being stopped by timeouts and there not being any warning about that doesn't sound like a good idea.

I believe the option 1. is the best. It's easy to implement and doesn't have a risk that execution would hang or there would be other problems due to keywords not being stopped when a timeout exceeds. I have this functionality implemented locally and will commit it shortly. The design can still be changed if other alternatives are considered better.
Do you @manykarim or @Snooz82 have an opinion about the above design decision? Can you test the latest code on Pyodide once the initial fix is committed?

No comments since February. I assume this is fine. If not, we can revisit this in future versions.


Inaccurate angle from ship.getYaw

This issue occurs when only Valkyrien Skies and addons are installed and no other mods

[X] I have tested this issue and it occurs when no other mods are installed

Minecraft Version
1.20
Mod Loader
Forge
Issue description
the rotation given by the ship.getYaw method functions differently than in previous versions.
Rotation does not go form -180 to 0 to 180, instead rotation goes from 0 to -90 to 0 to 90 to 0. This results in the method returning  the same number to describe two different rotations.
Issue reproduction
To reproduce this issue make a ship rotate to an angle mirrored across the z axis, both of of these rotations will cause ship.getYaw to return the exact same value.
this returns an angle in radians of 0.78539816339745

this also returns an angle in radians of 0.78539816339745

Logs
No response

It was Gimbal Lock, now fixed


fetchPolicy not used?

I am trying to force a cache invalidation and the fetchPolicy appears not to be working.
      await this.$apollo.query({
        fetchPolicy: 'network-only',
        query: this.query,
        variables: {
          id: this.id,
        },
      });

Looks like this has a whitelist of options it supports. I think after 1.0 is released with a stable API it will be a good idea to update this package: https://github.com/Akryum/vue-apollo/blob/11d2a1ea0f30375ebb695646e6171390b1d991cb/src/smart-apollo.js#L133

This package is now only for 0.5.x ... see https://github.com/Akryum/vue-apollo/issues/42

I will update vue-apollo soon to catch up with apollo-client rc.1 :smile:

@stubailo Actually, this is the blacklist for vue-apollo options, to get the apollo-client ones


kpt functions writing using Go SDK should use latest release of go-yaml pkg

We have been experiencing several issues related to roundtripping of comments in YAML. One such example is license header is deleted when starlark function is invoked. Pl. refer to discussion in the PR https://github.com/GoogleContainerTools/kpt/pull/1696.
Issue filed on go-yaml pkg repo: https://github.com/go-yaml/yaml/issues/613
I have tested two functions starlark and set-annotation by building them using latest go-yaml and have seen improvements (manual testing) in the roundtripping related to comments. We need to bump the go-yaml version in all functions.
Steps to do so:

# cd to the project directory
go get gopkg.in/yaml.v3@496545a6307b2a7d7a710fd516e5e16e8ab62dbc

# you should see `go.mod` to be updated with the latest version point to Jan, 2021 date

This change will have ripple effect because it will likely impact the e2e tests. Also, note kpt repo will also be bumped to use latest go-yaml.
/cc @Shell32-Natsu @natasha41575 @mengqiy @frankfarzan @phanimarupaka

gentle reminder - let's put that triage flag on the things that are already understood by the team 🙇

Fixed in https://github.com/GoogleContainerTools/kpt-functions-catalog/pull/213


Carousel demo not working - image link broken

This may seem trivial, but it's presumably not what's supposed to happen: the carousel demo at http://angular-ui.github.io/bootstrap/ appears to have a broken link to the first image, so in IE9 it shows a missing image icon, and in FF just a blank image. Slide 2 is showing as Slide 1. On ipad, can't slide away from the missing image.

This appears to have been fixed - closing as resolved.


Error happened in onnx export

Hi, I encountered an error when I tried to export a mask_rcnn model which is .pth format to ONNX model. The error message is following.

Traceback (most recent call last):
File "onnx_export.py", line 61, in
main()
File "onnx_export.py", line 56, in main
torch.onnx.export(model, dummy_input, args.out, verbose=True)
File "/home/andrew/.local/lib/python3.6/site-packages/torch/onnx/init.py", line 143, in export
strip_doc_string, dynamic_axes, keep_initializers_as_inputs)
File "/home/andrew/.local/lib/python3.6/site-packages/torch/onnx/utils.py", line 66, in export
dynamic_axes=dynamic_axes, keep_initializers_as_inputs=keep_initializers_as_inputs)
File "/home/andrew/.local/lib/python3.6/site-packages/torch/onnx/utils.py", line 382, in _export
fixed_batch_size=fixed_batch_size)
File "/home/andrew/.local/lib/python3.6/site-packages/torch/onnx/utils.py", line 262, in _model_to_graph
fixed_batch_size=fixed_batch_size)
File "/home/andrew/.local/lib/python3.6/site-packages/torch/onnx/utils.py", line 132, in _optimize_graph
graph = torch._C._jit_pass_onnx(graph, operator_export_type)
File "/home/andrew/.local/lib/python3.6/site-packages/torch/onnx/init.py", line 174, in _run_symbolic_function
return utils._run_symbolic_function(*args, **kwargs)
File "/home/andrew/.local/lib/python3.6/site-packages/torch/onnx/utils.py", line 618, in _run_symbolic_function
op_fn = sym_registry.get_registered_op(op_name, '', opset_version)
File "/home/andrew/.local/lib/python3.6/site-packages/torch/onnx/symbolic_registry.py", line 91, in get_registered_op
return _registry[(domain, version)][opname]
KeyError: 'new_full'

Could you please tell me the reason and solution towards this error? Thank you.

have you solved?I also met it

ONNX export is currently not supported. You may check if https://github.com/open-mmlab/mmdetection/pull/1386 can help.

have you solved?I also met it

You can just use new_ones() * scalar instead of new_full, as ONNX does not support new_full


Custom filters tied to cells in the column rather than row objects?

[ ] bug
[ ] feature request
[x] enhancement

Expected behavior
Users should be able to define column-agnostic filters that apply only to the column that the filter is associated with.
Currently, users can use the [clrDgFilter] and [clrDgStringFilter] input to create their own custom filters.  However, the power of these to filter on any property in the row also makes them less generic.
For example, I would like to create a slightly modified version of the string filter that allows for logical OR string searches using the | character.  For example, this might be attached to the Pokemon name column, and the user could enter pik|rai to match both Pikachu and Raichu.
This works great for a single column in the current interface -- I create a class that implements ClrDatagridStringFilterInterface and then pass it to [clrDgStringFilter].  The problem is that the class accepts function receives the row object rather than the values in the column, so the column property is hardcoded in it.  If I want to attach this type of filter to n string columns, then I need to create n different instances of the class with slight modifications, one for each column.  This is not a big issue, but it seems clunky.
It's likely that there's some easy trick I'm missing that gets around this, but I wasn't able to figure it out after trying several things.  In this case, it might be good to document how to do this since it seems like a pretty common use case.
Actual behavior
As described above
Reproduction of behavior
https://clarity-light-theme-v012-zi1jt2.stackblitz.io
Environment details

Angular version: 6.x.x

Clarity version: 0.12.*

OS and version: Any

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

This is a worthwhile enhancement request, but is challenging to implement due to the existing behaviors and nature of Clarity Angular. As we build out Clarity Core, this should be possible to realize with the applications managing the state and functionality more directly instead of Clarity Angular.
In an effort to clean up our backlog and focus our attention, I’m going to close this as likely to be resolved by upcoming implementations in Clarity Core. Please follow our development and releases to see when we release relevant components to make this possible.

This is a worthwhile enhancement request, but is challenging to implement due to the existing behaviors and nature of Clarity Angular. As we build out Clarity Core, this should be possible to realize with the applications managing the state and functionality more directly instead of Clarity Angular.
In an effort to clean up our backlog and focus our attention, I’m going to close this as likely to be resolved by upcoming implementations in Clarity Core. Please follow our development and releases to see when we release relevant components to make this possible.


Time picker control

I can see that there's a DatePicker control that allows for selecting date and time, but was wondering if the time selection element could be brought up in a new control for the intention of selecting time only?

^ @xxMUROxx

@punker Well, nice idea. Can you assign me to this task so that I do not forget it?


fix: decoder on handling string, mainly on developer fields

Discussion: https://forums.garmin.com/developer/fit-sdk/f/discussion/355554/how-to-determine-developer-field-s-value-type-is-a-string-or-string

When decoding string value for DeveloperFields and unknown Fields, we no longer treat it as []string, instead fallback to FIT Protocol rule on string: decoder will determine it by counting how many valid string in bytes. if valid strings > 1 then it's a []string, otherwise a string
Clean up some code.

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

Project coverage is 100.00%. Comparing base (57c29e3) to head (de5d0b3).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #250   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           42        42
  Lines         3628      3645   +17
=========================================
+ Hits          3628      3645   +17

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


Extension tabs widget focus outline is cut off at the top

On Insiders

Navigate to an extension detail page
Tab to the actionbar that has entries like Details, Feature Contributions, etc.
:bug: The focus outline is cut off at the top

This one-off tab UI drives me a little bit bananas. @rzhao271 how possible is it to use the same tab component that we use for the bottom panel to avoid the entropy here?

I'm not sure about the code involved, but it seems like a good idea to reuse the component. The Settings editor also currently has a one-off tab UI.


codegen: Strip trailing bytes off of str() call

It turns out that bpf_probe_read_*str() may copy an additional couple
bytes after the nul terminator. The most likely reason is that the
kernel does the copy in strides and not byte-by-byte for efficiency
reasons. Usually this doesn't matter b/c string handling routines will
stop when they see a nul byte. However, it does matter when strings
are used as map keys b/c map keys are byte-by-byte compared and not
string aware.
This commit fixes the issue by ensuring that our string copy does not
leave any trailing bytes.
Checklist

[ ] Language changes are updated in docs/reference_guide.md
[x] User-visible and non-trivial changes updated in CHANGELOG.md
[x] The new behaviour is covered by tests

Posted the issue to bpf list; seems like a kernel fix will come soon<EMAIL_ADDRESS>I'm not sure what the best way to work around this issue is. The "clean" workaround requires a fairly recent kernel. The ugly workaround requires BPFTRACE_STRLEN to be pretty close to a power of 2 (so we can &= 0b111111... and please the verifier).

I wonder what kernel versions are affected by this issue.

I wonder what kernel versions are affected by this issue.

Alexei said it was a recent optimization but when I looked at kernel commit history it seems it's been there for at least a few years, if not since 2012 (before bpf). At least to me it's not obvious when it changed or if it was always subtly buggy.

I tried in Linux 5.9
#include <stdio.h>

void foo(char *a) {
    printf("%s\n", a);
}

int main(){
    char a[] = { '1', '2', '\0', '1' };
    char b[] = { '1', '2', '\0', '2' };
    char c[] = { '1', '2', '\0', '3' };

    foo(&a[0]);
    foo(&b[0]);
    foo(&c[0]);
}

% sudo ./src/bpftrace -e 'u:./a.out:foo { @[str(arg0)] = count(); }' -c ./a.out
Attaching 1 probe...
12
12
12

@[12]: 1
@[12]: 1
@[12]: 1

I hope it doesn't affect too many...

If the kernel fix goes in<EMAIL_ADDRESS>) I think I'll abandon this PR.


Fix Method Usage

tl;dr
There might have been a mix up with the following available API calls
get_device_info_by_index(device_index)
get_device_count()
get_host_api_count()
get_host_api_info_by_index(host_api_index)
get_device_info_by_host_api_device_index(host_api_index, host_api_device_index)
The incorrect method was being used for finding the device which led to an IndexError. Since we're attempting to add all of the devices, we should be using the method 'get_device_info_by_index` which will properly fetch the amount of devices we have.
This issue was also raised in #47 and #53
Issue
Run PyAudio().get_default_host_api_info()
Windows 10
{'index': 0, 'structVersion': 1, 'type': 2, 'name': 'MME', 'deviceCount': 5, 'defaultInputDevice': 1, 'defaultOutputDevice': 3}

>>> for i in range(py_audio.get_device_count()):
...     device_info = py_audio.get_device_info_by_host_api_device_index(0, i)
...     print(device_info)
...
{'index': 0, 'structVersion': 2, 'name': 'Microsoft Sound Mapper - Input', 'hostApi': 0, 'maxInputChannels': 2, 'maxOutputChannels': 0, 'defaultLowInputLatency': 0.09, 'defaultLowOutputLatency': 0.09, 'defaultHighInputLatency': 0.18, 'defaultHighOutputLatency': 0.18, 'defaultSampleRate': 44100.0}
{'index': 1, 'structVersion': 2, 'name': 'VoiceMeeter Output (VB-Audio Vo', 'hostApi': 0, 'maxInputChannels': 8, 'maxOutputChannels': 0, 'defaultLowInputLatency': 0.09, 'defaultLowOutputLatency': 0.09, 'defaultHighInputLatency': 0.18, 'defaultHighOutputLatency': 0.18, 'defaultSampleRate': 44100.0}
{'index': 2, 'structVersion': 2, 'name': 'Microsoft Sound Mapper - Output', 'hostApi': 0, 'maxInputChannels': 0, 'maxOutputChannels': 2, 'defaultLowInputLatency': 0.09, 'defaultLowOutputLatency': 0.09, 'defaultHighInputLatency': 0.18, 'defaultHighOutputLatency': 0.18, 'defaultSampleRate': 44100.0}
{'index': 3, 'structVersion': 2, 'name': 'VoiceMeeter Input (VB-Audio Voi', 'hostApi': 0, 'maxInputChannels': 0, 'maxOutputChannels': 8, 'defaultLowInputLatency': 0.09, 'defaultLowOutputLatency': 0.09, 'defaultHighInputLatency': 0.18, 'defaultHighOutputLatency': 0.18, 'defaultSampleRate': 44100.0}
{'index': 4, 'structVersion': 2, 'name': 'Speakers (Realtek High Definiti', 'hostApi': 0, 'maxInputChannels': 0, 'maxOutputChannels': 8, 'defaultLowInputLatency': 0.09, 'defaultLowOutputLatency': 0.09, 'defaultHighInputLatency': 0.18, 'defaultHighOutputLatency': 0.18, 'defaultSampleRate': 44100.0}
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "D:\Programs\Anaconda\envs\esp\lib\site-packages\pyaudio.py", line 852, in get_device_info_by_host_api_device_index
    host_api_device_index)
OSError: [Errno -9996] Invalid device

Looking into the docs further, we see that the Invalid device error is described as
A paInvalidDevice error code indicates that the hostApiDeviceIndex parameter is out of range.

source: portaudio docs
If I do PyAudio().get_device_count() , it lists 13 devices! That's way more than I have when I checked it using  PyAudio().get_default_host_api_info() and PyAudio().get_host_api_count() which lists 2.
So what this means is if I try PyAudio().get_device_info_by_host_api_device_index(0,index), I will always have an index error because the host only has 2 while I have 13 devices in total on my setup. Sometimes this will work seamlessly for people because their rig has the same amount of devices as their PortAudio Host APIs count.
The fix is to simply swap out the method call to get_device_info_by_index(device_index)

Try adding this line of code in #53

I will try when Im at home. By the way do I need to edit just main.py file or also .gitignore file? Its shown here: https://github.com/not-matt/Systematic-LEDs/pull/71/commits/29d3dc9a29620fed0ca750d592e178aa1e6fee61

I just modify main.py, does it work for you?
On Tue, Feb 5, 2019, 7:58 AM Andriejus<EMAIL_ADDRESS>wrote:

I will try when Im at home. By the way do I need to edit just main.py file
or also .gitignore file? Its shown here: 29d3dc9
https://github.com/not-matt/Systematic-LEDs/commit/29d3dc9a29620fed0ca750d592e178aa1e6fee61
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/not-matt/Systematic-LEDs/pull/71#issuecomment-460646914,
or mute the thread
https://github.com/notifications/unsubscribe-auth/As6sG-zrXk6uWc2tgv7IliIaFxH3roOfks5vKY4bgaJpZM4agS_L
.

It worked for me. Now Im able to choose not only microphone or built-in input. But if I make some changes in sound settings on my computer (like disabling microphone), so it crashes. I think you should set your sound settings right before you launch main.py. I played with sound settings and if microphone was disabled, so I couldnt run main.py (it crashes with syntax error). Im trying to find out how to set audio settings right in order to play music from my computer. Now Im able to use it only with microphone. Tried to use program "soundflower", but Im not sure how to use it:) I need to watch some tutorials.

Let me know your right audio configuration men, we can do the same to see
if that's the problem
On Wed, Feb 6, 2019, 2:57 AM Andriejus<EMAIL_ADDRESS>wrote:

It worked for me. Now Im able to choose not only microphone or built-in
input. But if I make some changes in sound settings on my computer (like
disabling microphone), so it crashes. I think you should set your sound
settings right before you launch main.py. I played with sound settings and
if microphone was disabled, so I couldnt run main.py (it crashes with
syntax error). Im trying to find out how to set audio settings right in
order to play music from my computer. Now Im able to use it only with
microphone. Tried to use program "soundflower", but Im not sure how to use
it:) I need to watch some tutorials.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/not-matt/Systematic-LEDs/pull/71#issuecomment-460946526,
or mute the thread
https://github.com/notifications/unsubscribe-auth/As6sG66fz8csfVBMgwccpMwsw3jBj8fIks5vKpj_gaJpZM4agS_L
.

Its working now for me. Here are screenshots of my audio configuration:

Thank you sir, I'll check that out!
On Wed, Feb 6, 2019, 2:46 PM Andriejus<EMAIL_ADDRESS>wrote:

Its working now for me. Here are screenshots of my audio configuration:
[image: screen shot 2019-02-06 at 9 40 10 pm]
https://user-images.githubusercontent.com/38490002/52372432-75999980-2a58-11e9-8d46-7e62b83e830a.png
[image: screen shot 2019-02-06 at 9 39 12 pm]
https://user-images.githubusercontent.com/38490002/52372433-75999980-2a58-11e9-9eb8-b8b309625c79.png
[image: screen shot 2019-02-06 at 9 41 18 pm]
https://user-images.githubusercontent.com/38490002/52372482-9366fe80-2a58-11e9-92cf-490da6845caf.png
[image: screen shot 2019-02-06 at 9 39 33 pm]
https://user-images.githubusercontent.com/38490002/52372483-9366fe80-2a58-11e9-9577-a795838224dd.png
[image: screen shot 2019-02-06 at 9 40 10 pm]
https://user-images.githubusercontent.com/38490002/52372485-9366fe80-2a58-11e9-989a-852688dfe71e.png
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/not-matt/Systematic-LEDs/pull/71#issuecomment-461180832,
or mute the thread
https://github.com/notifications/unsubscribe-auth/As6sG8eqxxfEPO_vN7CN-yhvXD4sGma1ks5vKz8QgaJpZM4agS_L
.


use tag builder to avoid materializing result

@adamreichold possible solution for https://github.com/PyO3/pyo3/pull/3661/files#r1431111113
I'm unsure what I think of the horrors here, but it solves the problem 😂

possible solution for https://github.com/PyO3/pyo3/pull/3661/files#r1431111113

To be honest, I am not sure what the specific problem there is, hence I am not yet confident to decided whether this additional complexity is worth it or not.

I think that this isn't needed after #3667, so will close.


Add more detail about EALSTM train/test split

From Sam:

How was the 60% train/40% test determined? By lake? Temporally?

By lake. The process description does state this: "Data were split by lake to avoid data leakage."
We could expound:
"In order to determine the split, data were grouped by lake, and each lake was randomly assigned to one of the three splits in such a way that the desired data proportions were achieved. Data were split by lake in this way to ensure that the test set could be used to evaluate model performance on unobserved lakes."

@AndyMcAliley yes, let's just add that additional content. Can you PR that addition to this section? https://github.com/USGS-R/lake-temp-lstm-static-data-release/blob/main/in_text/text_data_release.yml#L2058


Inconsistent UI [Attached Mockups]

Is your feature request related to a problem? Please describe.
Currently, switching between different screens/menu items feels abrupt, mugged up and unpolished. Each screen is entirely different from one another and it's not a great overall experience.
Describe the solution you'd like
Having some clear and concise mockups, UI designs, so that the web app, looks & feels more polished and consistent throughout all the screens.
Plus, it could be a great source of reference for other people while creating the elements for the web app.
Additional context
I have attached a few quick mockups I could make to explain what I'm aiming to achieve, would love to work on creating precised ones, if I'm assigned.

@Abhishek-kumar09 Can I work on this issue ?

@Abhishek-kumar09 You have any other UI design then please share so that I can start working on this.

@kunal-kushwaha @KeenWarrior @Abhishek-kumar09 can i work on this issue?


Generating TCP/UDP network data for automated unit test generation

http://dl.acm.org/citation.cfm?id=2786828&CFID=651592982&CFTOKEN=95333899

projects randomly selected from SourceForge,
no dataset available (link)


Save resource constraint error

The SS and TPI output dictionaries should include the resource constraint errors.  It's often not trivial to recompute these with output currently present in the dictionaries.

Addressed with PR #432


TimeoutError: [WinError 10060]

Please help me

your internet connection could not download detector.onnx model , you should make sure your 🪜 configure，let it can work properly in terminal

#45 reference this issue


[Feature] Map to Siri

You can do it easily!
First, you have to write Apple Script like that.

tell application "/Applications/Siri.app"
activate
end tell

Second, set power key to "Script and select the file.

Thanks @sohsatoh!!


Request: Color Invert for Dark Modes

Hi there,
thanks so much for your addon.
I would like to request a feature.
I personally really like to use dark mode to read articles on the internet.
Could you add a button to invert colors or to change the grey text coloring to white?
Sometimes, when I read a website in dark mode and use your extension, most of the text is getting completely merged in the websites background because of its grey coloring.
Thanks alot word your awesome extension anyway!

I've found a workaround for this issue that works on most websites: install the Dark Reader extension as well, and it should invert the black text from WaspLine back to white.

I second this request so hard! Wish you could make the third color transparent/non-interactive so the original text color shows better. Then nomatter what colors the website or other extensions set it to it will work. If that is possible it would be the extension of time to me!

Wanted to chime in here, would be great if there was a mode that would either retain the original text color instead of changing it black.
Alternatively if its easier, it would also work to have the second click of the waspline button change the colors to blue, red, and white.


Error while setting up platform afvalwijzer

When I add the following either via HACS or manual via custom_components folder to configuration.yaml

platform: afvalwijzer
url: 'mijnafvalwijzer.nl'
postcode: '$postcode'
huisnummer: '$number'
toevoeging: ''
label_geen: 'Geen'

I'm getting the bellow error message
Error while setting up platform afvalwijzer Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform     SLOW_SETUP_MAX_WAIT)   File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for     return fut.result()   File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run     result = self.fn(*self.args, **self.kwargs)   File "/config/custom_components/afvalwijzer/sensor.py", line 84, in setup_platform     json_obj = response.json()   File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json     return complexjson.loads(self.text, **kwargs)   File "/usr/local/lib/python3.7/site-packages/simplejson/__init__.py", line 518, in loads     return _default_decoder.decode(s)   File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode     obj, end = self.raw_decode(s)   File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode     return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Any advise on what i'm doing wrong?
Is this because my township isn't supported in some way?
--- Passie

My configuration looks like this.
- platform: afvalwijzer   url: 'mijnafvalwijzer.nl'   postcode: !secret postcode   huisnummer: !secret huisnummer   label_geen: 'Geen'
where the secrets for the postalcode and number is the postal code and the number without the ''

It seems to have something todo with mijnafvalwijzer.nl not providing any data. Can you try entering the following url, with your postal code and housenumber?
https://json.mijnafvalwijzer.nl/?method=postcodecheck&postcode={1}&street=&huisnummer={2}&platform=phone&langs=nl&

It seems to have something todo with mijnafvalwijzer.nl not providing any data. Can you try entering the following url, with your postal code {1} and housenumber {2}?
https://json.mijnafvalwijzer.nl/?method=postcodecheck&postcode={1}&street=&huisnummer={2}&platform=phone&langs=nl&

When using the url you provided with altered postal code and house number it's giving me back data in the form of json.
Though when installing the plugin via hacs and adding the following config to my configuration.yaml i'm still getting the above error message
  - platform: afvalwijzer
    url: 'mijnafvalwijzer.nl'
    postcode: '2131AN'
    huisnummer: '13'
    label_geen: 'Geen'

Any idea what's wrong?

When i fill in your data on the website of afvalwijzer, i am getting an error: Uw adres is niet bekend bij ons. Neem contact op met uw gemeente
probably your city isnt providing the data to afvalwijzer.

In that case i’ll close the issue. Thanks for the support


Fix ESLint config

Changes

Fixed ESLint usage in VS Code when running from the repo root.

Primary change is from a JSON file to a JS file, where we now use __dirname for tsconfigRootDir.
I also set root: true so ESLint doesn't attempt to continue searching for Lint configs above the app directory

Testing
Before:

After (working TS and ESLint actions):

Moving back to draft. Seeing a couple more issues.


Vite cannot load configuration files in the link directory

Describe the bug
Failed to package in the linked directory，Because the configuration file was not successfully loaded.
require.extensions[extension] = (module: NodeModule, filename: string) => {
    if (filename === fileName) {
      ;(module as NodeModuleWithCompile)._compile(bundledCode, filename)
    } else {
      defaultLoader(module, filename)
    }
  }

is this code, filename resolves to realpath but the fileName  is link path.  therefore lead to use defaultLoader to load vite.config.ts which is undefined loader.
so. my fix is use fs.realpathSync to get real fileName dir, and that's work for me.
require.extensions[extension] = (module: NodeModule, filename: string) => {
    if (filename === fs.realpathSync(fileName)) {
      ;(module as NodeModuleWithCompile)._compile(bundledCode, filename)
    } else {
      defaultLoader(module, filename)
    }
  }

Reproduction

Create a vite project directory, the configuration file is vite.config.ts
Execute the following command to link the original directory to the new directorycd D:
mklink /j dir D:\to\source\dir

Perform packaging in link pathyarn build

System Info
System:
    OS: Windows 10 10.0.19041
    CPU: (4) x64 Intel(R) Core(TM) i5-4210M CPU @ 2.60GHz
    Memory: 1.25 GB / 7.89 GB
  Binaries:
    Node: 12.22.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.12 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 91.0.4472.124
    Edge: Spartan (44.19041.1023.0), Chromium (91.0.864.64)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    vite: ^2.4.1 => 2.4.1

Used Package Manager
yarn
Logs
failed to load config from D:\editor\vite.config.ts
error during build:
TypeError: defaultLoader is not a function
    at Object.require.extensions.<computed> [as .ts] (D:\Code\xbguan.ppcw_h5\editor2\node_modules\vite\dist\node\chunks\dep-cc49d7be.js:74775:13)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at loadConfigFromBundledFile (D:\Code\xbguan.ppcw_h5\editor2\node_modules\vite\dist\node\chunks\dep-cc49d7be.js:74780:17)
    at loadConfigFromFile (D:\Code\xbguan.ppcw_h5\editor2\node_modules\vite\dist\node\chunks\dep-cc49d7be.js:74696:32)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async resolveConfig (D:\Code\xbguan.ppcw_h5\editor2\node_modules\vite\dist\node\chunks\dep-cc49d7be.js:74282:28)
    at async doBuild (D:\Code\xbguan.ppcw_h5\editor2\node_modules\vite\dist\node\chunks\dep-cc49d7be.js:50882:20)
error Command failed with exit code 1.

Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

To make this issue more searchable , the error message in a js project will be (different from ts project):

SyntaxError: Cannot use import statement outside a module

Also, some other keywords: windows, symlink, git-bash, cmd, powershell, junction
This is the same issue as #1493.

From my test, it doesn't happen in projects created with template vanilla, but does happen with template vue and template react.

Any progress on it?


Editing locked after creating variable name with the same name.

当尝试更改变量名称时发生错误
当我尝试更改变量名称时,我不小心将名称与另一个变量设成一样,软件提示已经有这个变量了,当我重新尝试修改的时候,无法在输入框中输入任何内容,创建变量的窗口也无法输入任何内容
When I try to change the variable name, I accidentally set the name to be the same as another variable, the software prompts that the variable already exists, and when I try to modify it again, I cannot enter anything in the input box, creating a window for the variable also can't enter anything

确实有这个问题，这是由于electron在win10后系统的一个bug导致，出现这个问题后，你可以将光标移动到软件外部点击聚焦其他内容，然后在回到软件中重新输入即可，不过同时我们会修复这个问题的。

These problems all stem from the same bug: https://github.com/electron/electron/issues/20400#issuecomment-539586029. Under the windows system, the render thread inside the electron cannot use the altert popup window. We've fixed some of this before: https://github.com/openblockcc/openblock-desktop/commit/dcf119b4c27c8f85e810d3a13882af40570898c3, but didn't notice that alerts are also used in blocks, Now we need to put the alert from blocks to vm->gui->electron to fix this bug.


Extend documentation with recipies of constructing instances of Hashing for composite types (sums, products, enums)

It's not obvious currently how the API can be used to achieve that.
This thread is intended for collection of examples, which you're very welcome to post as comments.

As a starter, here's two alternative recipies for an instance of a sum-type:
type FontLocation =
  GoogleFontLocation | UriFontLocation String | LocalFontLocation

fontLocationThruEither : Hashing FontLocation
fontLocationThruEither =
  either int (string 3) |>
  map (\ a -> case a of
    GoogleFontLocation -> Either.Left 0
    UriFontLocation b -> Either.Right b
    LocalFontLocation -> Either.Left 1)

fontLocationThruProduct : Hashing FontLocation
fontLocationThruProduct =
  concat
    [
      map .tag int,
      map .uri (string 3)
    ] |>
  map (\ a -> case a of
    GoogleFontLocation -> {tag = 0, uri = ""}
    UriFontLocation b -> {tag = 1, uri = b}
    LocalFontLocation -> {tag = 2, uri = ""})

Here's an example of an enum:

type FontWeight =
  ThinFontWeight |
  UltraLightFontWeight |
  LightFontWeight |
  NormalFontWeight |
  MediumFontWeight |
  SemiBoldFontWeight |
  BoldFontWeight |
  UltraBoldFontWeight |
  BlackFontWeight |
  UltraBlackFontWeight

fontWeight : Hashing FontWeight
fontWeight =
  int |>
  map (\ a -> case a of
    ThinFontWeight -> 0
    UltraLightFontWeight -> 1
    LightFontWeight -> 2
    NormalFontWeight -> 3
    MediumFontWeight -> 4
    SemiBoldFontWeight -> 5
    BoldFontWeight -> 6
    UltraBoldFontWeight -> 7
    BlackFontWeight -> 8
    UltraBlackFontWeight -> 9)


change API from snake to camel case

Pull Request Test Coverage Report for Build 774939078

17 of 19 (89.47%)  changed or added relevant lines in 4 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.0002%) to 82.128%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

services/src/handlers/datasets.rs
3
5
60.0%

Files with Coverage Reduction
New Missed Lines
%

operators/src/concurrency/thread_pool.rs
2
92.49%

Totals

Change from base Build 774489750:
-0.0002%

Covered Lines:
16208

Relevant Lines:
19735

💛  - Coveralls

 REST-API JSON uses camelCase


Fixes #2901 - cli command to update s3 bucket policies

coverage: 94.033% (-0.06%) from 94.088% when pulling b9ad6e0817087c4e06f773829b11edfba6b14442 on cody-cross-region-update-bucket-policies into f5e081f61ff79262a3db71077e9ef7eecbd8f10a on main.


Fix dotty CI

Closes #20362

When I generated the checkfile in the branch of #20325, I get the following feedback
-- Error: tests/neg/i20317.scala:3:10 ----------------------------------------------------------------------------------
3 |def foo[A <: Foo[A]]: Unit = () // error // error
  |          ^
  |          Recursion limit exceeded.
  |          Maybe there is an illegal cyclic reference?
  |          If that's not the case, you could also try to increase the stacksize using the -Xss JVM option.
  |          For the unprocessed stack trace, compile with -Yno-decode-stacktraces.
  |          A recurring operation is (inner to outer):
  |
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]
  |            type parameters of A
  |            type parameters of A
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]
  |            type parameters of A
  |            type parameters of A
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]
  |            ...
  |
  |            type parameters of A
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]
  |            type parameters of A
  |            type parameters of A
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]
  |            type parameters of A
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]
-- Error: tests/neg/i20317.scala:3:8 -----------------------------------------------------------------------------------
3 |def foo[A <: Foo[A]]: Unit = () // error // error
  |        ^
  |        Recursion limit exceeded.
  |        Maybe there is an illegal cyclic reference?
  |        If that's not the case, you could also try to increase the stacksize using the -Xss JVM option.
  |        For the unprocessed stack trace, compile with -Yno-decode-stacktraces.
  |        A recurring operation is (inner to outer):
  |
  |          type parameters of A
  |          type parameters of Foo[A]
  |          type parameters of  <: Foo[A]
  |          type parameters of A
  |          type parameters of A
  |          type parameters of Foo[A]
  |          type parameters of  <: Foo[A]
  |          type parameters of A
  |          type parameters of A
  |          type parameters of Foo[A]
  |          ...
  |
  |          type parameters of A
  |          type parameters of A
  |          type parameters of Foo[A]
  |          type parameters of  <: Foo[A]
  |          type parameters of A
  |          type parameters of A
  |          type parameters of Foo[A]
  |          type parameters of  <: Foo[A]
  |          type parameters of A
  |          type parameters of Foo[A]

Is this the expected behaviour ? Should this PR be considered as unblocking the CI and not a fix ?

We've merged so many PRs in the past 2 days that it's not very surprising that we got so-called semantic conflicts. Reporting 1 or 2 "illegal cyclic" errors doesn't make any difference. So if it unblocks the CI, that's good enough.

Yes let's change the check file. It's an evil and completely senseless test problem. We only test that the compiler survives it, with some indication what is wrong.

@odersky The error reporting is non-deterministic, the CI failed and when I rerun the test locally I get the following checkfile (which is the second error that we thought is ignored):
-- Error: tests/neg/i20317.scala:3:10 ----------------------------------------------------------------------------------
3 |def foo[A <: Foo[A]]: Unit = () // error
  |          ^
  |          Recursion limit exceeded.
  |          Maybe there is an illegal cyclic reference?
  |          If that's not the case, you could also try to increase the stacksize using the -Xss JVM option.
  |          For the unprocessed stack trace, compile with -Xno-decode-stacktraces.
  |          A recurring operation is (inner to outer):
  |
  |            type parameters of  <: Foo[A]
  |            type parameters of A
  |            type parameters of A
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]
  |            type parameters of A
  |            type parameters of A
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]
  |            type parameters of A
  |            ...
  |
  |            type parameters of A
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]
  |            type parameters of A
  |            type parameters of A
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]
  |            type parameters of A
  |            type parameters of Foo[A]
  |            type parameters of  <: Foo[A]

OK, drop the test then. As I said it's a really evil program. I don't care
if the behavior is non-deterministic in the number of errors.
There's a second test i20317a.scala that behaves better. It's good enough
to keep that one.
On Wed, May 8, 2024 at 11:01 AM Hamza Remmal @.***>
wrote:

@odersky https://github.com/odersky The error reporting is
non-deterministic, the CI failed and when I rerun the test locally I get
the following checkfile (which is the second error that we thought is
ignored):
-- Error: tests/neg/i20317.scala:3:10 ----------------------------------------------------------------------------------3 |def foo[A <: Foo[A]]: Unit = () // error
|          ^
|          Recursion limit exceeded.
|          Maybe there is an illegal cyclic reference?
|          If that's not the case, you could also try to increase the stacksize using the -Xss JVM option.
|          For the unprocessed stack trace, compile with -Xno-decode-stacktraces.
|          A recurring operation is (inner to outer):
|
|            type parameters of  <: Foo[A]
|            type parameters of A
|            type parameters of A
|            type parameters of Foo[A]
|            type parameters of  <: Foo[A]
|            type parameters of A
|            type parameters of A
|            type parameters of Foo[A]
|            type parameters of  <: Foo[A]
|            type parameters of A
|            ...
|
|            type parameters of A
|            type parameters of Foo[A]
|            type parameters of  <: Foo[A]
|            type parameters of A
|            type parameters of A
|            type parameters of Foo[A]
|            type parameters of  <: Foo[A]
|            type parameters of A
|            type parameters of Foo[A]
|            type parameters of  <: Foo[A]
—
Reply to this email directly, view it on GitHub
https://github.com/scala/scala3/pull/20363#issuecomment-2100103578, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGCKVWXVFKLDYTRO4U5LLDZBHSYFAVCNFSM6AAAAABHMP3TLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGEYDGNJXHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Martin Odersky
Professor, Programming Methods Group (LAMP)
Faculty IC, EPFL
Station 14, Lausanne, Switzerland


Unable to configure settings through lua file

I'm trying to use pynvim for testing a plugin but I am unable to run a nvim with the configuration I want.
Let's say I have the following minimal configuration-file:
-- tmp.lua
vim.g.mapleader = ','

Now, consider the following normal execution of nvim:
/bin/env nvim -u NONE +"luafile /path/to/tmp.lua" +"echo g:mapleader"

which as exepcted shows ,.
However, if I run the following
from pynvim import attach
nvim = attach('child', argv=[
    "/bin/env",
    "nvim",
    "--embed",
    "--headless",
    "-u",
    "NONE",
    "+\"luafile /path/to/tmp.lua\"",
])
print(nvim.command_output("echo g:mapleader"))

I get
Traceback (most recent call last):
  File "/path/to/tmp.py", line 11, in <module>
    print(nvim.command_output("echo g:mapleader"))
  File "/usr/lib/python3.9/site-packages/pynvim/api/nvim.py", line 291, in command_output
    return self.request('nvim_command_output', string)
  File "/usr/lib/python3.9/site-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
    raise self.error_wrapper(err)
pynvim.api.common.NvimError: Vim(echo):E121: Undefined variable: g:mapleader

Is this an issue with pynvim or am I doing something wrong?

nvim = attach('child', argv=[
    "/bin/env",
    "nvim",
    "--embed",
    "--headless",
   ...

See :help --embed.
--embed is for UIs (or clients that want UI events). In that case nvim waits for nvim_ui_attach() before continuing, and that means it doesn't run the user config (-u) nor any other commands until then.

print(nvim.command_output("echo g:mapleader"))

btw, nvim_command_output() is deprecated, use nvim_exec() instead.


Add Documentation to "Set User Status" Endpoint

Idea
At this point, we have a ton of endpoints and the number just keeps growing. We need to document all of these endpoints but the only way to do that is to write about each of them. That is where you come in. If you would like to document this endpoint, just comment on the post, and I will assign it to you.
Todo

[ ] Add an item to the OpenAPI file that shows how to "Set User Status"
[x] Add a documentation page about "Set User Status"

i can do it


Unable to find or download file (gz sim buoyant_tethys.sdf)

Hi,
I installed the lrauv simulator following the instructions "Using a containerized workspace" in the Wiki. Everything went right, but when I tried to run the first example: gz sim buoyant_tethys.sdf   I got the following error: Unable to find or download file.
Nonetheless, if I execute the control commands to move the vehicle, they seem to work fine LRAUV_example_controller and LRAUV_keyboard_teleop as I can see in the terminal that the LRAUV's parameters changes.
I installed the simulator in a fresh new Ubuntu 22.04, with new Docker and nvidia-docker. I installed and ran it on a remote PC through ssh.
Do you know why I got this error?
Thanks!

Did you source the workspace?

Yes, I did . install/setup.bash inside ~/lrauv_ws workspace

Ah OK I reallized we removed the gz sim buoyant_tethys.sdf example. I've updated the wiki with new instructions. Run gz sim empty_environment.sdf.

Also, I have to say that inside the folder ~/lrauv_ws/src/ I only have the /lrauv folder not the /lrauv-applicaion folder, and therefore I cannot execute the "Run the MBARI LRAUV application" commands explained in the examples . I have missed some step?

Ah OK I reallized we removed the gz sim buoyant_tethys.sdf example. I've updated the wiki with new instructions. Run gz sim empty_environment.sdf.

Ok, that looks like it works, however I'm not onsite (I'm connected to a remote machine through SSH), and I received some errors related to "qt.qpa.xcb: could not connect to display" which I think they are normal, I will test it on site later on. Thanks!

Ah yes we should put a header on that. The LRAUV application is no longer available as it is MBARI's own IP. @hidmic do we know how we plan on exporting the MBARI controller? If not we should remove those instructions or put a heading saying "For MBARI users only."

I have an MBARI collaboration agreement which give me access to their LRAUV Bitbucket repository. In that case, what is the best case to integrate lrauv-applicaiton into ignition? should I colon the lrauv-application in the lrauv_ws/src folder and build it there (inside the container I just created )? or is there another better way? how will it interact with ignition, transparently by the user? Thanks so much for your help!

@caguero , @hidmic , @adityapande-1995 please advice when you guys wake up. I'm sorry I don't have access to the MBARI stuff so they will be better suited to answer your question.

I have an MBARI collaboration agreement which give me access to their LRAUV Bitbucket repository. In that case, what is the best case to integrate lrauv-applicaiton into ignition?

@imasmitja if you have such an agreement, then you have access to simulation usage instructions. Look for the Tools/gz folder.

do we know how we plan on exporting the MBARI controller? If not we should remove those instructions or put a heading saying "For MBARI users only."

@arjo129 MBARI folks should build and push the binaries in a Docker image, like they used to. The infrastructure is there.

Closing this issue as it seems resolved.