[master] Anka support

Various changes needed for supporting the new pipeline-upload and Anka.

Blockchain has asked us to use the pipeline.jsonc file only when we need to override default pipeline behavior, but these variables are intended to create default pipeline behavior and should be implemented in one of the following places:

Pipeline upload script
Pipeline YAML
Pipeline terraform

They also do not approve pull requests to master unless it is really, really necessary. I have opened three pull requests to master and they have all been closed as another workaround was possible. In this case, another workaround is possible so, respectfully, I am closing this pull request.


reportingDescriptor name should mention pascal style constraint

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#reportingdescriptor-object
What part(s) of the article would you like to see updated?

Name
Description

name
Optional. The name of the rule. Code scanning displays the name to allow results to be filtered by rule on GitHub.

Should mention:

SARIF2012: Rule metadata should provide information that makes it easy to understand and fix the problem. Provide the 'name' property, which contains a "friendly name" that helps users see at a glance the purpose of the rule. For uniformity of experience across all tools that produce SARIF, the friendly name should be a single Pascal-case identifier, for example, 'ProvideRuleFriendlyName'. Provide the 'helpUri' property, which contains a URI where users can find detailed information about the rule. This information should include a detailed description of the invalid pattern, an explanation of why the pattern is poor practice (particularly in contexts such as security or accessibility where driving considerations might not be readily apparent), guidance for resolving the problem (including describing circumstances in which ignoring the problem altogether might be appropriate), examples of invalid and valid patterns, and special considerations (such as noting when a violation should never be ignored or suppressed, noting when a violation could cause downstream tool noise, and noting when a rule can be configured in some way to refine or alter the analysis).

Additional information
Through a couple of levels of indirection, this page links to this page:
https://sarifweb.azurewebsites.net/Validation
And when I tried to validate my sarif file (checking the GitHub ingestion rules option), the validator screamed at me.
See steps to reproduce in: https://github.com/github/docs/issues/20872#issuecomment-1534850272

Details of a separate problem...
Each item in this page should mention length and other constraints as well...

Name
Description

name
Optional. The name of the rule. Code scanning displays the name to allow results to be filtered by rule on GitHub.

shortDescription.text
Required. A concise description of the rule. Code scanning displays the short description on GitHub next to the associated results.

fullDescription.text
Required. A description of the rule. Code scanning displays the full description on GitHub next to the associated results. The max number of characters is limited to 1000.

fullDestription.text is limited to 1000 chars, but name and shortDescription.text aren't limited?

👋 @jsoref - Thanks so much for opening an issue! I'll triage this for the team to take a look :eyes:

Thanks for flagging this @jsoref - much appreciated.

Each item in this page should mention length and other constraints as well...

I'm going to tag this for an SME to take a look and advise on this. Then we'll add update the issue summary with details of the content changes needed.

Each item in this page should mention length and other constraints as well...

The limits on the three fields in that table are:

Name - 255 characters
ShortDescription.Text - 1024 characters
FullDescription.Text - 1024 characters

@felicitymay: this covers part two of the problem (character limits for 3 fields) but not part one (Pascal Style):

For uniformity of experience across all tools that produce SARIF, the friendly name should be a single Pascal-case identifier, for example, 'ProvideRuleFriendlyName'.

Thanks for the reminder @jsoref
When I searched for the text you quoted in the issue summary inhttp://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html, I failed to find it. Could you check that it's still there?
Looking at "3.49.7 name property", I can see that they use a Pascal example name but that they don't specify that this is a requirement.
The longer example SARIF file in the article seems to include name that is not Pascal-case, so I'm wondering if this might have been an error in the specification that's since been corrected 🤔

Steps:

Download https://raw.githubusercontent.com/jsoref/sarif-file-conventions/main/sample2.sarif.json
Visit: https://sarifweb.azurewebsites.net/Validation

[x] GitHub ingestion rules

Upload sample2.sarif.json

It highlights:

          "name": "Unrecognized-Spelling2",

And says:

SARIF2012: runs[0].tool.driver.rules[0].name: 'Unrecognized-Spelling2' is not a Pascal-case identifier. For uniformity of experience across all tools that produce SARIF, the friendly name should be a single Pascal-case identifier, for example, 'ProvideRuleFriendlyName'.

It's actually complaining 5 times, you can use the down arrow to discover a similar complaint for each of the instances, although frustratingly it doesn't like EOF, I didn't realize it wouldn't like that...
Note that:
https://sarifweb.azurewebsites.net/

Collaborators
The SARIF project is supported by a group of industry contributors.

Contrast
Sonar
ForAllSecure
Mend
GrammaTech
Micro Focus
Microsoft
GitHub, Inc.

...
Copyright © Microsoft Corporation. All rights reserved.

If this isn't right, then someone from GitHub (a sponsor of https://sarifweb.azurewebsites.net/) should tell someone from Microsoft (the host and sponsor and owner of GitHub) to change their content.
If it's right, then, ideally the documentation would be fixed to cover this stuff so that I wouldn't have to get it from this validator.

@jsoref - many thanks for the clear reproduction steps. I'll tag this for an SME review.

Hi @jsoref 👋🏻
Apologies for the delay in getting back to you.
I can confirm that there is no need to use Pascal case for the reportingDescriptor name property. The SARIF specification sets no limits on the text for this field, see 3.49.7 name property. I agree with you that the example is misleading.
Proposed actions:

Let Microsoft know that they need to update the validation for GitHub ingestion rules.
Update the description for this field to state that there are no restrictions on the format of the string.
Add a note to the section on validating your SARIF file to let people know that if there is a discrepancy between the validator results and the specification, the specification is correct. They should try uploading their SARIF file.

I think this will make this clearer in the docs and hopefully the validator will be updated soon.

I don't see the validation flag in the REST documentation?

I didn't find it easily either. It's the last body parameter:

Oh, I think your anchor was for an earlier object. I think you meant:
https://docs.github.com/en/rest/code-scanning/code-scanning?apiVersion=2022-11-28#upload-an-analysis-as-sarif-data

Interesting. That is the same link that I gave.
I can certainly raise a request to look into the possibility of making more anchors available on the page. I suspect that there may be concerns with adding more visual distraction to the page, but the only way to find out is to ask.

I can understand the concern about visual clutter. If the additional anchors didn't have the magic visual distinctions and were only discoverable via DOM Inspection, I'd still take the half-improvement as people like you and me could produce them (using a typical desktop web browser) and everyone could benefit from consuming them (as long as our HTML user agent isn't broken – see discussion linked from edited comment above).

@cmwilson21

Reopened


v5 - avoid mutation of state.children

This probably should be refactored to avoid mutation of this.state - I think most people treat this as immutable. Maybe grabbing the actor ref to stop within machine APIs~ and embedding that in the action would help? This way we wouldn't have to access this here by ID
Originally posted by @Andarist in https://github.com/statelyai/xstate/pull/2840#discussion_r758498981

Fixed in xstate@beta


No "Versions" selection on GitHub

Please give us an appropriate way to tell if we have / select to download the most up to date version from GitHub. Where else can I trust to have the actual code?

The launcher has many releases: https://github.com/runelite/launcher/releases
The releases have published hashes and the Windows executables are codesigned. I don't think there is any more we need to do for this.


ARROW-10214: [Python] Allow printing undecodable schema metadata

AppVeyor: https://ci.appveyor.com/project/pitrou/arrow/builds/35619573
Travis-CI: https://travis-ci.org/github/pitrou/arrow/builds/733677744


drivers: eeprom: add missing documentation to eeprom.h

Add missing doxygen documentation to the eeprom.h header file. This was revealed by bad87f1684e7fe8be11a39290d688d9585549184.

No strong opinion here but to be clear as soon as you put these in a hidden section, it's not really required to add proper docstrings anymore (plus, IIRC doxygen might still complain, as a warning at least, that params are not documented). But that could be useful should we one day decide that we actually want to publish the docs for internal APIs one day.

Thanks for the heads-up. I know the docstrings are not required for hidden sections, but I like to at least have the references there for people reading the code. As far as I can tell, Doxygen does not complain about missing param documentation for hidden sections (this is how it's done in can.h as well).

[...] As far as I can tell, Doxygen does not complain about missing param documentation for hidden sections (this is how it's done in can.h as well).

Ya it doesn't complain about anything for it simply skips it. I meant: should we one day decide to expose the hidden bits, it will be nice if they are already somewhat documented but Doxygen may then complaint they are not fully documented (i.e. missing @params doc).
Anyways, thanks!!


Tooltip doesn't appear inside Reveal

How can we reproduce this bug?

Create a Reveal modal window
Create a tooltip inside the modal window
hover on the tooltip

I expect the tooltip to appear when hovering inside the modal window.
What happened instead was the tooltip didn't appear.
Link to a CodePen:

Foundation 6 Reveal Tooltip bug

Thanks for reporting this issue, @ableslayer!
I will check it ASAP.

I think this bug may actually be the same as https://github.com/zurb/foundation-sites/issues/9193

I think #9193 is another story

@kball When will the fix be released? See also #8775.

You're right @glen-84 , it looks the same.
Thanks for pointing that out.


OneWire breaks I2C

Hi,
in the default settings, the onewire pins is one of the i2c pins. That's fine if you use no I2C sensors, or both I2C light sensors and I2C temperature sensors.
However, once you use only an I2C light sensor and no I2C temperature sensor, PixelIt next probes for an DHT sensor per OneWire. The communcation on I2C already had been established, but as Onewire uses the same pin, will be broken now, no matter whether there's an DHT or not.
Fix has been provided in PR https://github.com/pixelit-project/PixelIt/pull/240/commits/8205dc9807bbe50ac77477364acf33d5b57c963e. However, I killed my fork, which also removed the PR. @o0shojo0o: can you simply include the fix (which still can be read in the PR) with one of your next PRs?

Thanks for that, I've put it in.


Fix Authorization URL Update discord.ts

🔗 Linked issue

❓ Type of change

[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
I have fixed the url used for Discord oath2 authorization. It required the removal of the /api part in the route in accordance with Discords OAuth2 documentation (read here: https://discord.com/developers/docs/topics/oauth2).
Furthermore, I added a parameter to the request called "integration_type" and I set the value to 1. Though the Discord documentation states that it is unnecessary unless a specific scope is being called, I kept receiving an error that said "Installation type not supported for this application". I solved it by adding the integration type and setting it to user install.
📝 Checklist
I have not linked an issue or discussion, as I did not see one. I also do not believe this change will require any change to the documentation.

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

Thanks!


Dependency confusion attacks against Qentinel

Need help! Can't keep up.
Source: https://info.qentinel.com/blog/dependency-confusion-attack

Added in commit a4526d80de5da4efd27837be325f9732fa2d7e13


404 using entity name as path when url is provided

I have a OData provider that retuns entities in the form of (EntityID, Url).
import requests
from requests.auth import HTTPBasicAuth

SERVICE_URL = 'https://REDACTED/odata_service.svc/'

basic = HTTPBasicAuth('redacted', 'redacted')
my_session = requests.Session()
my_session.auth = basic
r = my_session.get(SERVICE_URL)
# >>> r
# <Response [200]>
r.json()
#<EMAIL_ADDRESS>'https://REDACTED/odata_service.svc/$metadata', 'value': [{'name': 'MyOData', 'url': '7588c426-3357-46e8-8021-255e1fb9aab6'}]}

When I try with pyodata:
import pyodata
client = pyodata.Client(SERVICE_URL, my_session)
client.entity_sets.MyOData.get_entities().count().execute()

I get a 404 : pyodata.exceptions.HttpError: HTTP GET for Entity Set MyOData failed with status code 404
It seems pyodata is trying to use the entity name property as a path (client.entity_sets.MyOData.get_entities().get_path() # => 'MyOData') instead of the url property.
When I do it manually with requests :
r = my_session.get(SERVICE_URL+'7588c426-3357-46e8-8021-255e1fb9aab6')
#>>> r
#<Response [200]>
len(r.json()['value'])
# 203

is works.
What do I missed ?

Hi @setop
this is hard to reproduce locally with information provided. But if the my_session.get(SERVICE_URL) returns direct some JSON payload with values of what you describe as entities (where I would expect return of Service Document, e.g. list of EntitySets - https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-odata/908358ab-f3b2-4c0a-a661-23f4e13a1778), then there is something strange in the odata service. Is it truly Odata or just REST?
I am not seeing in all your code examples (be it odata or direct requests) anything covering "Resource Path" part of odata URL, see https://www.odata.org/documentation/odata-version-2-0/uri-conventions/ for details. Just the service root itself.
my_session.get(SERVICE_URL+'7588c426-3357-46e8-8021-255e1fb9aab6') doesn't look as Odata URLs to me at all, just some REST GET.
Could you please provide $metadata document of the service - 'https://REDACTED/odata_service.svc/$metadata' ? You can redact all URLs there, but just the structure of entities, entitysets, entitytypes.

no comment from author, closing as not actionable.


Change log messages when Timers 'expire'

When timers 'expire' or 'go off' in SIP.js, a message gets logged that reads something like this:

sip-0.6.4.min.js:36 Tue Feb 24 2015 16:47:03 GMT+0200 (Финляндия (зима)) | sip.transaction.nist | Timer J expired for non-INVITE server transaction z9hG4bK7f5249a4

While technically accurate, it causes a lot of confusion for non-experts examining the logs, which leads to many red herring support issues.  We should change the message to better indicate that these are normal occurrences and not something to worry about.

An alternative is to eliminate the messages, and manually re-enable them when debugging an issue (the same philosophy we'll be applying to event emissions when #66 is merged).

Philosophy applied.

Actually...nevermind.  I misunderstood what that was saying.

It would be great to address this, I find these log messages thoroughly confusing.


update extension manager deps

This PR will update all the node dependencies of the extension manager. This will hopefully resolve some of the installation issues that we have seen in the past.
All the unit test passed successfully.

@MarcelGerber once this got merged, we should update the registry to use a more recent version of the package-validator.

This is not a bug, so I guess it should be closed?

This is a PR, and still valid.
Maybe we can rethink how it is done or update it, but the fact the dependencies should be update is still true.

According to the conversation in https://github.com/adobe/brackets/issues/12898 this seems important.

Closed this in favor of https://github.com/adobe/brackets/pull/12933


Breakpoint in dynamic link library cannot be hit

OS: ubuntu20.04
VSCode version: 1.81.1 x64 windows
CodeLLDB version: v1.9.2
Compiler: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Debuggee: Dynamic link library, selectively loaded through the address in the configuration file

The breakpoint in dynamic link library cannot be hit, but there is no such problem in the native lldb. When i debug dynamic link library, which is selectively loaded through the address in the configuration file. The config file is similar to the following：
        "preRunCommands": [
            "module_id": "Segment",
            "class_name": "map_Segment",
            "package": "./lib/lib_my.so",
            "inputs": [
              {
                "port_id": "port_id_0",
                "topic": "/topic/seg/map"
              }
            ],
        ]

the "lib/lib_my.so" is my  dynamic link library, The breakpoint in it  cannot be hit
But when I add the following command in launch.json, the problem is solved：
        "preRunCommands": [
            "settings set target.exec-search-paths ./lib",
            "target modules add ./lib/lib_my.so",
        ]

Verbose log

The config file is similar to the following:

Um, what config file?  This certainly does not look like a valid Codelldb's "preRunCommands" section...

But when I add the following command in launch.json,

Well, sounds like you have a solution?
The difference in behavior with CLI lldb could be due to debugger's current working directory.
Codelldb always launches adapter with cwd=${workspaceFolder}, whereas you probably launch CLI lldb from your app's directory?


Differentiate SwiftStack and Swift

Swift is a project that is housed by the OpenStack Foundation, not by
the company SwiftStack. SwiftStack is also a fine group of humans and
are also worth mentioning.

Deploy preview for landscape failed.
Built with commit afed7beed50eab2cc63696bdc69dbc78bb649e15
https://app.netlify.com/sites/landscape/deploys/5a9f096d48769b4122dfee42

Please see the rule:
https://github.com/cncf/landscape#new-entries
"We are generally not including commercial versions of open source software. The exception is that we are showing all Certified Kubernetes and non-Certified Kubernetes implementations."
If Swiftstack is an implementation of Swift, then we'll just include Swift. Could you please adjust the PR?

Totally - on it.

We'd rather not just use the OpenStack logo for Swift. Can you confirm that http://d.not.mn/OpenStack_Project_Swift_vertical.png is no longer correct? And that there's not a replacement?
If that's the case, we'll create a logo for you like https://landscape.cncf.io/selected=v-mware-haret

Oh, actually, that logo is a fine choice ... but we've got a better URL we can use for it. I updated the PR with the better url.

We prefer SVGs so I converted the EPS from the mascots website. Thanks for your corrections.
https://landscape.cncf.io/selected=swift looks good to me.

Lovely! Thanks a bunch.
On Wed, Mar 7, 2018 at 9:40 AM, Dan Kohn<EMAIL_ADDRESS>wrote:

We prefer SVGs so I converted the EPS from the mascots website. Thanks for
your corrections.
https://landscape.cncf.io/selected=swift looks good to me.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cncf/landscape/pull/316#issuecomment-371179502, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAFztKVisD2E0lEU9RsYKV_oMeipD4i3ks5tb_9_gaJpZM4SfeG0
.


typo

Hi, last paragraph you have "You can share the link of the location where the XML file is hosted, ". Shouldn't it be "where the CRX file is hosted,"
Best,
JM

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d275477d-dfcc-30f8-431c-e73a346ae0c0
Version Independent ID: 3f7c98ed-e7ff-1554-84dd-44319029900f
Content: Self-host Microsoft Edge extensions
Content Source: edgeenterprise/microsoft-edge-manage-extensions-webstore.md
Product: microsoft-edge
GitHub Login: @AndreaLBarr
Microsoft Alias: aspoddar

@JCFMachado Thanks!  The team will take a look.

Thanks for pointing this out. I have raised a PR to fix this issue.


significant modifications

I have made significant modifications to the code structure.
ples update your code and test and make the modifications work. They are in conformance with NIST terminology and structure that we propose. As the previous implementation did not separate concerns NIST would not accept it.
Please take a look.

Thanks. All modifications you made are solved.


Fix canvas getContext signature in lib/lib.dom.d.ts

According to
https://developer.mozilla.org/en/docs/Web/API/HTMLCanvasElement/getConte
xt, it only returns null if the context identifier is not supported
(i.e. not “2d” | "webgl" | "experimental-webgl”, when new non-standard
renderers are omitted).
It used to be that way, but was changed part of this (huge) commit, 1c9df8446a1112d7a9c002293d0040068f706416
I cannot find the originating commit in the PR: https://github.com/Microsoft/TypeScript/pull/9697 but it must be somewhere (my git skills are average).
This fix might make some people happy: this error generates tons of
useless and annoying non-null ! type casts when working with canvases.

[ ] There is an associated issue that is labelled
'Bug' or 'Accepting PRs' or is in the Community milestone
[x] Code is up-to-date with the master branch
[x] You've successfully run jake runtests locally
[x] You've signed the CLA
[ ] There are new or updated unit tests validating the change

@bbenezech,
Thanks for having already signed the Contribution License Agreement. Your agreement has not been validated yet. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Thanks for your PR. these files are not manually edited, they are auto-generatd from a script in . You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TSJS-lib-generator.
Changes should be done in https://github.com/Microsoft/TSJS-lib-generator instead.
Please find more information at: https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.
For future references, please file an issue first to track changes.


DOC: fix descriptions and typos

Some minor typos. This pull-request adds periods at the end of the argument descriptions, includes some missing names in the actions and makes sure all descriptions are surrounded by double quotes.

Thanks @jorgepiloto for taking the time to take care of the details especially if we deploy those actions at large in PyAnsys.

Thanks a lot for your feedback on this, @MaxJPRey.


Update iteration_0_spec.rb

it looks like this number is one off? perhaps double check it? @applegrain

See pull request #8


Error SequenceLabelingMetric: Can't instantiate abstract class SequenceLabelingMetric with abstract method merge

Checklist before your report.

[X] I have verified that the issue exists against the master branch of AdaSeq.
[X] I have read the relevant section in the contribution guide on reporting bugs.
[X] I have checked the issues list for similar or identical bug reports.
[X] I have checked the pull requests list for existing proposed fixes.
[X] I have checked the commit log to find out if the bug was already fixed in the master branch.

What happened?
An error occurs when evaluation begins. The traceback is attached below
Python traceback
Traceback (most recent call last):
File "/notebooks/Sem-eval/AdaSeq/scripts/train.py", line 51, in
main(args)
File "/notebooks/Sem-eval/AdaSeq/scripts/train.py", line 17, in main
train_model(
File "/notebooks/Sem-eval/AdaSeq/adaseq/commands/train.py", line 136, in train_model
trainer.train(checkpoint_path)
File "/notebooks/Sem-eval/AdaSeq/adaseq/training/default_trainer.py", line 146, in train
return super().train(checkpoint_path=checkpoint_path, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/modelscope/trainers/trainer.py", line 495, in train
self.train_loop(self.train_dataloader)
File "/usr/local/lib/python3.9/dist-packages/modelscope/trainers/trainer.py", line 895, in train_loop
self.invoke_hook(TrainerStages.after_train_epoch)
File "/usr/local/lib/python3.9/dist-packages/modelscope/trainers/trainer.py", line 1034, in invoke_hook
getattr(hook, fn_name)(self)
File "/usr/local/lib/python3.9/dist-packages/modelscope/trainers/hooks/evaluation_hook.py", line 33, in after_train_epoch
self.do_evaluate(trainer)
File "/usr/local/lib/python3.9/dist-packages/modelscope/trainers/hooks/evaluation_hook.py", line 45, in do_evaluate
eval_res = trainer.evaluate()
File "/usr/local/lib/python3.9/dist-packages/modelscope/trainers/trainer.py", line 505, in evaluate
metric_classes = [build_metric(metric) for metric in self.metrics]
File "/usr/local/lib/python3.9/dist-packages/modelscope/trainers/trainer.py", line 505, in
metric_classes = [build_metric(metric) for metric in self.metrics]
File "/usr/local/lib/python3.9/dist-packages/modelscope/metrics/builder.py", line 79, in build_metric
return build_from_cfg(
File "/usr/local/lib/python3.9/dist-packages/modelscope/utils/registry.py", line 215, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
TypeError: SequenceLabelingMetric: Can't instantiate abstract class SequenceLabelingMetric with abstract method merge
Operating system
Ubuntu 20.4
Python version
3.9
Output of pip freeze

show/hide

How to reproduce

show/hide

Code of Conduct

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

@shrimonmuke0202 We cannot reproduce it. Could you please post your pip freeze and configuration file?

pip freeze
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting adaseq
Downloading adaseq-0.5.1-py3-none-any.whl (127 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 127.2/127.2 KB 14.1 MB/s eta 0:00:00
Collecting datasets
Downloading datasets-2.9.0-py3-none-any.whl (462 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 462.8/462.8 KB 44.7 MB/s eta 0:00:00
Requirement already satisfied: tqdm>=4.64.0 in /usr/local/lib/python3.8/dist-packages (from adaseq) (4.64.1)
Collecting modelscope>=1.1.0
Downloading modelscope-1.2.0-py3-none-any.whl (3.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 92.3 MB/s eta 0:00:00
Collecting seqeval
Downloading seqeval-1.2.2.tar.gz (43 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.6/43.6 KB 6.8 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: pyyaml in /usr/local/lib/python3.8/dist-packages (from adaseq) (6.0)
Collecting transformers>=4.21.0
Downloading transformers-4.26.0-py3-none-any.whl (6.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.3/6.3 MB 107.4 MB/s eta 0:00:00
Collecting torch<1.13.0,>=1.11.0
Downloading torch-1.12.1-cp38-cp38-manylinux1_x86_64.whl (776.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 776.3/776.3 MB 2.2 MB/s eta 0:00:00
Collecting urllib3>=1.26.0
Downloading urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.6/140.6 KB 21.6 MB/s eta 0:00:00
Collecting addict
Downloading addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting yapf
Downloading yapf-0.32.0-py2.py3-none-any.whl (190 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 190.2/190.2 KB 28.3 MB/s eta 0:00:00
Requirement already satisfied: requests in /usr/local/lib/python3.8/dist-packages (from modelscope>=1.1.0->adaseq) (2.25.1)
Collecting oss2
Downloading oss2-2.16.0.tar.gz (251 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 251.6/251.6 KB 32.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: filelock>=3.3.0 in /usr/local/lib/python3.8/dist-packages (from modelscope>=1.1.0->adaseq) (3.9.0)
Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from modelscope>=1.1.0->adaseq) (1.21.6)
Requirement already satisfied: Pillow>=6.2.0 in /usr/local/lib/python3.8/dist-packages (from modelscope>=1.1.0->adaseq) (7.1.2)
Requirement already satisfied: scipy in /usr/local/lib/python3.8/dist-packages (from modelscope>=1.1.0->adaseq) (1.7.3)
Collecting jsonplus
Downloading jsonplus-0.8.0-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: attrs in /usr/local/lib/python3.8/dist-packages (from modelscope>=1.1.0->adaseq) (22.2.0)
Requirement already satisfied: easydict in /usr/local/lib/python3.8/dist-packages (from modelscope>=1.1.0->adaseq) (1.10)
Requirement already satisfied: gast>=0.2.2 in /usr/local/lib/python3.8/dist-packages (from modelscope>=1.1.0->adaseq) (0.4.0)
Collecting einops
Downloading einops-0.6.0-py3-none-any.whl (41 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.6/41.6 KB 5.0 MB/s eta 0:00:00
Requirement already satisfied: setuptools in /usr/local/lib/python3.8/dist-packages (from modelscope>=1.1.0->adaseq) (57.4.0)
Collecting pyarrow!=9.0.0,>=6.0.0
Downloading pyarrow-11.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (35.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 35.0/35.0 MB 21.6 MB/s eta 0:00:00
Requirement already satisfied: tensorboard in /usr/local/lib/python3.8/dist-packages (from modelscope>=1.1.0->adaseq) (2.9.1)
Collecting huggingface-hub<1.0.0,>=0.2.0
Downloading huggingface_hub-0.12.0-py3-none-any.whl (190 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 190.3/190.3 KB 25.6 MB/s eta 0:00:00
Requirement already satisfied: aiohttp in /usr/local/lib/python3.8/dist-packages (from datasets->adaseq) (3.8.3)
Requirement already satisfied: pandas in /usr/local/lib/python3.8/dist-packages (from datasets->adaseq) (1.3.5)
Requirement already satisfied: fsspec[http]>=2021.11.1 in /usr/local/lib/python3.8/dist-packages (from datasets->adaseq) (2022.11.0)
Requirement already satisfied: dill<0.3.7 in /usr/local/lib/python3.8/dist-packages (from datasets->adaseq) (0.3.6)
Collecting xxhash
Downloading xxhash-3.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 213.0/213.0 KB 30.3 MB/s eta 0:00:00
Requirement already satisfied: packaging in /usr/local/lib/python3.8/dist-packages (from datasets->adaseq) (21.3)
Collecting multiprocess
Downloading multiprocess-0.70.14-py38-none-any.whl (132 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.0/132.0 KB 21.0 MB/s eta 0:00:00
Collecting responses<0.19
Downloading responses-0.18.0-py3-none-any.whl (38 kB)
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.8/dist-packages (from torch<1.13.0,>=1.11.0->adaseq) (4.4.0)
Collecting tokenizers!=0.11.3,<0.14,>=0.11.1
Downloading tokenizers-0.13.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.6/7.6 MB 116.4 MB/s eta 0:00:00
Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.8/dist-packages (from transformers>=4.21.0->adaseq) (2022.6.2)
Requirement already satisfied: scikit-learn>=0.21.3 in /usr/local/lib/python3.8/dist-packages (from seqeval->adaseq) (1.0.2)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.8/dist-packages (from aiohttp->datasets->adaseq) (1.3.3)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /usr/local/lib/python3.8/dist-packages (from aiohttp->datasets->adaseq) (2.1.1)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.8/dist-packages (from aiohttp->datasets->adaseq) (4.0.2)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.8/dist-packages (from aiohttp->datasets->adaseq) (6.0.4)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.8/dist-packages (from aiohttp->datasets->adaseq) (1.3.1)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.8/dist-packages (from aiohttp->datasets->adaseq) (1.8.2)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.8/dist-packages (from packaging->datasets->adaseq) (3.0.9)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/local/lib/python3.8/dist-packages (from requests->modelscope>=1.1.0->adaseq) (4.0.0)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.8/dist-packages (from requests->modelscope>=1.1.0->adaseq) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.8/dist-packages (from requests->modelscope>=1.1.0->adaseq) (2022.12.7)
Requirement already satisfied: joblib>=0.11 in /usr/local/lib/python3.8/dist-packages (from scikit-learn>=0.21.3->seqeval->adaseq) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /usr/local/lib/python3.8/dist-packages (from scikit-learn>=0.21.3->seqeval->adaseq) (3.1.0)
Collecting simplejson>=3.3.0
Downloading simplejson-3.18.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (135 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.5/135.5 KB 20.9 MB/s eta 0:00:00
Requirement already satisfied: sortedcontainers>=1.5.9 in /usr/local/lib/python3.8/dist-packages (from jsonplus->modelscope>=1.1.0->adaseq) (2.4.0)
Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.8/dist-packages (from jsonplus->modelscope>=1.1.0->adaseq) (2.8.2)
Requirement already satisfied: crcmod>=1.7 in /usr/local/lib/python3.8/dist-packages (from oss2->modelscope>=1.1.0->adaseq) (1.7)
Collecting pycryptodome>=3.4.7
Downloading pycryptodome-3.17-cp35-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 93.9 MB/s eta 0:00:00
Collecting aliyun-python-sdk-kms>=2.4.1
Downloading aliyun_python_sdk_kms-2.16.0-py2.py3-none-any.whl (67 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.4/67.4 KB 11.0 MB/s eta 0:00:00
Collecting aliyun-python-sdk-core>=2.13.12
Downloading aliyun-python-sdk-core-2.13.36.tar.gz (440 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 440.5/440.5 KB 49.8 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: six in /usr/local/lib/python3.8/dist-packages (from oss2->modelscope>=1.1.0->adaseq) (1.15.0)
Requirement already satisfied: pytz>=2017.3 in /usr/local/lib/python3.8/dist-packages (from pandas->datasets->adaseq) (2022.7)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /usr/local/lib/python3.8/dist-packages (from tensorboard->modelscope>=1.1.0->adaseq) (0.6.1)
Requirement already satisfied: absl-py>=0.4 in /usr/local/lib/python3.8/dist-packages (from tensorboard->modelscope>=1.1.0->adaseq) (1.3.0)
Requirement already satisfied: werkzeug>=1.0.1 in /usr/local/lib/python3.8/dist-packages (from tensorboard->modelscope>=1.1.0->adaseq) (1.0.1)
Requirement already satisfied: google-auth<3,>=1.6.3 in /usr/local/lib/python3.8/dist-packages (from tensorboard->modelscope>=1.1.0->adaseq) (2.16.0)
Requirement already satisfied: wheel>=0.26 in /usr/local/lib/python3.8/dist-packages (from tensorboard->modelscope>=1.1.0->adaseq) (0.38.4)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /usr/local/lib/python3.8/dist-packages (from tensorboard->modelscope>=1.1.0->adaseq) (1.8.1)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /usr/local/lib/python3.8/dist-packages (from tensorboard->modelscope>=1.1.0->adaseq) (0.4.6)
Requirement already satisfied: grpcio>=1.24.3 in /usr/local/lib/python3.8/dist-packages (from tensorboard->modelscope>=1.1.0->adaseq) (1.51.1)
Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.8/dist-packages (from tensorboard->modelscope>=1.1.0->adaseq) (3.4.1)
Requirement already satisfied: protobuf<3.20,>=3.9.2 in /usr/local/lib/python3.8/dist-packages (from tensorboard->modelscope>=1.1.0->adaseq) (3.19.6)
Collecting jmespath<1.0.0,>=0.9.3
Downloading jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting cryptography>=2.6.0
Downloading cryptography-39.0.0-cp36-abi3-manylinux_2_28_x86_64.whl (4.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 113.6 MB/s eta 0:00:00
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.8/dist-packages (from google-auth<3,>=1.6.3->tensorboard->modelscope>=1.1.0->adaseq) (5.2.1)
Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.8/dist-packages (from google-auth<3,>=1.6.3->tensorboard->modelscope>=1.1.0->adaseq) (4.9)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.8/dist-packages (from google-auth<3,>=1.6.3->tensorboard->modelscope>=1.1.0->adaseq) (0.2.8)
Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.8/dist-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard->modelscope>=1.1.0->adaseq) (1.3.1)
Requirement already satisfied: importlib-metadata>=4.4 in /usr/local/lib/python3.8/dist-packages (from markdown>=2.6.8->tensorboard->modelscope>=1.1.0->adaseq) (6.0.0)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.8/dist-packages (from cryptography>=2.6.0->aliyun-python-sdk-core>=2.13.12->oss2->modelscope>=1.1.0->adaseq) (1.15.1)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.8/dist-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard->modelscope>=1.1.0->adaseq) (3.11.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /usr/local/lib/python3.8/dist-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard->modelscope>=1.1.0->adaseq) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.8/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard->modelscope>=1.1.0->adaseq) (3.2.2)
Requirement already satisfied: pycparser in /usr/local/lib/python3.8/dist-packages (from cffi>=1.12->cryptography>=2.6.0->aliyun-python-sdk-core>=2.13.12->oss2->modelscope>=1.1.0->adaseq) (2.21)
Building wheels for collected packages: seqeval, oss2, aliyun-python-sdk-core
Building wheel for seqeval (setup.py) ... done
Created wheel for seqeval: filename=seqeval-1.2.2-py3-none-any.whl size=16179 sha256=7fed82a283afab917f6bcc84142b5e1cb1a9e47192ae5f0d6e6281153d8b9f9d
Stored in directory: /root/.cache/pip/wheels/ad/5c/ba/05fa33fa5855777b7d686e843ec07452f22a66a138e290e732
Building wheel for oss2 (setup.py) ... done
Created wheel for oss2: filename=oss2-2.16.0-py3-none-any.whl size=109477 sha256=2eaa4c5a2992d9e1fb6aeb6f900f06686f8a2f2b4b08491fbb1a85f29ac27f1e
Stored in directory: /root/.cache/pip/wheels/4c/71/ab/7676b39ec901bd79835836c6c5f78cc159e91ef67513fba5c8
Building wheel for aliyun-python-sdk-core (setup.py) ... done
Created wheel for aliyun-python-sdk-core: filename=aliyun_python_sdk_core-2.13.36-py3-none-any.whl size=533195 sha256=03a1315a5b02d640e3ce9a571efc905adbfdf3d481433e9dc65182913830d7b7
Stored in directory: /root/.cache/pip/wheels/50/51/7d/304d0c92509363ab568526b81e53573e2e1e249ce35d492ea4
Successfully built seqeval oss2 aliyun-python-sdk-core
Installing collected packages: yapf, tokenizers, addict, xxhash, urllib3, torch, simplejson, pycryptodome, pyarrow, multiprocess, jmespath, einops, jsonplus, cryptography, seqeval, responses, huggingface-hub, aliyun-python-sdk-core, transformers, datasets, aliyun-python-sdk-kms, oss2, modelscope, adaseq
Attempting uninstall: urllib3
Found existing installation: urllib3 1.24.3
Uninstalling urllib3-1.24.3:
Successfully uninstalled urllib3-1.24.3
Attempting uninstall: torch
Found existing installation: torch 1.13.1+cu116
Uninstalling torch-1.13.1+cu116:
Successfully uninstalled torch-1.13.1+cu116
Attempting uninstall: pyarrow
Found existing installation: pyarrow 9.0.0
Uninstalling pyarrow-9.0.0:
Successfully uninstalled pyarrow-9.0.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchvision 0.14.1+cu116 requires torch==1.13.1, but you have torch 1.12.1 which is incompatible.
torchtext 0.14.1 requires torch==1.13.1, but you have torch 1.12.1 which is incompatible.
torchaudio 0.13.1+cu116 requires torch==1.13.1, but you have torch 1.12.1 which is incompatible.
pandas-gbq 0.17.9 requires pyarrow<10.0dev,>=3.0.0, but you have pyarrow 11.0.0 which is incompatible.
Successfully installed adaseq-0.5.1 addict-2.4.0 aliyun-python-sdk-core-2.13.36 aliyun-python-sdk-kms-2.16.0 cryptography-39.0.0 datasets-2.9.0 einops-0.6.0 huggingface-hub-0.12.0 jmespath-0.10.0 jsonplus-0.8.0 modelscope-1.2.0 multiprocess-0.70.14 oss2-2.16.0 pyarrow-11.0.0 pycryptodome-3.17 responses-0.18.0 seqeval-1.2.2 simplejson-3.18.1 tokenizers-0.13.2 torch-1.12.1 transformers-4.26.0 urllib3-1.26.14 xxhash-3.2.0 yapf-0.32.0
config file
experiment:
exp_dir: experiments/
exp_name: multiconer2-bn-wiki128
seed: 42
task: named-entity-recognition
dataset:
data_file:
train: '/notebooks/new_train.txt'
valid: '/notebooks/new_dev.txt'
test: '/notebooks/new_dev.txt'
data_type: conll
preprocessor:
type: sequence-labeling-preprocessor
model_dir: xlm-roberta-large
max_length: 512
data_collator: SequenceLabelingDataCollatorWithPadding
model:
type: sequence-labeling-model
embedder:
model_name_or_path: xlm-roberta-large
dropout: 0.1
use_crf: true
train:
max_epochs: 100
dataloader:
batch_size_per_gpu: 16
optimizer:
type: AdamW
lr: 2.0e-5
param_groups:
- regex: crf
lr: 5.0e-2
lr_scheduler:
type: LinearLR
start_factor: 1.0
end_factor: 0.0
total_iters: 30
hooks:
- type: BestCkptSaverHook
save_file_name: best_model.pth
metric_key: macro-f1
save_optimizer: false
restore_best: true
evaluation:
dataloader:
batch_size_per_gpu: 32
metrics:
- type: ner-metric
return_macro_f1: true
- type: ner-dumper
model_type: sequence_labeling
dump_format: conll

@shrimonmuke0202 We found that it's caused by a new feature introduced in modelscope==1.2.0.
You can temporarily pip install modelscope==1.1.3 to fix it.

Thanks, it works
My other question is How can I apply my trained model for evaluation on the test set? In the config file, we see that there is no mention of only the evaluation of the model. In the config file, we always have to give a training argument and then an evaluation argument.
config file
experiment:
exp_dir: experiments/
exp_name: multiconer2-bn-wiki128
seed: 42
task: named-entity-recognition
dataset:
data_file:
train: '/notebooks/new_train.txt'
valid: '/notebooks/new_dev.txt'
test: '/notebooks/new_dev.txt'
data_type: conll
preprocessor:
type: sequence-labeling-preprocessor
model_dir: xlm-roberta-large
max_length: 512
data_collator: SequenceLabelingDataCollatorWithPadding
model:
type: sequence-labeling-model
embedder:
model_name_or_path: xlm-roberta-large
dropout: 0.1
use_crf: true
train:
max_epochs: 100
dataloader:
batch_size_per_gpu: 16
optimizer:
type: AdamW
lr: 2.0e-5
param_groups:

regex: crf
lr: 5.0e-2
lr_scheduler:
type: LinearLR
start_factor: 1.0
end_factor: 0.0
total_iters: 30
hooks:
type: BestCkptSaverHook
save_file_name: best_model.pth
metric_key: macro-f1
save_optimizer: false
restore_best: true

evaluation:
dataloader:
batch_size_per_gpu: 32
metrics:

type: ner-metric
return_macro_f1: true
type: ner-dumper
model_type: sequence_labeling
dump_format: conll

@shrimonmuke0202 Evaluation on test set will be automatically triggered when the training is done. So pred.txt in the checkpoint directory is the predictions of test data.
If you want to predict another dataset with a saved model, a solution is
python scripts/test.py -w ${checkpoint_dir} or adaseq test -w ${checkpoint_dir}.
Here you can change the data.data_file.test in ${checkpoint_dir}/config.yaml to a new data path.
Currently the tag scheme can only be manually modified in the prediction file. You can simply replace all 'S-' -> 'B-' and 'E-' -> 'I-'.
Sorry for the inconvenience.

Thanks for your reply, Sorry I have another question You are using xlm-roberta-large. Can I use google/mt5 instead of xlm-roberta-large.

@shrimonmuke0202 Basically you can replace it to any ENCODER-ONLY model from huggingface. We don't ensure seq2seq models can be run without errors.

How can I load the locally saved models using the config file?

Just set the model_name_or_path to your local model path

I want to load best_model.pth but it gives an error which is SequenceLabelingModel: TransformerEmbedder: File does not exists /notebooks/experiments_new/multiconer2-bn-wiki128/230130154814.967370/best_model.pth/configuration.json. Please help

I want to load best_model.pth but it gives an error which is SequenceLabelingModel: TransformerEmbedder: File does not exists /notebooks/experiments_new/multiconer2-bn-wiki128/230130154814.967370/best_model.pth/configuration.json. Please help

Sorry, I misunderstood your last question. To use saved checkpoint, you can add -ckpt ${checkpoint_file} to your train or test command

Thanks, when I use this comment a warning is showing which is *2023-01-31
07:08:43,870 - WARNING - modelscope - Random state cannot be found in
checkpoint file, this may cause a random data order or model
initialization.  *Is this warning decreases model performance? and how can
I ignore this?
On Tue, Jan 31, 2023 at 12:24 PM Shen Huang @.***>
wrote:

I want to load best_model.pth but it gives an error which is SequenceLabelingModel:
TransformerEmbedder: File does not exists
/notebooks/experiments_new/multiconer2-bn-wiki128/230130154814.967370/best_model.pth/configuration.json.
Please help
Sorry, I misunderstood your last question. To use saved checkpoint, you
can add -ckpt ${checkpoint_file} to your train or test command
—
Reply to this email directly, view it on GitHub
https://github.com/modelscope/AdaSeq/issues/10#issuecomment-1409856210,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQ7MTCQMNY3YIABAG5I6XPDWVCZJNANCNFSM6AAAAAAUKOPZCI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Thanks, when I use this comment a warning is showing which is 2023-01-31 07:08:43,870 - WARNING - modelscope - Random state cannot be found in checkpoint file, this may cause a random data order or model initialization. Is this warning decreases model performance? and how can I ignore this?
…
On Tue, Jan 31, 2023 at 12:24 PM Shen Huang @.> wrote: I want to load best_model.pth but it gives an error which is SequenceLabelingModel: TransformerEmbedder: File does not exists /notebooks/experiments_new/multiconer2-bn-wiki128/230130154814.967370/best_model.pth/configuration.json. Please help Sorry, I misunderstood your last question. To use saved checkpoint, you can add -ckpt ${checkpoint_file} to your train or test command — Reply to this email directly, view it on GitHub <#10 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ7MTCQMNY3YIABAG5I6XPDWVCZJNANCNFSM6AAAAAAUKOPZCI . You are receiving this because you were mentioned.Message ID: @.**>

Yes, ignore it. It's for restoring unfinished training while keeping the same random seed.

Fixed in v0.5.2


Rollup Interceptor sourceIndex NPE fix

Issue #, if available: #764
Description of changes:
Added proper resolving of sourceIndex inside RollupInterceptor.
Concrete sourceIndex is required for QueryStringQuery parsing
CheckList:

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@petardz since the auto backport to 2.x failed, can you backport this manually to 2.x please


GH-1517 Avro Union Types import schema issue when we have multiple av…

…ro files

with this commit one can do following;
in the application.yml
spring:
  cloud:
    stream:
      bindings:
        input:
          destination: sensor-topic
      schema-registry-client:
        endpoint: http://localhost:8990
      schema:
        avro:
          schema-locations:
            - classpath:avro/Command.avro
          schema-imports:
            - classpath:avro/Sms.avro
            - classpath:avro/Email.avro
            - classpath:avro/PushNotification.avro

in the src/main/resources/avro
Command.avro =>
{
   "namespace":"example.avro",
   "name":"Command",
   "type":"record",
   "fields":[
      {
         "name":"type",
         "type":"string"
      },
      {
         "name":"correlationId",
         "type":"string"
      },
      {
         "name":"payload",
         "type":["Sms", "Email", "PushNotification"]
      }
   ]
}

Email.avro =>
{
 "namespace":"example.avro",
 "name": "Email",
 "type": "record",
 "fields":[
     {
        "name":"addressTo",
        "type":"string"
     },
     {
        "name":"title",
        "type":"string"
     },
     {
        "name":"text",
        "type":"string"
     }
 ]
}

..etc.

Codecov Report

Merging #1519 into master will decrease coverage by 0.1%.
The diff coverage is 20.68%.

@@             Coverage Diff             @@
##             master   #1519      +/-   ##
===========================================
- Coverage      62.5%   62.4%   -0.11%
- Complexity      911     914       +3
===========================================
  Files           140     140
  Lines          4190    4205      +15
  Branches        592     591       -1
===========================================
+ Hits           2619    2624       +5
- Misses         1276    1284       +8
- Partials        295     297       +2

Impacted Files
Coverage Δ
Complexity Δ

...ma/avro/AvroMessageConverterAutoConfiguration.java
52% <0%> (-7.1%)
3 <0> (ø)

...avro/AvroSchemaRegistryClientMessageConverter.java
55.55% <11.76%> (+0.27%)
20 <1> (+1)
:arrow_up:

...am/schema/avro/AvroMessageConverterProperties.java
58.33% <33.33%> (-3.58%)
9 <1> (+1)

...ream/schema/avro/AbstractAvroMessageConverter.java
62.16% <50%> (-2.55%)
15 <3> (+1)

Continue to review full report at Codecov.

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


Parent children in batchable order when possible

Closes #293.
Modifies Fusion.Children's parenting behavior to parent things in a way that works for Roblox's naive greedy drawcall batching whenever reasonably possible. Contains comments for additional context where needed.

This seems mostly fine, but it'd be nice if it were more general and didn't implicitly make assumptions about what classes batch together.
Ideally it'd either be a general rule (i.e. "try and parent objects of the same class type together") or something that's declarative (i.e. "if you encounter classes from this list, put them together"). That'd free up the implementation from having to communicate those details, and makes it more flexible should this problem come up again in the future for new or completely different class types.
I'm going to defer on this for a bit though. I'd like to see if Roblox addresses the underlying issue first, because if we don't end up having to do this, it's less complexity in our codebase and that means we make less promises to users that they expect us to keep, and there are fewer failure modes.


DTY-14 Move page components to routes file and make the them async load.

Coverage decreased (-0.2%) to 28.678% when pulling 3e3c1fbff5b4ce705764d038c03ceb2aa8844691 on DTY-14-code-splitting into dec7d65768356b182540a63fa60aac4549b34d2a on master.


Integration of BitNet into bitsandbytes

Feature request
After the release of the bitnet architecture, I believe that the architecture and its methods could be integrated into the bnb library to further improve the accessibility of LLMs using quantization.
While there are some performance issues in the initial experiments, integration in the bnb library can help drive further improvements and optimizations to the quantization methods . The experiment methods also seem to be available on the HF repository of the experiment, which could make the integration easier.
Reference: https://huggingface.co/blog/1_58_llm_extreme_quantization
https://huggingface.co/1bitLLM/bitnet_b1_58-xl/blob/main/modeling_bitnet.py
Motivation
There are several capable open source LLMs like Arcee-SuperNova, LLama3.2-70B, etc that cannot be used by normal users without having lots of GPU compute.
By adding bitnet , these LLMs can be adopted on a larger scale by users that can take advantage of its capabilities.
Your contribution
With ample support and guidance, I could help in the integration.

Closing the issue since there are on-going efforts in the transformers and nanotron library for the same.


Show Confidential Issues on Roadmap when Logged In

We hid confidential issues from the public but now it would be nice to show them for users who are logged in. Probably via a GitLab app.
To-Do

[x] Make it a GitLab app
[x] Show confidential issues for logged in users

:tada: This issue has been resolved in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Support releases for GitLab.

https://docs.gitlab.com/ee/api/releases/

If anybody want this feature please leave a comment; to increase the chance of it happening...


Docs: Installation instructions for SLES

Updated setuphttpd.rst to include installation instructions for SLES

@aazam-gh still work in progress?

@bjhuangr Yes, will be ready soon after testing on z/VM

@bjhuangr This is ready to be merged.


ScaffoldMessenger not working on a CupertinoApp

Steps to Reproduce

Create a Flutter app with the following code:

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(App());
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return CupertinoApp(
      title: 'Scaffold Messenger Cupertino App',
      home: ScaffoldMessenger(child: ScreenA()),
    );
  }
}

class ScreenA extends StatefulWidget {
  ScreenA({Key key}) : super(key: key);

  @override
  _ScreenAState createState() => _ScreenAState();
}

class _ScreenAState extends State<ScreenA> {
  @override
  Widget build(BuildContext context) {
    return CupertinoPageScaffold(
      navigationBar: CupertinoNavigationBar(
        middle: Text('Screen A'),
      ),
      child: Scaffold(
        body: Center(
          child: IntrinsicHeight(
            child: Column(
              children: [
                CupertinoButton(
                  child: Text('Open SnackBar'),
                  onPressed: () =>
                      ScaffoldMessenger.of(context).showSnackBar(SnackBar(
                    content: Text('Snack A'),
                  )),
                ),
                CupertinoButton(
                  child: Text('Open Screen B'),
                  onPressed: () => Navigator.push(context,
                      CupertinoPageRoute(builder: (context) => ScreenB())),
                )
              ],
            ),
          ),
        ),
      ),
    );
  }
}

class ScreenB extends StatefulWidget {
  ScreenB({Key key}) : super(key: key);

  @override
  _ScreenBState createState() => _ScreenBState();
}

class _ScreenBState extends State<ScreenB> {
  @override
  Widget build(BuildContext context) {
    return CupertinoPageScaffold(
      navigationBar: CupertinoNavigationBar(
        middle: Text('Screen B'),
      ),
      child: Scaffold(
        body: Center(
          child: CupertinoButton(
            child: Text('Open SnackBar'),
            onPressed: () =>
                ScaffoldMessenger.of(context).showSnackBar(SnackBar(
              content: Text('Snack B'),
            )),
          ),
        ),
      ),
    );
  }
}

Click on 'Open SnackBar' -> a SnackBar is correctly presented
Click on 'Open Screen B', then click on 'Open SnackBar'

Expected results:
ScreenB has a ScaffoldMessenger as ancestor (same than ScreenA) but for some reason the SnackBar is not displayed.
Actual results:
A SnackBar should be displayed in ScreenB.

Logs

[  +54 ms] executing: [/home/svprdga/opt/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +24 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 1d9032c7e1d867f071f2277eb1673e8f9b0274e3
[        ] executing: [/home/svprdga/opt/flutter/] git tag --points-at 1d9032c7e1d867f071f2277eb1673e8f9b0274e3
[   +9 ms] Exit code 0 from: git tag --points-at 1d9032c7e1d867f071f2277eb1673e8f9b0274e3
[        ] 2.0.6
[  +27 ms] executing: [/home/svprdga/opt/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/svprdga/opt/flutter/] git ls-remote --get-url origin
[   +2 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +28 ms] executing: [/home/svprdga/opt/flutter/] git rev-parse --abbrev-ref HEAD
[   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +39 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +48 ms] executing: /home/svprdga/Android/Sdk/platform-tools/adb devices -l
[  +27 ms] List of devices attached
           RF8N10PV53N            device usb:2-1 product:d2seea model:SM_N975F device:d2s transport_id:1
[   +4 ms] /home/svprdga/Android/Sdk/platform-tools/adb -s RF8N10PV53N shell getprop
[  +46 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +54 ms] Skipping pub get: version match.
[  +84 ms] Generating /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +24 ms] ro.hardware = exynos9825
[        ] ro.build.characteristics = phone
[  +23 ms] Initializing file store
[   +7 ms] Skipping target: gen_localizations
[   +6 ms] complete
[   +3 ms] Launching lib/main.dart on SM N975F in debug mode...
[   +4 ms] /home/svprdga/opt/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/svprdga/opt/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/svprdga/opt/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter
--debugger-module-names --experimental-emit-debug-metadata --output-dill /tmp/flutter_tools.RDUPNV/flutter_tool.GMPUBU/app.dill --packages /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts
--track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill.track.dill
[   +8 ms] executing: /home/svprdga/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +4 ms] Exit code 0 from: /home/svprdga/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.svprdga.scaffold_messenger_cupertino" (Raw: "com.svprdga.scaffold_messenger_cupertino")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="scaffold_messenger_cupertino" (Raw: "scaffold_messenger_cupertino")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.svprdga.scaffold_messenger_cupertino.MainActivity" (Raw: "com.svprdga.scaffold_messenger_cupertino.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +5 ms] executing: /home/svprdga/Android/Sdk/platform-tools/adb -s RF8N10PV53N shell -x logcat -v time -t 1
[   +7 ms] <- compile package:scaffold_messenger_cupertino/main.dart
[ +575 ms] --------- beginning of system
                    05-12 12:53:24.426 W/DeviceStorageMonitorService( 1007): updateBroadcasts_filenode(/data) fn_oldLevel:0, fn_newLevel:0, seq:1
[   +9 ms] executing: /home/svprdga/Android/Sdk/platform-tools/adb version
[   +4 ms] Android Debug Bridge version 1.0.41
           Version 31.0.2-7242960
           Installed as /home/svprdga/Android/Sdk/platform-tools/adb
[   +2 ms] executing: /home/svprdga/Android/Sdk/platform-tools/adb start-server
[   +5 ms] Building APK
[  +12 ms] Running Gradle task 'assembleDebug'...
[   +2 ms] Using gradle from /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/android/gradlew.
[        ] /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/android/gradlew mode: 33277 rwxrwxr-x.
[   +8 ms] executing: [/home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/android/] /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/android/gradlew -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=/home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+2628 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +57 ms] executing: [/home/svprdga/opt/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +25 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 1d9032c7e1d867f071f2277eb1673e8f9b0274e3
[        ] [        ] executing: [/home/svprdga/opt/flutter/] git tag --points-at 1d9032c7e1d867f071f2277eb1673e8f9b0274e3
[        ] [   +9 ms] Exit code 0 from: git tag --points-at 1d9032c7e1d867f071f2277eb1673e8f9b0274e3
[        ] [        ] 2.0.6
[        ] [  +28 ms] executing: [/home/svprdga/opt/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/svprdga/opt/flutter/] git ls-remote --get-url origin
[        ] [   +2 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +34 ms] executing: [/home/svprdga/opt/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +42 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +33 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +57 ms] Initializing file store
[        ] [  +10 ms] Skipping target: gen_localizations
[        ] [   +4 ms] kernel_snapshot: Starting due to {}
[        ] [   +7 ms] /home/svprdga/opt/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/svprdga/opt/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/svprdga/opt/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter
--no-print-incremental-dependencies -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --no-link-platform --packages /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/.dart_tool/package_config.json --output-dill
/home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/.dart_tool/flutter_build/6a0befe663cf4bf21969ffadff5cf3ce/app.dill --depfile /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/.dart_tool/flutter_build/6a0befe663cf4bf21969ffadff5cf3ce/kernel_snapshot.d
package:scaffold_messenger_cupertino/main.dart
[+5183 ms] [+6700 ms] kernel_snapshot: Complete
[ +399 ms] [ +352 ms] debug_android_application: Starting due to {}
[ +100 ms] [ +156 ms] debug_android_application: Complete
[ +499 ms] [ +431 ms] Persisting file store
[        ] [   +4 ms] Done persisting file store
[        ] [   +6 ms] build succeeded.
[        ] [   +7 ms] "flutter assemble" took 7,792ms.
[        ] [   +2 ms] ensureAnalyticsSent: 0ms
[        ] [        ] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[  +99 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[  +99 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders NO-SOURCE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[  +99 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[  +99 ms] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :app:processDebugMainManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[        ] > Task :app:processDebugResources UP-TO-DATE
[        ] > Task :app:compileDebugKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:dexBuilderDebug UP-TO-DATE
[        ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[        ] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[ +497 ms] > Task :app:compressDebugAssets
[ +700 ms] > Task :app:packageDebug
[ +100 ms] > Task :app:assembleDebug
[  +13 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 10s
[        ] 32 actionable tasks: 7 executed, 25 up-to-date
[ +359 ms] Running Gradle task 'assembleDebug'... (completed in 10.9s)
[ +146 ms] calculateSha: LocalDirectory: '/home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/build/app/outputs/flutter-apk'/app.apk
[  +23 ms] calculateSha: reading file took 23us
[ +640 ms] calculateSha: computing sha took 640us
[   +3 ms] ✓ Built build/app/outputs/flutter-apk/app-debug.apk.
[   +2 ms] executing: /home/svprdga/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +6 ms] Exit code 0 from: /home/svprdga/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.svprdga.scaffold_messenger_cupertino" (Raw: "com.svprdga.scaffold_messenger_cupertino")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="scaffold_messenger_cupertino" (Raw: "scaffold_messenger_cupertino")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.svprdga.scaffold_messenger_cupertino.MainActivity" (Raw: "com.svprdga.scaffold_messenger_cupertino.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[        ] Stopping app 'app.apk' on SM N975F.
[        ] executing: /home/svprdga/Android/Sdk/platform-tools/adb -s RF8N10PV53N shell am force-stop com.svprdga.scaffold_messenger_cupertino
[  +83 ms] executing: /home/svprdga/Android/Sdk/platform-tools/adb -s RF8N10PV53N shell pm list packages com.svprdga.scaffold_messenger_cupertino
[  +70 ms] package:com.svprdga.scaffold_messenger_cupertino
[   +5 ms] executing: /home/svprdga/Android/Sdk/platform-tools/adb -s RF8N10PV53N shell cat /data/local/tmp/sky.com.svprdga.scaffold_messenger_cupertino.sha1
[  +45 ms] 04f1075961718bde4d94aa8ec502717db3c98c8b
[   +1 ms] Installing APK.
[   +3 ms] Installing build/app/outputs/flutter-apk/app.apk...
[        ] executing: /home/svprdga/Android/Sdk/platform-tools/adb -s RF8N10PV53N install -t -r /home/svprdga/code/personal/flutter/samples/scaffold_messenger_cupertino/build/app/outputs/flutter-apk/app.apk
[+1736 ms] Performing Streamed Install
                    Success
[   +2 ms] Installing build/app/outputs/flutter-apk/app.apk... (completed in 1,737ms)
[   +2 ms] executing: /home/svprdga/Android/Sdk/platform-tools/adb -s RF8N10PV53N shell echo -n 0a1ffe9a50e54e60c005e879a172d65ebf281aa6 > /data/local/tmp/sky.com.svprdga.scaffold_messenger_cupertino.sha1
[  +42 ms] executing: /home/svprdga/Android/Sdk/platform-tools/adb -s RF8N10PV53N shell -x logcat -v time -t 1
[ +760 ms] --------- beginning of main
                    05-12 12:53:38.949 I/Finsky  (30403): [2835] rco.run(16): Wrote row to frosting DB: 28086
[  +23 ms] executing: /home/svprdga/Android/Sdk/platform-tools/adb -s RF8N10PV53N shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.svprdga.scaffold_messenger_cupertino/com.svprdga.scaffold_messenger_cupertino.MainActivity
[ +102 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.svprdga.scaffold_messenger_cupertino/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +653 ms] Observatory URL on device: http://<IP_ADDRESS>:45951/D731jyCAAgE=/
[   +3 ms] executing: /home/svprdga/Android/Sdk/platform-tools/adb -s RF8N10PV53N forward tcp:0 tcp:45951
[  +18 ms] 38029
[        ] Forwarded host port 38029 to device port 45951 for Observatory
[   +8 ms] Caching compiled dill
[  +70 ms] Connecting to service protocol: http://<IP_ADDRESS>:38029/D731jyCAAgE=/
[ +309 ms] Launching a Dart Developer Service (DDS) instance at http://<IP_ADDRESS>:0, connecting to VM service at http://<IP_ADDRESS>:38029/D731jyCAAgE=/.
[  +99 ms] DDS is listening at http://<IP_ADDRESS>:39897/efgkDiUyLYI=/.
[  +85 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:38029/D731jyCAAgE=/
[ +224 ms] DevFS: Creating new filesystem on the device (null)
[  +40 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.svprdga.scaffold_messenger_cupertino/code_cache/scaffold_messenger_cupertinoMZSAPV/scaffold_messenger_cupertino/)
[   +4 ms] Updating assets
[  +63 ms] Syncing files to device SM N975F...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +1 ms] <- recompile package:scaffold_messenger_cupertino/main.dart 561ae706-f2f6-42a9-a943-f668088aade1
[        ] <- 561ae706-f2f6-42a9-a943-f668088aade1
[  +92 ms] Updating files.
[        ] DevFS: Sync finished
[        ] Syncing files to device SM N975F... (completed in 95ms)
[        ] Synced 0.0MB.
[        ] <- accept
[  +50 ms] Connected to _flutterView/0x6feeb58b10.
[   +2 ms] Flutter run key commands.
[   +2 ms] r Hot reload. 🔥🔥🔥
[   +1 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on SM N975F is available at: http://<IP_ADDRESS>:39897/efgkDiUyLYI=/
[   +2 ms]
           Flutter DevTools, a Flutter debugger and profiler, on SM N975F is available at: http://<IP_ADDRESS>:9102?uri=http%3A%2F%2F<IP_ADDRESS>%3A39897%2FefgkDiUyLYI%3D%2F
[        ] Running with unsound null safety
[        ] For more information see https://dart.dev/null-safety/unsound-null-safety
[ +246 ms] I/SurfaceControl( 2631): release : mNativeObject =<PHONE_NUMBER>28 - Surface(name=com.svprdga.scaffold_messenger_cupertino/com.svprdga.scaffold_messenger_cupertino.MainActivity$_2631)/@0xc6b59e9 / android.view.SurfaceControl.assignNativeObject:567 android.view.SurfaceControl.readFromParcel:1115
android.view.IWindowSession$Stub$Proxy.relayout:1810 android.view.ViewRootImpl.relayoutWindow:9005
[   +2 ms] I/SurfaceControl( 2631): nativeRelease nativeObject s[477524942128]
[        ] I/SurfaceControl( 2631): nativeRelease nativeObject e[477524942128]
[        ] I/SurfaceControl( 2631): assignNativeObject: nativeObject = 0 Surface(name=null)/@0x8eb8b35 / android.view.SurfaceControl.readFromParcel:1115 android.view.IWindowSession$Stub$Proxy.relayout:1820 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360
android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
[   +3 ms] I/SurfaceControl( 2631): release : mNativeObject =<PHONE_NUMBER>44 - Surface(name=Surface(name=2917fdf InputMethod)/@0x68bc718 - animation-leash)/@0xd3ada22 / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170
android.view.InsetsSourceConsumer.setControl:202 android.view.ImeInsetsSourceConsumer.setControl:154
[   +2 ms] I/SurfaceControl( 2631): nativeRelease nativeObject s[477524946944]
[        ] I/SurfaceControl( 2631): nativeRelease nativeObject e[477524946944]
[        ] I/SurfaceControl( 2631): release : mNativeObject =<PHONE_NUMBER>84 - Surface(name=Surface(name=24a5022 NavigationBar0)/@0x7cf2150 - animation-leash)/@0x250766e / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170
android.view.InsetsSourceConsumer.setControl:202 android.view.InsetsController.onControlsChanged:833
[   +2 ms] I/SurfaceControl( 2631): nativeRelease nativeObject s[477524946384]
[        ] I/SurfaceControl( 2631): nativeRelease nativeObject e[477524946384]
[        ] I/SurfaceControl( 2631): release : mNativeObject =<PHONE_NUMBER>60 - Surface(name=Surface(name=9b641f6 StatusBar)/@0xf3dbb4d - animation-leash)/@0x76c210f / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170
android.view.InsetsSourceConsumer.setControl:202 android.view.InsetsController.onControlsChanged:833
[   +3 ms] I/SurfaceControl( 2631): nativeRelease nativeObject s[477524946160]
[        ] I/SurfaceControl( 2631): nativeRelease nativeObject e[477524946160]
[   +1 ms] I/ViewRootImpl@d7a21be[MainActivity]( 2631): Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=9 res=0x1 s={true<PHONE_NUMBER>40} ch=false fn=2

Analyzing scaffold_messenger_cupertino...
No issues found! (ran in 1.1s)

[✓] Flutter (Channel stable, 2.0.6, on Linux, locale en_US.UTF-8)
    • Flutter version 2.0.6 at /home/svprdga/opt/flutter
    • Framework revision 1d9032c7e1 (12 days ago), 2021-04-29 17:37:58 -0700
    • Engine revision 05e680e202
    • Dart version 2.12.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/svprdga/Android/Sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at /home/svprdga/opt/idea
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.56.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.22.0

[✓] Connected device (2 available)
    • SM N975F (mobile) • RF8N10PV53N • android-arm64  • Android 11 (API 30)
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 90.0.4430.212

! Doctor found issues in 1 category.

Hi @svprdga
I am not sure this is an issue, ScaffoldMessenger is part of material hence it doesn't work with Cupertino.
Nesting material scaffold  under cupertion scaffold like this won't help either
return CupertinoPageScaffold(
      navigationBar: CupertinoNavigationBar(
        middle: Text('Screen B'),
      ),
      child: Scaffold(
        body: Center(
          child: CupertinoButton(
            child: Text('Open SnackBar'),
            onPressed: () =>
                ScaffoldMessenger.of(context).showSnackBar(SnackBar(
              content: Text('Snack B'),
            )),
          ),
        ),
      ),

scaffoldMessengerKey  is part of MaterialApp itself
Unless you're proposing ScaffoldMessenger should be made to work with Cupertino, there is no issue here

Hi @TahaTesser thanks for the aclaration.
If this is an expected behavior, then I am proposing that ScaffoldMessenger could work with CupertinoApp.
Reasons:

SnackBars are a superior way to communicate non-answerable chunks of data to the user because they don't require additional input to be dismissed.
We can already use material widgets within a CupertinoApp, like ListTile or others.
Why keep both design styles separated? I think that mixing the best of both can be beneficial, especially in cases in which one doesn't contain a certain element (like this one, there's no Cupertino widget to show an automatically dismissable text to the user).

This would require the CupertinoPageScaffold to depend on the material library. I am not sure if this is possible, it does not look like anything in the Cupertino library currently imports and depends on material widgets.
You are right, you can use Cupertino and Material widgets interchangeably, in your case you can add a Scaffold from material and have the ScaffoldMessenger work as expected.
If there is an iOS component similar to Snackbars, we should add that to the Cupertino library instead. The Cupertino library is meant to be a specific design language of iOS widgets.

Another thought, the Scaffold handles positioning of the Snackbar.
CupertinoPageScaffold does not know anything about SnackBars currently, and it would need to be rewritten to work with Snackbars in addition to ScaffoldMessenger, while ScaffoldMessenger would need to be updated to know what a CupertinoPageScaffold is (it also does not know this currently).

Thanks for the clarification @Piinks, for my side I have reorganized my workflow and I don't need this feature anymore. I think that if no one else is interested it could be discarded.

Thanks for the update @svprdga!


Make the documentation more explicit on ending the request

See more info: https://github.com/expressjs/body-parser/issues/177

Thanks @paulrutter

No problem :+1:


TEXT[] does not support NULL

CREATE TABLE foo (bar TEXT[])

Generates
type Foo struct {
  Bar []string
}

Which fails to scan if bar = NULL. Instead, maybe it should be:
type Foo struct {
  Bar pq.StringArray
}

which handles NULL.

Which fails to scan if bar = NULL.

This actually isn't true. If bar is NULL, Scan will return an empty slice.
CREATE TABLE foo (
        id text,
        tags text[]
);

INSERT INFO foo (id, tags) VALUES ('foo-array', NULL);

-- name: ListFoo :many
SELECT * FROM foo;

Calling ListFoo will succeed and return a single row with an empty slice and null ID.
rows, err := q.ListFoo(ctx)                                                                                log.Println(rows)
$ 2019/12/16 13:51:41 [{{foo-array true} []}]

However, if the array contains a null item, the Scan will fail.
playground=# insert into foo (id, tags) values ('foo-array', array[NULL]);
INSERT 0 1
playground=# \q
$ ./sqlc-playground
2019/12/16 13:54:07 []
2019/12/16 13:54:07 sql: Scan error on column index 1, name "tags": pq: parsing array element index 0: cannot convert nil to string

I've opened #185 to track the issue with NULL array elements.

You're right, I was mistaken here. My issue was related to some old sqlx code that the sqlc code was interacting with that had the wrong types.
Switching it to sqlc revealed the type issue and fixed my problem.


Vibration while turned off for Nothing phone

Alarm and timer vibrate even when vibration is turned off
Version 2.4
Android 14

@qw123wh, @odmfl: it seems to me that one of you has a device with Android 14.
Can you please tell me if it's the same for you? (My Android 14 device has no vibrator.)

I haven't encountered this issue on my A14 devices, it works fine for me

@odmfl thank you for your feedback.
@ojppe Could you please specify the model of your device as requested in the template? Do you use a custom ROM?

Sorry, should have done initially.
Nothing OS 2.5.5 (phone 1)

@ojppe I think it's unfortunately due to your device 😬
See here; it seems that many users complain about the vibration mode.
I believe I have a workaround and I think I'll need your help because I think I need the exact model of your device. I'll keep you informed later.

@ojppe Quick question: does the "Activate vibrations" setting work on your device?
I've provided an apk below to test if my workaround works.
If that doesn't work, I'm sorry but I wouldn't know what else to do. 😬
This workaround only concerns the timer.
Clock_2.4-debug.zip

Thanks for looking into it.
Tested the timer in debug with different system settings but it still vibrates.
Vibration seems to works fine for calls, notifications and the google clock app. Altough in some apps (including this one) interface buttons don't vibrate. Which I don't mind.
If you're sure it's a Nothing problem feel free to close this issue.

@ojppe
Can you please do one last test with a fresh installation?
Like the other test, this modification only concerns the timer vibration.
Clock_2.4-debug.zip

If you're sure it's a Nothing problem feel free to close this issue.

As I'm not an expert, I prefer to leave this issue open in the hope that someone with the same device will be able to resolve it.

As this seems to only concern one phone model and no other issue has been created on this subject or no feedback has been given about other models, I am therefore closing this issue.

Tested timer in latest debug but didn't work.

Tested timer in latest debug but didn't work.

Thank you for your feedback.
The only thing to do is wait and see if anyone else has a Nothing device; if it has the same bug, it's because of the device model.

@ojppe
Is the bug still present when using version 2.10.1 or after reinstalling the application?

Yes. Still present in latest version and after reinstall.
Fossify clock doesn't have this issue. Maybe you could compare?

@ojppe

Yes. Still present in latest version and after reinstall.
Fossify clock doesn't have this issue. Maybe you could compare?

Thanks for your feedback. I'll take a look at it soon and give you a new version to test if I can find out where this bug specific to your device might be coming from.

@ojppe
When I reread the code, the vibrations are started with an AudioAttributes specified as indicated here.
Maybe that's what's causing the problem.
Also, you should check the logs when you enable/disable vibrations on the extended alarm view; indeed, as indicated here, there is the possibility to see if the setAlarmVibrationEnabled() function is correctly called.
Can you test the apk attached below please?
Clock_2.11_beta-debug.zip

Finally, if this doesn't work, I will certainly have to adapt the Kotlin code of the "Fossify clock" app which seems to be like this:

if (doVibrate && isOreoPlus()) {
    val pattern = LongArray(2) { 500 }
    vibrationHandler.postDelayed({
        vibrator = getSystemService(Context.VIBRATOR_SERVICE) as Vibrator
        vibrator?.vibrate(VibrationEffect.createWaveform(pattern, 0))
    }, 500)
}

Both didn't work.
Even with all permissions denied, still vibrating.

Both didn't work. Even with all permissions denied, still vibrating.

I'm sorry but I really don't know what's wrong with your phone... 😢
It's really strange that it works on my 3 different brand devices (as well as other users' devices) but not on yours!

Haha, no worries. "Nothing" is wrong with my phone. 😁
Thanks for testing though.

@ojppe
Can you please try again?
I've moved the code for the vibrations directly into the AsyncRingtonePlayer file, hoping it will finally work...
Clock_2.11_beta-debug.zip

Also didn't work

No haptic feedback enabled and no haptic related accessibility or developer setting.
Maybe this will help: 04_12-15-08-09_938.log (tested on latest debug just before alarm fires)
Let me know if you need something


Notification channels

A branch titled feature-notifications contains a functionality that allows inspecting exitsing notification channels, creating new ones, inspecting the channels that have been assigned to applications, projects and templates as well as assigning new ones to the aforementioned.

Dodałem kilka reguł do tslinta m.in. na spacje w importach. Zmerdżuj sobie mastera do tego brancha i odpal ng lint --fix powinno naprawić większość błędów.


chore(windows): Collect host window version with metadata infra

Will write window info on the meta file and be sent to need storage:


[DevTools] Can be edit Brush if is Property is Null

To Reproduce
Steps to reproduce the behavior:

Create Project form template
Replace the content of `MainWindow.axaml' like this: <Border Background="{x:Null} Width="20" Height="20" BorderThickness="1" BorderBrush="Black"/>

Run
Lunch DevTools
Select Border
Try to edit Background

Expected behavior
Click on value show ColorPicker
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: All
Version: cbe0bb861a767b7bf7b268bbaa1d89dcf8523aea

Additional context
none
cc: @pr8x

@robloo I think Color in the ColorPicker should be nullable. What do you think, is it possible to implement it?

@timunie Yes, it is theoretically possible but I'm sure you are aware of all the other discussions around this topic. I'm not in favor of doing this at this point. If I were to do it, I would choose the established DatePicker convention and add a nullable SelectedColor alongside the non-nullable Color property. Adding nullability causes more problems than it solves IMO although that is what you choose for the NumberBox.
Also keep in mind the DevTools control is using a color editor to edit a brush. That logically doesn't make sense. You need a brush editor control first to handle this case. ColorView can select colors within a brush but the brush editor needs to better handle null itself.

True in this case, as with a ColorPicker you can only have a SolidColorBrush. Color? SelectedColor is what I prefer, but okay probably out of issue scope.

@workgroupengineering @pr8x Consider using the converter here: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls.ColorPicker/Converters/DoNothingForNullConverter.cs
This can be moved to a more general, shared location as needed. It allows binding non-nullable with nullable properties without breaking things. It was used in the ColorView itself which has an ListBox to display palette colors. ListBox selected item may be null yet it must be bound to the non-nullable Color property of the control.
Further background:
Also keep in mind the WinUI control is non-nullable and I haven't heard any complaints about this through the lifetime of the control.


Setup Metabase and helium-etl-queries on new ETL machine

Metabase is running via docker now
etl-queries is about half-finished, need to fix a couple things. Over on https://github.com/jamiew/helium-etl-queries

This is all done now ✅


Only Show Loading Component if Set

Only display the loading component if not set to null so that the results list can persist between searches if the loading component isn't desired. Without this, the results list will flash since it alternates between the FlatList and nothing if the prop is set to null

👍